GOOSE message control method, control gateway and computer device

By reading the configuration files and modifying the GOOSE message using the Netfilter framework, the problem of cumbersome configuration of GOOSE messages in the existing technology is solved, and a simplified configuration process and flexible message control are realized.

CN120151189APending Publication Date: 2025-06-13XUCHANG XJ SOFTWARE TECHNOLOGIES LTD +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510205116.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-02-24
Publication Date
2025-06-13

AI Technical Summary

Technical Problem

In the prior art, when sending and receiving GOOSE packets, the configuration is complicated and the operation is not simple and convenient enough. The gateway equipment needs to have specific protocol modules, and the threshold is high.

Method used

By reading the pre-set configuration files, obtaining the source information of the GOOSE message, the fields to be modified, their modification target information and destination information, directly modifying the GOOSE message based on this information, and implementing the content modification and flow control of the message through the hook function of the Netfilter framework.

Benefits of technology

There is no need to perform complex configuration operations, such as configuring the GOOSE model, configuring the local database, virtual terminal connection, etc., which reduces the workload and threshold during configuration and realizes flexible control and editing of GOOSE messages.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120151189A_ABST
    Figure CN120151189A_ABST
Patent Text Reader

Abstract

The invention belongs to the technical field of substation data processing, and particularly relates to a GOOSE message control method, a control gateway and a computer device. The method comprises the following steps: S1, reading a configuration file to obtain source information of a GOOSE message, a name of a to-be-modified field of the GOOSE message, modification target information of the to-be-modified field of the GOOSE message and destination information of the GOOSE message; s2, modifying the GOOSE message according to the source information of the GOOSE message, the name of the to-be-modified field of the GOOSE message and the modification target information of the to-be-modified field of the GOOSE message; and S3, forwarding the modified GOOSE message according to the destination information of the GOOSE message. When the GOOSE message is received and transmitted, the corresponding field of the GOOSE message is directly modified based on the preset configuration file so as to control and edit the GOOSE message, complex configuration operations such as GOOSE model configuration and virtual terminal connection do not need to be carried out, a gateway device does not need to be provided with a specified protocol module, and the workload during configuration is greatly reduced. According to the method and the device, the technical problem of complicated configuration when the GOOSE message is transmitted and received in the prior art is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention belongs to the technical field of substation data processing, and particularly relates to a GOOSE message control method, a control gateway, and a computer device. Background Art

[0002] IEC61850 is a key technology for realizing digital and intelligent substations. The IEC61850 standard establishes three types of information service models, namely Manufacturing Message Specification (MMS), Generic Object Oriented Substation Event (GOOSE), and Sampled Values (SV). Among them, the GOOSE communication mechanism standardizes the fast transmission of digital quantity messages between IEDs (Intelligent Electronic Devices) at the bay level and between IEDs at the bay level and intelligent terminals at the process level, such as status quantities, control information, etc., and can realize functions such as sharing of device status information, device locking function, and trip and close control of switch devices.

[0003] The GOOSE defined in IEC61850 is based on fast Ethernet multicast message transmission, replacing the traditional hard-wired communication method between intelligent power equipment IEDs, and providing a fast, efficient, and reliable method for communication between logical nodes.

[0004] When a GOOSE message is transmitted on the network, it adopts the Open Systems Interconnection (OSI) network model, but only uses four of the seven layers of the OSI network model, namely the application layer, the presentation layer, the data link layer, and the physical layer. The transport layer and the network layer are empty. The application layer defines the Protocol Data Unit (PDU). After being encoded by the presentation layer, instead of using the TCP / IP protocol, it is directly mapped to the data link layer and the physical layer. The purpose of this mapping method is to avoid transmission delay caused by the communication stack, so as to ensure the fastness of message transmission and processing.

[0005] In application fields such as power and energy storage, the forwarding and control of GOOSE messages between intelligent power devices are generally achieved through one or more gateway devices (such as communication management machines, edge gateways). Through a standardized configuration tool, information such as GOOSE control blocks, GOOSE dataset members, GOOSE models, local databases, virtual terminal connections, and network nodes are configured to generate files such as CID and CCD and import them into the gateway device. Based on the imported CID, CCD and other files, the gateway device reads the GOOSE configuration information in the files and completes the forwarding and control of GOOSE messages between different intelligent power devices through relevant protocol modules.

