GOOSE message processing method and system suitable for digital substation

By parsing and matching the destination MAC and APPID of GOOSE messages in the digital substation, and combining the source MAC and StNum to determine the message status, the problem of misreceived messages is solved, the reliability and correctness of GOOSE messages are improved, and the safe operation of substations.

CN118694832APending Publication Date: 2024-09-24XJ GRP CORP +2
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202310289915.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-03-22
Publication Date
2024-09-24

AI Technical Summary

Technical Problem

The existing GOOSE message processing method of digital substations may mistakenly receive messages, resulting in poor reliability. Especially when the smart substation configuration is complex, configuration errors are prone to occur, resulting in incorrect actions such as tripping first and then closing, or first closing and then tripping. .

Method used

By receiving the GOOSE message and parsing the destination MAC and APPID, it matches the destination MAC and APPID set to receive. If the match fails, the message is discarded; if the match is successful, it is judged whether to update the data based on the source MAC, and when the GOOSE message is abnormal, In this case, the StNum and source MAC are used to determine whether the packet status flag is abnormal or normal, and the data is cached or updated.

Benefits of technology

Effectively eliminate the problem of non-subscription messages and random transmission, ensure the safe operation of digital substations, ensure the correctness of GOOSE message reception, and ensure that the protection measurement and control device can correctly receive signals such as start failure, remote trip, knife gate position and alarm.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118694832A
    Figure CN118694832A
Patent Text Reader

Abstract

The invention belongs to the technical field of GOOSE messages, and particularly relates to a GOOSE message processing method and system suitable for a digital substation, and the method comprises the following steps: 1) receiving a GOOSE message, and analyzing the GOOSE message to obtain a target MAC and an APPID of the GOOSE message; (2) the target MAC and the target APPID are matched with the target MAC and the target APPID which are set to be received; 3) if the matching fails, discarding the message; and if the matching is successful, determining whether to update the data according to the source MAC. Therefore, the problem that the reliability is poor due to the fact that messages are received by mistake in an existing GOOSE message processing method of the digital substation is solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of GOOSE messages, and in particular relates to a GOOSE message processing method and system suitable for a digital substation. Background Art

[0002] The information such as start failure, remote trip, switch position, alarm, etc. between the bay layer device and the process layer device of the digital substation is exchanged through the process layer GOOSE message. The GOOSE message in the 61850 protocol adopts the publish-subscribe mode. The device configuration file describes the GOOSE information subscribed by this device, including: destination MAC, APPID and other information. The device receives the subscribed GOOSE according to the configuration information and filters and discards the non-subscribed GOOSE.

[0003] The configuration of smart substations is complicated and cumbersome, and configuration errors are inevitable. For example, device C mistakenly configures the GOOSE message with the same APPID and destination MAC as device B, and device A subscribes to the GOOSE message with the same APPID and destination MAC; during operation, device B sends a tripping GOOSE message, and device C sends a closing GOOSE message. If device A does not perform effective error prevention processing, it will trip first and then close, or close first and then trip, and other erroneous actions.

[0004] In summary, the existing GOOSE message processing method of the digital substation has the problem of erroneous message reception and poor reliability. Summary of the invention

[0005] The object of the present invention is to provide a GOOSE message processing method and system suitable for a digital substation, so as to solve the problem that the existing GOOSE message processing method of a digital substation has the problem of erroneous message reception resulting in poor reliability.

[0006] In order to solve the above technical problems, the technical solutions provided by the present invention and the corresponding beneficial effects of the technical solutions are as follows:

[0007] A GOOSE message processing method applicable to a digital substation of the present invention comprises the following steps:

[0008] 1) Receive the GOOSE message and parse it to obtain the destination MAC and APPID of the GOOSE message;

[0009] 2) matching the destination MAC and APPID with the destination MAC and APPID set to be received;

[0010] 3) If the match fails, the message is discarded; if the match succeeds, whether to update the data is determined based on the source MAC.

[0011] The beneficial effects of the above technical solution are:

[0012] The present invention can exclude non-subscription messages by matching the destination MAC and APPID of the frame with the destination MAC and APPID set to be received, thereby providing a safeguard for the safe operation of the digital substation; and taking the source MAC into consideration, the problem of random sending of GOOSE messages can be effectively suppressed, the correctness of GOOSE message reception can be guaranteed, and the protection measurement and control device can correctly receive signals such as start failure, remote trip, switch position, and alarm.

[0013] Furthermore, in order to improve efficiency and reduce manual configuration, the destination MAC and APPID received in step 2) are set to be the destination MAC and APPID that have registered to subscribe to the GOOSE message with the FPGA.

