CN114070546A - Synchronous uploading method and system for IEC61850 protocol device and dual-network shutdown communication state - Google Patents

Synchronous uploading method and system for IEC61850 protocol device and dual-network shutdown communication state Download PDF

Info

Publication number
CN114070546A
CN114070546A CN202111317961.1A CN202111317961A CN114070546A CN 114070546 A CN114070546 A CN 114070546A CN 202111317961 A CN202111317961 A CN 202111317961A CN 114070546 A CN114070546 A CN 114070546A
Authority
CN
China
Prior art keywords
communication state
gateway
gateway machine
machine
change information
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
CN202111317961.1A
Other languages
Chinese (zh)
Other versions
CN114070546B (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.)
Xuchang XJ Software Technology Co Ltd
Original Assignee
Xuchang XJ Software 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 Xuchang XJ Software Technology Co Ltd filed Critical Xuchang XJ Software Technology Co Ltd
Priority to CN202111317961.1A priority Critical patent/CN114070546B/en
Publication of CN114070546A publication Critical patent/CN114070546A/en
Application granted granted Critical
Publication of CN114070546B publication Critical patent/CN114070546B/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
    • H04L7/00Arrangements for synchronising receiver with transmitter
    • H04L7/0008Synchronisation information channels, e.g. clock distribution lines
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J13/00Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network
    • H02J13/00006Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network characterised by information or instructions transport means between the monitoring, controlling or managing units and monitored, controlled or operated power network element or electrical equipment
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J13/00Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network
    • H02J13/00006Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network characterised by information or instructions transport means between the monitoring, controlling or managing units and monitored, controlled or operated power network element or electrical equipment
    • H02J13/00028Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network characterised by information or instructions transport means between the monitoring, controlling or managing units and monitored, controlled or operated power network element or electrical equipment involving the use of Internet protocols
    • HELECTRICITY
    • H02GENERATION; CONVERSION OR DISTRIBUTION OF ELECTRIC POWER
    • H02JCIRCUIT ARRANGEMENTS OR SYSTEMS FOR SUPPLYING OR DISTRIBUTING ELECTRIC POWER; SYSTEMS FOR STORING ELECTRIC ENERGY
    • H02J13/00Circuit arrangements for providing remote indication of network conditions, e.g. an instantaneous record of the open or closed condition of each circuitbreaker in the network; Circuit arrangements for providing remote control of switching means in a power distribution network, e.g. switching in and out of current consumers by using a pulse code signal carried by the network
    • H02J13/00032Systems characterised by the controlled or operated power network elements or equipment, the power network elements or equipment not otherwise provided for
    • H02J13/00034Systems characterised by the controlled or operated power network elements or equipment, the power network elements or equipment not otherwise provided for the elements or equipment being or involving an electric power substation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/66Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • 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/26Special purpose or proprietary protocols or architectures
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02EREDUCTION OF GREENHOUSE GAS [GHG] EMISSIONS, RELATED TO ENERGY GENERATION, TRANSMISSION OR DISTRIBUTION
    • Y02E60/00Enabling technologies; Technologies with a potential or indirect contribution to GHG emissions mitigation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y04INFORMATION OR COMMUNICATION TECHNOLOGIES HAVING AN IMPACT ON OTHER TECHNOLOGY AREAS
    • Y04SSYSTEMS INTEGRATING TECHNOLOGIES RELATED TO POWER NETWORK OPERATION, COMMUNICATION OR INFORMATION TECHNOLOGIES FOR IMPROVING THE ELECTRICAL POWER GENERATION, TRANSMISSION, DISTRIBUTION, MANAGEMENT OR USAGE, i.e. SMART GRIDS
    • Y04S10/00Systems supporting electrical power generation, transmission or distribution
    • Y04S10/16Electric power substations

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Power Engineering (AREA)
  • Environmental & Geological Engineering (AREA)
  • Computing Systems (AREA)
  • Computer Security & Cryptography (AREA)
  • Communication Control (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

According to the method and the system, a network shutdown sends a communication state signal synchronization request to a machine-to-machine according to the communication state change of the network shutdown and a downlink IEC61850 protocol device, communication state change information is added into a message queue, the two machines all start an overtime mechanism, and send communication condition change information to a dispatching master station together with the machine-to-machine according to reply communication state signal synchronization request information returned by the machine-to-machine, and the reporting time difference meets the requirement of being less than 3 seconds, so that the normal work of a transformer substation is ensured.

Description

Synchronous uploading method and system for IEC61850 protocol device and dual-network shutdown communication state
Technical Field
The invention relates to the technical field of power system automation, in particular to a synchronous uploading method and system for an IEC61850 protocol device and a dual-network shutdown communication state.
Background
With the popularization and application of the IEC61850 communication rule in conventional substations and intelligent substations, the IEC61850 communication rule is independent of an abstract communication service interface, an independent server model, a logic equipment model, a logic node model, a data model and a data set model of an adopted network and an application layer protocol, communication compatibility is greatly expanded, and communication of products of different manufacturers is enabled to be convenient and fast.
At present, when a device meeting an IEC61850 protocol (abbreviated as an IEC61850 protocol device) is downlinked and accessed by a network shutdown machine, a KeepAlive mechanism can ensure that working condition change information is communicated to a scheduling master station in time between the network shutdown machine and the IEC61850 device.
Because the gateway machine needs to access devices of IEC61850 protocols of different manufacturers, differences of understanding of the protocols by different manufacturers and differences of implementation modes lead to differences of device performances. When the dual-network shutdown is communicated with the device of the IEC61850 protocol, the triggering time of the KeepAlive mechanism of the dual-network shutdown possibly differs, so that the communication working condition change information sent by the dual-network shutdown cannot be synchronized, and when the time difference reported by the dual-network shutdown is greater than 3 seconds, the scheduling master station generates false alarm to influence the normal work of the transformer substation.
Disclosure of Invention
Objects of the invention
The invention aims to provide a method and a system for synchronously uploading the IEC61850 protocol device and the dual-network shutdown communication state, the method can ensure that the transformer substation normally works, and the synchronous reporting time difference meets the requirement of less than 3 seconds.
(II) technical scheme
In order to solve the above problems, a first aspect of the present invention provides a method for synchronously uploading an IEC61850 protocol device and a dual-gateway machine communication state, where the dual-gateway machine is composed of a gateway machine a and a gateway machine B that are configured identically, and the method includes:
the gateway machine A acquires a communication state signal of the downlink IEC61850 protocol device, and judges whether the communication state of the downlink IEC61850 protocol device changes or not according to the acquired communication state signal;
if yes, sending communication state signal synchronization request information to the gateway machine B, adding corresponding communication state change information into a message queue of the gateway machine A, and starting a timeout mechanism;
after receiving the communication state signal synchronization request information, the gateway machine B judges whether communication state change information matched with the received communication state signal synchronization request information exists in a message queue of the gateway machine B;
if not, the gateway B writes the communication state change information corresponding to the received communication state signal synchronization request information into a message queue of the gateway B and starts a timeout mechanism;
if the gateway machine B determines that the communication state of the gateway machine B changes with the corresponding downlink IEC61850 protocol device within the overtime of the gateway machine B, sending reply communication state signal synchronization request information to the gateway machine A, sending communication condition change information to a scheduling master station, and deleting the communication state change information corresponding to the communication state signal synchronization request information in a message queue of the gateway machine B;
and after the gateway machine A receives the synchronous request information of the reply communication state signal within the overtime of the gateway machine A, deleting the corresponding communication state change information in the message queue of the gateway machine A, and simultaneously sending the communication working condition change information to the scheduling master station.
Further, the synchronous uploading method further includes:
if the gateway machine B judges that communication state change information matched with the received communication state signal synchronization request information exists in the message queue of the gateway machine B after receiving the communication state signal synchronization request information, the gateway machine B sends communication condition change information to a scheduling master station after the message is overtime and deletes the corresponding communication state change information in the message queue of the gateway machine B;
and when the network switch machine A does not receive the synchronous request information of the reply communication state signal sent by the network switch machine B before the message is overtime, sending communication condition change information to the scheduling master station after the message is overtime, and deleting the corresponding communication state change information in the message queue of the network switch machine A.
Further, the synchronous uploading method further comprises:
if the communication state of the gateway machine B and the corresponding downlink IEC61850 protocol device does not change within the overtime of the gateway machine B, deleting the corresponding communication state change information in the message queue of the gateway machine B;
and the gateway A sends communication working condition change information to the scheduling master station after overtime, and simultaneously deletes the corresponding communication state change information in the queue of the gateway A.
Specifically, the gateway machine a and the gateway machine B establish connection in a TCP communication manner to send the communication state signal synchronization request information and/or reply the communication state signal synchronization request information.
Specifically, the communication state signal synchronization request information includes an IEC61850 protocol device identifier, a gateway device identifier, time, and a communication state, and after receiving the communication state signal synchronization request information, the gateway device B determines whether communication state change information matching the received communication state signal synchronization request information exists in a message queue of the gateway device B, including:
after receiving the communication state signal synchronization request information, the gateway machine B judges whether communication state change information which is consistent with the IEC61850 protocol device identifier contained in the communication state signal synchronization request information and is inconsistent with the gateway machine identifier exists in a message queue of the gateway machine B;
if not, the gateway machine B determines that the communication state change information matched with the received communication state signal synchronization request information does not exist in the message queue of the gateway machine B;
if so, continuously judging whether the time difference of the two pieces of communication state change information is within a preset range;
if yes, the gateway machine B determines that communication state change information matched with the received communication state signal synchronization request information exists in a message queue of the gateway machine B;
if not, the gateway machine B determines that the communication state change information matched with the received communication state signal synchronization request information does not exist in the message queue of the gateway machine B.
In a second aspect of the present application, a system is provided for sending IEC61850 protocol devices and a dual-network-shutdown communication state in synchronization, including a plurality of IEC61850 protocol devices and a network-shutdown machine a and a network-shutdown machine B with the same configuration, in which:
the gateway machine A is used for acquiring a communication state signal of the downlink IEC61850 protocol device and judging whether the communication state of the downlink IEC61850 protocol device changes or not according to the acquired communication state signal; if yes, sending communication state signal synchronization request information to the gateway machine B, adding corresponding communication state change information into a message queue of the gateway machine A, and starting a timeout mechanism;
the gateway B is used for judging whether communication state change information matched with the received communication state signal synchronization request information exists in a message queue of the gateway B after receiving the communication state signal synchronization request information; if not, the gateway B writes the communication state change information corresponding to the received communication state signal synchronization request information into a message queue of the gateway B and starts a timeout mechanism; if the gateway machine B determines that the communication state of the gateway machine B changes with the corresponding downlink IEC61850 protocol device within the overtime of the gateway machine B, sending reply communication state signal synchronization request information to the gateway machine A, sending communication condition change information to a scheduling master station, and deleting the communication state change information corresponding to the communication state signal synchronization request information in a message queue of the gateway machine B;
and the gateway machine A is also used for deleting the corresponding communication state change information in the message queue of the gateway machine A after receiving the synchronous request information of the reply communication state signal, and simultaneously sending the communication working condition change information to the scheduling master station.
Further, the gateway machine B is further configured to:
if the gateway machine B judges that communication state change information matched with the received communication state signal synchronization request information exists in the message queue of the gateway machine B after receiving the communication state signal synchronization request information, the gateway machine B sends communication condition change information to a scheduling master station after the message is overtime and deletes the corresponding communication state change information in the message queue of the gateway machine B;
the gateway machine a is further configured to: and when the synchronous request information of the reply communication state signal sent by the gateway B is not received before the message is overtime, sending communication condition change information to the scheduling master station after the message is overtime, and deleting the corresponding communication state change information in the message queue of the scheduling master station.
Further, the gateway machine B is further configured to:
if the communication state of the gateway machine B and the corresponding downlink IEC61850 protocol device does not change within the overtime of the gateway machine B, deleting the corresponding communication state change information in the message queue of the gateway machine B;
and the gateway machine A is also used for sending communication working condition change information to the scheduling master station after overtime and deleting the corresponding communication state change information in the queue of the gateway machine A.
Specifically, the gateway machine a and the gateway machine B establish connection in a TCP communication manner to send the communication state signal synchronization request information and/or reply the communication state signal synchronization request information.
Further, the communication state signal synchronization request information includes an IEC61850 protocol device identifier, a gateway machine identifier, time, and a communication state, and the gateway machine B is configured to:
after receiving the communication state signal synchronization request information, judging whether communication state change information which is consistent with the IEC61850 protocol device identifier contained in the communication state signal synchronization request information and is inconsistent with the gateway identifier exists in a message queue of the gateway machine B;
if not, the gateway machine B determines that the communication state change information matched with the received communication state signal synchronization request information does not exist in the message queue of the gateway machine B;
if so, continuously judging whether the time difference of the two pieces of communication state change information is within a preset range;
if yes, the gateway machine B determines that communication state change information matched with the received communication state signal synchronization request information exists in a message queue of the gateway machine B;
if not, the gateway machine B determines that the communication state change information matched with the received communication state signal synchronization request information does not exist in the message queue of the gateway machine B.
(III) advantageous effects
The technical scheme of the invention has the following beneficial technical effects:
according to the synchronous uploading method and system of the IEC61850 protocol device and the double-gateway communication state, the network gateway sends a communication state signal synchronization request to the opposite machine according to the communication state change of the network gateway and the downlink IEC61850 protocol device, the communication state change information is added into a message queue, the double machines start a timeout mechanism at the same time, the double machines send communication working condition change information to the dispatching master station together with the opposite machine according to the reply communication state signal synchronization request information returned by the opposite machine, the reporting time difference meets the requirement of being less than 3 seconds, and the normal work of a transformer substation is ensured.
Drawings
Fig. 1 is a flowchart of a synchronous uploading method of an IEC61850 protocol device and a dual-network shutdown communication state provided by an embodiment of the present invention;
fig. 2 is a schematic diagram of a synchronous uploading system of an IEC61850 protocol device and a dual-network shutdown communication state provided by an embodiment of the present invention;
fig. 3 is a flowchart of a method for synchronously uploading a communication state between an IEC61850 protocol device and a dual-network shutdown device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail with reference to the accompanying drawings in conjunction with the following detailed description. It should be understood that the description is intended to be exemplary only, and is not intended to limit the scope of the present invention. Moreover, in the following description, descriptions of well-known structures and techniques are omitted so as to not unnecessarily obscure the concepts of the present invention.
Referring to fig. 1, an embodiment of the present invention provides a method for synchronously uploading an IEC61850 protocol device and a dual-network-shutdown communication state, where, as shown in fig. 2, the dual-network-shutdown device is composed of a network shutdown device a and a network shutdown device B that are configured identically, and the network shutdown device a and the network shutdown device B are respectively connected to the IEC61850 protocol device through a station control layer network in a downlink manner, where the method includes:
step 101: the gateway machine A acquires a communication state signal of the downlink IEC61850 protocol device, and judges whether the communication state of the downlink IEC61850 protocol device changes or not according to the acquired communication state signal;
step 102: if yes, sending communication state signal synchronization request information to the gateway machine B, adding corresponding communication state change information into a message queue of the gateway machine A, and starting a timeout mechanism;
step 103: after receiving the communication state signal synchronization request information, the gateway machine B judges whether communication state change information matched with the received communication state signal synchronization request information exists in a message queue of the gateway machine B;
step 104: if not, the gateway B writes the communication state change information corresponding to the received communication state signal synchronization request information into a message queue of the gateway B and starts a timeout mechanism;
step 105: if the gateway machine B determines that the communication state of the gateway machine B changes with the corresponding downlink IEC61850 protocol device within the overtime of the gateway machine B, sending reply communication state signal synchronization request information to the gateway machine A, sending communication condition change information to a scheduling master station, and deleting the communication state change information corresponding to the communication state signal synchronization request information in a message queue of the gateway machine B;
step 106: and after the gateway machine A receives the synchronous request information of the reply communication state signal within the overtime of the gateway machine A, deleting the corresponding communication state change information in the message queue of the gateway machine A, and simultaneously sending the communication working condition change information to the scheduling master station.
Specifically, in the embodiment of the present invention, the in-station IEC61850 device to which the network shutdown device is accessed triggers a communication interruption/recovery state signal according to a TCP communication working condition, and belongs to a signal generated by the network shutdown device according to its own operating condition. When the communication of the IEC61850 device is recovered/interrupted, the uploading scheduling master station monitors the downlink communication working condition of the gateway machine corresponding to the displacement of the communication state signal. The gateway machine A and the gateway machine B can establish connection through a TCP or UDP communication mode, and send communication state signal synchronization request information and/or reply communication state signal synchronization request information.
According to the synchronous uploading method and system of the IEC61850 protocol device and the double-gateway communication state, the network gateway sends the synchronous request of the communication state signals to the opposite machine according to the communication state change of the network gateway and the downlink IEC61850 protocol device, the communication state change information is added into the message queue, the double machines all start the timeout mechanism, the synchronous request information of the reply communication state signals returned by the opposite machine and the opposite machine send the communication working condition change information to the dispatching master station together, the reporting time difference meets the requirement of being less than 3S, and the normal work of a transformer substation is ensured.
Further, the synchronous uploading method further includes:
if the gateway machine B judges that communication state change information matched with the received communication state signal synchronization request information exists in the message queue of the gateway machine B after receiving the communication state signal synchronization request information, the gateway machine B sends communication condition change information to a scheduling master station after the message is overtime and deletes the corresponding communication state change information in the message queue of the gateway machine B;
and when the network switch machine A does not receive the synchronous request information of the reply communication state signal sent by the network switch machine B before the message is overtime, sending communication condition change information to the scheduling master station after the message is overtime, and deleting the corresponding communication state change information in the message queue of the network switch machine A.
Specifically, in this embodiment, the communication state change information matched in the gateway machine a and the gateway machine B refers to communication state change information of the gateway machine a and the gateway machine B respectively for the same IEC61850 protocol device.
When the communication state change information of the network device A and the communication state change information of the network device B and the communication state change information of the same device exist in the respective message queues of the network device A and the network device B at the same time, the two machines judge the communication state change of the device at the same time, the communication working condition change information does not need to be uploaded according to the synchronous request information of the machine reply communication state signal, and the two machines can meet the time difference within 3S only by respectively reporting the communication working condition change information after overtime.
Further, the synchronous uploading method further comprises:
if the communication state of the gateway machine B and the corresponding downlink IEC61850 protocol device does not change within the overtime of the gateway machine B, deleting the corresponding communication state change information in the message queue of the gateway machine B;
and the gateway A sends communication working condition change information to the scheduling master station after overtime, and simultaneously deletes the corresponding communication state change information in the queue of the gateway A.
Specifically, the gateway machine a and the gateway machine B establish connection in a TCP communication manner to send the communication state signal synchronization request information and/or reply the communication state signal synchronization request information.
Specifically, the communication state signal synchronization request information includes an IEC61850 protocol device identifier, a gateway device identifier, time, and a communication state, and after receiving the communication state signal synchronization request information, the gateway device B determines whether communication state change information matching the received communication state signal synchronization request information exists in a message queue of the gateway device B, including:
after receiving the communication state signal synchronization request information, the gateway machine B judges whether communication state change information which is consistent with the IEC61850 protocol device identifier contained in the communication state signal synchronization request information and is inconsistent with the gateway machine identifier exists in a message queue of the gateway machine B;
if not, the gateway machine B determines that the communication state change information matched with the received communication state signal synchronization request information does not exist in the message queue of the gateway machine B;
if so, continuously judging whether the time difference of the two pieces of communication state change information is within a preset range;
if yes, the gateway machine B determines that communication state change information matched with the received communication state signal synchronization request information exists in a message queue of the gateway machine B;
if not, the gateway machine B determines that the communication state change information matched with the received communication state signal synchronization request information does not exist in the message queue of the gateway machine B.
The embodiment of the invention also provides a synchronous uploading system of the IEC61850 protocol devices and the double-network shutdown communication state, which comprises a plurality of IEC61850 protocol devices, and a network shutdown machine A and a network shutdown machine B which are configured identically, wherein:
the gateway machine A is used for acquiring a communication state signal of the downlink IEC61850 protocol device and judging whether the communication state of the downlink IEC61850 protocol device changes or not according to the acquired communication state signal; if yes, sending communication state signal synchronization request information to the gateway machine B, adding corresponding communication state change information into a message queue of the gateway machine A, and starting a timeout mechanism;
the gateway B is used for judging whether communication state change information matched with the received communication state signal synchronization request information exists in a message queue of the gateway B after receiving the communication state signal synchronization request information; if not, the gateway B writes the communication state change information corresponding to the received communication state signal synchronization request information into a message queue of the gateway B and starts a timeout mechanism; if the gateway machine B determines that the communication state of the gateway machine B changes with the corresponding downlink IEC61850 protocol device within the overtime of the gateway machine B, sending reply communication state signal synchronization request information to the gateway machine A, sending communication condition change information to a scheduling master station, and deleting the communication state change information corresponding to the communication state signal synchronization request information in a message queue of the gateway machine B;
and the gateway machine A is also used for deleting the corresponding communication state change information in the message queue of the gateway machine A after receiving the synchronous request information of the reply communication state signal, and simultaneously sending the communication working condition change information to the scheduling master station.
Further, the gateway machine B is further configured to:
if the gateway machine B judges that communication state change information matched with the received communication state signal synchronization request information exists in the message queue of the gateway machine B after receiving the communication state signal synchronization request information, the gateway machine B sends communication condition change information to a scheduling master station after the message is overtime and deletes the corresponding communication state change information in the message queue of the gateway machine B;
the gateway machine a is further configured to: and when the synchronous request information of the reply communication state signal sent by the gateway B is not received before the message is overtime, sending communication condition change information to the scheduling master station after the message is overtime, and deleting the corresponding communication state change information in the message queue of the scheduling master station.
Further, the gateway machine B is further configured to:
if the communication state of the gateway machine B and the corresponding downlink IEC61850 protocol device does not change within the overtime of the gateway machine B, deleting the corresponding communication state change information in the message queue of the gateway machine B;
and the gateway machine A is also used for sending communication working condition change information to the scheduling master station after overtime and deleting the corresponding communication state change information in the queue of the gateway machine A.
Specifically, the gateway machine a and the gateway machine B establish connection in a TCP communication manner to send the communication state signal synchronization request information and/or reply the communication state signal synchronization request information.
Further, the communication state signal synchronization request information includes an IEC61850 protocol device identifier, a gateway machine identifier, time, and a communication state, and the gateway machine B is configured to:
after receiving the communication state signal synchronization request information, judging whether communication state change information which is consistent with the IEC61850 protocol device identifier contained in the communication state signal synchronization request information and is inconsistent with the gateway identifier exists in a message queue of the gateway machine B;
if not, the gateway machine B determines that the communication state change information matched with the received communication state signal synchronization request information does not exist in the message queue of the gateway machine B;
if so, continuously judging whether the time difference of the two pieces of communication state change information is within a preset range;
if yes, the gateway machine B determines that communication state change information matched with the received communication state signal synchronization request information exists in a message queue of the gateway machine B;
if not, the gateway machine B determines that the communication state change information matched with the received communication state signal synchronization request information does not exist in the message queue of the gateway machine B.
The system embodiments and the method embodiments of the present invention correspond to one another, and specific descriptions and effects are referred to the method embodiments and are not repeated herein.
The following is a specific embodiment of the present invention:
this embodiment provides a synchronous uploading system of IEC61850 protocol device (device for short) and dual-gateway machine communication state, as shown in fig. 1, a gateway machine a and a gateway machine B respectively access device X and device X1 … … Xn through station level network downlink.
The method for synchronously uploading the communication state between the device and the dual-network shutdown in the system specifically comprises the following steps:
1. the specific communication mode of the dual computers (the gateway A and the gateway B) is as follows:
the dual machines adopt a TCP communication mode to exchange information, and communication messages define a message head + data area, wherein:
the message header is defined as 0xBB +0x18+0 xBB;
the data area is defined as the following structure (corresponding to a 64 byte data stream after formatting):
Figure BDA0003344421710000101
Figure BDA0003344421710000111
the message queues of the network shutdown machine a and the network shutdown machine B are defined as follows:
Figure BDA0003344421710000112
2. as shown in fig. 3, the device and dual-network shutdown communication state synchronous uploading method includes:
(1) initializing a network when a dual-network shutdown (the dual-network configuration is the same) is started, and sending a heartbeat message to a peer;
(2) when the communication of the device X accessed by the gateway machine A is interrupted, the gateway machine A sends communication state signal synchronization request information (namely a communication change message) to the gateway machine B, and simultaneously stores the device X communication interruption signal in a message queue of the gateway machine A and starts a timeout mechanism;
(3) when the gateway machine B receives the communication state signal synchronization request information sent by the gateway machine A, the gateway machine B judges whether a device X communication interrupt signal corresponding to the gateway machine B exists in a message queue of the gateway machine B or not, if so, the communication interrupt signal is discarded, and the communication condition change information is reported to a scheduling master station after the timeout;
(4) if not, the network shutdown machine B writes the X communication interrupt signal of the device into a message queue of the network shutdown machine B and starts a timeout mechanism; the gateway machine B judges whether the device X triggers communication interruption within the overtime time of the gateway machine B, if not, discards the device X communication interruption signal written into the queue in the step (3), and if so, sends a synchronous request message for replying a communication state signal to the gateway machine A, sends the device X communication working condition change message to a scheduling master station, and deletes the device X communication interruption signal in the message queue of the gateway machine B;
(5) the network shutdown machine A judges whether a network shutdown machine reply is received within overtime, if so, the network shutdown machine (B) triggers an uploading signal, deletes a device X communication interruption signal in a message queue of the network shutdown machine A, and simultaneously sends device X communication working condition change information to a scheduling master station; if not, triggering overtime uploading signals after overtime, deleting the device X communication interrupt signals of the message queue of the gateway machine A, and simultaneously sending device X communication working condition change information to the scheduling master station.
The A-network machine and the B-network machine exchange messages through TCP, the time is less than 10 milliseconds, and the time difference of sending communication state information by the two machines is ensured to be less than 3 seconds.
It is to be understood that the above-described embodiments of the present invention are merely illustrative of or explaining the principles of the invention and are not to be construed as limiting the invention. Therefore, any modification, equivalent replacement, improvement and the like made without departing from the spirit and scope of the present invention should be included in the protection scope of the present invention. Further, it is intended that the appended claims cover all such variations and modifications as fall within the scope and boundaries of the appended claims or the equivalents of such scope and boundaries.

Claims (10)

1. An IEC61850 protocol device and a synchronous uploading method of communication states of a dual-network-shutdown machine are characterized in that the dual-network-shutdown machine is composed of a network-shutdown machine A and a network-shutdown machine B which are configured identically, and the method comprises the following steps:
the gateway machine A acquires a communication state signal of the downlink IEC61850 protocol device, and judges whether the communication state of the downlink IEC61850 protocol device changes or not according to the acquired communication state signal;
if yes, sending communication state signal synchronization request information to the gateway machine B, adding corresponding communication state change information into a message queue of the gateway machine A, and starting a timeout mechanism;
after receiving the communication state signal synchronization request information, the gateway machine B judges whether communication state change information matched with the received communication state signal synchronization request information exists in a message queue of the gateway machine B;
if not, the gateway B writes the communication state change information corresponding to the received communication state signal synchronization request information into a message queue of the gateway B and starts a timeout mechanism;
if the gateway machine B determines that the communication state of the gateway machine B changes with the corresponding downlink IEC61850 protocol device within the overtime of the gateway machine B, sending reply communication state signal synchronization request information to the gateway machine A, sending communication condition change information to a scheduling master station, and deleting the communication state change information corresponding to the communication state signal synchronization request information in a message queue of the gateway machine B;
and after the gateway machine A receives the synchronous request information of the reply communication state signal within the overtime of the gateway machine A, deleting the corresponding communication state change information in the message queue of the gateway machine A, and simultaneously sending the communication working condition change information to the scheduling master station.
2. The synchronous upload method of claim 1, further comprising:
if the gateway machine B judges that communication state change information matched with the received communication state signal synchronization request information exists in the message queue of the gateway machine B after receiving the communication state signal synchronization request information, the gateway machine B sends communication condition change information to a scheduling master station after the message is overtime and deletes the corresponding communication state change information in the message queue of the gateway machine B;
and when the network switch machine A does not receive the synchronous request information of the reply communication state signal sent by the network switch machine B before the message is overtime, sending communication condition change information to the scheduling master station after the message is overtime, and deleting the corresponding communication state change information in the message queue of the network switch machine A.
3. The synchronous upload method of claim 1, further comprising:
if the communication state of the gateway machine B and the corresponding downlink IEC61850 protocol device does not change within the overtime of the gateway machine B, deleting the corresponding communication state change information in the message queue of the gateway machine B;
and the gateway A sends communication working condition change information to the scheduling master station after overtime, and simultaneously deletes the corresponding communication state change information in the queue of the gateway A.
4. The synchronous uploading method according to claim 1, wherein the gateway machine a and the gateway machine B establish a connection by TCP communication to send the communication status signal synchronization request information and/or reply the communication status signal synchronization request information.
5. The synchronous uploading method according to claim 1, wherein the communication status signal synchronization request information includes an IEC61850 protocol device identifier, a gateway device identifier, time, and a communication status, and the gateway device B determines whether or not there is communication status change information matching the received communication status signal synchronization request information in a message queue of the gateway device B after receiving the communication status signal synchronization request information, and includes:
after receiving the communication state signal synchronization request information, the gateway machine B judges whether communication state change information which is consistent with the IEC61850 protocol device identifier contained in the communication state signal synchronization request information and is inconsistent with the gateway machine identifier exists in a message queue of the gateway machine B;
if not, the gateway machine B determines that the communication state change information matched with the received communication state signal synchronization request information does not exist in the message queue of the gateway machine B;
if so, continuously judging whether the time difference of the two pieces of communication state change information is within a preset range;
if yes, the gateway machine B determines that communication state change information matched with the received communication state signal synchronization request information exists in a message queue of the gateway machine B;
if not, the gateway machine B determines that the communication state change information matched with the received communication state signal synchronization request information does not exist in the message queue of the gateway machine B.
6. The utility model provides a system is sent on to IEC61850 protocol device and double net shutdown machine communication state synchronization which characterized in that, includes a plurality of IEC61850 protocol devices and configures the same net shutdown machine A and net shutdown machine B, wherein:
the gateway machine A is used for acquiring a communication state signal of the downlink IEC61850 protocol device and judging whether the communication state of the downlink IEC61850 protocol device changes or not according to the acquired communication state signal; if yes, sending communication state signal synchronization request information to the gateway machine B, adding corresponding communication state change information into a message queue of the gateway machine A, and starting a timeout mechanism;
the gateway B is used for judging whether communication state change information matched with the received communication state signal synchronization request information exists in a message queue of the gateway B after receiving the communication state signal synchronization request information; if not, the gateway B writes the communication state change information corresponding to the received communication state signal synchronization request information into a message queue of the gateway B and starts a timeout mechanism; if the gateway machine B determines that the communication state of the gateway machine B changes with the corresponding downlink IEC61850 protocol device within the overtime of the gateway machine B, sending reply communication state signal synchronization request information to the gateway machine A, sending communication condition change information to a scheduling master station, and deleting the communication state change information corresponding to the communication state signal synchronization request information in a message queue of the gateway machine B;
and the gateway machine A is also used for deleting the corresponding communication state change information in the message queue of the gateway machine A after receiving the synchronous request information of the reply communication state signal, and simultaneously sending the communication working condition change information to the scheduling master station.
7. The synchronous upload system of claim 6, wherein the gateway machine B is further configured to:
if the gateway machine B judges that communication state change information matched with the received communication state signal synchronization request information exists in the message queue of the gateway machine B after receiving the communication state signal synchronization request information, the gateway machine B sends communication condition change information to a scheduling master station after the message is overtime and deletes the corresponding communication state change information in the message queue of the gateway machine B;
the gateway machine a is further configured to: and when the synchronous request information of the reply communication state signal sent by the gateway B is not received before the message is overtime, sending communication condition change information to the scheduling master station after the message is overtime, and deleting the corresponding communication state change information in the message queue of the scheduling master station.
8. The synchronous upload system of claim 6, wherein the gateway machine B is further configured to:
if the communication state of the gateway machine B and the corresponding downlink IEC61850 protocol device does not change within the overtime of the gateway machine B, deleting the corresponding communication state change information in the message queue of the gateway machine B;
and the gateway machine A is also used for sending communication working condition change information to the scheduling master station after overtime and deleting the corresponding communication state change information in the queue of the gateway machine A.
9. The synchronous uploading system according to claim 6, wherein the gateway machine A and the gateway machine B establish a connection by TCP communication to send the communication status signal synchronization request message and/or reply the communication status signal synchronization request message.
10. The synchronous uploading system according to claim 6, wherein the communication status signal synchronization request information includes an IEC61850 protocol device identifier, a gateway apparatus identifier, time, and a communication status, and the gateway apparatus B is configured to:
after receiving the communication state signal synchronization request information, judging whether communication state change information which is consistent with the IEC61850 protocol device identifier contained in the communication state signal synchronization request information and is inconsistent with the gateway identifier exists in a message queue of the gateway machine B;
if not, the gateway machine B determines that the communication state change information matched with the received communication state signal synchronization request information does not exist in the message queue of the gateway machine B;
if so, continuously judging whether the time difference of the two pieces of communication state change information is within a preset range;
if yes, the gateway machine B determines that communication state change information matched with the received communication state signal synchronization request information exists in a message queue of the gateway machine B;
if not, the gateway machine B determines that the communication state change information matched with the received communication state signal synchronization request information does not exist in the message queue of the gateway machine B.
CN202111317961.1A 2021-11-09 2021-11-09 Method and system for synchronously uploading communication states of IEC61850 protocol device and dual gateway machine Active CN114070546B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111317961.1A CN114070546B (en) 2021-11-09 2021-11-09 Method and system for synchronously uploading communication states of IEC61850 protocol device and dual gateway machine

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111317961.1A CN114070546B (en) 2021-11-09 2021-11-09 Method and system for synchronously uploading communication states of IEC61850 protocol device and dual gateway machine

Publications (2)

Publication Number Publication Date
CN114070546A true CN114070546A (en) 2022-02-18
CN114070546B CN114070546B (en) 2024-03-01

Family

ID=80274400

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111317961.1A Active CN114070546B (en) 2021-11-09 2021-11-09 Method and system for synchronously uploading communication states of IEC61850 protocol device and dual gateway machine

Country Status (1)

Country Link
CN (1) CN114070546B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1855900A (en) * 2005-04-26 2006-11-01 横河电机株式会社 Gateway system
JP2013110772A (en) * 2013-03-14 2013-06-06 Mitsubishi Electric Corp Substation device, master station device, communication channel switchover method, communication system and control device
CN105099777A (en) * 2015-07-23 2015-11-25 南京国电南自轨道交通工程有限公司 Method suitable for communication-gateway double-machine redundancy in rail transit power monitoring system
CN108111355A (en) * 2017-12-28 2018-06-01 山东鲁能智能技术有限公司 The method, apparatus and medium of data communication gateway machine and its synchrodata
CN109286538A (en) * 2018-10-29 2019-01-29 国网河北省电力有限公司电力科学研究院 Communication protocol conformance test method and terminal device
CN110636128A (en) * 2019-09-20 2019-12-31 苏州浪潮智能科技有限公司 Data synchronization method, system, electronic equipment and storage medium
CN111614579A (en) * 2020-05-14 2020-09-01 广东电网有限责任公司电力调度控制中心 Access method, access device and access system of edge device
CN111698052A (en) * 2020-06-12 2020-09-22 四川革什扎水电开发有限责任公司 Homologous time synchronization system crossing power safety zone
CN112887133A (en) * 2021-01-21 2021-06-01 杭州康吉森自动化科技有限公司 Redundancy switching method for industrial gateway, industrial gateway and storage medium

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1855900A (en) * 2005-04-26 2006-11-01 横河电机株式会社 Gateway system
JP2013110772A (en) * 2013-03-14 2013-06-06 Mitsubishi Electric Corp Substation device, master station device, communication channel switchover method, communication system and control device
CN105099777A (en) * 2015-07-23 2015-11-25 南京国电南自轨道交通工程有限公司 Method suitable for communication-gateway double-machine redundancy in rail transit power monitoring system
CN108111355A (en) * 2017-12-28 2018-06-01 山东鲁能智能技术有限公司 The method, apparatus and medium of data communication gateway machine and its synchrodata
CN109286538A (en) * 2018-10-29 2019-01-29 国网河北省电力有限公司电力科学研究院 Communication protocol conformance test method and terminal device
CN110636128A (en) * 2019-09-20 2019-12-31 苏州浪潮智能科技有限公司 Data synchronization method, system, electronic equipment and storage medium
CN111614579A (en) * 2020-05-14 2020-09-01 广东电网有限责任公司电力调度控制中心 Access method, access device and access system of edge device
CN111698052A (en) * 2020-06-12 2020-09-22 四川革什扎水电开发有限责任公司 Homologous time synchronization system crossing power safety zone
CN112887133A (en) * 2021-01-21 2021-06-01 杭州康吉森自动化科技有限公司 Redundancy switching method for industrial gateway, industrial gateway and storage medium

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
姚晔;许晓峰;张武洋;: "基于IEC61850的远动网关机与调度主站通信方法的研究", 东北电力技术, no. 07 *
方伟,慕宗君,杨红培,马国强,郑运召: "数据通信网关机的双机切换数据同步方法", 《计算机工程与设计》, vol. 36, no. 7, pages 1987 - 1991 *
林丹生;: "工业控制系统VPN网关的双机热备功能设计", 计算技术与自动化, no. 01 *
陈明亮;余侃胜;吴颖;曾松;: "变电站远动通信网关机双机切换异常分析与治理", 江西电力, no. 12 *

Also Published As

Publication number Publication date
CN114070546B (en) 2024-03-01

Similar Documents

Publication Publication Date Title
CN102571559B (en) Time-triggered network message transmission method
CN102684949B (en) Method and device for processing heartbeat data packet under persistent connection, and client
CN112040463B (en) Wireless communication network networking method and system based on LoRa equipment
CN101567861B (en) Data synchronization method and application system between heterogeneous application systems
CN102547243A (en) Audio and video remote monitoring method and system based on 3G (the 3rd generation telecommunication) network
CN106302536B (en) The method and apparatus communicated between all-in-one machine multisystem based on interchanger
CN108012250A (en) Data transmission method and data transmission device
CN113055539B (en) Communication system based on VoIP dual-redundancy exchange server
CN102164427A (en) Internet of Things gateway system based on wireless manner
CN112511388A (en) Method for home Internet of things and Internet of things terminal
CN103442003A (en) Data acquisition backfill system for SCADA system and method thereof
EP2472793A1 (en) Method, device and system for transmitting e1 bidirectional looped network data
WO2022083371A1 (en) Data transmission method and device
CN111327476B (en) Bandwidth dynamic adjustment system and method based on frame reservation
CN103716293A (en) Low voltage power line spread spectrum communication protocol employing time scale synchronization collision detection method
CN114070546A (en) Synchronous uploading method and system for IEC61850 protocol device and dual-network shutdown communication state
CN101436953B (en) Management method and processing module for on-line announcement message of network appliance
CN102081383B (en) Device and method for secure network protocol for field control
CN103428677A (en) Method for sending grouped service data and method for receiving message sent by signaling channel
CN101720134B (en) Wireless virtual device protocol-based industrial wireless data transmission method
CN114143904A (en) CPE management method based on 5G fusion network shunt
CN109219081B (en) Network optimization method after ZigBee coordinator is re-networked
CN102111280A (en) Terminal equipment fault detection device, system and method
CN107094035B (en) A kind of power network communication method
CN213072692U (en) Integrated diagnosis and multiplexing serial communication master station management device

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