A method and system for substation heterogeneous data fusion based on CMS and MMS

By adopting the heterogeneous data fusion method based on CMS and MMS in the substation, the existing MMS protocols in the field of power system automation, poor scalability and security issues, realized the compatibility and dynamic dynamics of the CMS and MMS protocols. Switching, saving the debugging time and applicable to the renovation of the stock station.

CN117319525BActive Publication Date: 2025-01-28NARI NANJING CONTROL SYSTEM CO LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202311398388.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-26
Publication Date
2025-01-28
Estimated Expiration
2043-10-26

Smart Images

  • Figure CN117319525B_ABST
    Figure CN117319525B_ABST
Patent Text Reader

Abstract

The present invention discloses a method and system for fusion of heterogeneous data of substations based on CMS and MMS, comprising the following steps: the server quickly identifies the communication protocol type of the opposite end during the association negotiation stage, and quickly responds to establish an application layer connection; the client reads the configuration to establish communication with the opposite end device according to the communication protocol type agreed in advance and passes the communication type to the subsequent modules; the communication service interface, communication protocol encoding and decoding method, and data type structure are dynamically selected according to the communication protocol of the established channel connection, and the corresponding communication protocol model is respectively called to implement the corresponding function; the business logic interface, encoding and decoding interface, communication structure interface, and communication interface are unified for the module to call different communication protocols; CMS and MMS are encapsulated, integrated, and adapted. The present invention provides a solution that can interact with both protocols at the same time in view of the practical problem of coexistence of CMS and MMS communication protocols in the process of existing station transformation, thereby avoiding large-scale modification of existing devices.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method and system for fusion of heterogeneous data of a substation, and in particular to a method and system for fusion of heterogeneous data of a substation based on CMS and MMS. Background Art

[0002] At present, the network communication protocols of smart substations are basically based on the MMS protocol to realize the IEC61850 station control layer network communication. IEC61850 is the only global universal standard in the field of power system automation. The MMS protocol is used between the IEC61850 standard station control layer and the bay layer. MMS realizes the interoperability between different manufacturing equipment in the network environment through object-oriented modeling methods for actual equipment. Before 2015, MMS was not used in the power system telecontrol communication protocol, but the IEC61850 standard introduced it into the field of power automation and directly mapped its core ACSI services to the MMS standard.

[0003] However, the MMS protocol uses the BER encoding of ASN.1, and all data objects must be described through TLV, which has a lot of redundant information and affects the transmission efficiency. The MMS protocol itself is not customized for IEC61850 services, has poor scalability, and is difficult to adapt to new application scenarios and communication requirements. It has a complex hierarchy and many attack points, and there are security issues in actual applications. The large-scale construction of centralized control stations requires access to a large number of new and old substations. The substation-side equipment has a long-term coexistence of old devices and new-generation devices. The compatibility of CMS and MMS protocols in communication needs to be solved urgently. Summary of the invention

[0004] Purpose of the invention: The purpose of the present invention is to provide a method and system for substation heterogeneous data fusion based on CMS and MMS, so as to realize the encapsulation, fusion and adaptation of CMS communication protocol and MMS underlying protocol.

[0005] Technical solution: The present invention comprises the following steps:

[0006] The server quickly identifies the peer communication protocol type during the association negotiation phase and quickly responds to establish an application layer connection; the client reads the configuration and establishes communication with the peer device according to the pre-agreed communication protocol type and passes the communication type to subsequent modules;

[0007] Dynamically select the communication service interface, communication protocol encoding and decoding method, and data type structure according to the communication protocol of the established channel connection, and call the corresponding communication protocol model to implement the corresponding function;

[0008] To unify the business logic interface, encoding and decoding interface, communication structure interface, and communication interface when the module calls different communication protocols; to encapsulate, integrate, and adapt CMS and MMS.

[0009] The client reads the configuration and establishes communication with the other device according to the pre-agreed communication protocol type and passes the communication type to the subsequent modules, specifically: calling the communication service interface under the corresponding communication protocol according to the communication type to implement the business logic, mapping the in-station device model into a unified information model, generating the corresponding communication structure model by the business logic according to the protocol specification, sending the associated negotiation message according to the communication type to establish a connection with the interval layer device, and encoding the communication structure according to the corresponding protocol and sending it.

