Non-homologous configuration consistency verification method and system based on effective configuration information

By adopting a non-homologous configuration consistency verification method based on effective configuration information in the smart substation, the problem of inconsistency of configuration files in the smart substation is solved, and the consistency checksum security of configuration files is improved.

CN116069549BActive Publication Date: 2025-03-11STATE GRID JIANGSU ELECTRIC POWER CO LTD +1
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202310026458.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-01-09
Publication Date
2025-03-11
Estimated Expiration
2043-01-09

AI Technical Summary

Technical Problem

There are problems in the intelligent substation where the integrated configuration of SCD files and the independent configuration of each IED are inconsistent, resulting in mismatched configurations, false updates and misinstallation, which may cause false relay protection actions, rejection actions or missignal of monitoring systems, and increase unnecessary maintenance operations and maintenance work.

Method used

A non-homologous configuration consistency verification method based on effective configuration information is adopted. By obtaining the verification requirements of non-homologous configurations, configuration files from different sources are obtained, and valid configuration information is extracted in a targeted manner. The cyclic redundancy algorithm is used to calculate the verification code to achieve consistency verification of configuration files.

Benefits of technology

The general verification principle of configuration file consistency verification is realized, making the verification results more scientific and reasonable, avoiding relay protection misoperation caused by inconsistent configurations and missigning of monitoring systems, and improving the operational safety of smart substations.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116069549B_ABST
    Figure CN116069549B_ABST
Patent Text Reader

Abstract

A method and system for consistency verification of non-homologous configurations based on valid configuration information, characterized in that the method comprises the following steps: Step 1, obtaining verification requirements for non-homologous configurations, and collecting configuration files from non-homologous devices according to the verification requirements; Step 2, extracting valid configuration information from the configuration files respectively, and using a cyclic redundancy algorithm to calculate the verification code of the valid configuration information; Step 3, comparing the verification codes to obtain consistency verification results. The verification results of the present invention are scientific and reasonable, and a configuration file cutting method is provided to realize configuration consistency verification between various integrated configuration files and independent configuration files.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent substations, and more specifically, to a method and system for verifying the consistency of non-homologous configurations based on effective configuration information. Background Art

[0002] At present, there are SCD file integrated configuration and independent configuration of each IED in the smart substation. There are also different versions of SCD files and IED independent configuration files in different construction periods. Each configuration file can be officially put into operation and take effect only after configuration, inspection, verification, debugging and acceptance. In the above work process and subsequent substation reconstruction, expansion and maintenance work, the configuration file will be partially or completely updated or modified. In this process, there will be configuration errors such as modification, update and download due to inconsistent configuration. Finally, the unverified, wrong or inconsistent configuration will be downloaded to the equipment and put into operation, which may lead to more serious relay protection misoperation, refusal to operate or monitoring system erroneous signaling, causing unnecessary maintenance and operation work.

[0003] In view of the above problems, it is necessary to carry out consistency verification of configuration files, and there are some existing verification methods in the prior art. For example, Background Technology Document 1: System and method for consistency verification of substation monitoring database access model and SCD, which can parse SCD and monitoring database access model, respectively carry out consistency comparison of signal information and structural information, and realize consistency verification of monitoring database access model and SCD. Background Technology Document 2: A method for online detection of consistency between SCD file and IED model, which can realize consistency detection of SCD file and IED model by reading IED model information online and comparing it with SCD file. Background Technology Document 3: ICD and SCD consistency verification method based on model object semantics, which converts the Schema model of ICD and SCD files into RDFSchema model, and uses RDF data object association relationship to find the matching object part of ICD file and SCD file, and performs consistency verification to realize consistency verification of ICD file and SCD file.

[0004] However, the above research results are all oriented towards the consistency verification of substation configuration files, and the technical methods described have their own limitations. For example, Background Technology Document 1 only solves the consistency verification of the substation monitoring database access model and SCD, Background Technology Document 2 only solves the consistency verification of the SCD file and the IED model, and Background Technology Document 3 also only solves the consistency verification of the ICD and SCD models. The technical routes and principles adopted by each verification method are very different, and they are not interoperable with each other. They do not consider that the same configuration file needs to use different configuration description parts for different application scenarios, and do not consider distinguishing between the core valid configuration description and the invalid configuration description in the configuration file. If the consistency verification result contains invalid information that is irrelevant to the target application, the verification result is not reasonable.

