A control method for master / slave switching in a computer interlocking system

By comparing the communication status of the primary and backup systems with external devices in the interlocking system, and performing a primary-backup switch if the backup system is superior to the primary system, the problem of communication interruption in the existing technology is solved, and the availability and security of the system are improved.

CN123123128APending Publication Date: 2026-11-17SOUTHWEST JIAOTONG UNIV
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202611260091.1
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-19
Publication Date
2026-11-17

AI Technical Summary

Technical Problem

Existing computer interlocking systems cannot perform timely master-slave switching when communication between the master system and external devices fails, resulting in communication interruption and affecting system reliability and security.

Method used

By comparing the communication status of the primary and backup systems of the interlocking system with external devices, if the communication status of the backup system is better than that of the primary system and certain time conditions are met, a primary-backup switch is executed to ensure that the system maintains communication continuity in the event of a fault.

Benefits of technology

It improves the availability and reliability of the system in case of failure, avoids communication interruptions, and ensures the normal transmission of secure data.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123123128A_ABST
    Figure CN123123128A_ABST
Patent Text Reader

Abstract

This invention discloses a control method for master / standby switching in a computer interlocking system, comprising the following steps: S1, preparing for master / standby switching when the communication status comparison principle is met; S2, determining the scenario corresponding to the master / standby switching and completing the master / standby switching. The master / standby switching scheme for the interlocking system designed in this invention uses the communication status between the master and standby systems of the interlocking system and the master system of the other device as the judgment basis. If the communication status of the standby system is better than that of the master system, then the master / standby switching condition is considered met. If the system itself is the master system and the duration of the master / standby switching condition being met exceeds a specific time, then the interlocking system executes the master / standby switching.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of interlocking system control technology, and specifically to a control method for master / slave switching in a computer interlocking system. Background Technology

[0002] A computer interlocking system based on the 2x2 redundancy technology has two independent systems, usually called the primary system and the backup system. They work together to ensure the reliability and safety of the system. The primary system is responsible for handling the main operations and tasks, while the backup system takes over the work when the primary system fails, ensuring the continuous operation of the system.

[0003] When the interlocking system and external safety equipment exchange safety-related information through a closed transmission system, the RSSP-I protocol is usually used. The protocol stipulates that the user data packets of the primary system of the other party equipment are used for functional safety calculations, and the data packets of the backup system of the other party equipment are used to indicate that the physical channel connection is normal, and the user data packets are not used for functional safety calculations.

[0004] The interlocking system communicates with external devices via Ethernet boards. Both the main system and the backup system are equipped with the same type and number of Ethernet boards. Each Ethernet board provides two Ethernet interfaces, namely port A and port B, which are redundant with each other.

[0005] Interlocking system master / slave switching is typically based on the health and communication status of the master and backup systems. The interlocking system monitors the communication status of the interlocking logic unit, internal equipment, and external safety data network equipment, and uses this information to determine the health level of the master and backup systems, performing a switchover when necessary.

[0006] The existing scheme for performing primary / backup system switching based on the communication status of external security data network equipment is as follows: if the communication interruption time between the primary system of the interlocking system and both networks (Network A and Network B) of the external security data network equipment exceeds the interruption tolerance time, and the communication between the backup system and the external security data network equipment is normal, then primary / backup switching is performed. See patent: A computer interlocking system and its primary / backup system redundancy switching method, application / patent number: CN202310158720.X.

[0007] Under the above-mentioned scheme of performing master-slave switching based on communication status, if the master system of the interlocking system fails in one channel and the master system of the external device fails in another channel, that is, the master system of the interlocking system cannot communicate normally with the master system of the external device, but the master system of the interlocking system communicates normally with the master system of the external device, the existing master-slave switching scheme of the interlocking system will not perform master-slave switching, the external device cannot receive the master system data of the interlocking system, resulting in the interruption of communication between the external device and the interlocking system, and the safety data value is redirected to the safety side.

