A relay protection fault information system and a dual-computer control method thereof

CN122909112APending Publication Date: 2026-10-13上海许继电气有限公司 +1
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202611183449.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-05
Publication Date
2026-10-13

AI Technical Summary

Technical Problem

[0005]本发明的目的是提供一种继电保护故障信息系统及其双机控制方法,用以解决现有双机部署方案在主备切换时因数据流无法无缝衔接,导致实时数据丢失或重复,从而难以兼顾数据完成性与业务连续性的问题

Benefits of technology

[0016]本发明的有益效果为:继电保护故障信息系统的两个应用服务器均预先配置用于存储另一服务器的准输出数据的子站,当第一应用服务器的服务状态断开时,将第一应用服务器的子站数据转发至第二应用服务器;基于第二应用服务器的子站数据和所述第一应用服务器的子站数据,控制第二应用服务器执行第一应用服务器的数据处理任务,实现保信主站应用服务器的双主互备。规避在主备切换时数据流无法无缝衔接的问题。提高数据完整性。

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122909112A_ABST
    Figure CN122909112A_ABST
Patent Text Reader

Abstract

The application relates to a relay protection fault information system and a dual-machine control method thereof, and belongs to the technical field of relay protection. Two application servers of the relay protection fault information system are pre-configured with sub-stations for storing quasi-output data of another server, and when the service state of a first application server is disconnected, the sub-station data of the first application server is forwarded to a second application server; based on the sub-station data of the second application server and the sub-station data of the first application server, the second application server is controlled to execute a data processing task of the first application server, so that dual-main mutual backup of a main station application server of the relay protection is realized. The problem that data flow cannot be seamlessly connected during main / backup switching is avoided, and data integrity is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to a relay protection fault information system and its dual-machine control method, belonging to the field of relay protection technology. Background Technology

[0002] In a relay protection fault information master station system, the application server, as the core data processing and archiving unit, directly affects the reliability of power grid fault diagnosis due to its continuous operation and the accuracy of data processing. Therefore, existing technologies typically employ dual-machine redundancy for application servers. For communication systems and application systems requiring dual-machine operation, most utilize full-duplex (operating independently), master-slave (master running, slave in standby synchronous), or mutual backup (two machines running different applications). A communication system using mutual backup can be found in patent application CN101119242A; a master-slave communication system can be found in patent application CN117134869A; and if the two machines primarily rely on heartbeats for operational status detection, then patent application CN115766413A is relevant.

[0003] For the application server of the relay protection fault information system master station, the application server may deploy an application system, such as a fault archiving program (used for archiving and analyzing relay protection fault information data). The data source is the communication front-end, which may also be deployed as a dual-machine system. The data output includes the communication front-end, database, and other application systems, and the data output may be a single machine or a dual machine. Communication power system operating equipment requires data integrity. Therefore, full-duplex mode is unsuitable due to duplicate data output. In master-slave mode, because the heartbeat between the two machines is used to infer each other's status, determining when the other has exited and taking over requires a certain amount of time. During this time, the data source is unaware of the application service's status and continues to transmit data, potentially causing data loss. In contrast, in the mutual backup mode, one machine runs different applications. When there is only one application, it is consistent with the master-slave mode.

[0004] Chinese invention patent application CN105591467A discloses a relay protection fault information master station system based on a service-oriented architecture. The system includes: several front-end communication modules housed in several front-end communication servers, used to enable information interaction between the relay protection fault information master station system and relay protection fault information substations, and to send the acquired information to a distribution server module; a service center module, used to establish connections between service consumers and service providers, and to balance connections between service consumers and service providers when multiple service providers exist; a protocol conversion module, a distribution service module, several application servers, an interface display module, a data platform module, and a database server. This invention relates to a relay protection fault information master station system based on a service-oriented architecture, featuring loosely coupled and scalable module combinations, with most modules being stateless independent functional entities that can be deployed on multiple communication servers to achieve load balancing. Clearly, in this patent (CN105591467A), by splitting the communication service program into multiple stateless independent functional entities and deploying them in a distributed manner, system performance expansion and load balancing are achieved. However, this solution aims to address the performance bottleneck of a single communication service program, but it does not cover issues such as data duplication prevention, data loss prevention, and seamless fault switching when two application service hosts are running simultaneously. Summary of the Invention