[0005] In view of the above problems, a new consistency verification method for non-homologous configurations in substations is urgently needed. Summary of the invention

[0006] In order to solve the deficiencies in the prior art, the present invention provides a method and system for consistency verification of non-homologous configurations based on valid configuration information. By obtaining the verification requirements of non-homologous configurations, configuration files from different sources are customized according to the verification requirements, and the valid configuration information therein is extracted in a targeted manner to ultimately achieve consistency verification.

[0007] The present invention adopts the following technical solution.

[0008] The first aspect of the present invention relates to a method for consistency verification of non-homologous configurations based on valid configuration information, the method comprising the following steps: step 1, obtaining verification requirements for non-homologous configurations, and collecting configuration files from non-homologous devices according to the verification requirements; step 2, extracting valid configuration information from the configuration files respectively, and using a cyclic redundancy algorithm to calculate the verification code of the valid configuration information; step 3, comparing the verification codes to obtain a consistency verification result.

[0009] Preferably, the non-homologous devices include substation bay layer equipment, substation process layer equipment, substation station control layer equipment, substation communication gateway equipment, and substation switch.

[0010] Preferably, the non-homologous configuration includes process layer configuration, bay layer configuration, station control layer configuration and switch configuration; the configuration files include SCD configuration file, CID configuration file, CCD configuration file, CSD configuration file, ICD configuration file and RCD configuration file.

[0011] Preferably, the verification requirement includes relevant information of the non-homologous devices, non-homologous configurations and configuration files to be verified.

[0012] Preferably, the effective configuration information is selected based on the application scenario of the configuration file; and the application scenario includes message communication, background monitoring, data forwarding and data exchange.

[0013] Preferably, when the application scenario is message communication, the effective configuration information includes the control block definition, control block communication parameters, control block data channel definition, control block data channel type, control block data channel path, and virtual terminal subscription relationship in the model file.

[0014] Preferably, when the application scenario is background monitoring, the effective configuration information includes the data set definition, data set data channel definition, data set data channel type, data set data channel path, and data set data channel description in the model file.

[0015] Preferably, when the application scenario is data forwarding, the effective configuration information includes the data set definition, data set data channel definition, data set data channel type, data set data channel path, and data set data channel description in the model file.

[0016] Preferably, when the application scenario is data exchange, the effective configuration information includes the control block definition, control block communication parameters, and device physical port connection configuration in the model file.

[0017] Preferably, the configuration file also includes a separate configuration file and an integrated configuration file; and the effective configuration information of the integrated configuration file is generated based on a target separate configuration file among the multiple separate configuration files after cutting out multiple separate configuration files from the integrated configuration file based on the application scenario of the configuration file; wherein the target separate configuration file is selected from the multiple separate configuration files according to the application scenario of the configuration file.

[0018] Preferably, the cyclic redundancy algorithm is: remove content elements and symbol elements from the valid configuration information, sort the remaining attribute elements, and convert them into UTF-8 sequences; perform cyclic redundancy calculation on the UTF-8 sequence to obtain a CRC check code.

[0019] A second aspect of the present invention relates to a non-homologous configuration consistency verification system based on valid configuration information, the system comprising an acquisition module, an extraction module and a verification module; wherein the acquisition module is used to obtain the verification requirements of the non-homologous configuration, and to collect configuration files from non-homologous devices according to the verification requirements; the extraction module is used to extract the valid configuration information from the configuration files respectively, and to calculate the verification code of the valid configuration information using a cyclic redundancy algorithm; the verification module is used to compare the verification code to obtain a consistency verification result.

[0020] A third aspect of the present invention relates to a terminal, comprising a processor and a storage medium; the storage medium is used to store instructions; the processor is used to operate according to the instructions to execute the steps of the method in the first aspect of the present invention.

[0021] A fourth aspect of the present invention relates to a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method in the first aspect of the present invention.

[0022] The beneficial effect of the present invention is that, compared with the prior art, the non-homologous configuration consistency verification method and system based on valid configuration information in the present invention obtains the verification requirements of non-homologous configurations to customize and obtain configuration files from different sources according to the verification requirements, and extracts the valid configuration information therein in a targeted manner, so as to finally achieve consistency verification. The present invention proposes to distinguish the specific uses of configuration files, distinguish the valid configuration information and invalid configuration information of configuration files under different use conditions, and conduct configuration consistency verification based on the valid configuration information, which can realize the general verification principle of configuration file consistency verification, making the verification result more scientific and reasonable, and at the same time provides a configuration file cutting method, which can realize configuration consistency verification between various integrated configuration files and independent configuration files, and independent configuration files in the integrated configuration files.

[0023] The beneficial effects of the present invention also include:

[0024] 1. The method of the present invention can achieve accurate comparison of the consistency of specific configuration descriptions of non-homologous configuration files by distinguishing application requirements and effective configuration information and eliminating external interference factors. It also achieves consistency comparison of configuration descriptions of independent configuration files and integrated configuration files, and independent parts of different versions of integrated configuration files by cutting integrated configuration files.

[0025] 2. The present invention improves the operational safety of the smart substation, avoids false operation or refusal of relay protection or false signaling of the monitoring system due to inconsistent configuration, and is of great significance to the improvement of the economic and safety benefits of the safe operation of the substation. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 A schematic diagram of the steps of a method for verifying consistency of non-homologous configurations based on valid configuration information according to the present invention;

[0027] Figure 2 The present invention is a schematic diagram of the cutting principle of an integrated configuration file in a non-homologous configuration consistency verification method based on valid configuration information. DETAILED DESCRIPTION

[0028] In order to make the purpose, technical scheme and advantages of the present invention clearer, the technical scheme of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. The embodiments described in the present invention are only embodiments of a part of the present invention, not all embodiments. Based on the spirit of the present invention, all other embodiments not recorded in the present invention obtained by ordinary technicians in this field according to the embodiments recorded in the present invention without making creative work should belong to the protection scope of the present invention.

[0029] Figure 1 FIG. 1 is a schematic diagram of the steps of a method for checking consistency of non-homologous configurations based on valid configuration information of the present invention. Figure 1 As shown, the first aspect of the present invention relates to a method for verifying consistency of non-homologous configurations based on valid configuration information, and the method includes steps 1 to 3.

[0030] Step 1: Obtain verification requirements for non-homogeneous configurations, and collect configuration files from non-homogeneous devices based on the verification requirements.

[0031] It can be understood that the present invention analyzes the characteristics of the configuration description information of the configuration file under different application requirements, splits the configuration description information in the configuration file into valid configuration information and invalid configuration information, performs cyclic redundancy calculation based on the valid configuration information, generates a configuration file check code, extracts the characteristic information of the configuration file, and groups non-homologous configuration files with consistent characteristic information as a group, and compares whether their file check codes are consistent. This consistency represents the configuration description consistency of non-homologous configuration files under specific application requirements.

[0032] Therefore, the present invention sets a rule for dividing the configuration information in the configuration files such as SCD, RCD, ICD, CID, CCD, CSD and other integrated configuration files and separate configuration files of smart substations according to different application requirements, and divides the configuration information in the configuration files into valid configuration information and invalid configuration information under various application requirement conditions.

[0033] Preferably, the non-homologous devices include substation interval layer devices, substation process layer devices, substation station control layer devices, substation communication gateway machines, and substation switches. Non-homologous configurations include process layer configurations, interval layer configurations, station control layer configurations, and switch configurations; configuration files include SCD configuration files, CID configuration files, CCD configuration files, CSD configuration files, ICD configuration files, and RCD configuration files. It is understandable that the present invention can implement verification between different sources and different configuration contents based on various demand information generated during the actual operation of the substation. In order to provide a general method, the present invention involves verification requirements.

[0034] Preferably, the verification requirement includes relevant information of the non-homologous devices, non-homologous configurations and configuration files to be verified.