[0008] To improve system reliability and safety, the interlocking system triggers a primary / backup switchover based on the communication status with external safety data network devices. The existing primary / backup switchover scheme executes when the primary system experiences a communication failure with all external devices, while the backup system's communication with some or all external safety data network devices is normal. However, this scheme does not execute a primary / backup switchover when the primary system experiences a primary communication failure with external safety data network devices, but the backup system's primary communication with external safety data network devices is normal. In this case, external devices cannot receive data from the primary system of the interlocking system, leading to a communication interruption between external devices and the interlocking system, and safety data values ​​are redirected to the safety side. Summary of the Invention

[0009] To address the above problems, this invention proposes a control method for master / slave switching in a computer interlocking system.

[0010] The technical solution of the present invention is: a control method for master / slave switching in a computer interlocking system, comprising the following steps:

[0011] S1. Prepare for primary / backup switchover when the communication status comparison principle is met;

[0012] S2. Determine the scenario corresponding to the primary / standby switchover and complete the primary / standby switchover.

[0013] Furthermore, the communication state comparison principle includes a first principle and a second principle.

[0014] Furthermore, the first principle is as follows: if the system fails to receive valid data from the master system of any external device connected to the interlocking system, and other systems receive valid data from the master systems of all external devices connected to the interlocking system within the valid time, then the communication status of other systems is determined to be better than that of the system, and a master-slave switch is performed.

[0015] Furthermore, the second principle is as follows: if the system fails to receive valid data from the master system of all external devices connected to the interlocking system, and another system receives valid data from the master system of any external device connected to the interlocking system within the valid time, then the communication status of the other system is determined to be better than that of the system, and a master-slave switch is performed.

[0016] Furthermore, valid data specifically refers to data that is complete and has been successfully verified by a secure communication protocol.

[0017] Furthermore, the effective time is specifically defined as the maximum tolerable time for interruptions in receiving valid data.

[0018] Furthermore, in S2, the scenarios corresponding to primary / standby switching include the first scenario, the second scenario, the third scenario, the fourth scenario, the fifth scenario, and the sixth scenario.

[0019] Furthermore, the first scenario is: both the A network and the B network of the interlocking system are faulty; the second scenario is: a single channel failure in the main system of the interlocking system; the third scenario is: both the main and backup systems of the interlocking system and the main system of external equipment are faulty; the fourth scenario is: both the main system of the interlocking system and the main system of external equipment are faulty; the fifth scenario is: both the main and backup systems of the interlocking system and external equipment are faulty; the sixth scenario is: both channels of the main system of the interlocking system are faulty, and a single channel of the backup system is faulty.

[0020] The beneficial effects of this invention are:

[0021] (1) The interlocking system master-slave switching scheme designed in this invention uses the communication status between the master system and the backup system of the interlocking system and the master system of the other equipment as the judgment basis. If the communication status of the backup system is better than that of the master system, the master-slave switching condition is considered to be met. If the system is the master system and the duration of the master-slave switching condition is met exceeds a specific time, the interlocking system performs master-slave switching.

[0022] (2) In the existing master-slave switching scheme, the interlocking system does not perform master-slave switching when the fourth, fifth and sixth scenarios fail, which will cause the communication between the interlocking system and external equipment to be interrupted and the safety data value to be redirected to the safety side. After using the master-slave switching scheme designed in this invention, the interlocking system will perform master-slave switching when the fourth, fifth and sixth scenarios fail, thereby ensuring that both equipment can communicate with each other's master system, maintain the existing normal communication, and improve the availability and efficiency of the system. Attached Figure Description

[0023] Figure 1 A flowchart illustrating the control method for master / standby switching in a computer interlocking system;

[0024] Figure 2 A schematic diagram of a fault in both the main AB network of the interlocking system (Scenario 1);

[0025] Figure 3 A schematic diagram of a single channel (A network) fault in the main system of the interlocking system (second scenario);