[0010] When the client reads the configuration and establishes communication with the peer device according to the pre-agreed communication protocol type, the following steps are taken:

[0011] In the pre-loading phase, when the program reads the table domain of the logical node configuration class database, it reads whether it is connected, whether it is in the same security partition, determines whether the table domain is connected using the CMS communication protocol, whether it is connected using the MMS communication protocol, demarcates the table domain through two connection methods, establishes the connection object and the communication protocol method for the connection object, and notifies each functional module of the communication protocol;

[0012] Establish a TCP connection with the communication devices allowed in the same security zone, and perform association negotiation according to the protocol type to establish communication initialization.

[0013] The TCP connection is established for communication devices allowed in the same security zone, and communication initialization is established through association negotiation according to the protocol type. Specifically, the corresponding communication protocol abstract communication service interface is called according to the communication process and business requirements, the corresponding business logic is implemented, and the communication data structure is organized to carry data according to the information model structure.

[0014] The communication data structure carried data is organized according to the information model structure as follows: if it is the MMS protocol, the generated service message is encoded using BER coding, and if it is the CMS protocol, the generated service message is encoded using PER rules; after the application layer service message organization is completed, the MMS protocol is organized into a message structure, and the CMS message is deorganized. After the message organization is completed, the message is exchanged and transmitted with the opposite device.

[0015] The communication protocol dynamically selects the communication service interface, the communication protocol encoding and decoding method, and the data type structure according to the established channel connection, and calls the corresponding communication protocol model to implement the corresponding function, specifically including:

[0016] In the pre-loading stage, the equipment model in the station is loaded, the equipment model is mapped into a unified information model, and the short addresses in the model file are numbered to form nodes to form a tree structure to organize the information model structure;

[0017] When the other end sends a connection request, the transport layer receives the other party's association negotiation message after the connection is successful.

[0018] When the other end sends a connection request, the transport layer receives the other party's association negotiation message after the connection is successful. Specifically, the application layer organizes and parses the application protocol data unit. If the parsing result meets the CMS protocol data unit format, the communication method sent by the other end is recorded as the CMS communication protocol, otherwise it is determined whether it is the MMS communication protocol.

[0019] The service logic interface, encoding and decoding interface, communication structure interface, and communication interface of the unified module when calling different communication protocols are encapsulated, integrated, and adapted for CMS and MMS; specifically, the following are included:

[0020] For message traffic with business message forwarding requirements, considering the inconsistency of communication protocols used by the client-side device and the server-side device, forwarding is achieved by writing and reading data structures in the same format through a shared cache; after receiving the business message, the client generates a unified information model structure to inject data, writes it into the cache area shared with the server, and the server reads the data in the cache area and parses the data to enter the corresponding process.

[0021] A substation heterogeneous data fusion system based on CMS and MMS is used to implement a substation heterogeneous data fusion method based on CMS and MMS.

[0022] A computer-readable storage medium stores a computer program, which is executed by a processor to implement a substation heterogeneous data fusion method based on CMS and MMS.

[0023] Beneficial effect: The present invention provides a solution that can realize interaction with both protocols simultaneously to address the practical problem of coexistence of CMS and MMS communication protocols during the transformation of existing stations, thereby avoiding the re-adaptation of existing devices and large-scale modification of the entire station communication architecture during the transformation process. The automatic identification and response communication strategies of CMS and MMS save engineering personnel's manual debugging man-hours; at the same time, the dynamic switching potential of CMS and MMS provides a feasible system architecture for the interaction and dynamic switching of devices that may have both CMS and MMS communication capabilities in the future. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 is a flow chart of the present invention;

[0025] Figure 2 A flow chart of the service message organization of heterogeneous data of different communication protocols of the client of the present invention;

[0026] Figure 3 It is a flow chart of the service message organization of heterogeneous data of different communication protocols at the server of the present invention;

[0027] Figure 4 This is a flow chart of heterogeneous data forwarding messages between different communication protocols from a client to a server of the present invention. DETAILED DESCRIPTION