[0005] The purpose of this invention is to provide a relay protection fault information system and its dual-machine control method to solve the problem that in existing dual-machine deployment schemes, the data flow cannot be seamlessly connected during the switching of primary and backup, resulting in the loss or duplication of real-time data, thus making it difficult to balance data integrity and business continuity.

[0006] To address the aforementioned technical problems, the first aspect of this invention provides a dual-machine control method for a relay protection fault information system. Both application servers of the relay protection fault information system are pre-configured with substations for storing quasi-output data from the other server. The control method includes the following steps: 1) When the service status of the first application server is disconnected, forward the data of the sub-site of the first application server to the second application server; 2) Based on the sub-site data of the second application server and the sub-site data of the first application server, control the second application server to execute the data processing tasks of the first application server.

[0007] In one possible implementation, when both application servers are in normal service status, the quasi-output data of the other application server is stored through a sub-site of one application server.

[0008] In one possible implementation, when the service state of the first application server switches from disconnected to restored, the substation data of the first application server is forwarded to the first application server; the second application server is controlled to maintain the current quasi-output data of the first application server, and forward the quasi-output data of the second application server during the execution of the data processing task of the first application server to the first application server.

[0009] In one possible implementation, the service status of the application server is determined by detecting the socket status and heartbeat messages.

[0010] In one possible implementation, the service state includes any one of an initial state, a connected state, and a disconnected state.

[0011] To solve the above-mentioned technical problems, a second aspect of the present invention provides a relay protection fault information system, including a processor, and two application servers of the relay protection fault information system, each of which is pre-configured with a substation for storing quasi-output data of the other server. The processor executes a computer program to perform the following steps: 1) When the service status of the first application server is disconnected, forward the data of the sub-site of the first application server to the second application server; 2) Based on the sub-site data of the second application server and the sub-site data of the first application server, control the second application server to execute the data processing tasks of the first application server.

[0012] In one possible implementation, when both application servers are in normal service status, the quasi-output data of the other application server is stored through a sub-site of one application server.

[0013] In one possible implementation, when the service state of the first application server switches from disconnected to restored, the substation data of the first application server is forwarded to the first application server; the second application server is controlled to maintain the current quasi-output data of the first application server, and forward the quasi-output data of the second application server during the execution of the data processing task of the first application server to the first application server.

[0014] In one possible implementation, the service status of the application server is determined by detecting the socket status and heartbeat messages.

[0015] In one possible implementation, the service state includes any one of an initial state, a connected state, and a disconnected state.

[0016] The beneficial effects of this invention are as follows: Both application servers of the relay protection fault information system are pre-configured with substations for storing quasi-output data from the other server. When the service status of the first application server is disconnected, the substation data of the first application server is forwarded to the second application server. Based on the substation data of the second application server and the substation data of the first application server, the second application server is controlled to execute the data processing tasks of the first application server, realizing dual-master mutual backup of the main application server for relay protection. This avoids the problem of seamless data flow during master-slave switching and improves data integrity. Attached Figure Description

[0017] Figure 1 This is a flowchart of a dual-machine control method for a relay protection fault information system proposed in this invention; Figure 2 This is a structural diagram of a relay protection fault information system proposed in this invention. Detailed Implementation

[0018] To make the objectives, technical solutions, and advantages of the present invention clearer, the present invention will be further described in detail below with reference to the accompanying drawings and embodiments.

[0019] The inventive concept of this invention lies in implementing data source distribution and application service status determination for application services within the communication manager. Application services (i.e., application servers) do not require a heartbeat mechanism; instead, they determine the status of each other's application services through data from the managed substations and notification information from the communication manager. Furthermore, through mutual backup of aligned output data (data cached due to unmet output conditions) and automatic recovery of backup data, dual-master mutual backup of application services within the main station (i.e., the relay protection fault information system) is achieved.