[0026] Figure 4 A schematic diagram of a fault in both the main and backup systems of the interlocking system and the main system of external equipment (third scenario).

[0027] Figure 5 A schematic diagram of faults in the interlocking system's main system and external equipment's main system (Scenario 4);

[0028] Figure 6 Diagram of main-main fault and backup-backup fault of interlocking system and external equipment (fifth scenario);

[0029] Figure 7 This diagram illustrates a dual-channel fault in the primary interlocking system and a single-channel fault in the backup interlocking system (Scenario 6). Detailed Implementation

[0030] The embodiments of the present invention will be further described below with reference to the accompanying drawings.

[0031] like Figure 1 As shown, the present invention provides a control method for master / slave switching in a computer interlocking system, comprising the following steps:

[0032] S1. Prepare for primary / backup switchover when the communication status comparison principle is met;

[0033] S2. Determine the scenario corresponding to the primary / standby switchover and complete the primary / standby switchover.

[0034] The interlocking logic unit is the core equipment of the computer interlocking system, responsible for the logical processing and system management of the interlocking system. This main unit features high reliability and high security. The interlocking logic unit consists of two systems operating in parallel primary-standby mode. Based on the power-on sequence, the primary system is activated first, followed by the standby system. During operation, the standby system remains synchronized with the primary system. If one system fails, it is downgraded to standby or shut down depending on the severity of the failure, and the other system automatically becomes the primary system, maintaining system control functions.

[0035] Each system of the interlocking logic unit of the computer interlocking system can be configured with an Ethernet interface, which can be connected to the safety data network through a switch to realize communication with external signaling equipment such as the wireless block center, neighboring station interlocking, train control center, axle counting, and level crossing. The Ethernet communication interface board of the interlocking logic unit is equipped with two Ethernet ports, A and B. The network channels of ports A and B adopt a dual-redundancy design, so that the normal data transmission function is not affected if either network channel fails.

[0036] In this embodiment of the invention, the communication status comparison principle includes a first principle and a second principle.

[0037] The scheme for performing master-slave switching based on Ethernet communication status designed in this invention is as follows: The interlocking system compares the communication status of the master system and the backup system with external devices. When the communication status of the backup system with external devices is better than that of the master system with external devices, the master-slave switching condition is considered to be met. If the system is the master system and the duration of the master-slave switching condition being met exceeds a specific time, the interlocking system performs master-slave switching.

[0038] In this embodiment of the invention, the first principle is as follows: if the system fails to receive valid data from the master system of any external device connected to the interlocking system, and other systems receive valid data from the master systems of all external devices connected to the interlocking system within the valid time, then it is determined that the communication status of other systems is better than that of the system, and a master-slave switch is performed.

[0039] In this embodiment of the invention, the second principle is as follows: if the system fails to receive valid data from the master system of all external devices connected to the interlocking system, and another system receives valid data from the master system of any external device connected to the interlocking system within the valid time, then it is determined that the communication status of the other system is better than that of the system, and a master-slave switch is performed.

[0040] In this embodiment of the invention, valid data specifically refers to data that is complete and has been successfully verified by a secure communication protocol.

[0041] In this embodiment of the invention, the effective time is specifically defined as the maximum tolerable time for interruption of receiving valid data.

[0042] Specific time: The delay time after the interlocking system detects that the master / slave switchover is ready and initiates the master / slave switchover request. This delay time needs to take into account the effective retention time of the safety data values ​​between the interlocking system and external signaling equipment, as well as the master / slave switchover time consumed by the interlocking system, to ensure that the master / slave switchover of the interlocking system is completed before the safety data values ​​expire, and to prevent the safety data values ​​between the interlocking system and external equipment from being redirected to the safety side.

[0043] Valid Time: This is the maximum tolerable time for interruption in receiving valid data, used to determine whether the system can receive valid data from external devices. If the system receives valid data from external devices for longer than the valid time, it is considered that the system cannot receive valid data normally and does not meet the conditions for master / slave switching of interlocking equipment. Normally, the valid time should be less than or equal to a specific time.