[0028] The present invention will be further described below in conjunction with the accompanying drawings.

[0029] like Figure 1 As shown, the substation heterogeneous data fusion method based on CMS and MMS of the present invention includes the following steps:

[0030] S1. The server quickly identifies the peer communication protocol type during the association negotiation phase and quickly responds to establish an application layer connection. The client reads the configuration and establishes communication with the peer device according to the pre-agreed communication protocol type and passes the communication type to subsequent modules. The communication service interface under the corresponding communication protocol is called according to the communication type to implement the business logic. The in-station device model is mapped to a unified information model. The corresponding communication structure model is generated by the business logic according to the protocol specification. The association negotiation message is sent according to the communication type to establish a connection with the interval layer device, and the communication structure is encoded and sent according to the corresponding protocol.

[0031] When processing the corresponding communication service, the business logic processing module does not need to perceive the specific implementation of the communication interface to distinguish the same communication service implementation of different communication protocols, but only needs to call the abstract interface with unified agreement. The scheduling module will take out the correct specific implementation of the corresponding interface according to the communication type of the current service to complete the logic processing. Including but not limited to interfaces that use other names to achieve similar functions: AppInfo application information, DCI_SGCB constant control block, DCI_Oper remote control module, DCI_Data data module, DCI_Value value, DCI_DPI_Data dual-point data, DCI_AI_Data analog quantity, DCI_CAI_Data analog quantity, DCI_Event_Data protection event.

[0032] like Figure 2 As shown, the following steps are taken when the client implements communication with the peer communication device:

[0033] S11, preloading stage, when the program reads the table domain of the logical node configuration class database, it reads whether it is connected, whether it is connected in the same security partition, etc., determines whether the table domain is connected using the CMS communication protocol, whether it is connected using the MMS communication protocol, demarcates the table domain through two connection methods, establishes the connection object and the communication protocol method for the connection object, and notifies each functional module of the communication protocol. Load the in-station device model, map the device model to a unified information model, and number it with the short address (sAddr) in the model file to form a node tree structure to organize the information model structure, and use each IED device as a node to access the full data model to improve the efficiency of information model reading. Preload and encapsulate the CMS communication protocol and the MMS underlying protocol to implement business logic and encoding and decoding modules including data communication, communication data structure, and communication protocol abstract communication service interface.

[0034] Information models all use the IEC 61850 standard, including various control blocks defined in IEC 61850-7-2, common data classes (CDC) defined in IEC 61850-7-3, and logical node classes and data object classes defined in IEC 61850-7-3. Therefore, both the CMS communication protocol and the MMS communication protocol use the same ICD model, model configuration tool, and model management tool. Models and configurations related to the information model can be preloaded before the module is started. The mapping between the model structure and the information model has the following features: the short address (sAddr) in the model file is numbered, that is, a SID number (Signal ID) is assigned to each data object with a short address. The module can be directly associated with the data object in the model tree node through the SID, and the model data can be quickly read and written. The unified model data structure includes but is not limited to structures that use other names to achieve similar functions as follows: DCI_IedInfo, DCI_ComInfo, DCI_Inputs, DCI_SettingInfo, DCI_DataAttr, DCI_AI_CONFIG, DCI_CAI_CONFIG, DCI_MAP, etc., which describe the structure of model data.

[0035] S12. Establish a TCP connection for the communication devices allowed in the same security zone. After the TCP three-way handshake establishes the connection, perform association negotiation according to the protocol type to establish communication initialization. Call the corresponding communication protocol abstract communication service interface according to the communication process and business requirements, implement the corresponding business logic, and organize the communication data structure to carry data according to the information model structure; if it is the MMS protocol, the generated business message is encoded using the BER encoding of ASN.1, and if it is the CMS protocol, the generated business message is encoded using the PER rule; after the application layer business message organization is completed, the MMS protocol is organized according to the OSI seven-layer standard message structure, and the CMS message is organized on the basis of the seven-layer structure without the presentation layer, session layer, TPKT and other layers. If the CMS message has encryption requirements, the application layer and transport layer messages are encrypted with standard asymmetric messages. After the message organization is completed, the message is exchanged and transmitted with the opposite device.