[0006] During the transmission of GOOSE messages, for the modification of GOOSE message content and the control of message transmission flow direction, the traditional method requires reconfiguration using a standardized configuration tool and re-importing the configuration in the gateway device. For the operation of engineering debugging personnel, it is not simple, convenient and flexible enough and also has a certain amount of workload; for the gateway device, it needs to have corresponding protocol modules, which has a certain development and use threshold. Summary of the Invention

[0007] The purpose of the present invention is to provide a GOOSE message control method, a control gateway and a computer device to solve the technical problem of cumbersome configuration when implementing the reception and transmission of GOSSE messages in the prior art.

[0008] To solve the above technical problems, a technical solution of a GOOSE message control method provided by the present invention is: a GOOSE message control method, the method includes:

[0009] S1. Read the configuration file to obtain the source information of the GOOSE message, the name of the field to be modified in the GOOSE message and its modification target information, and the destination information of the GOOSE message;

[0010] S2. Modify the GOOSE message according to the source information of the GOOSE message, the name of the field to be modified in the GOOSE message and its modification target information;

[0011] S3. Forward the modified GOOSE message according to the destination information of the GOOSE message.

[0012] The beneficial effects of the above technical solution are as follows: The technical solution of a GOOSE message control method of the present invention belongs to an improved invention. When receiving and sending GOOSE messages, the present invention directly modifies the corresponding fields of the GOOSE message based on a pre-set configuration file to achieve the control and editing of the GOOSE message, without the need for complex configuration operations such as configuring GOOSE, configuring the local database, and virtual terminal wiring. There is no need for the gateway device to have a specified protocol module, and only the configuration file needs to be set up, which greatly reduces the workload during configuration. Moreover, since a plain text, text format configuration file can be used, the threshold for configuration debugging is reduced. The present invention solves the technical problem of cumbersome configuration when implementing the reception and transmission of GOSSE messages in the prior art.

[0013] Further, the method of modifying the GOOSE message in S2 is as follows:

[0014] Find the field to be modified from the GOOSE message through the hook function of the Netfilter framework according to the source information of the GOOSE message and the name of the field to be modified in the GOOSE message, and modify the content of the field to be modified according to the modification target information.

[0015] Further, the source information of the GOOSE message includes at least one of the network card number, APPID, IEDname, and Go_Gcb number.

[0016] Further, the information of the field to be modified in the GOOSE message includes at least one of the source MAC address, destination MAC address, APPID, IEDnam, and Go_Gcb number.

[0017] Further, the destination information of the GOOSE message includes the network card number.

[0018] Further, the configuration file is a plain text file.

[0019] Further, the configuration file is a text file.

[0020] The present invention also provides a technical solution for a computer device: A computer device includes a processor, and the processor is used to execute a computer program to implement the steps of the GOOSE message control method as described above.

[0021] The present invention also provides a technical solution for a GOOSE message control gateway: A GOOSE message control gateway includes a processor, and the processor is used to execute a computer program to implement the steps of the GOOSE message control method as described above.

[0022] Further, edit and generate a configuration file through the configuration tool of the gateway. Description of the Drawings

[0023] Figure 1 This is a schematic diagram of the connection of the control gateway in the GOOSE message control gateway embodiment of the present invention;

[0024] Figure 2 This is a schematic diagram of the network communication structure in the GOOSE message control gateway embodiment of the present invention;

[0025] Figure 3 This is a schematic diagram of the GOOSE message transmission configuration in the GOOSE message control gateway embodiment of the present invention;

[0026] Figure 4 This is a flowchart of the method in the GOOSE message control gateway embodiment of the present invention;

[0027] Figure 5 This is a schematic diagram of the configuration file in the GOOSE message control gateway embodiment of the present invention. Detailed implementation manners

[0028] When the present invention sends and receives GOOSE messages, it directly modifies the corresponding fields of the GOOSE messages based on a pre-set configuration file to achieve the control and editing of the GOOSE messages. There is no need to perform complex configuration operations such as configuring the goose model, configuring the local database, and virtual terminal wiring. There is no need for the gateway device to have a specified protocol module, which greatly reduces the workload during configuration. Moreover, during configuration debugging, the configuration file can be edited in plain text or text mode, which greatly reduces the configuration debugging threshold. The present invention solves the technical problem of cumbersome configuration when implementing the sending and receiving of GOSSE messages in the prior art.

