A method, system, device and storage medium for sharing real-time data of power grid

By setting up mirror observation ports and virtual network card modules in the power system network, the mirror cloning and synchronous transmission of data is solved, and the problem of large workload of real-time data sharing method in the power system network is improved, and data forwarding capabilities and real-time performance are improved.

CN115484271BActive Publication Date: 2024-12-06任志翔
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110599416.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-31
Publication Date
2024-12-06
Estimated Expiration
2041-05-31

AI Technical Summary

Technical Problem

The existing real-time data sharing method of power system networks is large in work and cumbersome in operation. Especially when data sharing between multiple master stations, it affects the independent operation of the system and the real-time nature of data transmission.

Method used

By setting up a mirror observation port on the first main site, configuring the network card module to receive and forward data flow, and virtual network card information on the second main site, the mirror cloning and handshaking connection of data is realized, the data transmission question and answer rhythm is adjusted, and the data is ensured. synchronous transmission.

Benefits of technology

Reduces the workload of real-time data sharing in the power system network, improves data forwarding capabilities, ensures the synchronous transmission of data of multiple substations, avoids the problem of excessive burden on the original main station, and ensures the real-time and independence of data transmission. run.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115484271B_ABST
    Figure CN115484271B_ABST
Patent Text Reader

Abstract

The present application aims to provide a method, system, device and storage medium for sharing real-time data of power grid, and the method includes setting a mirror observation port on the first master station, so that the data flow received by the first master station from the substation is output through the mirror observation port; configuring the first network card module, so that the first network card module receives and forwards the data flow output by the mirror observation port; configuring the second network card module, so that the second network card module communicates with the first network card module, and obtains the data flow output by the mirror observation port; making the second network card module automatically clone the network card information of the substation, and the mirrored virtual network card and the second master station realize handshake connection; making the mirrored virtual network card communicate with the second master station, and adjusting the data transmission question and answer rhythm between the virtual network card and the second master station, until the virtual network card can smoothly send the acquired data flow to the second master station. The problem of heavy workload of the real-time data sharing method of the power system network is solved. The present application has the effect of reducing the workload of data sharing.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of electric power technology, and in particular to a method, system, device and storage medium for sharing real-time data of a power grid. Background Art

[0002] The power monitoring system is a system that monitors the operating status and operating data of substations and power plants in real time, hereinafter referred to as the master station. With the development of information technology, the transmission of real-time power data generally adopts real-time data network communication based on question-and-answer mode.

[0003] At present, when two or more master stations share a substation information, the two main methods used are opening a new channel and master station forwarding.

[0004] The first method is to open a new channel. This method requires the manufacturer to open a new network port for the substation automation equipment and reconfigure the database. For the power system, the newly configured equipment needs to be re-debugged and verified, and can only be used after passing the safety test. The workload is large, the cycle is long, and the safety is low. And it is difficult to have the opportunity to verify the equipment without power outage.

[0005] The second method is master station forwarding. This method uses the forwarding function of the original master station to forward data to other master stations. This requires the original master station to establish a forwarding database, and other master stations to prepare corresponding receiving databases. The more forwarding, the greater the burden on the original master station, the more maintenance work, and also affects the independent operation of the original master station and other master stations.

[0006] With respect to the above-mentioned related technologies, the applicant believes that the existing methods for sharing real-time data in power system networks have the defects of heavy workload and complicated operation. Summary of the invention

[0007] In order to reduce the workload of real-time data sharing in power system networks, the present application provides a method, system, device and storage medium for real-time data sharing in power grids.

[0008] In a first aspect, the present application provides a method for sharing real-time data in a power system network, which has the characteristic of reducing the workload of sharing real-time data in a power system network.

[0009] This application is achieved through the following technical solutions:

[0010] A method for sharing real-time data in a power system network comprises the following steps:

[0011] A mirror observation port is set on the first master station, so that the real-time data streams of all substations received by the first master station are output through the mirror observation port;

[0012] Configuring the first network card module so that the first network card module receives and forwards all data streams output by the mirrored observation port;

[0013] Configure the second network card module to enable the second network card module to communicate with the first network card module and obtain the data stream output by the mirror observation port; enable the second network card module to automatically clone the network card information of the substation, and achieve a handshake connection between the mirrored virtual network card and the second main station; enable the mirrored virtual network card to communicate with the second main station, and adjust the data transmission question and answer rhythm between the virtual network card and the second main station until the virtual network card can successfully send the data stream obtained by the second network card module to the second main station.

