Dual-computer hot backup method for SCADA data acquisition server

By combining data changes and synchronization frequency to implement dual-machine hot standby for SCADA data acquisition servers, the problems of high equipment pressure and high network consumption in existing technologies are solved, achieving higher system stability and reliability.

CN116436930BActive Publication Date: 2026-11-24WISDRI WUHAN AUTOMATION
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202211231284.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-10-09
Publication Date
2026-11-24
Estimated Expiration
2042-10-09

AI Technical Summary

Technical Problem

The existing dual-machine hot standby method for SCADA data acquisition servers, while ensuring data continuity and consistency, can easily put excessive pressure on industrial equipment or increase network bandwidth usage, especially when the data acquisition frequency is high, thus affecting system reliability and stability.

Method used

The primary and backup machine data synchronization is achieved by combining data change and synchronization frequency. The primary machine sends data to the backup machine when data changes or at the regular synchronization frequency. The backup machine restores the data according to the collection frequency. The data transmission is performed using TCP and UDP protocols, and the switching between primary and backup machine roles is managed through shared memory.

Benefits of technology

It reduces the pressure on industrial equipment, lowers network bandwidth usage, and improves the system's operational stability and reliability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116436930B_ABST
    Figure CN116436930B_ABST
Patent Text Reader

Abstract

A dual-machine hot standby method for SCADA data acquisition servers is disclosed. Two SCADA data acquisition servers are used, one as the primary server and the other as the backup server. The primary server acquires data and provides data services. The backup server switches to primary server in case of primary server failure. The method includes: the primary server acquires data from industrial equipment and, when data changes, sends the corresponding data point changes to the backup server; the backup server receives the data and recovers the data according to the original data point acquisition frequency, obtaining the primary server data within the corresponding time range before and after the corresponding data point; additionally, the primary server periodically sends the acquired real-time data to the backup server at a certain synchronization frequency. This invention uses a combination of data change and synchronization frequency to synchronize data between the primary and backup acquisition servers. Compared with traditional methods, this reduces the pressure on industrial equipment, decreases system network bandwidth usage, lowers the operating pressure on the primary and backup servers, and improves system stability and reliability.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of SCADA data acquisition service modules, and more specifically to a dual-machine hot standby method for SCADA data acquisition servers. Background Technology

[0002] A typical SCADA system consists of data acquisition, data storage, screen configuration, and other business functions. Data acquisition involves connecting to online industrial devices such as PLCs and DCSs to collect real-time data, providing data services to other SCADA systems. Data acquisition is the core function of a SCADA system, usually running independently as a service process, and requires dual-machine hot standby to ensure system reliability.

[0003] The implementation of dual-machine hot standby for data acquisition service modules typically employs two servers, each deploying a set of data acquisition service module programs. During system operation, one server acts as the primary server, acquiring data and providing data services externally; the other server acts as the backup server, not providing data services externally, but only assuming the primary data service function when the primary server fails and switches over. To ensure the continuity and consistency of data provided by the data acquisition service modules before and after the primary / backup switchover, the common practice is either to have the data acquisition service modules on both the primary and backup servers simultaneously connect to industrial equipment such as PLCs to acquire data, or to have only the primary server connect to industrial equipment to acquire data at any given time, with data synchronization between the backup and primary servers. The former puts greater pressure on the equipment, especially at high acquisition frequencies; sometimes, the equipment may not even allow multiple clients to acquire data concurrently. The latter requires establishing a data transmission link between the primary and backup acquisition services, transmitting all data acquired by the primary server to the backup server, which consumes bandwidth and increases the pressure on both servers, especially when there are many data points and a high acquisition frequency. Summary of the Invention

[0004] In view of the technical defects and drawbacks existing in the prior art, embodiments of the present invention provide a dual-machine hot standby method for SCADA data acquisition servers to overcome the above problems or at least partially solve the above problems. The specific solution is as follows:

[0005] A dual-machine hot standby method for a SCADA data acquisition server is characterized by having two SCADA data acquisition service modules, one as the primary machine and the other as the backup machine. The primary machine performs data acquisition and provides data services externally, while the backup machine assumes the primary machine's data service function when the primary machine fails and switches over. Both the primary and backup machines are equipped with data acquisition service modules. The dual-machine hot standby method includes:

[0006] The host computer's data acquisition service module collects data from industrial equipment and sends the corresponding data point changes to the standby computer when the data changes.

[0007] After receiving the data, the standby machine's data acquisition service module restores the data according to the original data point acquisition frequency, and obtains the host data within the corresponding time range before and after the corresponding data point.

[0008] Furthermore, the dual-machine hot standby method also includes:

[0009] The host's data acquisition service module compares the timestamp of the currently acquired data at a certain point with the timestamp of the previously sent data to determine whether the data synchronization period for that point has been reached. If it has, the host sends the currently acquired data to the standby host, increments the data sequence number by 1, and updates the sending timestamp. If it has not been reached, the host checks whether the current data has changed. If it has changed, the host sends the currently acquired data to the standby host, increments the data sequence number by 1, and updates the sending timestamp.

[0010] Furthermore, the dual-machine hot standby method also includes:

[0011] The host's data acquisition service module starts the TCP data synchronization service according to the host's role and listens for backup machine synchronization connections on the data synchronization port;

[0012] The standby machine's data acquisition service module initiates a TCP connection to the data synchronization port of the host machine's data acquisition service module;

[0013] After the host's data acquisition service module detects the data synchronization connection of the standby acquisition service, it establishes a data synchronization link.

[0014] The backup data acquisition service has successfully connected and established a data synchronization link.

[0015] The backup data acquisition service sends a data synchronization request;

[0016] After receiving the data synchronization request, the host acquisition service immediately sends the latest data (including timestamp and value) of each point in the real-time memory database to the standby machine. The data sequence number is recorded as 1, and the timestamp is recorded as the first time the point is sent. This timestamp is divisible by the point acquisition cycle.

[0017] The backup machine caches the data it receives.

[0018] Furthermore, the data acquisition service module includes a primary / backup role initialization module, which is used for:

[0019] After the dual-machine hot standby service is started, the working state of each machine is set to uninitialized state, and each machine sends an initialization data packet to the other. The initialization data packet contains the hot standby service startup timestamp of the machine itself. When the initialization data packet of the other machine is received, the startup timestamp of the other machine's service is compared with the startup timestamp of the machine itself. The machine with the smaller timestamp is the master machine, and the other machine is the standby machine. At the same time, the machine's role information is saved to the machine's shared memory, and the working state is set to initialized.

[0020] Furthermore, the data acquisition service module also includes a data acquisition operation monitoring module, which is used to: immediately start monitoring the operation of the local data acquisition service module after the dual-machine hot standby service on the primary and backup machines is initialized. The monitoring objects include the acquisition service process ID, CPU and memory usage.

[0021] Furthermore, the data acquisition service module also includes a primary / standby role switching module. The data acquisition operation monitoring module is further configured to: when the primary acquisition service process crashes or the CPU or memory usage exceeds the configured limit, the acquisition operation monitoring module on the control host sends a role switching request to the primary / standby role switching module, requesting a switch between the primary and standby roles. The primary / standby role switching module is configured to: after receiving the role switching request, the standby machine decides whether to switch based on its current operating status and replies to the host whether to switch roles. After receiving the standby machine's role switching reply, the host switches its own role to standby and updates it in its shared memory, while simultaneously sending a switch completion command to the standby machine. After receiving the command, the standby machine switches its own role to primary and updates it in its shared memory.

[0022] Furthermore, the data acquisition service module also includes a data synchronization module, which is used for:

[0023] The data acquisition service modules on the primary and backup machines periodically scan the shared memory to obtain the primary / backup role of the local machine. When the local machine is the primary machine, it connects to the device according to the system's data acquisition point configuration, requests real-time data based on the data acquisition frequency of the points, and simultaneously starts the data synchronization service, waiting for the data synchronization request from the backup machine's acquisition service. When the local machine is the backup machine, its data acquisition service module actively sends one synchronization request to the primary machine's data acquisition service module. After receiving the request, the primary machine sends the data to the backup machine according to the dual-machine hot standby method (data change and synchronization frequency). After receiving the data, the backup machine restores the data according to the synchronization frequency and the data acquisition frequency of the points. When the primary machine detects a change in its local machine role, it stops data acquisition and data synchronization services, sends synchronization data to the backup machine, and both the primary and backup machines operate their respective functions according to the new role.

[0024] Furthermore, the host and standby machines use the UDP protocol and a dedicated dual-machine hot standby network communication port, as well as a private data packet format (packet header + instruction code + instruction data + checksum + packet tail) for data communication. The data packet format is: packet header + instruction code + instruction data + checksum + packet tail.

[0025] Furthermore, the data acquisition service module also includes a local role acquisition module, which is used to periodically scan the local shared memory to acquire the local role information written by the dual-machine hot standby service. When the role changes, a role switching instruction is sent to the primary / standby role switching module.

[0026] Furthermore, the data acquisition service module also includes a real-time data module for acquisition devices. The real-time data module for acquisition devices is used to: control the host to connect to the device according to the device network connection parameters configured in the system; and periodically request data from the device according to the configured points and acquisition frequency. After receiving the request, the device returns the data to the host's data acquisition service module.

[0027] Furthermore, the real-time data acquisition module is also used to develop a device acquisition driver library according to the device acquisition protocol, encapsulate the details of the device acquisition data, shield the differences in acquisition protocols, and provide a unified data acquisition interface for the data acquisition service module. The data acquisition service module saves the acquired data in a real-time in-memory database.

[0028] The present invention has the following beneficial effects:

[0029] This invention proposes an implementation scheme for dual-machine hot standby of SCADA data acquisition servers. It adopts a combination of data change and synchronization frequency to synchronize data between the primary and standby acquisition servers. Compared with traditional methods, this reduces the pressure on industrial equipment, decreases the system network bandwidth usage, reduces the operating pressure of the primary and standby servers, and improves the stability and reliability of system operation. Attached Figure Description

[0030] Figure 1 A flowchart of a dual-machine hot standby method for a SCADA data acquisition server provided in an embodiment of the present invention;

[0031] Figure 2 A flowchart illustrating a dual-machine hot standby role management process provided in an embodiment of the present invention;

[0032] Figure 3 This is a flowchart of primary and backup machine data acquisition and data synchronization provided in an embodiment of the present invention;

[0033] Figure 4 A flowchart illustrating the real-time data synchronization process for the data acquisition service provided in this embodiment of the invention. Detailed Implementation

[0034] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the present invention, and not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0035] As a specific embodiment of the present invention, a dual-machine hot standby method for a SCADA data acquisition server is provided. The method is characterized by having two SCADA data acquisition service modules, one serving as the primary machine and the other as the backup machine. The primary machine performs data acquisition and provides data services externally, while the backup machine assumes the primary machine's data service function when the primary machine fails and switches over. Both the primary and backup machines are equipped with data acquisition service modules, such as... Figure 1 As shown, the dual-machine hot standby method includes:

[0036] The host computer's data acquisition service module collects data from industrial equipment and sends the corresponding data point changes to the standby computer when the data changes.

[0037] After receiving the data, the standby machine's data acquisition service module restores the data according to the original data point acquisition frequency, and obtains the host data within the corresponding time range before and after the corresponding data point.

[0038] In practical applications, changes in on-site industrial equipment data are closely related to the equipment's sampling frequency and working environment. Often, data changes are slow or even do not change for a period of time. Based on the above actual situation, when the standby machine and the main machine synchronize data, the main machine can send the change data of each data point to the standby machine. After receiving the data, the standby machine restores the data according to the original data point collection frequency, and can obtain the main machine data within the corresponding time range of the two moments before and after the data point.

