CN113259491A - GOOSE dual-network communication data processing method and device - Google Patents

GOOSE dual-network communication data processing method and device Download PDF

Info

Publication number
CN113259491A
CN113259491A CN202110743828.6A CN202110743828A CN113259491A CN 113259491 A CN113259491 A CN 113259491A CN 202110743828 A CN202110743828 A CN 202110743828A CN 113259491 A CN113259491 A CN 113259491A
Authority
CN
China
Prior art keywords
sequence number
data
state
timer
message data
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.)
Granted
Application number
CN202110743828.6A
Other languages
Chinese (zh)
Other versions
CN113259491B (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.)
HNAC Technology Co Ltd
Original Assignee
HNAC Technology 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 HNAC Technology Co Ltd filed Critical HNAC Technology Co Ltd
Priority to CN202110743828.6A priority Critical patent/CN113259491B/en
Publication of CN113259491A publication Critical patent/CN113259491A/en
Application granted granted Critical
Publication of CN113259491B publication Critical patent/CN113259491B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/23Updating
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/06Energy or water supply
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery

Landscapes

  • Engineering & Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Theoretical Computer Science (AREA)
  • Business, Economics & Management (AREA)
  • Physics & Mathematics (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • General Health & Medical Sciences (AREA)
  • Economics (AREA)
  • General Physics & Mathematics (AREA)
  • Medical Informatics (AREA)
  • General Business, Economics & Management (AREA)
  • Marketing (AREA)
  • Primary Health Care (AREA)
  • Strategic Management (AREA)
  • Tourism & Hospitality (AREA)
  • Water Supply & Treatment (AREA)
  • Human Resources & Organizations (AREA)
  • Public Health (AREA)
  • Computing Systems (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a GOOSE dual-network communication data processing method and device, wherein the method comprises the following steps: receiving current message data; reading the state sequence number and the sequence number of the message data; comparing the state serial number with the reference state serial number, the sequence serial number with the reference sequence serial number, the recording time and the preset value of the restart timer and the recording time and the preset value of the effective information timer, and judging whether the data needs to be updated according to the comparison result; if so, updating the effective input data in the message data to a data RAM; the validity information timer and/or the restart timer are cleared. According to the method and the device, the restart timer and the effective information timer can accurately represent the communication state corresponding to the message data, whether the data needs to be updated or not is judged according to the integral comparison result, the data can be ensured not to be mistaken for updating, meanwhile, the same data is prevented from being repeatedly updated, the accuracy of GOOSE dual-network communication is improved, and therefore it is ensured that the related electric device does not fail or is mistakenly operated.

Description

GOOSE dual-network communication data processing method and device
Technical Field
The invention relates to the field of power communication, in particular to a GOOSE dual-network communication data processing method and device.
Background
At present, an intelligent substation based on the IEC61850 standard is popularized and applied in a large area in the field of power systems, and information such as switch position, failure, interlocking, tripping and the like is mainly transmitted through GOOSE dual-network communication. The GOOSE dual-network communication ensures the reliability of data communication, and the stability of communication when the network is abnormal, the accuracy rate under the communication state of extremely complex network conditions and the data accuracy rate when the sender device is abnormal can both influence the safe and stable operation of the intelligent substation.
However, in the currently used dual-network GOOSE receiving mechanism, the sequence numbers of a newly received frame and a previous frame are compared to determine whether to receive the message or discard the message, and this mechanism can only receive a correct message in a normal communication environment, and cannot accurately identify various abnormal conditions and ensure normal data reception, and under extreme conditions, such as loss of data frames caused by a network storm, excessive time difference when a message arrives at different optical ports due to an abnormal switch, and the like, data processing errors may occur in the current dual-network GOOSE receiving mechanism, and once data errors occur, a protection device may refuse and malfunction, which may seriously affect the security of a power grid.
Therefore, how to provide a solution to the above technical problems is a problem to be solved by those skilled in the art.
Disclosure of Invention
In view of the above, the present invention provides a GOOSE dual-network communication data processing method and apparatus, which avoid a data processing error occurring when communication is abnormal. The specific scheme is as follows:
a GOOSE dual-network communication data processing method comprises the following steps:
receiving message data of any current information port;
reading the state sequence number and the sequence number of the message data;
comparing the state serial number with a reference state serial number, the sequence serial number with a reference sequence serial number, the recording time and a preset value of a restart timer, and the recording time and the preset value of an effective information timer, and judging whether data needs to be updated according to a comparison result;
if so, updating the effective input data in the message data to a data RAM;
and updating the state sequence number and the sequence number to a sequence number RAM as the reference state sequence number and the reference sequence number respectively, and clearing the effective information timer and/or the restart timer correspondingly.
Preferably, the step of comparing the state sequence number with a reference state sequence number, the sequence number with a reference sequence number, the recording time and the preset value of the restart timer, and the recording time and the preset value of the valid information timer, and determining whether to update the data according to the comparison result includes:
when a data update determination requirement is met, determining that data needs to be updated, wherein the data update determination requirement comprises:
the state sequence number is greater than the current reference state sequence number;
or, the state sequence number is equal to the current reference state sequence number, the sequence number is not greater than the current reference sequence number, and the recording time of the effective information timer is greater than a preset value;
or the state serial number is smaller than the current reference state serial number, the state serial number and the sequence serial number are both 1, and the recording time of the restart timer is larger than the preset value;
or, the state sequence number is smaller than the current reference state sequence number, a non-1 value exists between the state sequence number and the sequence number, and the recording time of the effective information timer is greater than the preset value.
Preferably, the process of correspondingly clearing the validity information timer and/or the restart timer includes:
when the state serial number is smaller than the current reference state serial number, the state serial number and the sequence serial number are both 1, and the recording time of the restart timer is larger than the preset value, resetting the restart timer;
otherwise, the effective information timer is cleared.
Preferably, before receiving the message data of any current information port, the method further includes:
initializing the reference state sequence number and the reference sequence number to 0 in the sequence number RAM.
Preferably, before reading the state sequence number and the sequence number of the packet data, the method further includes:
decoding the message data to obtain device information data and effective opening data of the message data, wherein the device information data comprises a GOCB parameter, the state sequence number and the sequence number;
and judging whether the message data is a subscription message or not according to the GOCB parameters, if so, acquiring a GOCB group number corresponding to the message data, and performing subsequent steps.
Preferably, the process of receiving the message data of any current information port includes:
and judging whether the message data received by any one of the information ports meets the format matching requirement or not, and if so, receiving the message data.
Correspondingly, the application also discloses a GOOSE dual-network communication data processing device, which comprises two information ports, a processor, a data RAM and a serial number RAM, wherein the processor is used for:
receiving message data of any current information port;
reading the state sequence number and the sequence number of the message data;
comparing the state serial number with a reference state serial number, the sequence serial number with a reference sequence serial number, the recording time and a preset value of a restart timer, and the recording time and the preset value of an effective information timer, and judging whether data needs to be updated according to a comparison result;
if so, updating the effective input data in the message data to the data RAM;
and updating the state sequence number and the sequence number to the sequence number RAM as the reference state sequence number and the reference sequence number respectively, and clearing the effective information timer and/or the restart timer correspondingly.
Preferably, the processor is specifically an FPGA.
Preferably, the processor includes a MAC soft core module, and the MAC soft core module is configured to:
and judging whether the message data received by any one of the information ports meets the format matching requirement or not, and if so, receiving the message data.
Preferably, the processor includes a GOOSE decoding module, and the GOOSE decoding module is configured to:
decoding the message data to obtain device information data and effective opening data of the message data, wherein the device information data comprises a GOCB parameter, the state sequence number and the sequence number;
and judging whether the message data is a subscription message or not according to the GOCB parameters, if so, enabling the processor to acquire a GOCB group number corresponding to the message data, and executing the step of receiving the message data of any current information port.
The application discloses a GOOSE dual-network communication data processing method, which comprises the following steps: receiving message data of any current information port; reading the state sequence number and the sequence number of the message data; comparing the state serial number with a reference state serial number, the sequence serial number with a reference sequence serial number, the recording time and a preset value of a restart timer, and the recording time and the preset value of an effective information timer, and judging whether data needs to be updated according to a comparison result; if so, updating the effective input data in the message data to a data RAM; and updating the state sequence number and the sequence number to a sequence number RAM as the reference state sequence number and the reference sequence number respectively, and clearing the effective information timer and/or the restart timer correspondingly. The restart timer and the effective information timer can accurately represent the communication state corresponding to the message data, so that the state sequence number, the recording time of the restart timer and the recording time of the effective information timer are compared with the corresponding reference values, whether the data needs to be updated or not is judged according to the overall comparison result, the data can be ensured not to be mistaken for updating, the situation that the same data is repeatedly updated is avoided, the accuracy of GOOSE dual-network communication is improved, and the fact that the electrical devices related to the GOOSE dual-network communication do not refuse or are mistakenly operated is ensured.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a flowchart illustrating steps of a GOOSE dual-network communication data processing method according to an embodiment of the present invention;
fig. 2 is a schematic hardware environment diagram of a GOOSE dual-network communication data processing method according to an embodiment of the present invention;
fig. 3 is a flow chart illustrating sub-steps of a GOOSE dual-network communication data processing method according to an embodiment of the present invention;
fig. 4 is a structural distribution diagram of a GOOSE dual-network communication data processing apparatus according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The currently used GOOSE dual-network receiving mechanism can only receive correct messages under a normal communication environment, and can not accurately identify various abnormal conditions and ensure normal data receiving, and once data is in error, a protection device may have operation refusal and misoperation, which seriously affects the safety of a power grid.
According to the method and the device, the restart timer and the effective information timer can accurately represent the communication state corresponding to the message data, so that data updating can be guaranteed to be free from errors, the situation that the same data is repeatedly updated is avoided, the accuracy of GOOSE dual-network communication is improved, and therefore the fact that electrical devices related to the GOOSE dual-network communication do not reject or are mistakenly operated is guaranteed.
The embodiment of the invention discloses a GOOSE dual-network communication data processing method, which is shown in figure 1 and comprises the following steps:
s01: receiving message data of any current information port;
specifically, referring to fig. 2, the hardware environment of the data processing method in this embodiment is located at an information receiving end, and includes an optical port 1, an optical port 2, a physical layer module PHY, and an FPGA, where the optical port 1 and the optical port 2 are used as two information ports in GOOSE dual-network communication, and are connected to an information transmitting end, the two information ports are respectively connected to the physical layer module PHY through 100M high-speed differential lines, the physical layer module PHY sends information of the two information ports to the FPGA through two RMII interfaces, and the FPGA executes the operation of the GOOSE dual-network communication data processing method in this embodiment.
Specifically, the process of receiving the message data of any current information port in step S01 includes:
and judging whether the message data received by any current information port meets the format matching requirement, if so, receiving the message data.
It can be understood that only the message data meeting the format matching requirement is received, and actually the message data is filtered in advance, the format matching requirement includes but is not limited to MAC address matching, APPID matching, frame type matching, CRC matching of characteristic GOCB, and frame message CRC calculation passing, and frame type matching also only receives GOOSE messages, and this step filters a large number of invalid messages when receiving the message data, thereby reducing the data processing amount at the back end and reducing the risk of errors.
S02: reading a state sequence number StNum and a sequence number SqNum of message data;
further, before reading the state sequence number StNum and the sequence number SqNum of the packet data in step S02, the method further includes:
decoding the message data to obtain equipment information data and effective input data of the message data, wherein the equipment information data comprises a GOCB parameter, a state sequence number StNum and a sequence number SqNum;
and judging whether the message data is a subscription message according to the GOCB parameters, if so, acquiring a GOCB group number corresponding to the message data, and performing the subsequent step S02.
It can be understood that the condition that the status sequence number StNum and the sequence number SqNum of the packet data are read is that the packet data is decoded, so that the packet data is decoded before step S02, the decoded packet data includes device information data and valid open data, the device information data includes a GOCB parameter, the status sequence number StNum and the sequence number SqNum, where the GOCB parameter includes an MAC address, APPID, GOCBRef, DatSet, GoID and ConfRev, and specific meanings of the above parameters are shown in table one below:
table-GOOSE message data decoding parameter and corresponding interpretation
Figure DEST_PATH_IMAGE001
Further, the GOCB parameter is used to determine whether the packet data is a subscription packet of the information receiving end in this embodiment, if so, the GOCB group number GoCBNum corresponding to the packet data is obtained, and step S02 is performed, otherwise, the packet data is discarded. It is understood that the data in steps S03 and S04, in particular, the reference state sequence number StNum _ Pre, the reference sequence number SqNum _ Pre, and the recording time T2 of the validity information timer T2 are the reference state sequence number StNum _ Pre, the reference sequence number SqNum _ Pre, and the recording time T2 of the validity information timer T2 corresponding to the GOCB group number gotbnum.
S03: comparing the state serial number StNum with a reference state serial number StNum _ Pre, the sequence serial number SqNum with a reference sequence serial number SqNum _ Pre, the recording time T1 and a preset value T0 of a restart timer T1, and the recording time T2 and a preset value T0 of an effective information timer T2, and judging whether data needs to be updated according to the comparison result;
s04: if so, updating the effective input data in the message data to a data RAM;
it can be understood that, in this embodiment, after receiving new packet data each time, the recording times in the restart timer T1 and the valid information timer T2 are observed and compared with the preset value T0, and the comparison result in step S03 is used to determine the communication environment state corresponding to the current packet data, where the communication environment state includes restart, delay, recovery after communication interruption, and the like, and different communication environment states correspond to the determination result of whether data needs to be updated.
S05: and updating the state sequence number StNum and the sequence number SqNum to a sequence number RAM respectively as a reference state sequence number StNum _ Pre and a reference sequence number SqNum _ Pre, and clearing the effective information timer T2 and/or the restart timer T1 correspondingly.
Specifically, if the data needs to be updated in step S03, steps S04 and S05 are performed, and if the data does not need to be updated in S03, step S05 is directly performed. The step S5 is executed to prepare for receiving the next message data, and no matter whether the data in the foregoing needs to be updated, the reference state sequence number StNum _ Pre and the reference sequence number SqNum _ Pre in the sequence number RAM must be updated, and the timer is cleared accordingly, generally speaking, the clearing of the valid information timer T2 is consistent with the updating in the sequence number RAM, and the restart timer T1 is cleared when the information sending end is judged to be restarted, so as to ensure that the judgment in the next step S03 does not make an error.
In the same consideration, in order to ensure that the judgment of step S03 does not make an error when the message data is received for the first time, the method needs to initialize the comparison standard, that is, before the step S01 receives the message data of any current information port, the method further includes: the reference state sequence number StNum _ Pre and the reference sequence number SqNum _ Pre are initialized to 0 in the sequence number RAM. Further, while initializing the sequence RAM, the restart timer T1 and the validity information timer T2 are cleared.
The application discloses a GOOSE dual-network communication data processing method, which comprises the following steps: receiving message data of any current information port; reading a state sequence number StNum and a sequence number SqNum of message data; comparing the state serial number StNum with a reference state serial number StNum _ Pre, the sequence serial number SqNum with a reference sequence serial number SqNum _ Pre, the recording time T1 and a preset value T0 of a restart timer T1, and the recording time T2 and a preset value T0 of an effective information timer T2, and judging whether data needs to be updated according to the comparison result; if so, updating the effective input data in the message data to a data RAM; and updating the state sequence number StNum and the sequence number SqNum to a sequence number RAM respectively as a reference state sequence number StNum _ Pre and a reference sequence number SqNum _ Pre, and clearing the effective information timer T2 and/or the restart timer T1 correspondingly. According to the method, the restart timer T1 and the effective information timer T2 can accurately represent the communication states corresponding to the message data, so that the state serial number StNum, the sequence serial number SqNum, the recording time T1 of the restart timer T1 and the recording time T2 of the effective information timer T2 are compared with corresponding reference values, whether the data need to be updated or not is judged according to the overall comparison result, errors can be avoided when the data are updated, the situation that the same data are updated repeatedly is avoided, the accuracy of GOOSE dual-network communication is improved, and therefore it is ensured that electric devices related to the GOOSE dual-network communication do not reject or malfunction.
The embodiment of the invention discloses a specific GOOSE dual-network communication data processing method, and compared with the previous embodiment, the embodiment further explains and optimizes the technical scheme.
Specifically, the step S03 is to compare the state sequence number StNum with the reference state sequence number StNum _ Pre, the sequence number SqNum with the reference sequence number SqNum _ Pre, the recording time T1 and the preset value T0 of the restart timer T1, and the recording time T2 and the preset value T0 of the valid information timer T2, and determine whether the data needs to be updated according to the comparison result, which includes:
when the data updating judgment requirement is met, judging that the data needs to be updated, wherein the data updating judgment requirement comprises the following steps:
the state sequence number StNum is greater than the current reference state sequence number StNum _ Pre;
or, the state sequence number StNum is equal to the current reference state sequence number StNum _ Pre, the sequence number SqNum is not greater than the current reference sequence number SqNum _ Pre, and the recording time T2 of the valid information timer T2 is greater than the preset value T0;
or, the state sequence number StNum is smaller than the current reference state sequence number StNum _ Pre, and both the state sequence number StNum and the sequence number SqNum are 1, and the recording time T1 of the restart timer T1 is greater than the preset value T0;
or, the state sequence number StNum is smaller than the current reference state sequence number StNum _ Pre, and the state sequence number StNum and the sequence number SqNum have a value other than 1, and the recording time T2 of the validity information timer T2 is greater than the preset value T0.
In the specific implementation of the above scheme, the following steps are generally followed, as shown in fig. 3:
s1: comparing the relation between the state sequence number StNum and the current reference state sequence number StNum _ Pre:
s2: when the state sequence number StNum is larger than the current reference state sequence number StNum _ Pre, the state of the GOCB is changed, and data needs to be updated;
s3: when the state sequence number StNum is equal to the current reference state sequence number StNum _ Pre, the state of the GOCB is not changed, and then the sequence number SqNum is compared with the current reference sequence number SqNum _ Pre;
s31: when the sequence number SqNum is not more than the current reference sequence number SqNum _ Pre, comparing the recording time T2 of the effective information timer T2 with a preset value T0;
s311: when the recording time T2 of the valid information timer T2 is greater than the preset value T0, it indicates that the state of the GOCB has not changed but communication is resumed after communication is interrupted, and data needs to be updated;
s312: when the recording time T2 of the valid information timer T2 is not greater than the preset value T0, the current message is a heartbeat message, which indicates that the state of the GOCB does not change, and data does not need to be updated;
s32: when the sequence number SqNum is greater than the current reference sequence number SqNum _ Pre, the state of the GOCB is not changed, the current message is a heartbeat message, and data does not need to be updated;
it can be understood that, in the S3 environment, if the sequence number SqNum is the next bit of the current reference sequence number SqNum _ Pre, the sequence number SqNum can be directly determined as a heartbeat packet, but the sequence number SqNum has a special condition to be noticed, that is, an overflow of the sequence number SqNum turns over, and the existence of the overflow turns over causes a contradiction between an absolute value and a relative value of the sequence number SqNum, and the specific subdivision can be determined by the following steps:
if the value of the current reference sequence number SqNum _ Pre is the maximum allowable value 32' HFFF _ FFF and the sequence number SqNum is 0, the current reference sequence number SqNum _ Pre is regarded as a heartbeat message and data does not need to be updated;
if the current reference sequence number SqNum _ Pre is the maximum allowable value 32' HFFF _ FFF and the sequence number SqNum is other values other than 0, if the recording time T2 of the effective information timer T2 is greater than the preset value T0, it indicates that communication is resumed after the communication is interrupted, and data needs to be updated, and if the recording time T2 of the effective information timer T2 is not greater than the preset value T0, it is considered that data does not need to be updated due to transmission delay when different information ports of the dual-network communication pass through different switches;
if the value of the current reference sequence number SqNum _ Pre is not the maximum allowable value 32' HFFF _ FFF and the sequence number SqNum is greater than the current reference sequence number SqNum _ Pre, the current reference sequence number SqNum _ Pre is regarded as a heartbeat message and data does not need to be updated;
if the current reference sequence number SqNum _ Pre is not the maximum allowable value 32' HFFF _ FFF and the sequence number SqNum is not greater than the current reference sequence number SqNum _ Pre, if the recording time T2 of the validity information timer T2 is greater than the preset value T0, it indicates that communication is resumed again after the communication interruption, and data needs to be updated, and if the recording time T2 of the validity information timer T2 is not greater than the preset value T0, it is considered that transmission delay when different information ports of dual-network communication pass through different switches results in no need of updating data.
It can be found that the recording time T2 of the valid information timer T2 and the sequence number SqNum are mutually assisted, and the condition that the communication is resumed again after the communication is interrupted is determined as step S311, and in addition to other conditions including a new continuous or frame-skipping heartbeat packet, the recording time T2 also includes a transmission-delayed heartbeat packet, but does not need to update data.
S34: when the state sequence number StNum is smaller than the current reference state sequence number StNum _ Pre, which indicates that the opposite-side information sending terminal is possible to restart or has already restarted, judging whether the values of the state sequence number StNum and the sequence number SqNum are 1 or not;
s341: when the values of the state sequence number StNum and the sequence number SqNum are both 1, comparing the recording time T1 of the restart timer T1 with a preset value T0;
s3411: when the recording time T1 of the restart timer T1 is greater than the preset value T0, the data needs to be updated when the opposite side information sending terminal is restarted, and the restart timer T1 is cleared;
s3412: when the recording time T1 of the restart timer T1 is not greater than the preset value T0, it is considered that the opposite-side information sending end is restarted but the previous message data has transmitted the restart information, the current message data and the previous message data have the same content, and the time difference (the recording time T1 of the restart timer T1) is the transmission delay when different information ports of the dual-network communication pass through different switches, so that the data does not need to be updated, but the restart timer T1 needs to be cleared;
s342: when the state sequence number StNum and the sequence number SqNum have non-1 values, namely the state sequence number StNum and/or the sequence number SqNum are not 1, comparing the recording time T2 of the effective information timer T2 with a preset value T0;
s3421: when the recording time T2 of the valid information timer T2 is greater than the preset value T0, it indicates that the state sequence number StNum is less than the current reference state sequence number StNum _ Pre because the state change is caused by the fact that the opposite side information sending terminal is restarted, and the data needs to be updated;
s3422: when the recording time T2 of the valid information timer T2 is not greater than the preset value T0, it is considered that the recording time T2 of the valid information timer T2 is transmission delay when different information ports of the dual-network communication pass through different switches, and the latest frame of message data sent by one information port is received after the sequence number RAM has been updated, so that the current state sequence number StNum is smaller than the current reference state sequence number StNum _ Pre, and at this time, data update means rollback, and therefore data update is not needed, but the valid information timer T2 needs to be cleared.
The above analysis describes the communication state of each message in detail, and finally the condition to be updated is summarized as the above data update determination requirement. It can be seen that the preset value is actually used to determine whether transmission delay occurs in each packet data, and the transmission delay is related to hardware devices, and can be measured and obtained according to actual conditions, or set according to empirical values, and usually can take a value of 10 ms.
In addition, in this embodiment, the comparison relationships of each path are equally divided into two or more, in practice, the boundary points are divided on the left side or the right side of the axis, and the comparison of the same relationship is always consistent, and in practice, whether the boundary points are included in a certain set does not substantially affect the determination requirement of updating the whole data.
Further, according to the above analysis, the two timers are reset to the following rule: further, the process of clearing the validity information timer T2 and/or the restart timer T1 accordingly includes:
when the state sequence number StNum is smaller than the current reference state sequence number StNum _ Pre, the state sequence number StNum and the sequence number SqNum are both 1, and the recording time T1 of the restart timer T1 is larger than a preset value T0, clearing the restart timer T1;
otherwise the validity information timer T2 is cleared.
Correspondingly, the embodiment of the present application further discloses a GOOSE dual-network communication data processing apparatus, as shown in fig. 4, including two information ports 01, a processor 02, a data RAM 03, and a serial RAM 04, where the processor 02 is configured to:
receiving message data of any current information port 01;
reading the state sequence number and the sequence number of the message data;
comparing the state serial number with a reference state serial number, the sequence serial number with a reference sequence serial number, the recording time and a preset value of a restart timer, and the recording time and the preset value of an effective information timer, and judging whether data needs to be updated according to a comparison result;
if yes, updating the effective input data in the message data to the data RAM 03;
and updating the state sequence number and the sequence number to the sequence number RAM 04 as the reference state sequence number and the reference sequence number respectively, and clearing the valid information timer and/or the restart timer correspondingly.
The restart timer and the effective information timer can accurately represent the communication state corresponding to the message data, so that the state sequence number, the recording time of the restart timer and the recording time of the effective information timer are compared with the corresponding reference values, whether the data needs to be updated or not is judged according to the overall comparison result, the data can be ensured not to be mistaken for updating, the situation that the same data is repeatedly updated is avoided, the accuracy of GOOSE dual-network communication is improved, and the fact that the electrical devices related to the GOOSE dual-network communication do not refuse or are mistakenly operated is ensured.
In some specific embodiments, the processor 02 is embodied as an FPGA.
It can be understood that, in the conventional technology, the processing architecture of the CPU or the CPU + FPGA has a slow data processing speed, and the software and hardware combination scheme is complex, so that the reliability and the economy are not ideal enough, and the GOOSE dual-network communication can be more efficiently and stably realized by using a single FPGA in this embodiment.
In some specific embodiments, the processor 02 includes a MAC soft core module, and the MAC soft core module is configured to:
and judging whether the message data received by any one of the information ports 01 currently meets the format matching requirement, if so, receiving the message data.
In some specific embodiments, the processor 02 includes a GOOSE decoding module, and the GOOSE decoding module is configured to:
decoding the message data to obtain device information data and effective opening data of the message data, wherein the device information data comprises a GOCB parameter, the state sequence number and the sequence number;
judging whether the message data is a subscription message or not according to the GOCB parameters, if so, enabling the processor 02 to acquire a GOCB group number corresponding to the message data, and executing the step of receiving the message data of any current information port 01.
In some specific embodiments, the processor 02 is specifically configured to:
when a data update determination requirement is met, determining that data needs to be updated, wherein the data update determination requirement comprises:
the state sequence number is greater than the current reference state sequence number;
or, the state sequence number is equal to the current reference state sequence number, the sequence number is not greater than the current reference sequence number, and the recording time of the effective information timer is greater than a preset value;
or the state serial number is smaller than the current reference state serial number, the state serial number and the sequence serial number are both 1, and the recording time of the restart timer is larger than the preset value;
or, the state sequence number is smaller than the current reference state sequence number, a non-1 value exists between the state sequence number and the sequence number, and the recording time of the effective information timer is greater than the preset value.
In some specific embodiments, the processor 02 is specifically configured to:
when the state serial number is smaller than the current reference state serial number, the state serial number and the sequence serial number are both 1, and the recording time of the restart timer is larger than the preset value, resetting the restart timer;
otherwise, the effective information timer is cleared.
In some specific embodiments, the processor 02 is further configured to:
initializing the reference state sequence number and the reference sequence number to 0 in the sequence number RAM.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
The GOOSE dual-network communication data processing method and device provided by the present invention are introduced in detail above, and a specific example is applied in the text to explain the principle and the implementation of the present invention, and the description of the above embodiment is only used to help understanding the method and the core idea of the present invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A GOOSE dual-network communication data processing method is characterized by comprising the following steps:
receiving message data of any current information port;
reading the state sequence number and the sequence number of the message data;
comparing the state serial number with a reference state serial number, the sequence serial number with a reference sequence serial number, the recording time and a preset value of a restart timer, and the recording time and the preset value of an effective information timer, and judging whether data needs to be updated according to a comparison result;
if so, updating the effective input data in the message data to a data RAM;
and updating the state sequence number and the sequence number to a sequence number RAM as the reference state sequence number and the reference sequence number respectively, and clearing the effective information timer and/or the restart timer correspondingly.
2. The GOOSE dual-network communication data processing method according to claim 1, wherein the step of comparing the state sequence number with a reference state sequence number, the sequence number with a reference sequence number, the recording time and preset value of a restart timer, and the recording time and preset value of an active information timer, and determining whether data update is required according to the comparison result comprises:
when a data update determination requirement is met, determining that data needs to be updated, wherein the data update determination requirement comprises:
the state sequence number is greater than the current reference state sequence number;
or, the state sequence number is equal to the current reference state sequence number, the sequence number is not greater than the current reference sequence number, and the recording time of the effective information timer is greater than a preset value;
or the state serial number is smaller than the current reference state serial number, the state serial number and the sequence serial number are both 1, and the recording time of the restart timer is larger than the preset value;
or, the state sequence number is smaller than the current reference state sequence number, a non-1 value exists between the state sequence number and the sequence number, and the recording time of the effective information timer is greater than the preset value.
3. The GOOSE dual-network communication data processing method according to claim 2, wherein said process of clearing said validity information timer and/or said restart timer accordingly comprises:
when the state serial number is smaller than the current reference state serial number, the state serial number and the sequence serial number are both 1, and the recording time of the restart timer is larger than the preset value, resetting the restart timer;
otherwise, the effective information timer is cleared.
4. The GOOSE dual-network communication data processing method according to claim 2, wherein before receiving the packet data of any current information port, the method further comprises:
initializing the reference state sequence number and the reference sequence number to 0 in the sequence number RAM.
5. The GOOSE dual-network communication data processing method according to claim 1, wherein before reading the state sequence number and the sequence number of the packet data, the method further comprises:
decoding the message data to obtain device information data and effective opening data of the message data, wherein the device information data comprises a GOCB parameter, the state sequence number and the sequence number;
and judging whether the message data is a subscription message or not according to the GOCB parameters, if so, acquiring a GOCB group number corresponding to the message data, and performing subsequent steps.
6. The GOOSE dual-network communication data processing method according to any of claims 1 to 5, wherein the process of receiving the message data of any current information port comprises:
and judging whether the message data received by any one of the information ports meets the format matching requirement or not, and if so, receiving the message data.
7. The GOOSE dual-network communication data processing device is characterized by comprising two information ports, a processor, a data RAM and a sequence number RAM, wherein the processor is used for:
receiving message data of any current information port;
reading the state sequence number and the sequence number of the message data;
comparing the state serial number with a reference state serial number, the sequence serial number with a reference sequence serial number, the recording time and a preset value of a restart timer, and the recording time and the preset value of an effective information timer, and judging whether data needs to be updated according to a comparison result;
if so, updating the effective input data in the message data to the data RAM;
and updating the state sequence number and the sequence number to the sequence number RAM as the reference state sequence number and the reference sequence number respectively, and clearing the effective information timer and/or the restart timer correspondingly.
8. The GOOSE dual-network communication data processing apparatus according to claim 7, wherein said processor is specifically FPGA.
9. The GOOSE dual-network communication data processing apparatus as claimed in claim 8, wherein said processor comprises a MAC soft core module, said MAC soft core module is configured to:
and judging whether the message data received by any one of the information ports meets the format matching requirement or not, and if so, receiving the message data.
10. The GOOSE dual-network communication data processing apparatus as claimed in claim 8, wherein said processor comprises a GOOSE decoding module, said GOOSE decoding module is configured to:
decoding the message data to obtain device information data and effective opening data of the message data, wherein the device information data comprises a GOCB parameter, the state sequence number and the sequence number;
and judging whether the message data is a subscription message or not according to the GOCB parameters, if so, enabling the processor to acquire a GOCB group number corresponding to the message data, and executing the step of receiving the message data of any current information port.
CN202110743828.6A 2021-07-01 2021-07-01 GOOSE dual-network communication data processing method and device Active CN113259491B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110743828.6A CN113259491B (en) 2021-07-01 2021-07-01 GOOSE dual-network communication data processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110743828.6A CN113259491B (en) 2021-07-01 2021-07-01 GOOSE dual-network communication data processing method and device

Publications (2)

Publication Number Publication Date
CN113259491A true CN113259491A (en) 2021-08-13
CN113259491B CN113259491B (en) 2021-11-02

Family

ID=77190374

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110743828.6A Active CN113259491B (en) 2021-07-01 2021-07-01 GOOSE dual-network communication data processing method and device

Country Status (1)

Country Link
CN (1) CN113259491B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115580557A (en) * 2022-09-22 2023-01-06 国家电网有限公司 GOOSE abnormal message detection method based on counting sequence analysis

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101409463A (en) * 2008-12-02 2009-04-15 江西省电力科学研究院 Protection and video system gang control method for electric power system digitalization transforming plant
CN101521406A (en) * 2008-02-26 2009-09-02 浙江省电力试验研究院 GOOSE dual-net redundant communication signal transmission method
US20120173958A1 (en) * 2009-06-03 2012-07-05 Abb Technology Ltd Method and system for publishing data from intelligent electronic devices
WO2015024497A1 (en) * 2013-08-19 2015-02-26 国家电网公司 Intelligent substation network sampling and control link self-diagnosis method
CN109698734A (en) * 2019-01-30 2019-04-30 南方电网科学研究院有限责任公司 Abnormality judgment method based on the bis- net reception mechanisms of GOOSE
CN113037740A (en) * 2021-03-04 2021-06-25 南京国电南自电网自动化有限公司 GOOSE message sender restart frame judging method

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101521406A (en) * 2008-02-26 2009-09-02 浙江省电力试验研究院 GOOSE dual-net redundant communication signal transmission method
CN101409463A (en) * 2008-12-02 2009-04-15 江西省电力科学研究院 Protection and video system gang control method for electric power system digitalization transforming plant
US20120173958A1 (en) * 2009-06-03 2012-07-05 Abb Technology Ltd Method and system for publishing data from intelligent electronic devices
WO2015024497A1 (en) * 2013-08-19 2015-02-26 国家电网公司 Intelligent substation network sampling and control link self-diagnosis method
CN109698734A (en) * 2019-01-30 2019-04-30 南方电网科学研究院有限责任公司 Abnormality judgment method based on the bis- net reception mechanisms of GOOSE
CN113037740A (en) * 2021-03-04 2021-06-25 南京国电南自电网自动化有限公司 GOOSE message sender restart frame judging method

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
BRYAN_NJ: "GOOSE报文分析_详解GOOSE服务", 《HTTPS://BLOG.CSDN.NET/LEIXJ025/ARTICLE/DETAILS/107077716/》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115580557A (en) * 2022-09-22 2023-01-06 国家电网有限公司 GOOSE abnormal message detection method based on counting sequence analysis

Also Published As

Publication number Publication date
CN113259491B (en) 2021-11-02

Similar Documents

Publication Publication Date Title
US7944815B2 (en) System and method for network recovery from multiple link failures
CN113259491B (en) GOOSE dual-network communication data processing method and device
CN103181128A (en) Network system and method for controlling communication traffic
CN109889411B (en) Data transmission method and device
EP1487232B1 (en) Intelligent fault recovery in a line card with control plane and data plane separation
EP3316520B1 (en) Bfd method and apparatus
CN111901356A (en) Intelligent substation process layer network storm suppression method and device and electronic equipment
CN104038383A (en) Switch based process level network message analysis method
CN110601945A (en) Dual-redundancy CAN bus communication system and communication method
CN111565133B (en) Private line switching method and device, electronic equipment and computer readable storage medium
CN105553762A (en) Communication method and communication system between domestic appliance and mobile terminal and corresponding devices
CN115882996A (en) Clock synchronization method, apparatus and medium
CN115460635A (en) Fault detection method, device, equipment and computer storage medium
US10069721B2 (en) Communication device and method applicable to stacking communication system
Mocanu et al. Experimental study of performance and vulnerabilities of IEC 61850 process bus communications on HSR networks
CN112134856B (en) Application program disabling method, system, server and storage medium
WO2017118428A1 (en) Method and apparatus for realizing message error detection
Cisco show rmsautostate through show timezone
Cisco show rmsautostate through show timezone
JP2002324014A (en) Monitor and control system
CN111447218A (en) TCP port scanning detection method
CN112019459A (en) Message processing method and system based on dynamic online and offline of equipment in stacking system
CN110729706A (en) Fault isolation method and system for distributed feeder automation power distribution terminal
WO2017118430A1 (en) Method and device for packet error detection
CN113259452B (en) Storm control implementation method, device, equipment and readable 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