[0014] By adopting the above technical solution, a mirror observation port is set on the first master station, so that the real-time data streams of all substations received by the first master station are output through the mirror observation port, and the real-time data streams of the substations are collected; the first network card module is configured, so that the first network card module receives and forwards the data stream output by the mirror observation port, realizes data communication with the first master station, and obtains the data stream information of the substation; the second network card module is configured, so that the second network card module communicates with the first network card module, obtains all data streams output by the mirror observation port, and the data stream information of the mirror substation is obtained, and then the second network card module automatically clones the network card information of the substation, and the mirror virtual network card is established with the second master station. A fully reliable data connection is provided, and the mirrored virtual network card communicates with the second main station, and the data transmission question and answer rhythm between the virtual network card and the second main station is adjusted until the virtual network card can smoothly send the cached real-time data to the second main station, so that the second main station thinks that it is communicating data with the real substation; then the power system network real-time data sharing method can quickly clone the data message information of the substation through mirroring, and allow the second main station to receive the data message information that is exactly the same and synchronized with the substation data received by the first main station, so as to reduce the workload of the power system network real-time data sharing, make the operation more convenient, and will not affect the independent operation of the first main station and the second main station.

[0015] In a preferred example, the present application can be further configured as follows: the step of enabling the second network card module to automatically clone the network card information of the substation includes virtualizing a new MAC address, IP address and port number that meet the requirements of the second master station on the second network card module.

[0016] By adopting the above technical solution, the IP address is the logical protocol address representing the device, the port number is used to identify the application processes on the device, the IP address simulates the logical address of the substation, and can shield the differences caused by the MAC address of the substation. The port number enables the second network card module to accurately obtain the corresponding data flow information when the virtual network card communicates with the second main station, and virtualizes the new MAC address, IP address and port number that meet the requirements of the second main station to achieve the purpose of real-time protocol when the second network card module communicates with the second main station, so that the second network card module can simulate the substation and the second main station to successfully achieve a handshake connection.

[0017] In a preferred example, the present application can be further configured as follows: the step of enabling the second network card module to automatically clone the network card information of the substation includes virtualizing on the second network card module a MAC address, IP address and port number that are completely identical to the substation communicating with the first master station.

[0018] By adopting the above technical solution, a MAC address, IP address and port number that are exactly the same as those of the substation in the data stream received by the first main station are virtualized on the second network card module to mirror the data communication between the substation and the first main station, so that the second network card module can simulate the substation and the second main station to successfully achieve a handshake connection.

[0019] In a preferred example, the present application can be further configured as follows: when the amount of mirrored data exceeds the data forwarding amount of the network card module, the first network card module and the second network card module communicate through the CPU, the first network card module forwards the data stream to the CPU, the CPU analyzes the received data stream, automatically registers the substation network card information appearing in the data stream, and at the same time caches the real-time data of the preset port number in the network card information, and controls the second network card module to automatically clone the corresponding virtual network card and realize a handshake connection with the second master station.

[0020] By adopting the above technical solution, one network card module can only convert one IP address. When the amount of mirrored data exceeds the data forwarding amount of the network card module, that is, the two network card modules cannot meet the conversion requirements of multiple substation IP addresses, at this time, the data communication between the first network card module and the second network card module is realized through the CPU to meet the requirements of converting multiple IP addresses for data forwarding of multiple substations, thereby improving the data forwarding capability when sharing real-time data of the power grid.

[0021] In a preferred example, the present application can be further configured as follows: when the amount of mirrored data exceeds the maximum amount of mirrored data of the CPU, the real-time data stream of the substation received by the first master station is grouped and mirrored observation ports are set by group, so that all data streams of the substations in the same group are output through the corresponding mirrored observation ports; the first network card module is connected to the group accordingly, so that the first network card module receives and forwards all data streams output by the corresponding mirrored observation port; the first network card module is connected to the CPU accordingly, the CPU receives the data information of the corresponding first network card module, automatically registers the substation network card information appearing in the data stream, and caches the real-time data of the preset port number in the network card; the second network card module is connected to the group accordingly, and the second network card module automatically clones the corresponding virtual network card and the second master station according to the substation network card information registered by the CPU to achieve a handshake connection; the virtual network card of the second network card module is made to communicate with the second master station, and the data transmission question and answer rhythm between the virtual network card and the second master station in dialogue is adjusted until the virtual network card can smoothly send the real-time data in the cache to the second master station.

[0022] By adopting the above technical solution, when the amount of mirrored data exceeds the maximum amount of mirrored data of the CPU, the real-time data stream of the substation is grouped and the mirrored observation port, the first network card module, the CPU and the second network card module are set according to the group, so as to further improve the data forwarding capability of the power grid real-time data sharing method, and meet the needs of more substations for data forwarding; at the same time, by limiting the data forwarding amount between each CPU, each mirrored observation port has sufficient bandwidth, and the data sharing between the second master station and the substation can be synchronized with the data communication between the first master station and the substation, thereby better meeting the real-time requirements of data communication.

[0023] In a preferred example, the present application can be further configured as follows: the step of adjusting the data transmission question and answer rhythm between the virtual network card and the second master station includes forwarding the corresponding data message to the second master station when a data query command from the second master station is received; and forwarding the corresponding status message to the second master station when a status query command from the second master station is received.