[0039] In addition, although the switching time between the primary and backup machines is relatively short, it still requires a certain amount of time. In order to minimize the impact of the switching time on the inconsistency of the primary and backup machine data, the primary machine also needs to periodically send the collected real-time data to the backup machine at a certain synchronization frequency. Even if the data has not changed, the synchronization sending frequency can be set according to other service requirements, such as the configuration screen refresh frequency, data storage frequency, etc.

[0040] This invention uses a combination of data change and synchronization frequency to synchronize data between the primary and backup acquisition servers. Compared with traditional methods, this reduces the pressure on industrial equipment, decreases the system network bandwidth usage, lowers the operating pressure on the primary and backup servers, and improves the stability and reliability of system operation.

[0041] This invention relates to a dual-machine hot standby SCADA data acquisition system, comprising: industrial equipment, two server hosts, and their deployed dual-machine hot standby service and data acquisition service modules. Each of the two server hosts deploys a set of dual-machine hot standby service and data acquisition service module programs. The dual-machine hot standby service is responsible for managing the primary and standby machine roles. After system startup, the dual-machine hot standby service determines the "primary and standby" roles of the two server hosts according to certain rules; subsequently, role switching is performed by monitoring the operating status of the data acquisition service module. The data acquisition service module obtains the "primary and standby" role of its machine, runs the corresponding role's business functions, and switches synchronously during role switching. The primary data acquisition service module connects to the industrial equipment according to the system's acquisition point configuration, acquires real-time data from the data points, and provides data request services externally; simultaneously, based on the synchronization request from the standby acquisition service, it sends data to the standby data acquisition service module according to the "data change and synchronization frequency" sending method. The standby acquisition service requests data from the primary acquisition service and restores the received data according to the acquisition frequency of the points.

[0042] The data acquisition service module includes a primary / backup role initialization module, a data acquisition operation monitoring module, a primary / backup role switching module, a data synchronization module, a network communication module, a local role acquisition module, and a real-time data acquisition device module.

[0043] The primary / standby role initialization module is used as follows: After the dual-machine hot standby service on both server hosts starts, the service status is set to uninitialized, and the service startup timestamp is the running time since the machine started, in milliseconds. The dual-machine hot standby program on both server hosts generates an initialization data packet, which contains initialization information such as the service startup timestamp and service ID. This packet is sent through the dual-machine hot standby service network communication module. Upon receiving the data packet, the hot standby service compares the startup timestamp of the other service with its own service startup timestamp. The machine with the smaller timestamp becomes the primary machine, and the machine with the larger timestamp becomes the standby machine. The role information is saved to the local shared memory, and the service status is updated to initialized. The primary machine then starts sending heartbeat requests to the standby machine, which responds upon receiving them.

[0044] The data acquisition operation monitoring module is used to: immediately start monitoring the operation of the local data acquisition service module after the dual-machine hot standby service on the primary and standby machines is initialized. The monitoring objects include the acquisition service process ID, CPU and memory usage. When the acquisition service process crashes or the CPU or memory usage exceeds the configured limit, the acquisition operation monitoring module on the primary machine sends a role switch request to the dual-machine hot standby service primary and standby machine role switch module to request a switch of primary and standby machine roles.

[0045] The primary / standby role switching module is used as follows: After receiving a role switching instruction from the local data acquisition and monitoring module, the primary role switching module generates a role switching data packet. This packet includes the role switching instruction, the primary machine's role, and the switching time. It then sends the switching instruction to the standby machine via the dual-machine hot standby service network communication module. Upon receiving this instruction, the standby machine obtains the acquisition operation status through its local acquisition and monitoring module. If the acquisition service is running normally, it generates a positive response packet indicating agreement to switch; if the acquisition service is malfunctioning, it generates a negative response packet indicating rejection of the switch. The standby machine then sends the response packet via the network communication module. Upon receiving the positive response from the standby machine, the primary machine switches its role to standby, updates its shared memory, and sends a switch completion instruction via the network communication module. Upon receiving the switch completion instruction, the standby machine switches its role back to primary and updates its shared memory.