[0014] Further, in order to improve reliability, step 3) includes: when the GOOSE message is normal, determine whether the source MAC of the GOOSE message of this frame is equal to the source MAC of the previous frame GOOSE message; if the source MAC of the GOOSE message of this frame is equal to the source MAC of the previous frame GOOSE message, update the data; if the source MAC of the GOOSE message of this frame is not equal to the source MAC of the previous frame GOOSE message, cache the GOOSE message.

[0015] Furthermore, step 3) also includes: in the case of an abnormal GOOSE message, determining whether to update the data according to the source MAC and StNum value.

[0016] Furthermore, in order to facilitate the determination of whether the source MAC has changed and improve reliability, a message status flag is used to indicate whether the GOOSE message is normal, and the message status flag is set to abnormal during initialization and when the link is interrupted.

[0017] Furthermore, in the case of abnormal GOOSE messages:

[0018] If the source MAC of the GOOSE message of this frame is not equal to the source MAC of the previous GOOSE message, the message status flag is set to abnormal and the message is cached;

[0019] If the source MAC of the GOOSE message of this frame is equal to the source MAC of the previous GOOSE message, and the StNum of the GOOSE message of this frame is not equal to the StNum of the previous GOOSE message, then update the data, set the message status flag to normal and cache the message.

[0020] Furthermore, in the case of abnormal GOOSE messages:

[0021] If the source MAC of the GOOSE message of this frame is equal to the source MAC of the previous GOOSE message, and the StNum of the GOOSE message of this frame is equal to the StNum of the previous GOOSE message, and the content of the GOOSE message of this frame is not equal to the content of the previous GOOSE message, then set the message status flag to abnormal and cache the message;

[0022] If the source MAC of the GOOSE message of this frame is equal to the source MAC of the previous GOOSE message, and the StNum of the GOOSE message of this frame is equal to the StNum of the previous GOOSE message, and the content of the GOOSE message of this frame is equal to the content of the previous GOOSE message, then the message status flag is set to normal and the message is cached.

[0023] In order to solve the above problems, the present invention further provides a GOOSE message processing system applicable to a digital substation, the system comprising a processor, the processor being used to execute computer instructions to implement a GOOSE message processing method applicable to a digital substation as the present invention. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 It is a flowchart of the existing GOOSE message reception update;

[0025] Figure 2 It is a flow chart of a GOOSE message processing method applicable to a digital substation of the present invention;

[0026] Figure 3 This is the StNum and source MAC discrimination sub-flow chart of the present invention. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solutions and advantages of the present invention more clear, the present invention is further described in detail below with reference to the accompanying drawings and embodiments.

[0028] Method Example:

[0029] The GOOSE message includes the destination MAC address information and source MAC information of the GOOSE message; the GOOSE message also includes StNum and SqNum. When the GOOSE channel state changes, the next frame StNum = the previous frame StNum + 1, and the next frame SqNum = 0; when the GOOSE channel state remains unchanged, the next frame StNum = the previous frame StNum, and the next frame SqNum = the previous frame SqNum + 1.

[0030] Among the current industry standards, only the IEC61850 Engineering Relay Protection Application Model clarifies the process of receiving and updating GOOSE messages, and does not propose the identification and processing methods of abnormal messages. The existing receiving and processing process is as follows: Figure 1As shown, specifically including:

[0031] S1: During initialization, set the previous frame StNum=0 and the previous frame SqNum=0.

[0032] S2: Receive GOOSE message.

[0033] S3: Determine whether the frame StNum is equal to the previous frame StNum. If the frame StNum is equal to the previous frame StNum, proceed to step S4; if the frame StNum is not equal to the previous frame StNum, update the data and return to step S2 to continue receiving GOOSE messages.

[0034] S4: Determine whether the SqNum of this frame is greater than the SqNum of the previous frame. If the SqNum of this frame is greater than the SqNum of the previous frame, discard the frame message and return to step S2 to continue receiving the GOOSE message; if the SqNum of this frame is not greater than the SqNum of the previous frame, update the data and return to step S2 to continue receiving the GOOSE message.

[0035] In order to solve the problem that multiple devices send GOOSE messages with the same APPID and destination MAC to the same device due to field engineering configuration errors, the present invention proposes a GOOSE message processing method suitable for a digital substation.

[0036] The following describes the method in detail:

[0037] In this method, during initialization, according to the device configuration file, the device software module needs to register with the FPGA to subscribe to the destination MAC and APPID of the GOOSE message, and enable the FPGA's network reception. In the present invention, on the one hand, the FPGA of the device compares the destination MAC and APPID of the received GOOSE message with the stored destination MAC and APPID, and sends the matching GOOSE message to the software module, and discards the unmatched ones, that is, the subscribed messages are sent, and the unsubscribed ones are discarded; on the other hand, after receiving the GOOSE message, the device does not update the data immediately, and needs to perform two frames of confirmation. The confirmation content includes StNum, SqNum and the source MAC of the message. Only normal messages can update data. The specific process is as follows: Figure 2 and Figure 3 As shown, the following specifically introduces a GOOSE message processing method applicable to a digital substation of the present invention in combination with the steps:

[0038] Step 1: At the beginning, parse the GOOSE configuration, get the destination MAC and APPID, and register the destination MAC and APPID to the FPGA to indicate the subscription of the message of the destination MAC and APPID.

[0039] Step 2: Receive GOOSE message.

[0040] Step 3: Determine whether the destination MAC and APPID of the received GOOSE message have been registered in the FPGA, that is, determine whether the destination MAC and APPID of the received GOOSE message can match all the registered destination MAC and APPID information; if not, discard it and return to the second step to continue receiving the GOOSE message; if it matches, send it to the GOOSE processing module and enter the fourth step.

[0041] Step 4: Enter the StNum and source MAC determination sub-process.

[0042] The following is an introduction to the StNum and source MAC determination sub-process, wherein the determination basis GOOSE is normal is introduced in the sub-process, and setting GOOSE normal = 0 indicates that the GOOSE message is abnormal, and GOOSE normal = 1 indicates that the GOOSE message is normal.

[0043] The identification sub-process specifically includes the following steps:

[0044] S41: During initialization or after a link is interrupted, set GOOSE normal = 0, that is, during initialization and device failure link interruption, assuming that the GOOSE message is abnormal, and the source MAC address changes after replacing the device due to device failure.

[0045] S42: GOOSE message is received.

[0046] S43: Determine whether GOOSE is normally equal to 0; if GOOSE is normally not equal to 0, execute step A processing procedure to determine the source MAC to prevent the problem of multiple devices sending GOOSE messages with the same APPID and destination MAC due to on-site engineering configuration errors; if GOOSE is normally equal to 0, execute step B processing procedure to learn the source MAC of the receiving device.

[0047] Step B The processing procedure includes the following steps, which is mainly used to learn the source MAC of the device:

[0048] B1: Determine whether the source MAC is equal to the source MAC of the previous frame; if the source MAC is not equal to the source MAC of the previous frame, it means that the message sources are different and there is an abnormality, then set GOOSE normal = 0, then cache the message for use in the next frame judgment, and exit; if the source MAC is equal to the source MAC of the previous frame, it means that the message sources are the same, then execute step B2.

[0049] When the first frame of message data is received, since GOOSE is set to normal = 0, the processing procedure of step B will be entered. At this time, the source MAC must not be equal to the MAC of the previous frame, so GOOSE is still set to normal = 0, and the first frame of data is cached (the cache content includes the source MAC address) for learning the source MAC address. When the second frame of message data is received, since GOOSE is normal = 0, the processing procedure of step B is still entered. Under normal circumstances, the source MAC must be equal to the MAC of the previous frame, and judgment is entered in B2.

[0050] B2: Determine whether the frame StNum is equal to the previous frame StNum; if the frame StNum is not equal to the previous frame StNum, it means that the message is normal, then update the data, set GOOSE normal = 1, then cache the message and exit; if the frame StNum is equal to the previous frame StNum, the message may be abnormal, then execute step B3.

[0051] If the second frame StNum is not equal to the first frame StNum, it means the message is normal, then update the data, upload the data, and set GOOSE normal = 1. If the second frame StNum is equal to the first frame StNum, you need to proceed to the next step to judge again based on the message content.

[0052] B3: Determine whether the message content of this frame is equal to the message content of the previous frame; if the message content of this frame is not equal to the message content of the previous frame, it indicates that there is an abnormality, then set GOOSE normal = 0, then cache the message and exit; if the message content of this frame is equal to the message content of the previous frame, this situation is normal, indicating that the message is normal, then set GOOSE normal = 1, cache the message and exit.

[0053] The source MAC needs to be learned after initialization and link interruption. After learning the source MAC, the process of step A is entered. Under normal circumstances, the source MAC of the GOOSE message received by the device should not change. The process of step A includes the following steps:

[0054] A1: Determine whether the source MAC is equal to the source MAC of the previous frame; if the source MAC is not equal to the source MAC of the previous frame, it means that there is an abnormality in the project configuration. At this time, the message should not be processed, only the message is cached and exited; if the source MAC is equal to the source MAC of the previous frame, it means that the message is sent by the same device and the data needs to be forwarded, then execute step A2.