[0024] By adopting the above technical solution, the virtual network card communicates with the second main station and adjusts the data transmission question and answer rhythm to simulate the data communication between the real substation and the second main station, so that the second main station that receives the reply thinks that it is indeed connected to a real substation, and at the same time, the data communication between the second main station and the substation and the data communication between the first main station and the substation are realized stably and synchronously.

[0025] In a preferred example, the present application can be further configured as follows: after the first network card module receives all data streams output by the mirror observation port, the real-time data message of the designated substation is filtered out from the data stream; the second network card module communicates with the first network card module to obtain the real-time data message of the designated substation.

[0026] By adopting the above technical solution, the first network card module judges and analyzes all received data streams, discards unnecessary data, filters out real-time data messages of the specified substation, and forwards them to the second network card module to reduce the amount of data forwarding, thereby improving the data forwarding speed and ensuring the real-time nature of data transmission.

[0027] In a second aspect, the present application provides a power grid real-time data sharing system, which has the characteristic of reducing the workload of real-time data sharing in the power system network.

[0028] This application is achieved through the following technical solutions:

[0029] A power grid real-time data sharing system includes: a mirror observation port, which is set on a first master station and is used to output real-time data streams of all substations received by the first master station; a first network card module, which is used to receive and forward all data streams output by the mirror observation port; a second network card module, which is used to communicate with the first network card module to obtain all data streams output by the mirror observation port; at the same time, the second network card module automatically clones the network card information of the substation, and the mirrored virtual network card and the second master station achieve a handshake connection; the mirrored virtual network card communicates with the second master station, and adjusts the data transmission question and answer rhythm between the virtual network card and the second master station until the virtual network card can smoothly send the data stream obtained by the second network card module to the second master station; a CPU, which is used to establish communication between the first network card module and the second network card module when the amount of mirrored data exceeds the data forwarding amount of the network card module, receive data information of the first network card module and communicate with the second network card module.

[0030] By adopting the above technical solution, the mirror observation port is set on the first master station, so that the data streams of all substations received by the first master station are output through the mirror observation port to collect the data streams of the substation; the first network card module receives and forwards all data streams output by the mirror observation port, realizes data communication with the first master station, and obtains the data stream information of the substation; the second network card module communicates with the first network card module, obtains all data streams output by the mirror observation port, so as to mirror all data stream information of the substation received by the first master station, and then enables the second network card module to automatically clone the network card information of the substation, mirror the virtual network card and establish a safe and reliable data connection with the second master station, and enable the virtual network card to communicate with the second master station, adjust the data transmission question and answer rhythm of the virtual network card and the second master station, until the virtual network card can smoothly The data stream obtained by the second network card module is sent to the second master station, so that the second master station thinks that data communication is carried out with the real substation; then the real-time data sharing method of the power system network can quickly clone the data message information received by the first master station from the substation through mirroring, and let the second master station receive the data message information received by the first master station that is exactly the same as the substation, so as to reduce the workload of the real-time data sharing of the power system network, make the operation more convenient, and will not affect the independent operation of the first master station and the second master station; when the amount of mirrored data exceeds the data forwarding amount of the network card module, the data communication between the first network card module and the second network card module is realized through the CPU to meet the requirement of converting multiple IP addresses when multiple substations forward data, thereby improving the data forwarding capability of the real-time data sharing system of the power grid.

[0031] On the third aspect, the present application provides a computer device having the characteristic of reducing the workload of real-time data sharing in the power system network.

[0032] The present application is implemented through the following technical solution: a computer device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above-mentioned method for sharing real-time data of a power grid when executing the computer program.

[0033] In a fourth aspect, the present application provides a computer-readable storage medium having the characteristic of reducing the workload of real-time data sharing in a power system network.

[0034] The present application is implemented through the following technical solutions: a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above-mentioned power grid real-time data sharing method are implemented.

[0035] In summary, the present application includes at least one of the following beneficial technical effects:

[0036] 1. The real-time data sharing method of the power system network can quickly clone all the data message information of the substation received by the first master station through the mirroring method, and let the second master station receive the data message information of the substation that is exactly the same as that received by the first master station, so as to reduce the workload of the real-time data sharing of the power system network, make the operation more convenient, and will not affect the independent operation of the first master station and the second master station;

[0037] 2. Data communication between the first network card module and the second network card module is realized through the CPU to meet the requirement of converting multiple IP addresses when multiple master stations share data, thereby improving the data forwarding capability of the real-time data sharing method of the power grid;