[0046] During primary switchover, the role switching module first stops the TCP data synchronization service and stops sending synchronization data to the standby machine. Then, acting as the standby machine, it initiates a TCP synchronization connection to the new primary machine (the standby machine before the switchover), and receives synchronization data after the connection is established. During standby machine switchover, the role switching module first disconnects the data synchronization link with the primary machine, then acts as the primary machine, starts the TCP data synchronization service, and listens for standby machine synchronization connections on the data synchronization port. Once a connection is established, a data synchronization link is created, and synchronization data is sent.

[0047] Dual-machine hot standby role management process as follows Figure 2 As shown.

[0048] The data synchronization module is specifically used for: Primary and backup machine data synchronization employs the TCP protocol and a dedicated synchronization port to ensure data synchronization reliability. The data acquisition service on both the primary and backup machines periodically scans shared memory to determine the primary / backup role. When the machine is the primary, it connects to the device according to the system's data acquisition point configuration, requests real-time data based on the point acquisition frequency, and simultaneously starts the data synchronization service, waiting for the backup machine's data acquisition service to send a data synchronization request. When the machine is the backup, the data acquisition service proactively sends one synchronization request to the primary data acquisition service. Upon receiving this request, the primary sends the data to the backup according to the "data change and synchronization frequency" method. The backup, upon receiving this request, restores the data based on the synchronization frequency and the point acquisition frequency. When a change in the machine's role is detected, the primary stops data acquisition and data synchronization services, and sends synchronization data to the backup; both the primary and backup machines then operate according to their new roles.

[0049] The data acquisition and synchronization process between primary and backup machines is as follows: Figure 3 As shown.

[0050] The dual-machine hot standby service network communication module is used to: employ the UDP protocol and a dedicated dual-machine hot standby network communication port, as well as a proprietary data packet format (packet header + instruction code + instruction data + checksum + packet trailer), for data communication, increasing the real-time performance of role switching. Instructions include role initialization, role switching, heartbeat, etc.

[0051] The Local Role Acquisition module is used to periodically scan the local shared memory via the data acquisition service module to obtain the local role information written by the dual-machine hot standby service. When a role changes, it sends a role switching command to the role switching module of the data acquisition service module. The scanning period can be set according to actual conditions; too long a period will affect the real-time performance of role switching, while too short a period will increase CPU consumption. Generally, it can be set to 3 seconds.

[0052] The real-time data acquisition module is used for: connecting to the device according to the network connection parameters configured in the system; and periodically requesting data from the device according to the configured data points and acquisition frequency. Upon receiving the request, the device returns the data to the acquisition service. Because there are many industrial equipment manufacturers, and the protocols they support may differ, it is necessary to develop a device acquisition driver library based on the device acquisition protocol.

[0053] The system encapsulates the details of data acquisition by the packaging device, shields differences in acquisition protocols, and provides a unified data acquisition interface for the data acquisition service module. The acquisition service then stores the acquired data in a real-time in-memory database.

[0054] like Figure 4 As shown, the real-time data synchronization process of the data acquisition service of this invention is as follows:

[0055] 1) The host acquisition service starts the TCP data synchronization service according to the local role and listens for backup machine synchronization connections on the data synchronization port;

[0056] 2) The standby data acquisition service uses a TCP connection to synchronize data with the host data acquisition service.

[0057] 3) After the host acquisition service detects the data synchronization connection of the standby acquisition service, it establishes a data synchronization link;

[0058] 4) The backup machine's data acquisition service has successfully connected and established a data synchronization link;

[0059] 5) The standby data acquisition service sends a data synchronization request;

[0060] 6) After receiving the data synchronization request, the host acquisition service immediately sends the latest data (including timestamp and value) of each point in the real-time database in memory to the standby machine. The data sequence number is recorded as 1, and the timestamp is recorded as the first time the point is sent. The timestamp should be divisible by the point acquisition cycle.