[0036] S2. Dynamically select the communication service interface, communication protocol encoding and decoding method, and data type structure according to the communication protocol of the channel connection established in S1, and call the corresponding communication protocol model to implement the corresponding function. After the server establishes a TCP connection with the device, it determines the communication protocol type according to the associated negotiation message and passes the communication type to the subsequent module. It decodes the communication structure according to the corresponding protocol, generates the corresponding communication structure model according to the protocol specification, maps the decoded message to generate a unified information model, and calls the communication service interface under the corresponding communication protocol according to the communication type to implement the business logic, such as Figure 3 As shown, the server takes the following steps in response to the connection request sent by the peer:

[0037] S21, preloading stage, load the equipment model in the station, map the equipment model to a unified information model, and use the short address (sAddr) in the model file to number the nodes to form a tree structure to organize the information model structure, and use each IED device as a node to access the full data model to improve the efficiency of information model reading. The preloading package CMS and MMS communication protocol bottom layer protocol implementation includes data communication implementation, communication data structure, communication protocol abstract communication service interface business logic implementation, and encoding and decoding module.

[0038] S22. When the other end sends a connection request, the transport layer receives the other party's association negotiation message after the connection is successful. First, try to organize and parse the application protocol data unit at the application layer. If the parsing result meets the CMS protocol application protocol data unit format, then record the communication method sent by the other end as the CMS communication protocol. Otherwise, try to parse the three-layer structure of TPKT, COPT, and MMS to determine whether it is the MMS communication protocol. After the communication protocol is established, the communication protocol underlying module is dynamically loaded to this channel module. If the CMS message has encryption and decryption requirements, the application layer and transport layer messages are decrypted using standard asymmetric message decryption. After the message is processed, the MMS protocol is parsed according to the OSI seven-layer standard message structure. The CMS message is parsed based on the seven-layer structure by removing the presentation layer, session layer, TPKT and other layers. After obtaining the application layer message, if it is the MMS protocol, the generated business message is decoded using the ASN.1 BER encoding. If it is the CMS protocol, the generated business message is decoded using the PER rule. The decoded business message is organized into a communication data structure that carries data according to the information model structure. The corresponding communication protocol abstract communication service interface is called according to the communication process and business requirements to implement the corresponding business logic.

[0039] S3, unify the business logic interface, codec interface, communication structure interface, and communication interface when the module calls different communication protocols; encapsulate, merge, and adapt the CMS communication protocol and the MMS underlying protocol. Through the above steps, the asynchronous data fusion of the two communication protocols is realized on the client and the server, specifically including:

[0040] like Figure 4 As shown, for message traffic with business message forwarding requirements, considering the inconsistency of communication protocols adopted by the client-side device and the server-side device, it is necessary to ensure data isolation between the client and the server, and forwarding is achieved by writing and reading the same format data structure through the shared cache. After the client receives business messages such as telesignaling, telemetry forwarding, setting, and remote control, it generates a unified information model structure according to S2 to inject data, writes it into the shared cache area with the server, and the server reads the data in the cache area and parses the data and enters the corresponding process according to S1 for subsequent encoding, message organization, and message sending process.

[0041] The present invention also includes a substation heterogeneous data fusion system based on CMS and MMS, which is used to implement the above-mentioned substation heterogeneous data fusion method based on CMS and MMS.

[0042] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.

[0043] The computer storage medium of the embodiment of the present invention can adopt any combination of one or more computer-readable media. The computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. The computer-readable storage medium can be, for example, but not limited to, a system, device or device of electricity, magnetism, light, electromagnetic, infrared, or semiconductor, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, a device or a device or used in combination with it.

[0044] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0045] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

Claims