[0038] 3. By grouping the real-time data stream of the substation received by the first master station and setting the mirror observation port, the first network card module, the CPU and the second network card module according to the group, the data forwarding capability of the real-time data sharing method of the power grid is further improved to meet the needs of more substations for data forwarding; at the same time, by limiting the data forwarding amount between each CPU, the data communication between the first master station, the second master station and the substation can be synchronized to better meet the real-time requirements of data communication;

[0039] 4. The virtual network card of the second network card module communicates with the second main station and adjusts the data transmission question and answer rhythm between the virtual network card and the second main station to simulate the data communication between the real substation and the second main station, and realizes stable and synchronous real-time data communication between the first main station, the second main station and the substation;

[0040] 5. By discarding unnecessary data, the real-time data messages of the designated substation are screened out to reduce the amount of data forwarding, increase the data forwarding speed, and ensure the real-time nature of data transmission. BRIEF DESCRIPTION OF THE DRAWINGS

[0041] Figure 1 It is a flowchart of a method for sharing real-time power grid data in one embodiment of the present application.

[0042] Figure 2 The present invention is a flow chart of a real-time data sharing method for a power system network in which the number of master stations is greater than 2 and less than or equal to the maximum load.

[0043] Figure 3 It is a flow chart of a real-time data sharing method for a power system network in which the number of master stations exceeds the maximum load.

[0044] Figure 4 It is a schematic diagram of a real-time data sharing system for a power system network according to one embodiment of the present application.

[0045] Figure 5 It is a structural block diagram of a power system network real-time data sharing system according to one embodiment of the present application. DETAILED DESCRIPTION

[0046] This specific embodiment is merely an explanation of the present application and is not a limitation of the present application. After reading this specification, those skilled in the art may make modifications to the present embodiment without any creative contribution as needed, but such modifications are protected by the patent law as long as they are within the scope of the claims of the present application.

[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0048] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally means that the associated objects before and after are in an "or" relationship.

[0049] The power system network transmits data through the TCP / IP protocol, and it is very difficult to share real-time power data by opening a new channel or forwarding it through the master station. It is necessary to create a forwarding database table. The more forwarding, the greater the workload; at the same time, the delay of data forwarding cannot be avoided. If the mirror forwarding method is used for real-time data sharing, data can generally only be transmitted through the UDP protocol, which is difficult to match the requirements of TCP / IP protocol transmission.

[0050] An embodiment of the present application provides a method for sharing real-time data of a power grid, and the main steps of the method are described as follows.

[0051] A mirror observation port is set on the first master station, so that the real-time data streams of all substations received by the first master station are output through the mirror observation port.

[0052] The first network card module is configured so that the first network card module receives and forwards all data streams output by the mirrored observation port.

[0053] The second network card module is configured to enable the second network card module to communicate with the first network card module and obtain all data streams output by the mirrored observation port.

[0054] The second network card module automatically clones the network card information of the substation, and the mirrored virtual network card and the second master station realize handshake connection.

[0055] Make the mirrored virtual network card communicate with the second main station, and adjust the data transmission question-and-answer rhythm between the virtual network card and the second main station until the virtual network card can smoothly send the data stream obtained by the second network card module to the second main station.

[0056] The embodiments of the present application are further described in detail below in conjunction with the drawings in the specification.

[0057] Reference Figure 1 , count the mirror data volume, and determine whether the mirror data volume is less than or equal to the data forwarding volume of the network card module.

[0058] When the mirrored data volume is less than or equal to the data forwarding volume of the network card module, a mirrored observation port is set on the front switch of the first master station so that the real-time data streams of all substations received by the first master station are output through the mirrored observation port.

[0059] The first network card module is configured so that the first network card module receives and unidirectionally forwards all data streams output by the mirror observation port.

[0060] Furthermore, in order to reduce the amount of data forwarding and ensure the real-time nature of data transmission, the first network card module makes judgments and analyses on all received data streams, discards unnecessary data, filters out real-time data packets of the designated substation, and then sends them to the second network card module.

[0061] The second network card module is configured so that the second network card module communicates bidirectionally with the first network card module to obtain all data streams output by the mirror observation port. The second network card module analyzes the acquired data stream of the substation, automatically registers the substation network card information that has appeared in the data stream, and caches the real-time data of the preset ports in these network cards to extract the MAC address, IP address and port number information that are the same as the substation from the data stream, so as to mirror the virtual network card according to the MAC address, IP address and port number information of the substation. In this embodiment, the first network card module and the second network card module can be an integrated network card with 8 ports.

[0062] The second network card module automatically clones the network card information of the substation based on the data flow information, and the mirrored virtual network card realizes a handshake connection with the second master station. Specifically, the step of automatically cloning the network card information of the substation by the second network card module includes: virtualizing a new MAC address, IP address and port number that meet the requirements of the second master station on the second network card module, or virtualizing the same MAC address, IP address and port number as the substation communicating on the first master station on the second network card module, and establishing a forwarding table according to the MAC address, IP address and port number.