[0029] Embodiment of the GOOSE message control gateway:

[0030] A GOOSE message control gateway, on the one hand, serves as an intermediate device for the access and transfer of intelligent power device information, and on the other hand, serves as a carrier for implementing the GOOSE message control method. As Figure 1 shown, Figure 1 in the gateway devices 1 to n are all control gateways, and a GOOSE transmission control module is deployed inside the control gateway. The processor inside the GOOSE transmission control module can execute a pre-set computer program to implement the GOOSE message control method. As Figure 4 shown, the GOOSE message control method includes:

[0031] S1. Read the configuration file to obtain the source information of the GOOSE message, the fields to be modified of the GOOSE message and their modification target information, and the destination information of the GOOSE message.

[0032] The modification of the GOOSE message field content and the control of the flow direction are realized depending on the configuration file. First, the configuration information is read from the configuration file. For the readability of the configuration file, the configuration file can be stored in plain text.

[0033] The editing and generation of the configuration file can be realized by using the configuration tool of the control gateway or a more user-friendly configuration tool in the form of configuration.

[0034] S2. Modify the GOOSE message according to the source information of the GOOSE message, the fields to be modified in the GOOSE message, and the modification target information.

[0035] Specifically, the method for modifying the GOOSE message in S2 is as follows:

[0036] Find the field to be modified from the GOOSE message through the hook function of the Netfilter framework according to the source information of the GOOSE message and the name of the field to be modified in the GOOSE message, and modify the content of the field to be modified according to the modification target information.

[0037] Based on the Netfilter framework of the Linux operating system of the gateway device, the content modification and flow control in the GOOSE message transmission process are realized. Detect the received Ethernet data from the specified network card, filter out the GOOSE messages with the specified APPID, IEDName, and the content of the GOOSE message control block (GOOSE_GOOSE Control Block, GO_Gcb) table from it, and then the destination MAC address, source MAC address, APPID, IEDName, GO_Gcb, etc. in the found GOOSE message can be edited, and the GOOSE message after content editing is sent out from the specified network card again. Based on the Netfilter framework, this method can also filter specified messages to realize the flow control of the messages. By using this method, the GOOSE message transmission is more rapid and efficient, the program implementation is simple, the configuration operation is flexible and convenient, the difficulty and workload of the debugging work are effectively reduced, there is no special dependence on the hardware and software, and it has good compatibility and scalability.

[0038] The Netfilter framework is a subsystem introduced by Linux. As a general and abstract framework, this framework is both concise and flexible, and can realize many functions in the application of security policies, such as packet filtering, packet processing, address masquerading, transparent proxy, dynamic network address translation, and filtering based on users and media access control addresses and state-based filtering, packet rate limiting, etc.

[0039] The hook functions in the Netfilter framework implement control over data packets. The data packets are processed by the hook functions in the kernel and forwarded. The hook functions are completely carried out in the kernel, eliminating the data packet copying from the kernel space to the user space and reducing the consumption of CPU resources. Netfilter works at the network layer of the OSI model, and its data packet processing speed is higher than that of services working at the application layer.

[0040] After filtering out the matching GOOSE messages, they can be directly forwarded to the specified destination address without passing through the application layer, and the message transmission is fast and efficient.

[0041] The hook functions of the Netfilter framework implement how to modify the data packet content (i.e., GOOSE message), whether to release or filter the data packet, and where to direct the data packet. Based on the Netfilter mechanism, highly customized modifications can be flexibly made to the content and flow direction of GOOSE message data packets, meeting the requirements of different power application scenarios.

[0042] Specifically, the hook function is used to hook out the fields to be modified in the GOOSE message, and then the hook function modifies the fields to be modified.

[0043] The Netfilter framework also has mechanisms for data packet filtering and data packet rate limiting. By filtering GOOSE that meets the conditions and releasing or discarding it, traffic control for GOOSE message transmission between intelligent power devices can be achieved.

[0044] S3. Forward the modified GOOSE message according to the destination information of the GOOSE message.

