Search

CN-122021604-A - Protection configuration comparison and consistency check method, system, equipment and medium based on SCD file

CN122021604ACN 122021604 ACN122021604 ACN 122021604ACN-122021604-A

Abstract

The invention discloses a protection configuration comparison and consistency check method, a system, equipment and a medium based on an SCD file, which belong to the technical field of power system automation and comprise the steps of respectively analyzing a reference SCD file and a configuration file to be checked to obtain a structured data model; the method comprises the steps of processing and outputting an initial difference set through a structural comparison algorithm, carrying out hierarchical analysis to obtain an analysis difference set, verifying the analysis difference set to obtain a final difference set, presetting a risk mapping rule, carrying out risk assessment on the final difference set, and generating a risk assessment result. The method and the device realize automatic identification of configuration differences through a structural comparison algorithm, combine a layering check model of an interval level, a device level and a virtual loop level, locate the influence range of the configuration differences, realize consistency verification of the configuration of the on-site line protection device by using a check code mechanism, preset a risk mapping rule for risk assessment, and improve the accuracy, efficiency and safety of intelligent substation configuration management.

Inventors

  • SHI HENGCHU
  • ZHOU HAICHENG
  • CHEN XIAOFAN
  • YOU HAO
  • XU SHOUDONG
  • DING XIAOLI
  • SHEN YANG
  • WANG ZICHENG
  • LI YINYIN
  • HU XIAO

Assignees

  • 云南电网有限责任公司

Dates

Publication Date
20260512
Application Date
20260331

Claims (10)

  1. 1.A protection configuration comparison and consistency check method based on an SCD file is characterized by comprising the following steps: respectively analyzing the reference SCD file and the configuration file to be checked to obtain a structured data model; Processing the structured data model through a structured comparison algorithm, and outputting an initial difference set; establishing a hierarchical checking model, and carrying out hierarchical analysis on the initial difference set through the hierarchical checking model to obtain an analysis difference set; Verifying the differential difference set through a check code comparison mode, and updating the differential difference set according to a verification result to obtain a final difference set; And presetting a risk mapping rule, carrying out risk assessment on the final difference set, and generating a risk assessment result.
  2. 2. The method for comparing and checking consistency of protection configuration based on SCD file as set forth in claim 1, wherein the step of obtaining the structured data model comprises: reading the original data of the reference SCD file and the configuration file to be checked to obtain a file data stream; analyzing the file data stream by adopting an XML analysis library to obtain an initial XML document object model; And carrying out standardization processing on the initial XML document object model to obtain a standardized XML tree model, and taking the standardized XML tree model as a structured data model.
  3. 3. The method for comparing and checking consistency of protection configuration based on SCD file as set forth in claim 2, wherein the structured comparison algorithm comprises: traversing SCL elements in the structured data model in a depth-first search mode, and calculating a hash value of each SCL element in the structured data model; comparing the hash value of the SCL element corresponding to the standard SCD file with the hash value of the SCL element corresponding to the configuration file to be checked; when the hash value of the SCL element corresponding to the standard SCD file is inconsistent with the hash value of the SCL element corresponding to the configuration file to be checked, the SCL element is indicated to be changed, and when the hash value of the SCL element corresponding to the standard SCD file is consistent with the hash value of the SCL element corresponding to the configuration file to be checked, the comparison is continued; the changed SCL element is taken as a target SCL element.
  4. 4. The method for comparing and checking consistency of protection configuration based on SCD file as set forth in claim 3, wherein the steps of processing the structured data model and outputting an initial set of differences include: determining hierarchical position information of the target SCL element in the structured data model; When the level position information of the target SCL element is changed, recording change details, and marking a change type according to the change details; and generating an initial difference set according to the target SCL element, the corresponding hierarchical position information and the change type.
  5. 5. The method for comparing and checking consistency of protection configuration based on SCD file as set forth in claim 4, wherein the step of performing hierarchical resolution to obtain a set of resolved differences comprises: Constructing a layering check model through an interval level, a device level and a virtual loop level; Classifying target SCL elements in the initial difference set through the hierarchical checking model to obtain a hierarchical classification result; According to the hierarchical position information of the target SCL element, evaluating the influence of the target SCL element on an interval configuration structure, the influence on equipment configuration parameters and the influence on a virtual loop connection relation to obtain an influence analysis result; and correlating the hierarchical classification result and the influence analysis result with the initial difference set to obtain a differential difference set.
  6. 6. The method for comparing and checking consistency of protection configuration based on SCD file as set forth in claim 5, wherein the step of obtaining the final difference set comprises: When the check codes are inconsistent in matching, triggering and executing the structural comparison algorithm aiming at the corresponding configuration range of the field line protection device in the reference SCD file; positioning abnormal SCL elements which cause inconsistent check codes through the structural comparison algorithm; and supplementing the abnormal SCL element, the corresponding level position information and the change type to the differential difference set to obtain a final difference set.
  7. 7. The method for comparing and checking consistency of protection configuration based on SCD file as set forth in claim 6, wherein the step of generating the risk assessment result comprises: traversing abnormal SCL elements in the final difference set; presetting corresponding risk grades for the combination of the level position information and the change types, and matching the abnormal SCL element with the risk grade to obtain a matching result; According to the matching result, assigning a risk level to each abnormal SCL element and generating a risk description to obtain a risk assessment result; And summarizing risk assessment results of all abnormal SCL elements, and generating a risk assessment report.
  8. 8. A system for comparing and checking consistency of protection configuration based on SCD file, applying the method as set forth in any one of claims 1-7, comprising: The configuration file analysis module is used for respectively analyzing the reference SCD file and the configuration file to be checked to obtain a structured data model; the initial difference comparison module is used for processing the structured data model through a structured comparison algorithm and outputting an initial difference set; The layering analysis module is used for carrying out layering analysis on the initial difference set through a preset layering check model to obtain an analysis difference set; The consistency checking module is used for executing consistency verification when the configuration file to be checked is derived from the field line protection device, triggering a structured comparison algorithm to locate configuration differences when check codes are not matched, and updating the differential difference set to obtain a final difference set; and the risk assessment module is used for carrying out risk assessment on the final difference set based on a preset risk mapping rule and generating a risk assessment report.
  9. 9. An electronic device, comprising: A memory and a processor; The memory is configured to store computer executable instructions, wherein the processor is configured to execute the computer executable instructions, which when executed by the processor, implement the steps of a SCD file-based protection configuration comparison and consistency check method according to any of claims 1 to 7.
  10. 10. A computer readable storage medium storing computer executable instructions which when executed by a processor implement the steps of a SCD file based protection configuration comparison and consistency check method of any of claims 1 to 7.