[0055] A2: Update data and set GOOSE normal = 1, then cache the message and exit.

[0056] By judging whether the source MAC has changed, it is possible to exclude multiple devices sending messages with the same configuration due to engineering configuration errors, thereby ensuring the correctness of GOOSE message reception and ensuring that the protection measurement and control device can correctly receive signals such as start failure, remote trip, switch position, and alarm.

[0057] In summary, the present invention can exclude abnormal messages such as non-subscribed messages and duplicate messages by judging the destination MAC, thereby providing a safeguard for the safe operation of the digital substation; by judging the source MAC, the GOOSE messages received incorrectly due to field engineering configuration errors can be excluded, thereby ensuring the correctness of GOOSE message reception and ensuring that the protection measurement and control device can correctly receive signals such as start failure, remote trip, switch position, and alarm.

[0058] System Example:

[0059] A GOOSE message processing system embodiment applicable to a digital substation of the present invention includes a memory, a processor and an internal bus, and the processor and the memory communicate and exchange data with each other through the internal bus. The memory includes at least one software function module stored in the memory, and the processor executes various functional applications and data processing by running the software program and module stored in the memory, thereby realizing a GOOSE message processing method applicable to a digital substation introduced in the method embodiment of the present invention.

[0060] The processor may be a processing device such as a microprocessor MCU, a programmable logic device FPGA, etc. The memory may be any memory that uses electrical energy to store information, such as RAM, ROM, etc.

Claims

1. A GOOSE message processing method suitable for digital substations, Features: The following steps are involved: 1) Receive the GOOSE message and parse it to obtain the destination MAC and APPID of the GOOSE message; 2) matching the destination MAC and APPID with the destination MAC and APPID set to be received; 3) If the match fails, the message is discarded; If the match is successful, determine whether to update the data based on the source MAC.

2. The GOOSE message processing method applicable to a digital substation according to claim 1, Features: The destination MAC and APPID set to be received in step 2) are the destination MAC and APPID that have registered to subscribe to the GOOSE message with the FPGA.

3. The GOOSE message processing method applicable to a digital substation according to claim 1, Features: Step 3) includes: when the GOOSE message is normal, determine whether the source MAC of the GOOSE message of this frame is equal to the source MAC of the previous GOOSE message; if the source MAC of the GOOSE message of this frame is equal to the source MAC of the previous GOOSE message, update the data; if the source MAC of the GOOSE message of this frame is not equal to the source MAC of the previous GOOSE message, cache the GOOSE message.

4. The GOOSE message processing method applicable to a digital substation according to claim 3, Features: Step 3) also includes: in the case of an abnormal GOOSE message, determining whether to update the data according to the source MAC and StNum value.

5. The GOOSE message processing method applicable to a digital substation according to claim 4, Features: The message status flag is used to indicate whether the GOOSE message is normal. The message status flag is set to abnormal during initialization and when the link is interrupted.

6. The GOOSE message processing method applicable to a digital substation according to claim 5, Features: In case of GOOSE message abnormality: If the source MAC of the GOOSE message of this frame is not equal to the source MAC of the previous GOOSE message, the message status flag is set to abnormal and the message is cached; If the source MAC of the GOOSE message of this frame is equal to the source MAC of the previous GOOSE message, and the StNum of the GOOSE message of this frame is not equal to the StNum of the previous GOOSE message, then update the data, set the message status flag to normal and cache the message.

7. The GOOSE message processing method applicable to a digital substation according to claim 5 or 6, Features: In case of GOOSE message abnormality: If the source MAC of the GOOSE message of this frame is equal to the source MAC of the previous GOOSE message, and the StNum of the GOOSE message of this frame is equal to the StNum of the previous GOOSE message, and the content of the GOOSE message of this frame is not equal to the content of the previous GOOSE message, then set the message status flag to abnormal and cache the message; If the source MAC of the GOOSE message of this frame is equal to the source MAC of the previous GOOSE message, and the StNum of the GOOSE message of this frame is equal to the StNum of the previous GOOSE message, and the content of the GOOSE message of this frame is equal to the content of the previous GOOSE message, then the message status flag is set to normal and the message is cached.

8. A GOOSE message processing system suitable for digital substations, Features: The system comprises a processor, and the processor is used to execute computer instructions to implement the GOOSE message processing method applicable to a digital substation as claimed in any one of claims 1 to 7.

Citation Information

Cited By

  • Distributed FA power distribution terminal GOOSE communication processing system and method suitable for MCU

    CN119583301A