[0045] The GOOSE forwarding control module of the gateway device is loaded and unloaded in the form of a kernel module. The configuration file relied on by the GOOSE forwarding control module can be a simple text file, and its configuration content is mainly the various fields of the GOOSE message. The configuration method can adopt configuration tool configuration or even direct manual editing. Compared with traditional standard SCD configuration tools, the operation is simple, and engineering debugging and maintenance are simple.

[0046] Such as Figure 5 shown, the configuration file generally consists of several lines, and each line represents a GOOSE message forwarding rule. Each line consists of several fields separated by a delimiter. Taking a forwarding rule with 10 fields as an example, the meaning of each field is as follows:

[0047] Field 1: ethx (x is the network card serial number), indicating the network card name for receiving GOOSE messages;

[0048] Field 2: APPID, which represents the APPID in the GOOSE message to be monitored and received;

[0049] Field 3: IEDName, which represents the IEDName in the GOOSE message to be monitored and received;

[0050] Field 4: GO_Gcb, which represents the GO_Gcb number in the GOOSE message to be monitored and received;

[0051] Field 5: ethx (x is the network card serial number), which represents the network card name for forwarding the GOOSE message;

[0052] Field 6: DMAC, which represents the destination MAC address to be modified in the forwarded GOOSE message;

[0053] Field 7: SMAC, which represents the source MAC address to be modified in the forwarded GOOSE message;

[0054] Field 8: APPID, which represents the APPID to be modified in the forwarded GOOSE message;

[0055] Field 9: IEDName, which represents the IEDName to be modified in the forwarded GOOSE message;

[0056] Field 10: GO_Gcb, which represents the GO_Gcb number to be modified in the forwarded GOOSE message.

[0057] For example, the meaning of the forwarding rule of eth1,1,PCS01,1,eth0,01:0c:cd:01:00:75,ef:ef:ef:ef:ef:ef,1,PCS01,1 is as follows:

[0058] For the GOOSE message that enters network card eth1 (Field 1) and whose APPID is 1 (Field 2), IEDName is PCS01 (Field 3), and GO_Gcb number is 1 (Field 4), modify the source MAC address to ef:ef:ef:ef:ef:ef (Field 7), the destination MAC address to 01:0c:cd:01:00:75 (Field 6), the APPID to 1 (Field 8), the IEDName to PCS01 (Field 9), and the GO_Gcb number to 1 (Field 10), and forward it from network card eth0 (Field 5).

[0059] Among them, fields 1 to 4 represent the source information of the GOOSE message; field 5 represents the destination information of the GOOSE message; fields 6 to 10 represent the names of the fields to be modified in the GOOSE message, and the values of fields 6 to 10 (i.e., 01:0c:cd:01:00:75, ef:ef:ef:ef:ef:ef, 1, PCS01, 1) represent the modification target information of the names of the fields to be modified.

[0060] Next, taking the energy storage application field as an example, a GOOSE communication process between the PCS of a mobile energy storage vehicle and a coordination controller will be introduced. As Figure 2 shown, it is a network communication architecture diagram of the GOOSE communication process between the PCS of a mobile energy storage vehicle and a coordination controller.

[0061] Inside the cabin of the mobile energy storage power vehicle, energy storage inverters (Power Conversion System, PCS), various meters, local edge gateways, local monitoring and other devices or systems are deployed. Inside the control cabin, remote edge gateways, coordination controllers, stability controllers, master station monitoring and other devices or systems are deployed. The mobile energy storage power vehicle communicates with the control cabin. In the application scenario, there are multiple mobile energy storage power vehicles and multiple control cabins, and the mobile energy storage power vehicle randomly communicates with an unfixed control cabin.

[0062] The schematic diagram of GOOSE message transmission configuration is as Figure 3 shown. The GOOSE message communication transmission process between the PCS of the mobile energy storage power vehicle and the coordination controller is as follows:

[0063] a) Deploy GOOSE message transmission programs in both the local edge gateway and the remote edge gateway. The programs are loaded according to the startup script of the kernel module and start with the gateway startup.

[0064] b) According to the GOOSE data information for communication between the PCS connected in each mobile energy storage power vehicle and the coordination controller in the control cabin, in the actual application scenario, the mobile energy storage power vehicle randomly communicates with an unfixed control cabin. Therefore, when deploying the PCS, local edge gateway, remote edge gateway, and coordination controller, the plug-and-play pairing implementation is considered.