[0063] When the second network card module receives the handshake request from the second main station, it first determines from the forwarding table whether there is an IP address associated with the data flow of the second main station. When there is an IP address associated with the data flow of the second main station in the forwarding table, a new MAC address, IP address and new port number that meet the requirements of the second main station are selected from the forwarding table and data forwarding is performed according to the TCP / IP protocol, or the MAC address, IP address and port number that are the same as those of the substation on the first main station are selected from the forwarding table and data forwarding is performed according to the TCP / IP protocol, so that the virtual network card of the second network card module can establish a TCP / IP connection with the second main station.

[0064] Of course, the virtual network card can also modify the MAC address, IP address, and port number through manual configuration as needed. The virtual network card has ARP protocol, ICMP protocol, UDP protocol, and TCP protocol.

[0065] In order to make the second master station believe that it is indeed connected to a real substation and to make the second master station receive all data streams sent by the virtual substation, after the virtual network card of the second network card module and the second master station realize handshake connection, the virtual network card of the second network card module communicates with the second master station and adjusts the data transmission question and answer rhythm between the virtual network card and the second master station by repeated sending of letters.

[0066] Among them, the step of adjusting the data transmission question and answer rhythm between the virtual network card and the second main station by repeated sending includes forwarding the corresponding data message to the second main station when receiving the data inquiry command of the second main station; and forwarding the corresponding status message to the second main station when receiving the status inquiry command of the second main station.

[0067] When the virtual network card does not receive a data request from the second main station within a preset time, the virtual network card actively disconnects the handshake connection with the second main station until the virtual network card receives a new data request from the second main station that is the same as the data request before the disconnection. Then, the virtual network card re-establishes a handshake connection with the second main station and adjusts the data transmission rhythm until the virtual network card can successfully send the cached real-time data to the second main station.

[0068] The present application overcomes the compatibility problem of the real-time data sharing method based on the TCP / IP protocol for mirror forwarding, so that the real-time data sharing method of the power system network can quickly clone the data message information of the substation through the mirroring method, and let the second master station receive the substation data that is exactly the same as the substation data received by the first master station, which will affect the independent operation of the first master station and the second master station.

[0069] At the same time, when forwarding the data request of the corresponding data message or status message to the second master station, first determine the information sequence number corresponding to the data query command or status query command sent by the second master station. When the information sequence number exists in the forwarding table, forward the corresponding data message or status message to the second master station; when the information sequence number does not exist in the forwarding table, discard the received data query command or status query command, and continue to listen for whether there is a data query command or status query command sent by the second master station.

[0070] Reference Figure 2 When the mirror data volume exceeds the data forwarding volume of the network card module and is less than or equal to the maximum mirror data volume of the CPU, in order to improve the data forwarding capability of the power grid real-time data sharing method, the first network card module and the second network card module communicate through the CPU, the first network card module unidirectionally forwards the data stream to the CPU, the CPU analyzes the received data stream, and automatically registers the substation network card information appearing in the data stream, and caches the real-time data of the specified ports in these network cards. The CPU controls the second network card module to automatically clone the corresponding virtual network card and realize the handshake connection with the second master station.

[0071] The specific method is as follows.

[0072] A mirror observation port is set on the front switch of the first master station, so that the real-time data streams of all substations received by the first master station are output through the mirror observation port.

[0073] The first network card module is configured so that the first network card module receives and unidirectionally forwards all data streams output by the mirror observation port.

[0074] The second network card module is configured, and the first network card module and the second network card module communicate through the CPU, the CPU receives the data information of the first network card module and communicates with the second network card module in a two-way manner. In this embodiment, the CPU can be a stm32 series single-chip microcomputer to realize the mirror data stream forwarding of about 500 substations.

[0075] Specifically, after the first network card module receives all data streams from the mirror observation port on the front switch of the first master station, the data streams are forwarded to the CPU for judgment and analysis.

[0076] The CPU analyzes the mirrored data stream and automatically registers the substation network card information appearing in the data stream, while caching the real-time data of the specified ports in these network cards according to the substation IP.

[0077] Furthermore, the CPU can discard unnecessary data and filter out real-time data messages of designated substations, so that the CPU can communicate with the second network card module in two directions to obtain the real-time data messages of designated substations of the master station, thereby reducing the amount of forwarded data and ensuring the real-time nature of data transmission.

[0078] Then, the second network card module automatically clones a virtual network card based on the substation network card information registered by the CPU to achieve handshake connection with the second master station. The cloned virtual network card is specifically a virtual new MAC address, IP address and port number that meets the requirements of the second master station, or a virtual substation that is completely identical to the MAC address, IP address and port number of the first master station.

[0079] Then, the virtual network card in the second network card module communicates with the second main station, and adjusts the data transmission question-and-answer rhythm between the virtual network card and the second main station by repeatedly sending letters until the virtual network card can successfully send the cached real-time data to the second main station.

[0080] Reference Figure 3 When the mirror data volume exceeds the maximum mirror data volume of the CPU, the mirror data of the first master station front switch is grouped and multiple mirror observation ports are set by group, so that all data flows of all substations in the same group are output through the corresponding mirror observation ports.

[0081] The first network card module is connected in groups accordingly, so that the first network card module receives and unidirectionally forwards all data streams output by the corresponding mirror observation port.

[0082] The first network card module is connected to the CPU, the CPU receives the data stream of the corresponding first network card module, judges and analyzes the received data information, automatically registers the substation network card information appearing in the data stream, and caches the real-time data of the specified ports in these network cards. At the same time, the CPU discards unnecessary data and filters out the real-time data messages of the specified substation.

[0083] The second network card module is connected in accordance with the group correspondence, so that the second network card module communicates with the corresponding CPU in a two-way manner, so as to automatically clone the virtual network card and realize the handshake connection with the second main station according to the substation network card information registered by the CPU. The cloned virtual network card is specifically a virtual new MAC address, IP address and port number that meets the requirements of the second main station; or, a virtual substation that communicates with the first main station has the same MAC address, IP address and port number.

[0084] The virtual network card in the second network card module communicates with the second main station in the same group, and adjusts the data transmission question-and-answer rhythm between the virtual network card and the second main station in dialogue until the virtual network card can successfully send the cached real-time data to the second main station.

[0085] This further improves the data forwarding capability of the power grid real-time data sharing method and can meet the data forwarding needs of more mirrored data. At the same time, by limiting the data forwarding volume between each CPU, each mirrored observation port has sufficient bandwidth, and data sharing between master stations can be synchronized, thereby better meeting the real-time requirements of data communication.

[0086] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.

[0087] Reference Figure 4 and Figure 5 The embodiment of the present application also provides a power system network real-time data sharing system, which corresponds one-to-one to a power grid real-time data sharing method in the above embodiment. The power system network real-time data sharing system includes a mirror observation port, a first network card module, a second network card module and a CPU.

[0088] Specifically, the mirror observation port is set on the first master station and is used to output the real-time data stream of all substations received by the first master station. The first master station obtains data information of substation automation equipment through network access. The number of substation automation equipment can be multiple. In this embodiment, the first master station obtains data information of 300 substation automation equipment through network access.

[0089] The first network card module is used to receive and unidirectionally forward all data streams output by the mirror observation port.

[0090] The second network card module is used for bidirectional communication with the first network card module and establishing a handshake connection with the second master station. The second network card module obtains all data streams output by the mirror observation port; at the same time, the management interface of the second network card module is pre-configured with the same network card information as all substation automation equipment obtained by accessing the first master station or the network card information that meets the requirements of the second master station, so as to simulate any substation automation equipment or multiple substation automation equipment to achieve a handshake connection with the second master station; and the virtual network card is allowed to communicate with the second master station, and the data transmission question-and-answer rhythm between the virtual network card and the second master station is adjusted until the virtual network card can smoothly send the cached real-time data to the second master station.

[0091] The second network card module and the second main station realize handshake connection, and can share and receive real-time data without affecting the operation of the first main station. By configuring the management IP and port number on the management interface, the simulated network card information can be displayed on the management web page.

[0092] When the mirrored data volume exceeds the data forwarding volume of the network card module, the CPU enables the first network card module to establish communication with the second network card module. The first network card module forwards the data information to the CPU in one direction, and enables the CPU and the second network card module to communicate in two directions. The CPU is used to analyze the mirrored data stream, automatically register the substation network card information appearing in the data stream, and cache the real-time data of the specified ports in these network cards.

[0093] The second network card module automatically clones the virtual network cards of all substations or designated substations and performs aging management based on the substation network card information registered by the CPU, and at the same time enables the ARP protocol, ICMP protocol, UDP protocol, and TCP protocol of the virtual network card for data communication.

[0094] The CPU can also be used to modify the MAC address, IP address, and port number of the registered network card information to meet the communication requirements between the virtual network card and the second main station.

[0095] The CPU also analyzes the cached real-time data and adjusts the response rhythm between the virtual network card and the second master station until the real-time data of all substations or designated substations are successfully forwarded to the second master station.

[0096] The CPU visualizes the real-time data flow and can selectively print out the cached real-time data, which is intuitive and vivid.

[0097] Furthermore, the present application can also be applied to the upgrade of the master station system. When the first master station is to be decommissioned and upgraded to the second master station, the telemetry, telesignaling and remote control functions of the real-time data of the first master station and the second master station are checked with the help of the real-time data sharing system of the power system network. By adopting real-time data mirroring forwarding, the three-remote calibration work between the new and old master station systems can be realized without changing the channel structure of the original master station system, changing any software and hardware configuration of the master station telecontrol, affecting the operating status of the original system, and without the cooperation of substation personnel, so that the two master stations can run in parallel during the transition period of the old master station. The specific application scenarios are as follows.

[0098] 1. Remote signaling and telemetry verification steps

[0099] (1) Open a mirror observation port on the front switch of the old master station system to output the link layer data packets sent by all substations to the master station;

[0100] (2) The real-time data mirror forwarder simulates the virtual plant stations corresponding to all plant stations (i.e., substation automation equipment), and realizes handshake connection with the new master station through different pre-configured TCP / IP ports. It can also directly virtualize the network cards of all plant stations based on the mirror data, i.e., the same MAC address, IP address, and port. The mirror forwarder gradually adjusts the question-and-answer rhythm of the new master station according to the inquiry message of the new master station, so that the new and old master stations can synchronously receive the real-time messages of the corresponding stations;

[0101] (3) The real-time data mirror forwarder enables the new master station to receive the same telemetering message information as the old master station. This information will be displayed on both the new and old master station systems at the same time, and is completely synchronized. Operation and maintenance personnel can verify the changed telemetering information on the two system screens. Because the data is completely synchronized, the cross-sectional data export method can be used to achieve machine verification of telemetering data. It is also possible to verify the correctness of telemetering data and point numbers by modifying specified telemetering data or inserting specified telemetering change data in the mirrored real-time data message;

[0102] (4) The telesignal can be sent by general call and can be checked manually or by exporting the cross-section data and checking it by machine. The correctness of the telesignal data and point number can also be checked by modifying the specified telesignal data or inserting the specified telesignal change data in the mirror real-time data message.

[0103] 2. Remote control verification steps

[0104] (1) The real-time data mirror forwarder does not send any information to the old master station front switch. The new master station remote control command will be discarded and will not affect the operating status of the old master station. This unidirectionality ensures the security of remote control verification.

[0105] (2) The mirror repeater intercepts the remote control preset command of the new master station, so the target plant station can only receive the remote control preset command of the old master station and send the remote control return message. Generally, the synchronous operation requires that the remote control preset command be sent before the new master station receives the remote control return message. According to the remote control principle, the synchronous operation error does not exceed 5 seconds.

[0106] (3) The remote control return message is forwarded to the new master station through the mirror repeater. At this point, the new and old master stations will receive this string of remote control return messages at the same time.

[0107] (4) If the remote control point numbers of the new and old master stations are the same, a successful return message window will pop up at the same time, proving that the remote control selection is correct. If the old master station pops up a successful return message window, and the new master station pops up a return timeout window, it means that the remote control selection is inconsistent.

[0108] (5) Verification of remote control execution and remote control cancellation can be performed by operating the capacitor or by using a model station. Since the accuracy of the remote control selection has been verified, there will be no risk in verifying remote control execution and cancellation.

[0109] Furthermore, the present application discloses a method for sharing real-time data in a power system network, which adopts real-time data mirroring and forwarding, and can ensure the safety of the real-time system, ensure the complete synchronization of the reception of real-time data, and eliminate the delay caused by the traditional interface; the mirror forwarder can also establish TCP / IP connections with multiple external systems at the same time to forward the original data. No matter how large the number of external systems is, the master station system personnel do not need to prepare the forwarding table, and the goal of whoever receives the data builds the database is truly achieved, realizing the safe sharing of data.

[0110] For the specific definition of a power system network real-time data sharing system, please refer to the definition of a power grid real-time data sharing method above, which will not be repeated here. Each module in the above-mentioned power system network real-time data sharing system can be implemented in whole or in part through software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0111] In one embodiment, a computer device is provided, which may be a server. The computer device includes a processor, a memory, a network interface, and a database connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program, and a database. The internal memory provides the operating system and the computer program in the non-volatile storage medium with a computer program.

[0112] When the computer program is executed by a processor, a real-time data sharing method for a power grid is implemented.

[0113] In one embodiment, a computer-readable storage medium is provided, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the computer program, the following steps are implemented:

[0114] A mirror observation port is set on the first master station, so that the real-time data streams of all substations received by the first master station are output through the mirror observation port.

[0115] The first network card module is configured so that the first network card module receives and forwards all data streams output by the mirrored observation port.

[0116] The second network card module is configured to enable the second network card module to communicate with the first network card module and obtain all data streams output by the mirrored observation port.

[0117] The second network card module automatically clones the network card information of the substation, and the mirrored virtual network card and the second master station realize handshake connection.

[0118] Make the mirrored virtual network card communicate with the second main station, and adjust the data transmission question-and-answer rhythm between the virtual network card and the second main station until the virtual network card can smoothly send the data stream obtained by the second network card module to the second main station.