Description

Protection configuration comparison and consistency check method, system, equipment and medium based on SCD file Technical Field The invention relates to the technical field of power system automation, in particular to a protection configuration comparison and consistency check method, system, equipment and medium based on an SCD file. Background The intelligent substation is taken as an important direction of intelligent development of the power grid, and system configuration of the intelligent substation is generally uniformly described and managed through an intelligent substation configuration description file, abbreviated as SCD file. The SCD file is used as a unique data source of the total station which accords with the IEC61850 standard, and the communication parameters, the functional logic and the virtual loop connection relation of the intelligent electronic equipment IED in the intelligent substation are completely defined. The SCD file will undergo multiple version iterations as the equipment is replaced, functions are extended, defects are rectified throughout the life cycle of the intelligent substation. How to efficiently and accurately identify the configuration difference between SCD files of different versions and ensure that the actual configuration of a device running on site is consistent with the design of the SCD files becomes a key technical link for ensuring the safe and stable operation of an intelligent substation. At present, a technical short board still exists for comparing and checking consistency of SCD files in the industry. The existing comparison method mainly comprises manual check and simple file check codes such as MD5 comparison. Manual comparison is low in efficiency and easy to overlook, and the full-text check code comparison can only judge whether the file is changed or not, cannot locate specific change points and cannot realize different levels of differentiation presentation and influence analysis. In addition, the prior art lacks the ability to automate risk assessment of configuration differences. After the difference is identified, the system risk caused by the difference still needs to be judged by relying on the manual experience of operation and maintenance personnel, such as protection malfunction and refusal, the subjectivity of the evaluation process is strong, the efficiency is low, the consistency of the evaluation standard is difficult to ensure, and timely and accurate risk early warning and decision support cannot be provided for on-site operation and maintenance. Disclosure of Invention The present invention has been made in view of the above-described problems occurring in the prior art. Therefore, the invention provides a protection configuration comparison and consistency check method, system, equipment and medium based on SCD files, which solve the problems that the existing SCD file comparison mainly depends on manual and simple check codes, has low efficiency, cannot locate specific change points, cannot realize hierarchical difference analysis, and meanwhile lacks automatic risk assessment capability, relies on manual experience to judge risks, has strong subjectivity and low efficiency, and is difficult to timely early warn potential safety hazards caused by configuration change. In order to solve the technical problems, the invention provides the following technical scheme: In a first aspect, the present invention provides a method for comparing and checking consistency of protection configuration based on SCD files, including: respectively analyzing the reference SCD file and the configuration file to be checked to obtain a structured data model; Processing the structured data model through a structured comparison algorithm, and outputting an initial difference set; establishing a hierarchical checking model, and carrying out hierarchical analysis on the initial difference set through the hierarchical checking model to obtain an analysis difference set; Verifying the differential difference set through a check code comparison mode, and updating the differential difference set according to a verification result to obtain a final difference set; And presetting a risk mapping rule, carrying out risk assessment on the final difference set, and generating a risk assessment result. As a preferred scheme of the SCD file-based protection configuration comparison and consistency check method, the invention comprises the following steps: reading the original data of the reference SCD file and the configuration file to be checked to obtain a file data stream; analyzing the file data stream by adopting an XML analysis library to obtain an initial XML document object model; And carrying out standardization processing on the initial XML document object model to obtain a standardized XML tree model, and taking the standardized XML tree model as a structured data model. The SCD configuration file is converted into the standardized XML tree model with u