1. A substation heterogeneous data fusion method based on CMS and MMS, characterized in that: The following steps are involved: The server quickly identifies the peer communication protocol type during the association negotiation phase and quickly responds to establish an application layer connection; the client reads the configuration and establishes communication with the peer device according to the pre-agreed communication protocol type and passes the communication type to the subsequent modules, specifically: the communication service interface under the corresponding communication protocol is called according to the communication type to implement the business logic, the in-station device model is mapped to a unified information model, the business logic generates the corresponding communication structure model according to the protocol specification, sends an association negotiation message according to the communication type to establish a connection with the bay layer device, and encodes the communication structure according to the corresponding protocol and sends it; When the client reads the configuration and establishes communication with the peer device according to the pre-agreed communication protocol type, the following steps are taken: In the pre-loading phase, when the program reads the table domain of the logical node configuration class database, it reads whether it is connected, whether it is in the same security partition, determines whether the table domain is connected using the CMS communication protocol, whether it is connected using the MMS communication protocol, demarcates the table domain through two connection methods, establishes the connection object and the communication protocol method for the connection object, and notifies each functional module of the communication protocol; Establish TCP connection with the communication devices allowed in the same security zone, and conduct association negotiation according to the protocol type to establish communication initialization; Dynamically select the communication service interface, communication protocol encoding and decoding method, and data type structure according to the communication protocol of the established channel connection, and call the corresponding communication protocol model to implement the corresponding function; To unify the business logic interface, codec interface, communication structure interface, and communication interface when the module calls different communication protocols; to encapsulate, merge, and adapt CMS and MMS, including: For message traffic with business message forwarding requirements, considering the inconsistency of communication protocols used by the client-side device and the server-side device, forwarding is achieved by writing and reading data structures in the same format through a shared cache; after receiving the business message, the client generates a unified information model structure to inject data, writes it into the cache area shared with the server, and the server reads the data in the cache area and parses the data to enter the corresponding process.

2. According to claim 1, a method for fusion of heterogeneous data of substations based on CMS and MMS is characterized in that: The TCP connection is established for communication devices allowed in the same security zone, and communication initialization is established through association negotiation according to the protocol type. Specifically, the corresponding communication protocol abstract communication service interface is called according to the communication process and business requirements, the corresponding business logic is implemented, and the communication data structure is organized to carry data according to the information model structure.

3. According to claim 2, a method for fusion of heterogeneous substation data based on CMS and MMS is characterized in that: The communication data structure carried data is organized according to the information model structure as follows: if it is the MMS protocol, the generated service message is encoded using BER coding, and if it is the CMS protocol, the generated service message is encoded using PER rules; after the application layer service message organization is completed, the MMS protocol is organized into a message structure, and the CMS message is deorganized. After the message organization is completed, the message is exchanged and transmitted with the opposite device.

4. According to claim 1, a method for fusion of heterogeneous data of substations based on CMS and MMS is characterized in that: The communication protocol dynamically selects the communication service interface, the communication protocol encoding and decoding method, and the data type structure according to the established channel connection, and calls the corresponding communication protocol model to implement the corresponding function, specifically including: In the pre-loading stage, the equipment model in the station is loaded, the equipment model is mapped into a unified information model, and the short addresses in the model file are numbered to form nodes to form a tree structure to organize the information model structure; When the other end sends a connection request, the transport layer receives the other party's association negotiation message after the connection is successful.

5. According to claim 4, a method for fusion of heterogeneous data of substations based on CMS and MMS is characterized in that: When the other end sends a connection request, the transport layer receives the other party's association negotiation message after the connection is successful. Specifically, the application layer organizes and parses the application protocol data unit. If the parsing result meets the CMS protocol data unit format, the communication method sent by the other end is recorded as the CMS communication protocol, otherwise it is determined whether it is the MMS communication protocol.

6. A substation heterogeneous data fusion system based on CMS and MMS, characterized in that: The system is used to implement the substation heterogeneous data fusion method based on CMS and MMS as described in any one of claims 1 to 5.

7. A computer-readable storage medium having a computer program stored thereon, characterized in that: The computer program is executed by a processor to implement the substation heterogeneous data fusion method based on CMS and MMS as described in any one of claims 1 to 5.

Citation Information

Patent Citations

  • System for realizing IEC61850 station level communication protocol based on socket and ASN.1

    CN104821936A

  • Substation control layer communication method and system, electronic equipment and storage medium

    CN112822276A