[0061] 7) The standby device caches the received data.

[0062] 8) The host device's collection service compares the timestamp of the currently collected data at a certain point with the timestamp of the previously sent data to determine whether the data synchronization period of this point has been reached. If the synchronization period is reached, the currently collected data of the point is sent to the standby device, the data sequence number is incremented by 1, and the sending timestamp is updated. If the synchronization period is not reached, it is determined whether the current data has changed. If there is a change, the currently collected data of the point is sent to the standby device, the data sequence number is incremented by 1, and the sending timestamp is updated.

[0063] The synchronization period can be determined according to other business periods, such as the configuration screen refresh period T1, historical data storage period T2, and other periods Tn. Generally, the data collection period T0 (ms) is the smallest, that is, T0<T1 and T0<T2. The synchronization period Tsyn should satisfy the following conditions: Tsyn<Tmin=Min(T1, T2, ..., Tn); Tsyn>T0, and both Tmin and Tsyn, and Tsyn and T0 are in a multiple relationship. The smaller the Tsyn, the smaller the impact on data discontinuity and inconsistency caused by active-standby switching.

[0064] 9) After receiving the synchronization data from the host device, the standby device can recover other real-time data in the corresponding time period according to the timestamps of the data before and after the point. The specific method is as follows: the timestamps of the data before and after are recorded as tlast and tnext respectively. If the timestamp difference tperiod=(tnext-tlast) is divisible by the synchronization period Tsyn, then tperiod is also divisible by the collection period T0. Based on this, tlast is used as the start time, tnext as the end time, and T0 as the time interval to recover the data at the corresponding time within the tperiod time period, and the recovered data values are all the values corresponding to tlast. If tperiod is not divisible by Tsyn, the data is saved separately as changed data.

[0065] The above descriptions are only preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included in the protection scope of the present invention.

Claims

1. A dual-machine hot standby method for SCADA data acquisition servers, wherein two SCADA data acquisition servers are used, one as the primary server and the other as the backup server. The primary server acquires data from industrial equipment and provides data services to external users. The backup server assumes the data service function of the primary server when the primary server fails and switches over. Both the primary server and the backup server are equipped with a data acquisition service module. The method is characterized in that... Each server is deployed with an independently running dual-machine hot standby service. The dual-machine hot standby method includes the following steps: S1. Primary and backup role determination and shared memory interaction: After the dual-machine hot standby service starts, they exchange initialization data packets containing startup timestamps, determine the primary and standby roles by comparing startup timestamps, and write the local role information into shared memory. The data acquisition service module periodically scans the local shared memory to obtain role information, executes corresponding functions according to the role, and sends a role switching instruction to the primary and backup role switching module when the role changes. S2, Host-level data synchronization: The host's data acquisition service module collects industrial equipment data according to the preset acquisition period T0 for each data point and stores it in a real-time in-memory database; it synchronizes point data to the standby machine using a combination of "data change and synchronization frequency". For each data point, compare the timestamp of the currently collected data with the timestamp of the last synchronized data. If the preset synchronization period Tsyn is reached, then send the data of the current point to the backup machine. If the synchronization period Tsyn has not been reached, determine whether the current location data has changed compared to the previous synchronization data. If it has changed, immediately send the current location data to the backup machine. All synchronized data carries an incrementing sequence number and a collection timestamp, and the timestamp of the synchronized data is divisible by the collection period T0 of the corresponding point. S3, Standby Machine Periodic Matching Data Recovery: The standby machine's data acquisition service module receives and caches synchronized data. For two consecutive synchronized data sets, if the difference in timestamps between the two sets is divisible by the synchronization period Tsyn, the corresponding data for all acquisition times within that time interval is restored using the acquisition period T0 of the corresponding point as the time interval. If the difference in timestamps is not divisible by the synchronization period Tsyn, the data is saved separately as changed data. S4. Abnormal handover and link failover: The dual-machine hot standby service continuously monitors the operating status of the local data acquisition service module. When an anomaly is detected in the host data acquisition service, a primary / standby role switch is triggered. During the role switch, the direction of the data synchronization link is reversed simultaneously. The original host stops data acquisition and external services, and the original standby machine takes over the host role and starts data acquisition and external data services.