[0020] Detailed implementation method 1: like Figure 1 The diagram shows a flowchart of a dual-machine control method for a relay protection fault information system proposed in this invention. In this method, both application servers of the relay protection fault information system are pre-configured with substations for storing quasi-output data from the other server. The method includes steps S11 and S12, specifically: Step S11: When the service status of the first application server is disconnected, the data of the substation of the first application server is forwarded to the second application server. Here, the service status of each application server is determined by real-time detection of the socket status and heartbeat messages. The socket is a programming interface provided by the operating system and serves as a bridge between the application layer and the transport layer. In practical application scenarios, the socket is the bridge for communication between the communication manager and the first and second application servers. The socket status is used to reflect the communication status. The heartbeat message is the message data sent between the two communicating parties at a preset fixed time interval. If one party does not receive a "heartbeat" response from the other party several times in a row, it is determined that the other party's service status is abnormal, that is, the other party's service status is disconnected.

[0021] Step S12: Based on the sub-site data of the second application server and the sub-site data of the first application server, control the second application server to execute the data processing task of the first application server.

[0022] Through the above steps S11-S12, a rapid and seamless switch of the data source is achieved in the event of a fault, which fundamentally solves the technical problem of data loss or duplicate output during the switching interval in the traditional dual-machine solution. It effectively ensures the integrity of the key business data of the main station and the continuity of services, and significantly improves the system's high availability and intelligent fault self-healing capability in complex operating environments.

[0023] Method Detailed Implementation 2: The following section provides a detailed explanation of the dual-machine control method for a relay protection fault information system proposed in this invention, based on practical application scenarios. This includes steps S1-S5, which, for ease of distinction, are referred to as Main 1 and Main 2, respectively. Step 1. Determine the running status of the application server The application service status is determined directly by the communication manager, which then transmits this status among the communication managers. Application service status is categorized into three types: initial, connected, and disconnected. Communication managers communicate with application services via the TCP / IP protocol. The communication manager can determine its communication status with each application service through socket status and heartbeat messages, thereby promptly stopping data transmission and buffering subsequent data to ensure data integrity.

[0024] Step 2. Data source splitting The substations that application services Master 1 and Master 2 can manage are pre-configured, and this configuration is loaded into each communication manager. The communication manager sends data from each application service's managed substations to the corresponding application service. When communication with Master 1 is lost, the communication manager sends data from Master 1's managed substations to Master 2. If communication between the communication manager and Master 1 is restored, the communication manager stops sending data from Master 1's managed substations to Master 2 and notifies Master 2 to stop taking over data from substations that do not belong to it. Then, the communication manager resumes sending data from its managed substations to Master 1.

[0025] Step 3. Application service determines the running status of the other party. Application services preload information about their manageable and unmanageable substations. Upon receiving information about an unmanageable substation, another application service is considered unavailable. If communication between the primary application service and the communication manager is lost and then restored, the communication manager will notify the secondary application service that the primary application service has resumed operation and should cease processing data from the primary application service's substations. Upon receiving this notification, the secondary application service immediately releases the data processing permissions it has taken over from the primary application service's substations.

[0026] Step 4. Application service standard output data mutual backup Regardless of whether both application services are online, the local application service will back up the quasi-output data corresponding to the substations managed by the other application service to its local machine. The two application services communicate independently, actively synchronizing their own quasi-output data with each other to ensure that the other application service can continue data processing for the relevant substations in the event of an anomaly in its own application service. When its own status recovers and it receives substation data sent by the communication manager, it actively requests to synchronize the quasi-output data of the substations managed by the other application service, after which the quasi-output data of both parties resumes normal mutual backup.

[0027] Step 5. System Processing Flow When both main application services (primary and secondary) are functioning normally, they synchronize their own preliminary output data to each other for storage. When the communication manager detects a communication loss with primary service 1, it immediately forwards the data from the substations managed by primary service 1 to primary service 2. Primary service 2 then loads the locally cached preliminary output data from primary service 1 and continues primary service 1's data processing tasks, ensuring business continuity.