[0035] Specifically, in the embodiments of the present invention, various application requirement conditions include but are not limited to: Condition 1, description consistency comparison of the process layer configuration of the substation interval layer equipment and process equipment configuration files. Condition 2, description consistency comparison of the station control layer configuration of the substation monitoring background and interval layer equipment configuration files. Condition 3, description consistency comparison of the station control layer configuration of the substation communication gateway and interval layer equipment configuration files. Condition 4, description consistency comparison of the process layer configuration of the substation SCD configuration file and CID configuration file. Condition 5, description consistency comparison of the station control layer configuration of the substation SCD configuration file and CID configuration file. Condition 6, description consistency comparison of the process layer configuration of the substation SCD configuration file and CCD configuration file. Condition 7, description consistency comparison of the switch configuration of the substation SCD configuration file and CSD configuration file. Condition 8, description consistency comparison of the process layer configuration of each IED device by different versions of SCD configuration files of the substation. Condition 9, description consistency comparison of the station control layer configuration of each IED device by different versions of SCD configuration files of the substation. Condition 10: Compare the description consistency of the process layer and station control layer configuration of each IED device in different versions of SCD configuration files of the substation. Condition 11: Compare the description consistency of the configuration of each IED device in different versions of SCD configuration files of the substation.

[0036] In view of the above-mentioned different verification requirements, the present invention can extract respective valid configuration information from non-homologous configuration files according to the configuration information division method.

[0037] Step 2: extract valid configuration information from the configuration file respectively, and use a cyclic redundancy algorithm to calculate the check code of the valid configuration information.

[0038] It should be noted that after obtaining different configuration files, the present invention will obtain different configuration information according to the verification requirements, and adopt a similar method to extract valid configuration information and filter out invalid configuration information.

[0039] Preferably, the effective configuration information is selected based on the application scenario of the configuration file; and the application scenario includes message communication, background monitoring, data forwarding and data exchange.

[0040] It is understandable that the valid configuration information and invalid configuration information in the present invention can be selected according to different actual conditions. Specifically, when the configuration file is used for process layer GOOSE and SV communication behaviors, the valid configuration information includes the control block definition, control block communication parameters, control block data channel definition, control block data channel type, control block data channel path, virtual terminal subscription relationship, etc. in the model file.

[0041] When the configuration file is used to monitor the background database configuration, the effective configuration information includes the data set definition, data set data channel definition, data set data channel type, data set data channel path, data set data channel description, etc. in the model file.

[0042] When the configuration file is used for data forwarding configuration of a communication gateway, the valid information includes the data set definition, data set data channel definition, data set data channel type, data set data channel path, data set data channel description, etc. in the model file.

[0043] When the configuration file is used to configure the switch CSD to take effect, the valid information includes the control block definition in the model file, the control block communication parameters, and the physical port connection configuration of the device.

[0044] Preferably, the configuration file also includes a separate configuration file and an integrated configuration file; and the effective configuration information of the integrated configuration file is generated based on a target separate configuration file among the multiple separate configuration files after cutting out multiple separate configuration files from the integrated configuration file based on the application scenario of the configuration file; wherein the target separate configuration file is selected from the multiple separate configuration files according to the application scenario of the configuration file.

[0045] It is understandable that, depending on actual verification requirements, there may be a verification between a separate configuration file and an integrated configuration file, or there may be a verification between two integrated configuration files.

[0046] The separate configuration file here means that the configuration target of the configuration file is only for a single device, while the integrated configuration file can be for multiple devices regardless of how the configuration content is obtained or the devices it is configured for. Therefore, it can be seen that the integrated configuration file can also be understood as a collection of multiple separate configuration files from a certain perspective.

[0047] Figure 2 Schematic diagram of the cutting principle of integrated configuration files in a non-homologous configuration consistency verification method based on effective configuration information of the present invention. Figure 2 As shown, for example, for a set of separate configuration files and integrated configuration files, when extracting the effective configuration information of the integrated configuration file, Figure 2 As shown, the integrated configuration file is first cut according to the information characteristics of the separate configuration file, and the configuration description information of the target separate configuration file in the integrated configuration file is generated. Then, the valid configuration information of the configuration description information of the target separate configuration file in the integrated configuration file is extracted, and the configuration file verification code of the target separate configuration file described in the integrated configuration file under the verification requirement is calculated. The configuration file verification codes of the separate configuration file and the integrated configuration file are compared to determine the consistency of the configuration description between the separate configuration file and the integrated configuration file.

[0048] Specifically, in the present invention, the characteristic information of the individual configuration files can be firstly extracted, and then the characteristic information of each independent configuration description part in the integrated configuration file can be extracted. By comparing the characteristic information of the individual configuration files with the characteristic information of the integrated configuration files, the partial configuration and its boundary described for the target individual configuration file in the integrated configuration file are determined. Subsequently, according to the partial configuration and its boundary described for the target individual configuration file by the determined integrated configuration file, the partial configuration in the integrated configuration file is cut to generate the partial configuration described for the target individual configuration file.