2. The dual-machine hot standby method for SCADA data acquisition servers according to claim 1, characterized in that, The initial synchronization process for establishing a data synchronization link between the primary and backup machines includes: The host's data acquisition service module starts the TCP data synchronization service according to its local role and listens for synchronization connections from the standby host on the synchronization port; The standby machine's data acquisition service module actively initiates a TCP connection to the host machine, and after the connection is established, it sends a data synchronization request to the host machine. After receiving the data synchronization request, the master machine sends the latest data of each point in the real-time database to the standby machine. The data sequence number is recorded as 1, and the corresponding timestamp is used as the first transmission timestamp of the point. The standby machine receives the initial data and completes the caching.

3. The dual-machine hot standby method for SCADA data acquisition servers according to claim 1, characterized in that, In step S2, the data synchronization period Tsyn satisfies the following configuration rules: The synchronization period Tsyn is greater than the data point acquisition period T0 and less than the minimum service period Tmin among all upper-layer service periods; the synchronization period Tsyn is an integer multiple of both the acquisition period T0 and the minimum service period Tmin.

4. The dual-machine hot standby method for SCADA data acquisition servers according to claim 1, characterized in that, The data acquisition service module also includes a data acquisition operation monitoring module. After the primary and backup roles are determined, the dual-machine hot standby service immediately starts monitoring the operation status of the local data acquisition service module. The monitoring objects include the acquisition service process ID, CPU utilization, and memory utilization.

5. The dual-machine hot standby method for SCADA data acquisition servers according to claim 4, characterized in that, The specific process for switching between primary and backup roles includes: When the host machine's data acquisition and monitoring module detects that the data acquisition service process has crashed or that the CPU or memory usage exceeds the configured threshold, it sends a role switch request to the standby machine. After receiving the switchover request, the standby machine checks the running status of its local data acquisition service. If the status is normal, it replies to the host machine with a response agreeing to the switchover. After receiving the confirmation of the switchover, the host machine switches its role to standby and updates the shared memory, while simultaneously sending a switchover completion command to the standby machine. After receiving the switchover completion command, the standby machine switches its role to master and updates the shared memory.

6. The dual-machine hot standby method for SCADA data acquisition servers according to claim 1, characterized in that, The role initialization, heartbeat detection, and role switching signaling between the dual-machine hot standby services use the UDP protocol and communicate with a dedicated port, while the point data synchronization between the data acquisition service modules uses the TCP protocol and communicate with a dedicated port.

7. The dual-machine hot standby method for SCADA data acquisition servers according to claim 1, characterized in that, In step S4, the direction switching of the data synchronization link specifically includes: When the original host is switched to the standby host, first stop the TCP data synchronization service and stop sending synchronization data to the standby host, then initiate a TCP synchronization connection to the new host and receive synchronization data. When the original standby machine is switched to the primary machine, the data synchronization link with the original primary machine is first disconnected, and then the TCP data synchronization service is started to listen for the synchronization connection of the new standby machine.

8. The dual-machine hot standby method for SCADA data acquisition servers according to claim 1, characterized in that, The data acquisition service module has a built-in real-time data module for the acquisition device, which is used to develop a corresponding device acquisition driver library according to the device acquisition protocol, encapsulate the details of the device acquisition data, shield protocol differences, and provide a unified data acquisition interface. The collected data is stored uniformly in a real-time in-memory database.

Citation Information

Patent Citations

  • Duplicated hot-redundancy method of telephone dispatching device in distributed system architecture

    CN105871592A

  • Method for realizing double hot standby based on IEEE1394 interfaces

    CN106790349A