[0044] In this embodiment of the invention, in S2, the scenarios corresponding to the primary / standby switchover include the first scenario, the second scenario, the third scenario, the fourth scenario, the fifth scenario, and the sixth scenario.

[0045] In this embodiment of the invention, the first scenario is: both the A network and the B network of the interlocking system are faulty; the second scenario is: a single channel failure of the main system of the interlocking system; the third scenario is: both the main and backup systems of the interlocking system and the main system of the external equipment are faulty; the fourth scenario is: both the main system of the interlocking system and the main system of the external equipment are faulty; the fifth scenario is: both the main and backup systems of the interlocking system and the external equipment are faulty; the sixth scenario is: both channels of the main system of the interlocking system are faulty, and the single channel of the backup system is faulty.

[0046] When the interlocking system performs a master-slave switch based on the communication status of external devices, the communication status of all external devices connected to the interlocking system has the same priority and is executed according to the same master-slave switch scheme. The following describes the master-slave switch scenario when communication between the interlocking system and one of the external communication devices is interrupted, based on the master-slave switch scheme designed according to the present invention. In the illustration, "×" indicates a communication failure.

[0047] like Figure 2As shown, when both A and B networks of the interlocking system fail, and the failure time exceeds the effective retention time of the safety data value, the main system of the interlocking system fails to receive valid data from the external device's main system. At this time, the backup system of the interlocking system can still receive valid data from the external device's main system. According to the communication status comparison principle, it can be determined that the communication status of the other system is better than that of this system. Therefore, the interlocking system performs a main / backup switchover after a specific time.

[0048] like Figure 3 As shown, when the primary A network of the interlocking system fails, the backup system can receive valid primary data from all external devices connected to the interlocking system within the effective time. Based on the communication status comparison principle, it can be determined that the communication status of other systems is better than that of the backup system. Therefore, the interlocking system performs a primary / backup switchover after a specific time. A failure in the primary B network of the interlocking system presents a similar scenario.

[0049] like Figure 4 As shown, when both network A and network B of the external device's primary system fail, neither the primary nor backup system of the interlocking system can receive data from the external device's primary system from network A or network B. When the failure time exceeds the effective retention time of the safety data value, the safety data value between the interlocking system and the external device is redirected to the safety side. At this point, even if the interlocking system performs a primary / backup switchover, it will not restore the safety data value with the external device. According to the communication status comparison principle, if the communication status of another system is not better than that of this system, the interlocking system will not perform a primary / backup switchover.

[0050] like Figure 5 As shown, the main system A network of the interlocking system fails, and the main system B network of the external equipment fails. At this time, the main system of the interlocking system cannot communicate with the main system of the external equipment through either network A or network B. However, the backup system of the interlocking system can communicate normally with the main system of the external equipment through network A. According to the principle of communication status comparison, it can be determined that the communication status of the backup system is better than that of the main system. Therefore, the interlocking system performs a main-backup switchover after a certain period of time.

[0051] like Figure 6 As shown, the interlocking system experiences a fault in both the primary A network and the backup B network. Additionally, the external equipment connected to the interlocking system also experiences a fault in both its primary B network and backup A network. In this situation, the primary interlocking system cannot communicate normally with the primary systems of the external equipment via either network A or network B. However, the backup interlocking system can communicate normally with the primary systems of the external equipment via network A. Based on the communication status comparison principle, the backup system's communication status is considered superior to that of the primary system. Therefore, the interlocking system will perform a primary / backup switchover after a specific time.

[0052] like Figure 7As shown, the interlocking system experiences a failure in both the primary A network and the backup B network. Additionally, the primary B network and backup AB networks of the external equipment connected to the interlocking system also fail. In this situation, the primary interlocking system cannot communicate with the external equipment's primary network via either network A or network B. However, the backup interlocking system can communicate normally with the external equipment's primary network via network A. Based on the communication status comparison principle, it can be determined that the backup system's communication status is superior to the primary system's. Therefore, the interlocking system will perform a primary / backup switchover after a specific time.

[0053] The fifth scenario in the description of the interlocking system's master-slave switching scenarios involves a master-master fault and a backup-slave fault between the interlocking system and external equipment. If the interlocking system and external equipment implement the same master-slave switching scheme, when the fault in the fifth scenario occurs, both devices will simultaneously perform master-slave switching. If the fault in the fifth scenario occurs again after both devices have simultaneously performed master-slave switching, the master-slave switching scheme will cause both devices to continuously perform master-slave switching.

[0054] To prevent both devices from continuously performing primary / backup switching when the fifth scenario failure occurs, when both devices use the primary / backup switching scheme designed in this invention, the number of primary / backup switching operations should be controlled in this failure scenario. The number of primary / backup switching operations for both devices should be alternated between 1 and 2 times to ensure that both devices can communicate normally with the other device's primary system after performing the primary / backup switching operation.

[0055] Those skilled in the art will recognize that the embodiments described herein are intended to help the reader understand the principles of the invention, and should be understood that the scope of protection of the invention is not limited to such specific statements and embodiments. Those skilled in the art can make various other specific modifications and combinations based on the technical teachings disclosed in this invention without departing from the spirit of the invention, and these modifications and combinations are still within the scope of protection of this invention.

Claims

1. A control method for master / slave switching in a computer interlocking system, characterized in that, Includes the following steps: S1. Prepare for primary / backup switchover when the communication status comparison principle is met; S2. Determine the scenario corresponding to the primary / standby switchover and complete the primary / standby switchover.

2. The control method for primary / standby switching in a computer interlocking system according to claim 1, characterized in that, The communication status comparison principles include a first principle and a second principle.

3. The control method for primary / standby switching in a computer interlocking system according to claim 2, characterized in that, The first principle is as follows: if the system fails to receive valid data from any external device connected to the interlocking system, and other systems receive valid data from all external devices connected to the interlocking system within the valid time, then the communication status of other systems is determined to be better than that of the system, and a master-slave switch is performed.

4. The control method for primary / standby switching in a computer interlocking system according to claim 2, characterized in that, The second principle is as follows: if the system fails to receive valid data from the master system of all external devices connected to the interlocking system, and another system receives valid data from the master system of any external device connected to the interlocking system within the valid time, then the communication status of the other system is determined to be better than that of the system, and a master-slave switch is performed.

5. The control method for primary / standby switching in a computer interlocking system according to claim 3, characterized in that, The valid data specifically refers to data that is complete and has been successfully verified by the secure communication protocol.

6. The control method for primary / standby switching in a computer interlocking system according to claim 3, characterized in that, The effective time is specifically defined as the maximum tolerance time for interruptions in receiving valid data.

7. The control method for primary / standby switching in a computer interlocking system according to claim 1, characterized in that, In S2, the scenarios corresponding to the primary / standby switchover include the first scenario, the second scenario, the third scenario, the fourth scenario, the fifth scenario, and the sixth scenario.

8. The control method for primary / standby switching in a computer interlocking system according to claim 7, characterized in that, The first scenario is: both the A network and B network of the interlocking system are faulty; the second scenario is: a single channel failure in the main system of the interlocking system; the third scenario is: both the main and backup systems of the interlocking system and the main system of external equipment are faulty; the fourth scenario is: both the main system of the interlocking system and the main system of external equipment are faulty; the fifth scenario is: both the main and backup systems of the interlocking system and external equipment are faulty; the sixth scenario is: both channels of the main system of the interlocking system are faulty, and a single channel of the backup system is faulty.

Citation Information

Patent Citations

  • Computer interlocking system and main and standby system redundancy switching method thereof

    CN116302715A