[0049] In the present invention, by extracting the valid configuration information of the separate configuration file and the cut partial configuration file under the verification requirement, the configuration file verification codes corresponding to the valid information of the separate configuration file and the cut partial configuration file can be calculated respectively. The above two configuration file verification codes are compared to determine the consistency of the separate configuration file and the cut partial configuration file. This consistency represents the configuration consistency of the separate configuration file and the integrated configuration file under a certain type of application requirement conditions. For ease of understanding and expression, it is described here and in the following as the configuration consistency under the first type of application requirement conditions.

[0050] In another embodiment of the present invention, if it is necessary to compare the consistency of two integrated configuration files for some individual configuration descriptions, the configuration description information of all individual configuration files in the integrated configuration file can be cut based on the configuration file cutting method, the configuration description information of all individual configuration files in the integrated configuration file is generated, and the configuration file verification codes under the verification requirements are calculated in sequence, and the feature information of the configuration description information of each individual configuration file is extracted at the same time, and the configuration file verification codes of the individual configuration files with the same feature information cut out from the two groups of integrated configuration files are compared to determine the consistency of the configuration descriptions of each individual configuration file within the two groups of integrated configuration files.

[0051] The more detailed steps of this step include: extracting the characteristic information of each independent configuration description part in the integrated configuration file respectively, and determining the partial configuration and its boundary described by each separate configuration file in the integrated configuration file by comparing the characteristic information of the separate configuration parts in the two sets of integrated configuration files. Then, the present invention cuts the partial configuration in the integrated configuration file according to the determined partial configuration and its boundary of the integrated configuration file, and generates the partial configuration described by each separate configuration file. Then, extract the effective configuration information of each cut partial configuration file, calculate the configuration file check code corresponding to the effective information of each cut partial configuration file respectively, compare the characteristic information of each cut partial configuration file, and combine the pairs with the same characteristic information.

[0052] The present invention compares the checksums of two configuration files in a pair combination to determine the consistency of each cut partial configuration file in the two sets of integrated configuration files, and the consistency represents the consistency of the configuration description of each individual device in the two sets of integrated configuration files under the first type of application requirement conditions.

[0053] Preferably, the cyclic redundancy algorithm is: remove content elements and symbol elements from the valid configuration information, sort the remaining attribute elements, and convert them into UTF-8 sequences; perform cyclic redundancy calculation on the UTF-8 sequence to obtain a CRC check code.

[0054] It is understandable that the present invention can use a cyclic redundancy calculation method to calculate a check code for the extracted valid configuration information to generate a configuration file check code under the first type of application requirement conditions. The check code serves as a unique identifier describing the configuration information of the configuration file under the first type of application requirement conditions.

[0055] The cyclic redundancy calculation method is as follows: remove spaces, line feeds, carriage returns, and list characters between content elements and attribute elements from all extracted valid configuration information, arrange the attributes of all extracted elements in the order of letters az, and end the elements without sub-elements and assigned values ​​with " / >". Convert the sequence used to calculate the check code into a UTF-8 sequence, calculate the four-byte CRC-32 check code, and if the calculated four-byte CRC-32 check code is less than four bytes, fill the high byte with 0x0.

[0056] Among them, the CRC parameters are as follows:

[0057] CRC bit width: 32;

[0058] Generate item Poly: 04C11DB7;

[0059] Initialization value Init: FFFFFFFF;

[0060] Whether the data to be tested is reversed RefIn: True;

[0061] Is the calculated value reversed RefOut: True;

[0062] Output data XOR item XorOut: FFFFFFFF;

[0063] The verification result of the string "123456789abcdef" is Check: A2B4FD62.

[0064] Step 3: Compare the check codes to obtain consistency check results.

[0065] Specifically, after completing the consistency comparison of non-homologous configuration files under all categories of different verification requirements, the present invention records the configuration file verification code of each configuration file under each category of application conditions as a basis for verification and comparison, and outputs the consistency comparison result of non-homologous configuration files under each category of application conditions.

