CN114257660B - SV and GOOSE message processing method, device, equipment and storage medium - Google Patents

SV and GOOSE message processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN114257660B
CN114257660B CN202111302396.1A CN202111302396A CN114257660B CN 114257660 B CN114257660 B CN 114257660B CN 202111302396 A CN202111302396 A CN 202111302396A CN 114257660 B CN114257660 B CN 114257660B
Authority
CN
China
Prior art keywords
message
redundant
field
determining
preset
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111302396.1A
Other languages
Chinese (zh)
Other versions
CN114257660A (en
Inventor
于杨
韩坤
习伟
孙博
姚森敬
李肖博
姚浩
蔡田田
白晋川
郑牛潼
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Southern Power Grid Digital Grid Research Institute Co Ltd
Beijing Sifang Engineering Co Ltd
Original Assignee
Southern Power Grid Digital Grid Research Institute Co Ltd
Beijing Sifang Engineering Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Southern Power Grid Digital Grid Research Institute Co Ltd, Beijing Sifang Engineering Co Ltd filed Critical Southern Power Grid Digital Grid Research Institute Co Ltd
Priority to CN202111302396.1A priority Critical patent/CN114257660B/en
Publication of CN114257660A publication Critical patent/CN114257660A/en
Application granted granted Critical
Publication of CN114257660B publication Critical patent/CN114257660B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/161Implementation details of TCP/IP or UDP/IP stack architecture; Specification of modified or new header fields
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application relates to a method, a device, equipment and a storage medium for processing SV and GOOSE messages, and belongs to the technical field of data processing. The method comprises the following steps: receiving a plurality of messages on a plurality of preset circuit branches, wherein the messages comprise a plurality of fields, and the plurality of messages on the plurality of preset circuit branches are commonly received by a first optical fiber interface and a second optical fiber interface; determining the message type of each message, and determining the circuit branch to which each message belongs to, so as to obtain a processed message; determining a target message and a redundant message according to a first preset field of the processed message; and obtaining the power condition of the circuit branch according to the target message. The SV and GOOSE message processing method provided by the application can realize reliable message reception on the basis of not changing the existing bus protection device.

Description

SV and GOOSE message processing method, device, equipment and storage medium
Technical Field
The present invention relates to the field of data processing technologies, and in particular, to a method, an apparatus, a device, and a storage medium for processing SV and GOOSE messages.
Background
The bus protection device is an important testing tool for ensuring safe and reliable operation of the power system, and can analyze the power condition of the power system according to an SV (Sampled Value, sampling value) message and a GOOSE (Generic Object Oriented Substation Event, general object-oriented substation event) message and perform corresponding protection measures on power equipment in the power system according to the analyzed power condition.
In the prior art, the SV message and the GOOSE message are received by the bus protection device through optical fiber interfaces, each optical fiber interface is used for receiving a message on a circuit in the power system, and usually, in order to ensure the reliability of message receiving, a redundant optical fiber interface is arranged for each optical fiber interface, and the size of the existing bus protection device is fixed, so how to realize reliable receiving of the message on the basis of not changing the existing bus protection device is a problem to be solved.
Disclosure of Invention
Based on this, it is necessary to provide a processing method for SV and GOOSE messages, which can realize reliable receiving of the messages without changing the existing bus protection device.
An embodiment of the present application provides a method for processing SV and GOOSE packets, where the method includes:
Receiving a plurality of messages on a plurality of preset circuit branches, wherein the messages comprise a plurality of fields, and the plurality of messages on the plurality of preset circuit branches are commonly received by a first optical fiber interface and a second optical fiber interface;
Determining the message type of each message, and determining the circuit branch to which each message belongs to, so as to obtain a processed message;
Determining a target message and a redundant message according to a first preset field of the processed message;
and obtaining the power condition of the circuit branch according to the target message.
In one embodiment, the message includes a message type identifier, and determining a message type of each message includes:
and obtaining the message type identification of each message, and determining the message type of each message according to the message type identification.
In one embodiment, determining a circuit branch of each message includes:
Obtaining a second preset field of the messages, and determining a circuit branch of each message according to the second preset field.
In one embodiment, determining the target message and the redundant message according to the first preset field of the processed message includes:
Searching whether a first preset field of the processed message exists in each first preset field list of the cached message;
If not, the processed message is used as a target message;
If so, the processed message is used as a redundant message.
In one embodiment, after determining the processed message as a redundant message, the method further includes:
Respectively acquiring a redundant message and an FCS field of a history message which is the same as a first preset field of the redundant message; and judging whether the redundant message is normally transmitted or not according to the FCS field of the redundant message and the FCS field of the historical message.
In one embodiment, determining whether the redundant packet is transmitted normally according to the FCS field of the redundant packet and the FCS field of the history packet includes: if the FCS field of the redundant message is the same as the FCS field of the history message, the transmission of the redundant message is normal; if the FCS field of the redundant message is different from the FCS field of the history message, the transmission of the redundant message is abnormal.
In one embodiment, the message type is GOOSE message, and the FCS fields of the redundant message and the historical message identical to the first preset field of the redundant message are respectively obtained, including:
Respectively obtaining the StNum value and the SqNum value of the redundant message and the StNum value and the SqNum value of the reference message, wherein the reference message is the next frame message which is the same as a second preset field of the redundant message;
Judging whether the StNum value of the redundant message is the same as the StNum value of the reference message, and whether the difference value between the SqNum value of the reference message and the SqNum value of the redundant message is 1, if the StNum value of the redundant message is the same as the StNum value of the reference message, and the difference value between the SqNum value of the reference message and the SqNum value of the redundant message is 1, respectively acquiring the FCS field of the redundant message and the FCS field of the history message after a preset time period.
In one embodiment, after determining the message type of each message, the method further includes:
and detecting whether the data format of the message is correct or not according to the data format of the preset standard message.
In one embodiment, the number of data frames of the buffered messages is determined according to the message receiving frequency corresponding to the data type of the message.
In one embodiment, the message includes: SV messages and GOOSE messages.
In a second aspect of the embodiment of the present application, there is provided an SV and GOOSE packet processing device, including:
the interface module is used for receiving various messages on a plurality of preset circuit branches through a first optical fiber interface and a second optical fiber interface on target equipment, wherein the messages comprise a plurality of fields;
the first determining module is used for determining the message type of each message;
the second determining module is used for determining a circuit branch of each message to obtain a processed message;
the third determining module is used for determining a target message according to the first preset field of the processed message;
And the acquisition module is used for acquiring the power condition of the circuit branch according to the target message.
In a third aspect of the embodiment of the present application, there is provided a computer device, including a memory and a processor, where the memory stores a computer program, and the computer program is executed by the processor to implement the method for processing a message according to the first aspect of the embodiment of the present application.
In a fourth aspect of the embodiment of the present application, there is provided a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the method for processing a message according to the first aspect of the embodiment of the present application.
The technical scheme provided by the embodiment of the application has the beneficial effects that at least:
According to the SV and GOOSE message processing method provided by the embodiment of the application, various messages on a plurality of preset circuit branches are commonly received through a first optical fiber interface and a second optical fiber interface, wherein the messages comprise a plurality of fields; determining the message type of each message, determining the circuit branch to which each message belongs, obtaining a processed message, determining a target message according to a first preset field of the processed message, and finally obtaining the power condition of the circuit branch according to the target message. According to the message processing method provided by the embodiment of the application, the message can be jointly received through the two optical fiber interfaces, then the message is separated according to the type of the message and the circuit branch to which the message belongs, the target message is determined according to the first preset field in the message, and the electric power condition of the circuit branch can be obtained according to the target message.
Drawings
FIG. 1 is a flowchart of a method for processing SV and GOOSE messages according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an optical fiber interface of a bus protection device according to an embodiment of the present application;
FIG. 3 is a flowchart of an SV and GOOSE message processing method according to an embodiment of the present application;
FIG. 4 is a block diagram of an SV and GOOSE message processing apparatus according to an embodiment of the present application;
Fig. 5 is a schematic diagram of a computer device according to an embodiment of the present application.
Detailed Description
The present invention will be described in further detail with reference to the drawings and examples, in order to make the objects, technical solutions and advantages of the present invention more apparent. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the invention.
The bus protection device is an important testing tool for ensuring safe and reliable operation of the power system, and can analyze the power condition of the power system according to an SV (Sampled Value, sampling value) message and a GOOSE (Generic Object Oriented Substation Event, general object-oriented substation event) message and perform corresponding protection measures on power equipment in the power system according to the analyzed power condition. In practice, GOOSE messages and SV messages are communication protocols for sampling data and various events in a digital substation specified in the IEC61850 protocol. Under normal conditions, a bus protection device in a transformer substation needs to have GOOSE and SV message access capabilities of at most 24 branches. In a transformer substation, the SV and GOOSE messages of each branch are generally accessed to each branch by using an optical fiber in a point-to-point mode. This requires the bus protection device to provide at least 24 branch currents, at least 1 integrated voltage, 24 branch GOOSE, 1 networking GOOSE, and a total of at least 50 fiber interfaces.
In order to ensure the data access capability, most of mainstream relay protection manufacturers in China and abroad adopt a case design of 4U to 8U when designing a digital bus protection device, and the width of the case is generally 19 inches of full-length case. However, in the aspect of reliability design of the intelligent substation, a dual redundancy design mode is used, which comprises the following steps: when analog quantity sampling is carried out on primary equipment, double AD redundant sampling is used, double CPU processing is used for core modules of various secondary equipment, and the like.
On the aspect of SV and GOOSE message transmission modes, a networking mode of 'homologous double networks' is adopted by part of intelligent substations, and the reliability of communication is improved by constructing two groups of mutually independent communication networks. If the conventional bus protection device adopts a network erection mode of a homologous double network, at least 100 optical fiber interfaces need to be provided, which makes it difficult to design equipment with enough optical fiber interfaces for the existing bus protection.
In the prior art, the SV message and the GOOSE message are received by the bus protection device through optical fiber interfaces, each optical fiber interface is used for receiving a message on a circuit in the power system, and usually, in order to ensure the reliability of message receiving, a redundant optical fiber interface is arranged for each optical fiber interface, and the size of the existing bus protection device is fixed, so how to realize reliable receiving of the message on the basis of not changing the existing bus protection device is a problem to be solved.
Based on this, the embodiment of the application provides a processing method of SV and GOOSE messages, which receives various messages on a plurality of preset circuit branches through a first optical fiber interface and a second optical fiber interface, wherein the messages comprise a plurality of fields; determining the message type of each message, determining the circuit branch to which each message belongs, obtaining a processed message, determining a target message according to a first preset field of the processed message, and finally obtaining the power condition of the circuit branch according to the target message. According to the message processing method provided by the embodiment of the application, the message can be jointly received through the two optical fiber interfaces, then the message is separated according to the type of the message and the circuit branch to which the message belongs, the target message is determined according to the first preset field in the message, and the electric power condition of the circuit branch can be obtained according to the target message.
The following describes the technical scheme of the present application and how the technical scheme of the present application solves the above technical problems in detail with specific embodiments. The following embodiments may be combined with each other, and the same or similar concepts or processes may not be described in detail in some embodiments. Embodiments of the present application will be described below with reference to the accompanying drawings.
Referring to fig. 1, a flowchart of an SV and GOOSE packet processing method according to an embodiment of the present application is shown. As shown in fig. 1, the message processing method may include the following steps:
Step 101, receiving multiple messages on multiple preset circuit branches.
The message includes a plurality of fields, and a plurality of messages on a plurality of predetermined circuit branches are commonly received by the first optical fiber interface and the second optical fiber interface.
Wherein the message includes a plurality of fields; the messages may be SV messages, GOOSE messages, or other messages, which are not limited in the embodiments of the present application.
The first optical fiber interface and the second optical fiber interface may be optical fiber interfaces on a bus protection device in the power system, or may be optical fiber interfaces on other devices in the power system, which is not limited in the embodiment of the present application.
Taking a bus protection device as an example, the bus protection device comprises a plurality of optical fiber interfaces, and the first optical fiber interface and the second optical fiber interface are two optical fiber interfaces on the bus protection device. The first optical fiber interface and the second optical fiber interface commonly receive various messages on a plurality of preset circuit branches, for example, the first optical fiber interface and the second optical fiber interface commonly receive various messages on a certain circuit branch.
Step 102, determining the message type of each message, and determining the circuit branch to which each message belongs to, thereby obtaining the processed message.
After the bus protection device receives the message, determining the message type of the message, classifying the message according to the message type, and then determining the circuit branch to which the message belongs to obtain the processed message.
Step 103, determining a target message and a redundant message according to a first preset field of the processed message.
In practice, in order to ensure the reliability of data reception, the first interface and the second interface are used to receive the message together, so that under normal conditions, there is a redundant message, and therefore, the target message and the redundant message of the target message need to be determined according to the first preset field of the processed message.
And 104, obtaining the power condition of the circuit branch according to the target message.
After the target message is determined, the power condition of the circuit branch can be obtained by analyzing the message content of the target message, so that corresponding processing operation is executed.
The embodiment of the application provides a message processing method, which is used for receiving various messages on a plurality of preset circuit branches through a first optical fiber interface and a second optical fiber interface, wherein the messages comprise a plurality of fields; determining the message type of each message, determining the circuit branch to which each message belongs, obtaining a processed message, determining a target message according to a first preset field of the processed message, and finally obtaining the power condition of the circuit branch according to the target message. According to the message processing method provided by the embodiment of the application, the message can be jointly received through the two optical fiber interfaces, then the message is separated according to the type of the message and the circuit branch to which the message belongs, the target message is determined according to the first preset field in the message, and the electric power condition of the circuit branch can be obtained according to the target message.
In one embodiment, the message includes a message class identifier, and determining a message type of each message includes: and obtaining the message type identification of each message, and determining the message type of each message according to the message type identification.
In practical application, the message data received by the bus protection device carries a message type identifier, the message type of each message can be determined according to the message type identifier of each message, and the messages are separated according to the message type.
Optionally, the message type identifier may be EthType data of the message, and the message type of the message is determined according to the EthType data.
In this step, according to the IEC61850 protocol, the EthType of the SV message is 0x88ba, the EthType of the GOOSE message is 0x88B8, and according to this rule, the ethernet message received by one optical fiber interface is differentiated into the GOOSE message or the SV message according to the EthType, and is sent to the GOOSE message processing module and the SV message processing module respectively.
In one embodiment, determining a circuit branch for each message includes: obtaining a second preset field of the messages, and determining a circuit branch of each message according to the second preset field.
Optionally, the second preset field may be an APPID field of the SV packet and the GOOSE packet. And separating the SV message and the GOOSE message according to the message type, and determining the circuit branch to which the message belongs by identifying the APPID field.
In practice, since multiple messages on multiple circuit branches are received through one optical fiber interface, the received messages need to be separated according to the message types, and then the messages separated according to the message types are separated according to the circuit branches to which the messages belong.
In one embodiment, determining the target message and the redundant message according to the first preset field of the processed message includes: searching whether a first preset field of the processed message exists in each first preset field list of the cached message; if not, the processed message is used as a target message; if so, the processed message is used as a redundant message.
After the GOOSE or SV message is transmitted to the bus protection device through the first optical fiber network and the second optical fiber network respectively, the bus protection device receives the same frame of message from the first optical fiber network and the second optical fiber network respectively, but the first optical fiber network and the second optical fiber network are two sets of network devices which are completely physically independent, so that the same frame of message is sent through the first optical fiber network and the second optical fiber network respectively, and the bus protection device receives the same two frames of messages successively.
For this situation, after receiving a frame of message, the bus protection device reads a first preset field in the message, and searches for whether the first preset field of the processed message exists in each first preset field list of the cached message; if the message does not exist, the processed message is used as a target message, and the target message is recorded and analyzed; if so, the processed message is used as a redundant message to be discarded.
Recording a first preset field of the message into a first preset field list for the newly received message, and deleting the earliest first preset field in the first preset field list.
Optionally, the first preset field of the SV packet may be a smpCnt field turned from 0 to 3999 bytes, and the GOOSE packet may use a 4-byte stNum and a 4-byte sqNum field as the first preset field.
In one embodiment, after the determining the processed message as the redundant message, the method further includes: respectively acquiring the redundant message and the FCS field of the historical message which is the same as the first preset field of the redundant message; and judging whether the redundant message is normally transmitted or not according to the FCS field of the redundant message and the FCS field of the historical message.
Wherein the FCS (FRAME CHECK Sequence frame check Sequence) has a value of 32-bit (cyclic redundancy check Cyclic Redundancy Check) checksum.
In practical application, after the message is determined to be a redundant message, the redundant message and the FCS field of the historical message which is the same as the first preset field of the redundant message are respectively obtained, whether the redundant message is normally transmitted or not can be judged according to the FCS field of the redundant message and the FCS field of the historical message, so that the fact that the message is polluted or attacked in the process of transmitting or attacking can be detected, and alarm information can be generated according to the detected condition to prompt operation and maintenance personnel to process.
In one embodiment, determining whether the redundant message is transmitted normally according to the FCS field of the redundant message and the FCS field of the history message includes: if the FCS field of the redundant message is the same as the FCS field of the history message, the transmission of the redundant message is normal; if the FCS field of the redundant message is different from the FCS field of the history message, the transmission of the redundant message is abnormal.
In practical application, if the FCS field of the redundant message is the same as the FCS field of the historical message, the transmission of the redundant message is normal; if the FCS field of the redundant message is different from the FCS field of the historical message, the transmission of the redundant message is abnormal, which indicates that the transmission or transmission environment of the message is polluted or attacked.
In one embodiment, the message type is GOOSE message, and the FCS fields of the redundant message and the historical message identical to the first preset field of the redundant message are respectively obtained, including:
Respectively obtaining the StNum value and the SqNum value of the redundant message and the StNum value and the SqNum value of the reference message, wherein the reference message is the next frame message which is the same as a second preset field of the redundant message;
Judging whether the StNum value of the redundant message is the same as the StNum value of the reference message, and whether the difference value between the SqNum value of the reference message and the SqNum value of the redundant message is 1, if the StNum value of the redundant message is the same as the StNum value of the reference message, and the difference value between the SqNum value of the reference message and the SqNum value of the redundant message is 1, respectively acquiring the FCS field of the redundant message and the FCS field of the history message after a preset time period.
It should be noted that, for a GOOSE packet, before determining whether the packet is normally transmitted, it is necessary to determine whether the packet transmission device is restarted, and it is not possible to directly determine whether the packet is normally transmitted by comparing the FCS field of the redundant packet with the FCS field of the history packet.
In practical application, according to IEC61850 protocol, after the GOOSE message is powered on, the GOOSE message starts to be sent according to stnum=1 and sqnum=1.
When the device does not generate any GOOSE event deflection, the device generates a heartbeat message, stNum of the heartbeat message is unchanged, and SqNum is added with 1. When the device shifts due to GOOSE event, the device updates the sequence number by adding 1 to StNum and sqnum=0, and continuously sends heartbeat messages according to StNum and SqNum. Therefore, when the device receives the GOOSE message with stnum=1 and sqnum=1, the device needs to consider that the source device is restarted. In addition, since there may be a case where a packet is lost during network transmission, even if a GOOSE packet having stnum=1 and sqnum=1 is not received, there is a case where StNum and SqNum are reduced, and there is a need to consider a case where a source device is restarted. Therefore, the cases that need to consider that the source device is restarted include: 1. the received GOOSE message StNum is more random than the previous frame message Wen Xiao, sqNum; 2. StNum of the received GOOSE message is the same as that of the previous frame message, and SqNum is compared with that of the previous frame message Wen Xiao; 3. the received GOOSE message stnum=1 and sqnum=1. If the received GOOSE message is found to meet the condition that any one of the 3 source ends is restarted, the source end restarting judgment is carried out.
When the source device is judged to restart, the FCS of the message with the same serial number is directly compared to trigger an alarm by mistake because the message with the same serial number is possibly sent before the source device restarts, so that the alarm function is required to be closed, all relevant subscription data of the device are updated according to the content of the GOOSE message, the data synchronization with the restarted source device is completed, the double-network abnormal alarm function of the branch is started, and the operation is continued.
In one embodiment, after determining the message type of each message, the method further includes: and detecting whether the data format of the message is correct or not according to the data format of the preset standard message.
The bus protection device stores standard messages of various types of messages, and compares the format of the received messages with that of the standard messages so as to detect whether the data format of the messages is correct.
In one embodiment, the number of data frames of the buffered messages is determined based on the message receiving frequency corresponding to the data type of the message.
The bus protection device receives the same frame of messages of the first optical fiber network and the second optical fiber network, and the difference is generally not more than 20ms. Therefore, for SV messages, the SV messages are sent at equal intervals at 4000Hz, and 80 frames of messages can be sent for 20ms, so that the sequence numbers of the latest received 80 frames of messages need to be cached. For GOOSE messages, when a GOOSE event is shifted, the messages are rapidly sent in the modes of 2ms, 4ms and 8ms, and when no shift occurs, heartbeat messages are sent according to the frequency of one frame of 5s, and the limit condition of continuous shift is considered, so that the sequence number of the latest received 10-frame message needs to be cached.
Meanwhile, in an electric power system, a bus protection device generally uses an optical fiber interface with 100Mbps to access GOOSE and SV messages, and generally the SV messages of one branch are 300 bytes and sent at fixed frequency according to 4000Hz, so that the flow per second is 9.6Mbps, the situation that the GOOSE and the SV messages are counted by using the same optical fiber interface is considered, and in order to ensure that the fixed frequency sending of the SV messages is not greatly influenced when the GOOSE messages are subjected to burst deflection, the access mode is that each optical fiber interface is accessed to the GOOSE and the SV messages of 7 circuit branches, the SV messages stably occupy 67.2Mbps, and the rest bandwidth is reserved for the burst deflection of the GOOSE messages.
As shown in fig. 2, the embodiment of the present application further provides a schematic diagram of an optical fiber interface of an SV and GOOSE bus protection device, where a manner that the bus protection device uses 8 optical fiber interfaces to access GOOSE and SV messages of 24 branches required by the bus protection device is as follows: fiber interface 1-2: and the optical fiber interface 1 is a network A of a homologous double network, and the optical fiber interface 2 is a network B of the homologous double network. Fiber interface 3-4: the optical fiber interface 3 is the A network of the homologous double network and the optical fiber interface 4 is the B network of the homologous double network. Fiber interface 5-6: the optical fiber interface 5 is the A network of the homologous double network and the optical fiber interface 6 is the B network of the homologous double network. Fiber interface 7-8: and the network is responsible for accessing the branches 22-24, voltage and GOOSE, the optical fiber interface 7 is the A network of the homologous double network, and the optical fiber interface 8 is the B network of the homologous double network.
The embodiment of the application also provides a SV and GOOSE message processing method, as shown in FIG. 3, comprising the following steps:
S301, receiving various messages on a plurality of preset circuit branches, wherein the various messages on the plurality of preset circuit branches are commonly received by a first optical fiber interface and a second optical fiber interface.
S302, obtaining the message type identification of each message, and determining the message type of each message according to the message type identification.
S303, detecting whether the format of the message is correct or not according to the data format of the preset standard message.
S304, obtaining a second preset field of the messages, and determining a circuit branch of each message according to the second preset field.
S305, searching whether a first preset field of the processed message exists in a first preset field list, wherein the first preset field list comprises first preset fields of a plurality of cached messages.
S306, if the message does not exist, the processed message is used as a target message.
S307, if yes, the processed message is used as a redundant message.
S308, respectively obtaining the redundant message and the FCS field of the history message which is the same as the first preset field of the redundant message.
S309, judging whether the redundant message is transmitted normally or not according to the FCS field of the redundant message and the FCS field of the history message.
S310, the message type is GOOSE message, and the StNum value and the SqNum value of the redundant message and the StNum value and the SqNum value of the reference message are respectively obtained.
S311, judging whether the StNum value of the redundant message is the same as the StNum value of the reference message, and whether the difference value between the SqNum value of the reference message and the SqNum value of the redundant message is 1, if the StNum value of the redundant message is the same as the StNum value of the reference message, and the difference value between the SqNum value of the reference message and the SqNum value of the redundant message is 1, respectively acquiring the FCS field of the redundant message and the FCS field of the history message after a preset time period.
S312, obtaining the power condition of the circuit branch according to the target message
The technical scheme provided by the embodiment of the application has the beneficial effects that at least:
The message processing method provided by the embodiment of the application commonly receives a plurality of messages on a plurality of preset circuit branches through a first optical fiber interface and a second optical fiber interface, wherein the messages comprise a plurality of fields; determining the message type of each message, determining the circuit branch to which each message belongs, obtaining a processed message, determining a target message according to a first preset field of the processed message, and finally obtaining the power condition of the circuit branch according to the target message. According to the message processing method provided by the embodiment of the application, the message can be jointly received through the two optical fiber interfaces, then the message is separated according to the type of the message and the circuit branch to which the message belongs, the target message is determined according to the first preset field in the message, and the electric power condition of the circuit branch can be obtained according to the target message.
As shown in fig. 4, an embodiment of the present application further provides an SV and GOOSE packet processing device, where the device includes: a receiving module 11, a first determining module 12, a second determining module 13, a third determining module 14 and an obtaining module 15.
The receiving module 11 is configured to receive a plurality of messages on a plurality of preset circuit branches, where the messages include a plurality of fields, and the plurality of messages on the plurality of preset circuit branches are received by the first optical fiber interface and the second optical fiber interface together.
A first determining module 12, configured to determine a message type of each message.
The second determining module 13 is configured to determine a circuit branch of each message, and obtain a processed message.
The third determining module 14 is configured to determine the target message according to the first preset field of the processed message.
And the obtaining module 15 is used for obtaining the power condition of the circuit branch according to the target message.
In one embodiment, the first determining module 12 is specifically configured to obtain a message type identifier of each message, and determine a message type of each message according to the message type identifier.
In one embodiment, the second determining module 13 is specifically configured to obtain a second preset field of the message, and determine a circuit branch of each message according to the second preset field.
In one embodiment, the third determining module 14 is specifically configured to find whether a first preset field of the processed packet exists in a first preset field list, where the first preset field list includes first preset fields of a plurality of buffered packets; if not, the processed message is used as a target message; if so, the processed message is used as a redundant message.
In one embodiment, the obtaining module 15 is further configured to obtain the redundant packet and an FCS field of the history packet that is the same as the first preset field of the redundant packet;
The device further comprises a detection module 16, configured to determine whether the transmission of the redundant message is normal according to the FCS field of the redundant message and the FCS field of the history message.
In one embodiment, the detection module 16 is specifically configured to, if the FCS field of the redundant packet is the same as the FCS field of the history packet, transmit the redundant packet normally; if the FCS field of the redundant message is different from the FCS field of the history message, the transmission of the redundant message is abnormal.
In one embodiment, the obtaining module 15 is specifically configured to obtain the StNum value and the SqNum value of the redundant message and the StNum value and the SqNum value of the reference message, where the reference message is the same next frame message as the second preset field of the redundant message;
Judging whether the StNum value of the redundant message is the same as the StNum value of the reference message, and whether the difference value between the SqNum value of the reference message and the SqNum value of the redundant message is 1, if the StNum value of the redundant message is the same as the StNum value of the reference message, and the difference value between the SqNum value of the reference message and the SqNum value of the redundant message is 1, respectively acquiring the FCS field of the redundant message and the FCS field of the history message after a preset time period.
In one embodiment, the detecting module 16 is further configured to detect whether the format of the message is correct according to the data format of the preset standard message.
In one embodiment, the number of data frames of the buffered messages is determined based on the message receiving frequency corresponding to the data type of the message.
The SV and GOOSE message processing device provided by the embodiment of the present application can implement the above method embodiments, and its implementation principle and technical effects are similar and will not be described herein.
For specific limitations of the message processing apparatus, reference may be made to the above limitations of the message processing apparatus, and no further description is given here. The modules in the message processing apparatus may be implemented in whole or in part by software, hardware, or a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the computer device may call and execute operations corresponding to the above modules.
Fig. 5 is a schematic diagram of an internal structure of a computer device according to an embodiment of the present application. As shown in fig. 5, the computer device includes a processor and a memory connected by a system bus. Wherein the processor is configured to provide computing and control capabilities to support operation of the entire terminal. The memory may include a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The computer program is executable by a processor for implementing a message processing method provided in the above embodiments. The internal memory provides a cached operating environment for the operating system and computer programs in the non-volatile storage medium.
It will be appreciated by those skilled in the art that the structure shown in FIG. 5 is merely a block diagram of some of the structures associated with the present inventive arrangements and is not limiting of the computer device to which the present inventive arrangements may be applied, and that a particular computer device may include more or fewer components than shown, or may combine some of the components, or have a different arrangement of components.
In one embodiment of the present application, there is provided a computer device including a memory and a processor, the memory having stored therein a computer program which when executed by the processor performs the steps of:
and receiving various messages on a plurality of preset circuit branches, wherein the messages comprise a plurality of fields, and the various messages on the plurality of preset circuit branches are commonly received by the first optical fiber interface and the second optical fiber interface.
Determining the message type of each message, and determining the circuit branch to which each message belongs to, thereby obtaining the processed message.
And determining the target message and the redundant message according to the first preset field of the processed message.
And obtaining the power condition of the circuit branch according to the target message.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: and obtaining the message type identification of each message, and determining the message type of each message according to the message type identification.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: obtaining a second preset field of the messages, and determining a circuit branch of each message according to the second preset field.
In one embodiment of the application, the processor when executing the computer program further performs the steps of: searching whether a first preset field of the processed message exists in a first preset field list, wherein the first preset field list comprises first preset fields of a plurality of cached messages; if not, the processed message is used as a target message; if so, the processed message is used as a redundant message.
In one embodiment of the present application, whether the format of the message is correct is detected according to the data format of the preset standard message.
In one embodiment of the present application, the number of data frames of the buffered messages is determined based on the message receiving frequency corresponding to the data type of the message.
The computer device provided in this embodiment has similar implementation principles and technical effects to those of the above method embodiment, and will not be described herein.
In one embodiment of the present application, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of:
receiving a plurality of messages on a plurality of preset circuit branches, wherein the messages comprise a plurality of fields, and the plurality of messages on the plurality of preset circuit branches are commonly received by a first optical fiber interface and a second optical fiber interface; determining the message type of each message, and determining the circuit branch to which each message belongs to, so as to obtain a processed message; determining a target message and a redundant message according to a first preset field of the processed message; and obtaining the power condition of the circuit branch according to the target message.
In one embodiment of the application, the computer program when executed by a processor performs the steps of: and obtaining the message type identification of each message, and determining the message type of each message according to the message type identification.
In one embodiment of the application, the computer program when executed by a processor performs the steps of: obtaining a second preset field of the messages, and determining a circuit branch of each message according to the second preset field.
In one embodiment of the application, the computer program when executed by a processor performs the steps of: searching whether a first preset field of the processed message exists in a first preset field list, wherein the first preset field list comprises first preset fields of a plurality of cached messages; if not, the processed message is used as a target message; if so, the processed message is used as a redundant message.
In one embodiment of the present application, whether the format of the message is correct is detected according to the data format of the preset standard message.
In one embodiment of the present application, the number of data frames of the buffered messages is determined based on the message receiving frequency corresponding to the data type of the message.
The computer device provided in this embodiment has similar implementation principles and technical effects to those of the above method embodiment, and will not be described herein.
Those skilled in the art will appreciate that implementing all or part of the above-described methods in accordance with the embodiments may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in M forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (SYMCHLIMK) DRAM (SLDRAM), memory bus (RaMbus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
The technical features of the above embodiments may be arbitrarily combined, and all possible combinations of the technical features in the above embodiments are not described for brevity of description, however, as long as there is no contradiction between the combinations of the technical features, they should be considered as the scope of the description.
The foregoing examples illustrate only a few embodiments of the invention, which are described in detail and are not to be construed as limiting the scope of the invention. It should be noted that it will be apparent to those skilled in the art that several variations and modifications can be made without departing from the spirit of the invention, which are all within the scope of the invention. Accordingly, the scope of protection of the present invention is to be determined by the appended claims.

Claims (10)

1. The SV and GOOSE message processing method is characterized by comprising the following steps:
Receiving a plurality of messages on a plurality of preset circuit branches, wherein the messages comprise a plurality of fields, and the plurality of messages on the plurality of preset circuit branches are commonly received by a first optical fiber interface and a second optical fiber interface;
determining the message type of each message, and determining the circuit branch to which each message belongs to, so as to obtain a processed message;
determining a target message and a redundant message according to a first preset field of the processed message;
obtaining the power condition of the circuit branch according to the target message;
The determining the target message and the redundant message according to the first preset field of the processed message includes:
Searching whether a first preset field of the processed message exists in a first preset field list, wherein the first preset field list comprises first preset fields of a plurality of cached messages;
If the first preset field list does not contain the first preset field of the processed message, determining the processed message as a target message;
if a first preset field of the processed message exists in the first preset field list, determining the processed message as a redundant message;
The first preset field of the SV message is a smpCnt field with 2 bytes 0-3999 turned over, and the first preset field of the GOOSE message is a 4 bytes stNum field and a 4 bytes sqNum field.
2. The method of claim 1, wherein the messages include message class identifiers, and wherein the determining the message type of each of the messages comprises:
And obtaining the message type identification of each message, and determining the message type of each message according to the message type identification.
3. The method of claim 1, wherein said determining a circuit branch for each of said messages comprises:
Obtaining a second preset field of the messages, and determining a circuit branch of each message according to the second preset field.
4. The method of claim 1, wherein after the determining the processed message as a redundant message, further comprising:
Respectively acquiring the redundant message and the FCS field of the historical message which is the same as the first preset field of the redundant message;
And judging whether the redundant message is normally transmitted or not according to the FCS field of the redundant message and the FCS field of the historical message.
5. The method of claim 4, wherein the determining whether the redundant message is transmitted normally according to the FCS field of the redundant message and the FCS field of the history message comprises:
if the FCS field of the redundant message is the same as the FCS field of the historical message, determining that the transmission of the redundant message is normal;
And if the FCS field of the redundant message is different from the FCS field of the historical message, determining that the transmission of the redundant message is abnormal.
6. The method of claim 4, wherein the message type is a GOOSE message, and the obtaining FCS fields of the redundant message and the history message identical to the first preset field of the redundant message respectively includes:
respectively obtaining the StNum value and the SqNum value of the redundant message and the StNum value and the SqNum value of a reference message, wherein the reference message is the next frame message which is the same as a second preset field of the redundant message;
Judging whether the StNum value of the redundant message is the same as the StNum value of the reference message and whether the difference value between the SqNum value of the reference message and the SqNum value of the redundant message is 1, and if the StNum value of the redundant message is the same as the StNum value of the reference message and the difference value between the SqNum value of the reference message and the SqNum value of the redundant message is 1, respectively acquiring the FCS field of the redundant message and the FCS field of the history message after a preset time period.
7. An SV and GOOSE message processing device, comprising:
The receiving module is used for receiving various messages on a plurality of preset circuit branches, wherein the messages comprise a plurality of fields, and the various messages on the plurality of preset circuit branches are commonly received by the first optical fiber interface and the second optical fiber interface;
The first determining module is used for determining the message type of each message;
The second determining module is used for determining the circuit branch of each message to obtain a processed message;
the third determining module is used for determining a target message and a redundant message according to the first preset field of the processed message;
The acquisition module is used for acquiring the power condition of the circuit branch according to the target message;
The third determining module is specifically configured to find whether a first preset field of the processed packet exists in a first preset field list, where the first preset field list includes first preset fields of a plurality of cached packets; if the first preset field list does not contain the first preset field of the processed message, determining the processed message as a target message; if a first preset field of the processed message exists in the first preset field list, determining the processed message as a redundant message; the first preset field of the SV message is a smpCnt field with 2 bytes 0-3999 turned over, and the first preset field of the GOOSE message is a 4 bytes stNum field and a 4 bytes sqNum field.
8. The apparatus of claim 7, wherein the apparatus further comprises:
the detection module is used for determining that the transmission of the redundant message is normal if the FCS field of the redundant message is the same as the FCS field of the historical message; and if the FCS field of the redundant message is different from the FCS field of the historical message, determining that the transmission of the redundant message is abnormal.
9. A computer device comprising a memory and a processor, the memory storing a computer program which, when executed by the processor, implements the method of any of claims 1 to 6.
10. A computer readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, implements the method according to any of claims 1 to 6.
CN202111302396.1A 2021-11-04 2021-11-04 SV and GOOSE message processing method, device, equipment and storage medium Active CN114257660B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111302396.1A CN114257660B (en) 2021-11-04 2021-11-04 SV and GOOSE message processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111302396.1A CN114257660B (en) 2021-11-04 2021-11-04 SV and GOOSE message processing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN114257660A CN114257660A (en) 2022-03-29
CN114257660B true CN114257660B (en) 2024-05-07

Family

ID=80790415

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111302396.1A Active CN114257660B (en) 2021-11-04 2021-11-04 SV and GOOSE message processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN114257660B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104184679A (en) * 2013-05-23 2014-12-03 广州思唯奇计算机科技有限公司 Method of scheduling message in intelligent substation and device
CN105357137A (en) * 2015-09-24 2016-02-24 上海思源弘瑞自动化有限公司 Message filtering method and applicable FPGA and intelligent substation
CN105610246A (en) * 2015-05-12 2016-05-25 广东电网有限责任公司电力调度控制中心 Information redundancy based transformer substation information check and error correction method
CN106300678A (en) * 2016-09-28 2017-01-04 江苏方天电力技术有限公司 A kind of digital protective relay system supporting unification of three nets network
CN207677777U (en) * 2017-12-06 2018-07-31 云南电网有限责任公司大理供电局 A kind of information record carrier towards digital transformer substation debugging
CN108551394A (en) * 2018-02-09 2018-09-18 国电南瑞科技股份有限公司 A kind of intelligent substation station level device parameter configuration method of calibration
CN109379251A (en) * 2018-10-10 2019-02-22 南京国电南自软件工程有限公司 Protective relaying device process layer GOOSE and SV communicate automatic test approach and system
CN109698734A (en) * 2019-01-30 2019-04-30 南方电网科学研究院有限责任公司 Abnormality judgment method based on the bis- net reception mechanisms of GOOSE
CN111030951A (en) * 2019-11-11 2020-04-17 国电南瑞南京控制系统有限公司 Learning system and method for IED equipment in intelligent substation
CN111901356A (en) * 2020-08-05 2020-11-06 湖南能创科技有限责任公司 Intelligent substation process layer network storm suppression method and device and electronic equipment
CN112583765A (en) * 2019-09-29 2021-03-30 北京天诚同创电气有限公司 GOOSE and SV communication system and message analysis method thereof

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104184679A (en) * 2013-05-23 2014-12-03 广州思唯奇计算机科技有限公司 Method of scheduling message in intelligent substation and device
CN105610246A (en) * 2015-05-12 2016-05-25 广东电网有限责任公司电力调度控制中心 Information redundancy based transformer substation information check and error correction method
CN105357137A (en) * 2015-09-24 2016-02-24 上海思源弘瑞自动化有限公司 Message filtering method and applicable FPGA and intelligent substation
CN106300678A (en) * 2016-09-28 2017-01-04 江苏方天电力技术有限公司 A kind of digital protective relay system supporting unification of three nets network
CN207677777U (en) * 2017-12-06 2018-07-31 云南电网有限责任公司大理供电局 A kind of information record carrier towards digital transformer substation debugging
CN108551394A (en) * 2018-02-09 2018-09-18 国电南瑞科技股份有限公司 A kind of intelligent substation station level device parameter configuration method of calibration
CN109379251A (en) * 2018-10-10 2019-02-22 南京国电南自软件工程有限公司 Protective relaying device process layer GOOSE and SV communicate automatic test approach and system
CN109698734A (en) * 2019-01-30 2019-04-30 南方电网科学研究院有限责任公司 Abnormality judgment method based on the bis- net reception mechanisms of GOOSE
CN112583765A (en) * 2019-09-29 2021-03-30 北京天诚同创电气有限公司 GOOSE and SV communication system and message analysis method thereof
CN111030951A (en) * 2019-11-11 2020-04-17 国电南瑞南京控制系统有限公司 Learning system and method for IED equipment in intelligent substation
CN111901356A (en) * 2020-08-05 2020-11-06 湖南能创科技有限责任公司 Intelligent substation process layer network storm suppression method and device and electronic equipment

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
周华良 ; 郑玉平 ; 姚吉文 ; 姜雷 ; 谢黎 ; 王凯 ; .面向智能变电站二次设备的网络报文管控技术.电力系统自动化.2015,(第19期),全文. *
李宝伟 ; 文明浩 ; 李宝潭 ; 倪传坤 ; 李旭 ; 孟利平 ; .新一代智能变电站SV直采和GOOSE共口传输方案研究.电力系统保护与控制.2013,(第01期),全文. *
黄忠胜 ; 刘娟 ; .采用SV和GOOSE共口传输的过程层组网方案.电力系统及其自动化学报.2019,(第03期),全文. *

Also Published As

Publication number Publication date
CN114257660A (en) 2022-03-29

Similar Documents

Publication Publication Date Title
CN109803024B (en) Method for cluster node network
EP3605881B1 (en) Method and device for transmitting and receiving network management information, transmitting apparatus and receiving apparatus
CN111884879A (en) Network detection method, device and related equipment
US20170171355A1 (en) Method for transferring a new software version to at least one electricity meter via a communication network
CN111901356A (en) Intelligent substation process layer network storm suppression method and device and electronic equipment
CN111130690A (en) Processing method and device for multiple communication protocols of IR46 smart electric meter
CN113364618A (en) Power grid monitoring system master-slave equipment anti-error switching method based on penalty coefficient rule
CN110994565A (en) Relay protection method and device
CN110365534B (en) Automatic chopping and recovery method for intelligent substation communication system
CN114257660B (en) SV and GOOSE message processing method, device, equipment and storage medium
CN111866921A (en) Method, device and equipment for searching service fault of 5G base station and storage medium
CN112234714A (en) Automatic chopping and recovery method and system for intelligent substation communication system
CN112491990A (en) Hybrid cloud network data transmission method and device, electronic equipment and storage medium
CN111931012A (en) Data model self-adaption method and device based on fault management subsystem
CN113612647B (en) Alarm processing method and device
CN107835097B (en) Alarm information synchronization method and device, and network element
CN112134728B (en) Method and device for locating loss of contact reason, electronic equipment and storage medium
CN110572292B (en) High availability system and method based on unidirectional transmission link
CN115914010A (en) Network monitoring method, device and computer storage medium
CN112839075A (en) Data transmission method applied to acquisition equipment and related device
CN112825501A (en) Signal degradation processing method, device and system
JP5710525B2 (en) Fault information collection and analysis system
CN112511328A (en) Method for transmitting and processing information, Ethernet device, computer readable medium
CN114944969B (en) Vehicle data processing method, internet of vehicles terminal and computer readable storage medium
CN113224851B (en) Power distribution terminal state determination method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant