Heartbeat detection method of SCADA distribution type platform

A distributed platform and heartbeat detection technology, applied in digital transmission systems, electrical components, transmission systems, etc., can solve problems such as complex business processing, achieve the effects of saving network resources, improving usability, and reducing misjudgment rates

Inactive Publication Date: 2015-01-28
GUODIAN NANJING AUTOMATION
6 Cites 20 Cited by

AI-Extracted Technical Summary

Problems solved by technology

[0003] In a large-scale distributed SCADA monitoring system, business processing ...
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Method used

[0038] In a local area network, the Transmission Control Protocol (TCP) is a connection-oriented protocol that provides functions such as reliability assurance, fl...
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Abstract

The invention discloses a heartbeat detection method of an SCADA distribution type platform. A heartbeat sending thread and a heartbeat receiving thread are coordinated to carry out fault detecting, the sending thread sends heartbeat to target nodes, and the state of the nodes is detected by judging the maximum number of losing times of the heartbeat; the receiving thread is used for receiving the heartbeat and replies when normally receiving the heartbeat, and otherwise the maximum number of losing times of the heartbeat adds one. Under the situation that the network state is busy, the heartbeat sending thread and the heartbeat receiving thread pause, a command packet is used for replacing the heartbeat to detect the state of the nodes, and the network resource can be saved. According to the heartbeat detection method, the availability of a system can be greatly improved, and the misjudgement rate of node faults is decreased.

Application Domain

Technology Topic

Heartbeat detectionSCADA +4

Image

  • Heartbeat detection method of SCADA distribution type platform
  • Heartbeat detection method of SCADA distribution type platform
  • Heartbeat detection method of SCADA distribution type platform

Examples

  • Experimental program(1)

Example Embodiment

[0023] The present invention will be further described in detail below in conjunction with the drawings and specific embodiments.
[0024] The heartbeat detection method and optimization strategy under the SCADA distributed platform of the present invention mainly include four parts.
[0025] 1. Heartbeat thread design
[0026] Design a heartbeat detection service process for each node in the SCADA distributed system (including active and standby servers, and active and standby workstations), and establish two threads in the heartbeat detection service process to implement the heartbeat detection mechanism, such as figure 1 As shown, the schematic diagram of the heartbeat detection mechanism.
[0027] Heartbeat sending thread A:
[0028] This thread is used to send heartbeat packets to the target node server every 5 seconds. Before sending, first judge whether the maximum number of heartbeat loss of this node for the target node is greater than 3, if yes, then judge that the target node server is invalid; otherwise, send a heartbeat data packet.
[0029] Heartbeat receiving thread B:
[0030] This thread is used to receive heartbeat data packets and determine whether it has timed out. If it times out, add 1 to the maximum number of heartbeat loss of this node for the target node, otherwise, set the maximum number of heartbeat loss of this node for the target node to zero and reply The heartbeat data is received normally.
[0031] Second, the rules of the propagation path of heartbeat packets
[0032] The propagation path of heartbeat packets follows the following rules:
[0033] (1) Heartbeat timeout value: For each heartbeat path, when the heartbeat interval is multiplied by the maximum number of losses and the heartbeat information is not received, the heartbeat timeout.
[0034] (2) Each heartbeat data packet propagation path always sends and receives heartbeat information to judge the heartbeat status. The heartbeat information includes host information, network card, resource group, and resource status.
[0035] (3) Send commands according to the priority of the heartbeat packet propagation path. First send the command through the heartbeat packet propagation path with the highest priority. If the heartbeat packet propagation path times out, then send it through the heartbeat packet propagation path with lower priority.
[0036] (4) Avoid abnormal data information, increase the heartbeat CRC (Cyclic Redundancy Check, cyclic redundancy check code) checksum judgment, if the heartbeat data is abnormal, treat it as a heartbeat loss, add 1 to the maximum number of heartbeat loss, and Write to the log.
[0037] 3. Heartbeat sending method
[0038] In the local area network, the Transmission Control Protocol (TCP) is a connection-oriented protocol that provides functions such as reliability assurance, flow control mechanism, and error recovery. Datagram Protocol (UDP) is a connectionless protocol with simple functions and less consumption of system resources.
[0039] Heartbeat sending can use TCP and UDP to send heartbeat commands. For distributed multi-server systems, each node must communicate with each other. Since the TCP service provides end-to-end communication, if there are n nodes, each node must establish at least n-1 TCP connections. The heartbeat network will have n*(n-1)/2 communication paths, which will increase the complexity of sending and receiving heartbeat commands, and the TCP transmission rate is low, and the network overhead is large, so the TCP method is not practical Heartbeat detection in a distributed environment.
[0040] However, UDP can transmit to multiple nodes at the same time, and there is no need to establish a connection before transmitting data. The operation is relatively simple, and the execution efficiency and real-time performance are high. However, because UDP is an unreliable transmission protocol, it just sends the packet to the destination as much as possible, there will be packet loss, so the security is relatively low.
[0041] Because heartbeat information needs to be sent and received frequently and periodically, considering the impact on system efficiency and network environment, it is more appropriate to use a connectionless datagram protocol to send heartbeats. Furthermore, the transmission of heartbeat information does not require very high reliability. The loss of several heartbeats in a row indicates that the system may be faulty. Occasionally losing a heartbeat will not cause errors, so it is more reasonable to use the UDP datagram protocol for heartbeats.
[0042] Four, heartbeat detection optimization strategy
[0043] Under the SCADA distributed multi-node platform, when the network is busy, each node will frequently send control commands or synchronize the information of the real-time database. At this time, the heartbeat detection service process is still sending and receiving heartbeat data packets, which will occupy the network In order to solve this problem with resources such as bandwidth, the present invention further optimizes the heartbeat detection mechanism.
[0044] In a distributed multi-server system, heartbeat data packets and control commands are sent separately. Considering that the sending and replying of control command packets is similar to the sending and replying mechanism of heartbeat data packets, control commands can be used when the network interacts frequently. Packet replaces heartbeat data packets, thereby reducing the impact of heartbeat on the network, such as figure 2 As shown, the control command packet of the present invention replaces the heartbeat data packet.
[0045] Suppose there are three nodes A, B, and C, and node C is the backup of node B. Under normal circumstances, heartbeat detection is performed between nodes A, B, and C. Once node A detects that node B fails, it needs to switch the services between A and B to C. At this time, node A will frequently send Control and synchronization commands are given to node C, so that frequent data interactions occur on the network between A and C.
[0046] Since node A frequently sends control commands to node C, node C will reply to the completion of the command after executing the command of node A. If node C can receive the control command from node A, it proves that the network between node C and node A is normal. If node A can receive the reply command from node C, it proves the network between node A and node C is normal. In this way, we can think that the command operation between nodes A and C is also equivalent to a heartbeat command. In practical applications, considering that the control command transmission between node A and node C at this time will last a long time, the heartbeat detection service process The following processing can be performed at this time.
[0047] (1) Determine whether the control command operations between nodes are frequent (Frequent control commands: judge by counting the number of command operations within a unit time, generally more than 20 times/minute can be defined as frequent);
[0048] (2) If it is not a frequent control command operation, the heartbeat sending/receiving thread keeps the original mechanism to send/reply heartbeat commands; if it is a frequent control command operation, the heartbeat sending thread stops sending heartbeat data packets at this time, and the heartbeat receiving thread Stop replying to the heartbeat command, and use the command packet instead of the heartbeat to detect the status of the node. At this time, the heartbeat service process is used to detect whether the control commands are frequent, such as image 3 Shown
[0049] (3) After the frequent control command operation ends, the normal heartbeat sending/receiving thread is restored, and the node status continues to be detected.
[0050] Although the present invention has been disclosed as above in the preferred embodiments, they are not intended to limit the present invention. Anyone familiar with the art can make various changes or modifications without departing from the spirit and scope of the present invention. It is also within the protection scope of the present invention.
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

no PUM

Description & Claims & Application Information

We can also present the details of the Description, Claims and Application information to help users get a comprehensive understanding of the technical details of the patent, such as background art, summary of invention, brief description of drawings, description of embodiments, and other original content. On the other hand, users can also determine the specific scope of protection of the technology through the list of claims; as well as understand the changes in the life cycle of the technology with the presentation of the patent timeline. Login to view more.
the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Similar technology patents

Classification and recommendation of technical efficacy words

  • Save network resources
  • Improve usability
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products