[0066] A second aspect of the present invention relates to a non-homologous configuration consistency verification system based on valid configuration information, the system comprising an acquisition module, an extraction module and a verification module; wherein the acquisition module is used to obtain the verification requirements of the non-homologous configuration, and to collect configuration files from non-homologous devices according to the verification requirements; the extraction module is used to extract the valid configuration information from the configuration files respectively, and to calculate the verification code of the valid configuration information using a cyclic redundancy algorithm; the verification module is used to compare the verification code to obtain a consistency verification result.

[0067] A third aspect of the present invention relates to a terminal, comprising a processor and a storage medium; the storage medium is used to store instructions; the processor is used to operate according to the instructions to execute the steps of the method in the first aspect of the present invention.

[0068] It is understandable that, in order to implement the various functions in the method provided in the above-mentioned embodiment of the present application, the terminal includes a hardware structure and / or software module corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the algorithm steps of each example described in the embodiment disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0069] The embodiment of the present application can divide the functional modules of the terminal according to the above method example. For example, each functional module can be divided according to each function, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware or in the form of software functional modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0070] The terminal device includes at least one processor, a bus system and at least one communication interface. The processor may be a central processing unit (CPU), or may be replaced by a field programmable gate array (FPGA), an application-specific integrated circuit (ASIC) or other hardware, or the FPGA or other hardware and the CPU may serve as a processor together.

[0071] The memory may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk storage medium or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited to this. The memory may exist independently and be connected to the processor through a bus. The memory may also be integrated with the processor.

[0072] The hard disk can be a mechanical disk or a solid state drive (SSD), etc. The interface card can be a host bus adapter (HBA), a redundant array of independent disks (RID), an expander card (Expander), or a network interface controller (NIC), etc., which is not limited in the embodiment of the present invention. The interface card in the hard disk module communicates with the hard disk. The storage node communicates with the interface card of the hard disk module to access the hard disk in the hard disk module.

[0073] The interface of the hard disk can be a serial attached small computer system interface (Serial Attached Small Computer System Interface, SAS), a serial advanced technology attachment (Serial Advanced Technology Attachment, SATA) or a high-speed serial computer expansion bus standard (Peripheral Component Interconnect express, PCIe) and the like.

[0074] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using a software program, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more servers that can be integrated with the medium. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a DVD), or a semiconductor medium (eg, a solid state disk (SSD)).

[0075] A fourth aspect of the present invention relates to a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method in the first aspect of the present invention.

[0076] The computer program instructions for performing the operation of the present invention may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-dependent instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed entirely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be personalized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present invention.

[0077] The beneficial effect of the present invention is that, compared with the prior art, the non-homologous configuration consistency verification method and system based on valid configuration information in the present invention obtains the verification requirements of non-homologous configurations to customize and obtain configuration files from different sources according to the verification requirements, and extracts the valid configuration information therein in a targeted manner, so as to finally achieve consistency verification. The present invention proposes to distinguish the specific uses of configuration files, distinguish the valid configuration information and invalid configuration information of configuration files under different use conditions, and conduct configuration consistency verification based on the valid configuration information, which can realize the general verification principle of configuration file consistency verification, making the verification result more scientific and reasonable, and at the same time provides a configuration file cutting method, which can realize configuration consistency verification between various integrated configuration files and independent configuration files, and independent configuration files in the integrated configuration files.

[0078] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention rather than to limit it. Although the present invention has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that the specific implementation methods of the present invention can still be modified or replaced by equivalents, and any modifications or equivalent replacements that do not depart from the spirit and scope of the present invention should be covered within the scope of protection of the claims of the present invention.

Claims

