摘要
继电保护行业已全面进入信息化时代,有许多应用都基于文件交互。由于传输异常、网络攻击等因素的存在,通常需要验证文件完整性摘要来保证应用程序的可靠性。一些系统在设计初期没有考虑该需求,由于文件操作接口设计一致性不足等原因,在升级改造过程中,开发人员通常会违背开闭原则,大量修改文件操作模块的代码,实现和测试成本很高。针对继电保护装置文件读写并发程度不高的特点,提出一种基于Linux的文件完整性摘要管理模块的设计方法,使用Linux系统的inotify机制和文件扩展属性,实现一个与现有软件充分解耦的摘要管理模块,使系统遵守开闭原则,该模块摘要算法可扩展,兼顾系统效率。
Relay protection industry has fully into the information age,a lot of applications are based on file interaction.Due to transmission anomalies,network attacks,and other factors,it is often necessary to verify the file integrity summary to ensure the reliability of the application.However,some systems are not designed with this requirement in mind.Due to insufficient design consistency of the file operation interface,in the process of upgrading and transformation,developers usually violate the principle of opening and closing and modify the code of the file operation module a lot,and the implementation and testing costs are high.Aiming at the characteristics of low file read and write concurrency of relay protection device,a design method of file integrity summary management module based on Linux is proposed.Using the inotify mechanism and file extension attributes of the Linux system,a summary management module that is fully decoupled from the existing software is implemented,so that the system complies with the principle of opening and closing.The module summarization algorithm is scalable and takes into account system efficiency.
作者
商巍
SHANG Wei(Nanjing State Grid Nanzi Power Grid Automation Co.,Ltd.,Nanjing 211153,China)
出处
《电工技术》
2023年第14期168-170,共3页
Electric Engineering