[0028] Once Master 1 resumes communication, the communication manager re-forwards the data from the substations managed by Master 1 back to Master 1 and notifies Master 2 to stop processing the substation data originally belonging to Master 1. Upon receiving the notification, Master 2 maintains the current quasi-output data of Master 1, and Master 1 proactively requests Master 2 to synchronize the quasi-output data it generated during the takeover period, completing the reverse data completion. Both parties then re-enter mutual backup mode.

[0029] System implementation details: This invention also proposes a relay protection fault information system, the preferred schematic diagram of which is shown below. Figure 2As shown, the system specifically includes a memory, a processor, a system bus, and a computer program stored in the memory. The processor and the memory communicate and exchange data with each other through the system bus. The processor executes the computer program to implement the steps of the dual-machine control method of the relay protection fault information system of the present invention. The processor can be a microprocessor (MCU) or other processing device; the memory can be any type of memory that stores information using electrical energy, such as non-volatile storage media (including computer programs, databases), or other types of memory.

[0030] In summary, this invention proposes a relay protection fault information system and its dual-machine control method. When the service status of the first application server is disconnected, the substation data of the first application server is forwarded to the second application server. Based on the substation data of the second application server and the substation data of the first application server, the second application server is controlled to execute the data processing tasks of the first application server, thereby realizing the dual-master backup control of the relay protection master station application service and improving data integrity.

Claims

1. A dual-machine control method for a relay protection fault information system, characterized in that, Both application servers of the relay protection fault information system are pre-configured with substations for storing quasi-output data from the other server. The control method includes the following steps: 1) When the service status of the first application server is disconnected, forward the data of the sub-site of the first application server to the second application server; 2) Based on the sub-site data of the second application server and the sub-site data of the first application server, control the second application server to execute the data processing tasks of the first application server.

2. The dual-machine control method for the relay protection fault information system according to claim 1, characterized in that, When both application servers are in normal service status, the quasi-output data of the other application server is stored through a sub-site of one application server.

3. The dual-machine control method for the relay protection fault information system according to claim 1, characterized in that, When the service status of the first application server switches from disconnected to restored, the substation data of the first application server is forwarded to the first application server; the second application server is controlled to maintain the current quasi-output data of the first application server, and the quasi-output data of the second application server during the execution of the data processing task of the first application server is forwarded to the first application server.

4. The dual-machine control method for the relay protection fault information system according to claim 1, characterized in that, The service status of the application server is determined by detecting its socket status and heartbeat messages.

5. The dual-machine control method for the relay protection fault information system according to claim 4, characterized in that, The service status includes any one of the following: initial status, connected status, and disconnected status.

6. A relay protection fault information system, comprising a processor, characterized in that, Both application servers of the relay protection fault information system are pre-configured with substations for storing quasi-output data from the other server; The processor executes a computer program to perform the following steps: 1) When the service status of the first application server is disconnected, forward the data of the sub-site of the first application server to the second application server; 2) Based on the sub-site data of the second application server and the sub-site data of the first application server, control the second application server to execute the data processing tasks of the first application server.

7. The relay protection fault information system according to claim 6, characterized in that, When both application servers are in normal service status, the quasi-output data of the other application server is stored through a sub-site of one application server.

8. The relay protection fault information system according to claim 6, characterized in that, When the service status of the first application server switches from disconnected to restored, the substation data of the first application server is forwarded to the first application server; the second application server is controlled to maintain the current quasi-output data of the first application server, and the quasi-output data of the second application server during the execution of the data processing task of the first application server is forwarded to the first application server.

9. The relay protection fault information system according to claim 6, characterized in that, The service status of the application server is determined by detecting its socket status and heartbeat messages.

10. The relay protection fault information system according to claim 9, characterized in that, The service status includes any one of the following: initial status, connected status, and disconnected status.

Citation Information

Patent Citations

  • Communication system cluster method, device and cluster service system applying the same

    CN101119242A

  • Relay protection fault information main station system based on service-oriented architecture

    CN105591467A

  • Network-based dual-computer mutual backup automatic takeover method and device, and storage medium

    CN115766413A

  • Application distribution method, storage medium and dual-computer mutual backup system

    CN117134869A