[0065] c) The edge gateway provides a supporting debugging configuration tool. Using the configuration tool, configure the configuration files used by the local edge gateway and the remote edge gateway respectively, and update the GOOSE configurations made in the previous step to the local edge gateway and the remote edge gateway respectively through the debugging tool.

[0066] d) The GOOSE messages sent by the PCS are transmitted to the coordination controller via the local edge gateway and the remote edge gateway, and at the same time, the GOOSE messages sent down by the coordination controller via the remote edge gateway and the local edge gateway are received. The transmission content and flow direction of both messages are based on the message content and data flow direction specified in the configuration file.

[0067] Based on the above GOOSE message transmission program, in the program, using the Netfilter mechanism, when it is necessary to control the data flow, the specified messages can be filtered in the program, and the messages can be discarded or allowed to pass through to achieve flow control.

[0068] Embodiment of the GOOSE message control method:

[0069] A GOOSE message control method, the method includes: S1, reading a configuration file to obtain the source information of the GOOSE message, the name of the field to be modified in the GOOSE message and its modification target information, and the destination information of the GOOSE message; S2, modifying the GOOSE message according to the source information of the GOOSE message and the name of the field to be modified in the GOOSE message and its modification target information; S3, forwarding the modified GOOSE message according to the destination information of the GOOSE message. The specific GOOSE message control method has been introduced in sufficient detail in the above-mentioned GOOSE message control gateway embodiment and will not be repeated here.

[0070] Embodiment of the computer device:

[0071] A computer device includes a processor, and the processor is used to execute a computer program to implement the steps of the GOOSE message control method as described above. The specific GOOSE message control method has been introduced in sufficient detail in the above-mentioned GOOSE message control gateway embodiment and will not be repeated here.

[0072] Finally, it should be noted that the above-mentioned are only the preferred embodiments of the present invention and are not used to limit the present invention. Although the present invention has been described in detail with reference to the foregoing embodiments, for those skilled in the art, they can still make modifications to the technical solutions recorded in the foregoing embodiments without creative efforts, or perform equivalent replacements for some of the technical features. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present invention shall be included in the protection scope of the present invention.

Claims

1. A GOOSE message control method, characterized in that: The method includes: S1, read the configuration file to obtain the source information of the GOOSE message, the name of the field to be modified of the GOOSE message and its modification target information and the destination information of the GOOSE message; S2, modify the GOOSE message according to the source information of the GOOSE message and the name of the field to be modified of the GOOSE message and its modification target information; S3. Forward the modified GOOSE message according to the destination information of the GOOSE message.

2. The GOOSE message control method according to claim 1, characterized in that: The way to modify the GOOSE message in S2 is: According to the source information of the GOOSE message and the name of the field to be modified of the GOOSE message, the field to be modified is found from the GOOSE message through the hook function of the Netfilter framework, and the content of the field to be modified is modified according to the modification target information.

3. The GOOSE message control method according to claim 1, characterized in that: The source information of the GOOSE message includes at least one of a network card number, an APPID, an IEDname and a Go_Gcb number.

4. The GOOSE message control method according to claim 1, characterized in that: The name of the field to be modified in the GOOSE message includes at least one of a source MAC address, a destination MAC address, an APPID, an IEDname, and a Go_Gcb number.

5. The GOOSE message control method according to claim 1, characterized in that: The destination information of the GOOSE message includes the network card number.

6. The GOOSE message control method according to any one of claims 1 to 5, characterized in that: The configuration file is a plain text file.

7. The GOOSE message control method according to any one of claims 1 to 5, characterized in that: The configuration file is a text file.

8. A computer device comprising a processor, characterized in that: The processor is used to execute a computer program to implement the steps of the GOOSE message control method according to any one of claims 1 to 7.

9. A GOOSE message control gateway, comprising a processor, characterized in that: The processor is used to execute a computer program to implement the steps of the GOOSE message control method according to any one of claims 1 to 7.

10. The GOOSE message control gateway according to claim 9, characterized in that: Edit and generate a configuration file using the configuration tool of the gateway.