[0119] A person of ordinary skill in the art can understand that all or part of the processes in the above-mentioned embodiment method can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to memory, storage, database or other media used in the embodiments provided in this application may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM) or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. As an illustration and not limitation, RAM is available in many forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link (Synchlink) DRAM (SLDRAM), memory bus (Rambus) direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus RAM (RDRAM).

[0120] Those skilled in the art will clearly understand that for the sake of convenience and brevity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be distributed and completed by different functional units and modules as needed, that is, the internal structure of the system can be divided into different functional units or modules to complete all or part of the functions described above.

Claims

1. A method for sharing real-time data of power grid, It is characterized in that The following steps are included: A mirror observation port is set on the first master station, so that the real-time data streams of all substations received by the first master station are output through the mirror observation port; Configuring the first network card module so that the first network card module receives and forwards all data streams output by the mirrored observation port; Configuring a second network card module so that the second network card module communicates with the first network card module to obtain a data stream output by the mirrored observation port; The second network card module automatically clones the network card information of the substation, and the mirrored virtual network card realizes handshake connection with the second master station; Enable the mirrored virtual network card to communicate with the second main station, and adjust the data transmission question-answer rhythm between the virtual network card and the second main station until the virtual network card can smoothly send the data stream obtained by the second network card module to the second main station; When the amount of mirrored data exceeds the data forwarding amount of the network card module, the first network card module and the second network card module communicate through the CPU, the first network card module forwards the data stream to the CPU, the CPU analyzes the received data stream, automatically registers the substation network card information appearing in the data stream, and caches the real-time data of the preset port number in the network card information, and controls the second network card module to automatically clone the corresponding virtual network card and realize a handshake connection with the second master station.

2. A method for sharing real-time power grid data according to claim 1, It is characterized in that The step of enabling the second network card module to automatically clone the network card information of the substation includes virtualizing a new MAC address, IP address and port number that meet the requirements of the second master station on the second network card module.

3. A method for sharing real-time power grid data according to claim 1, It is characterized in that The step of enabling the second network card module to automatically clone the network card information of the substation includes: creating, on the second network card module, a virtual MAC address, an IP address and a port number that are completely identical to the substation communicating with the first master station.

4. A method for sharing real-time power grid data according to claim 1, It is characterized in that When the mirror data volume exceeds the maximum mirror data volume of the CPU, the real-time data stream of the substation received by the first master station is grouped and mirror observation ports are set by group, so that all data streams of the substations in the same group are output through the corresponding mirror observation ports; Access the first network card module in accordance with the group, so that the first network card module receives and forwards all data streams output by the corresponding mirror observation port; The first network card module is connected to the CPU, the CPU receives the data information of the corresponding first network card module, automatically registers the substation network card information appearing in the data stream, and caches the real-time data of the preset port number in the network card; Access the second network card module in correspondence with the group, and the second network card module automatically clones the corresponding virtual network card and realizes handshake connection with the second master station according to the substation network card information registered by the CPU; The virtual network card of the second network card module communicates with the second main station, and the data transmission question-and-answer rhythm between the virtual network card and the second main station in dialogue is adjusted until the virtual network card can successfully send the real-time data in the cache to the second main station.

5. A method for sharing real-time power grid data according to any one of claims 1 to 4, It is characterized in that The step of adjusting the data transmission question-answer rhythm between the virtual network card and the second main station includes: When receiving a data query command from the second master station, forwarding a corresponding data message to the second master station; When receiving the status query command of the second master station, forwarding the corresponding status message to the second master station.

6. A method for sharing real-time power grid data according to any one of claims 1 to 4, It is characterized in that After the first network card module receives all the data streams output by the mirror observation port, it filters out the real-time data message of the designated substation from the data stream; The second network card module is connected to the first network card module for communication to obtain the real-time data message of the designated substation.

7. A real-time data sharing system for power grid, It is characterized in that include, A mirror observation port, which is arranged on the first master station and is used to output the real-time data stream of all substations received by the first master station; A first network card module, used for receiving and forwarding all data streams output by the mirror observation port; The second network card module is used to communicate with the first network card module to obtain all data streams output by the mirror observation port; at the same time, the second network card module automatically clones the network card information of the substation, and the mirror virtual network card and the second main station realize handshake connection; the mirrored virtual network card communicates with the second main station, and adjusts the data transmission question and answer rhythm between the virtual network card and the second main station until the virtual network card can smoothly send the data stream obtained by the second network card module to the second main station; The CPU is configured to establish communication between the first network card module and the second network card module, receive data information of the first network card module, and communicate with the second network card module when the mirror data volume exceeds the data forwarding volume of the network card module.

8. A computer device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of a power grid real-time data sharing method as described in any one of claims 1 to 6 when executing the computer program.

9. A computer-readable storage medium storing a computer program, wherein the computer program, when executed by a processor, implements the steps of a power grid real-time data sharing method according to any one of claims 1 to 6.