1. A method for checking consistency of non-homologous configurations based on valid configuration information, characterized in that: The method comprises the following steps: Step 1: Obtain verification requirements for non-homologous configurations, and collect configuration files from non-homologous devices based on the verification requirements; The non-homologous configuration includes process layer configuration, bay layer configuration, station control layer configuration and switch configuration; The non-homologous devices include substation bay layer devices, substation process layer devices, substation station control layer devices, substation communication gateways, and substation switches; The configuration files include separate configuration files and integrated configuration files; and, The effective configuration information of the integrated configuration file is generated based on a target separate configuration file among the multiple separate configuration files after cutting out multiple separate configuration files from the integrated configuration file based on an application scenario of the configuration file; Wherein, the target separate configuration file is selected from the multiple separate configuration files according to the application scenario of the configuration file; Step 2, extracting valid configuration information from the plurality of configuration files respectively, and using a cyclic redundancy algorithm to calculate the check codes of the plurality of valid configuration information respectively; The cyclic redundancy algorithm is: Remove content elements and symbol elements from the valid configuration information, sort the remaining attribute elements, and convert them into UTF-8 sequences; Performing cyclic redundancy calculation on the UTF-8 sequence to obtain a CRC check code; Step 3: compare the multiple verification codes to obtain consistency verification results between multiple configuration files collected from non-same-source devices.

2. According to the method for verifying the consistency of non-homologous configurations based on valid configuration information as described in claim 1, it is characterized by: The configuration files include an SCD configuration file, a CID configuration file, a CCD configuration file, a CSD configuration file, an ICD configuration file and an RCD configuration file.

3. According to the method for checking consistency of non-homologous configurations based on valid configuration information as described in claim 2, it is characterized by: The verification requirement includes relevant information of the non-homogeneous devices, non-homogeneous configurations and configuration files to be verified.

4. According to the method for checking consistency of non-homologous configurations based on valid configuration information as described in claim 3, it is characterized by: The valid configuration information is selected based on the application scenario of the configuration file; Furthermore, the application scenarios include message communication, background monitoring, data forwarding and data exchange.

5. According to the method for checking consistency of non-homologous configurations based on valid configuration information as claimed in claim 4, it is characterized by: When the application scenario is message communication, the valid configuration information includes control block definition, control block communication parameters, control block data channel definition, control block data channel type, control block data channel path, and virtual terminal subscription relationship in the model file.

6. A method for checking consistency of non-homologous configurations based on valid configuration information according to claim 4, characterized in that: When the application scenario is background monitoring, the valid configuration information includes a data set definition, a data set data channel definition, a data set data channel type, a data set data channel path, and a data set data channel description in a model file.

7. A method for checking consistency of non-homologous configurations based on valid configuration information according to claim 4, characterized in that: When the application scenario is data forwarding, the valid configuration information includes a data set definition, a data set data channel definition, a data set data channel type, a data set data channel path, and a data set data channel description in a model file.

8. A method for checking consistency of non-homologous configurations based on valid configuration information according to claim 4, characterized in that: When the application scenario is data exchange, the valid configuration information includes control block definition, control block communication parameters, and device physical port connection configuration in the model file.

9. A non-homologous configuration consistency verification system based on valid configuration information, characterized in that: The system includes a collection module, an extraction module and a verification module; wherein, The acquisition module is used to obtain verification requirements of non-homologous configurations and to collect configuration files from non-homologous devices according to the verification requirements; The non-homologous configuration includes process layer configuration, bay layer configuration, station control layer configuration and switch configuration; The non-homologous devices include substation bay layer devices, substation process layer devices, substation station control layer devices, substation communication gateways, and substation switches; The configuration files include separate configuration files and integrated configuration files; and, The effective configuration information of the integrated configuration file is generated based on a target separate configuration file among the multiple separate configuration files after cutting out multiple separate configuration files from the integrated configuration file based on an application scenario of the configuration file; Wherein, the target separate configuration file is selected from the multiple separate configuration files according to the application scenario of the configuration file; The extraction module is used to extract valid configuration information from the multiple configuration files, and calculate the check codes of the multiple valid configuration information by using a cyclic redundancy algorithm; The cyclic redundancy algorithm is: Remove content elements and symbol elements from the valid configuration information, sort the remaining attribute elements, and convert them into UTF-8 sequences; Performing cyclic redundancy calculation on the UTF-8 sequence to obtain a CRC check code; The verification module is used to compare the multiple verification codes to obtain consistency verification results between multiple configuration files collected from non-same-source devices.

10. A terminal comprising a processor and a storage medium; characterized in that: The storage medium is used to store instructions; The processor is configured to operate according to the instructions to execute the steps of the method according to any one of claims 1-8.

11. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the steps of the method according to any one of claims 1 to 8 are implemented.

Citation Information

Patent Citations

  • Configuration file consistency management and control method based on CRC check code recheck technology

    CN110515759A