CN112615728A - Simulation system master-slave switching method based on railway safety communication protocol - Google Patents

Simulation system master-slave switching method based on railway safety communication protocol Download PDF

Info

Publication number
CN112615728A
CN112615728A CN202011283308.3A CN202011283308A CN112615728A CN 112615728 A CN112615728 A CN 112615728A CN 202011283308 A CN202011283308 A CN 202011283308A CN 112615728 A CN112615728 A CN 112615728A
Authority
CN
China
Prior art keywords
switching
standby
main
master
data
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202011283308.3A
Other languages
Chinese (zh)
Other versions
CN112615728B (en
Inventor
兰青辉
李海海
陈晓轩
郑琼
郭延霞
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casco Signal Ltd
Original Assignee
Casco Signal Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Casco Signal Ltd filed Critical Casco Signal Ltd
Priority to CN202011283308.3A priority Critical patent/CN112615728B/en
Publication of CN112615728A publication Critical patent/CN112615728A/en
Application granted granted Critical
Publication of CN112615728B publication Critical patent/CN112615728B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B61RAILWAYS
    • B61LGUIDING RAILWAY TRAFFIC; ENSURING THE SAFETY OF RAILWAY TRAFFIC
    • B61L27/00Central railway traffic control systems; Trackside control; Communication systems specially adapted therefor
    • B61L27/70Details of trackside communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/145Network analysis or design involving simulating, designing, planning or modelling of a network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • H04L67/1095Replication or mirroring of data, e.g. scheduling or transport for data synchronisation between network nodes

Abstract

The invention relates to a simulation system main-standby switching method based on a railway safety communication protocol, which comprises the following steps: step S1: initializing a system, and selecting a simulation protocol simulated by an external simulation system; step S2: compiling an automatic switching script or a manual switching script and sending a switching command; step S3: before executing the switching command, the main and standby systems of the simulation system need to carry out data synchronization; step S4: after the main system and the standby system of the simulation system receive the switch command, the synchronization of the main system and the standby system is confirmed at the same time, and the roles of the main system and the standby system are respectively converted into the standby system or the main system; step S5: and recording the network information in the switching process. Compared with the prior art, the method and the device have the advantages of solving the problems of safety communication interruption and application data interruption caused by the switching of the safety communication protocol between two computers and the like.

Description

Simulation system master-slave switching method based on railway safety communication protocol
Technical Field
The invention relates to a main/standby switching method of a railway signal system, in particular to a simulation system main/standby switching method based on a railway safety communication protocol.
Background
In the application of the railway signal system safety communication, the main standby machine of the local system and the main standby machine of the target safety system are interconnected in a double-network cross mode. Common industry standard secure communication protocols are RSSP1, RSSP2 and other communication protocols. For example, 4 communication layer links are established between the train control center master-slave system and the interlocking master-slave machine through the dual-network, and the security layer adopts the RSSP1 protocol.
In the actual operation process of the safety system, the system only receives data of the main system, the standby system is used as a hot standby, and the standby system can be upgraded to the main system after the main system has errors, so that a scene that the main system and the standby system are switched is often generated, namely the standby system is upgraded to the main system, and the main system is downgraded to the standby system.
Through retrieval, chinese patent publication No. CN110380915A discloses a hot standby redundancy monitoring device based on a secure communication protocol, which specifically includes a switching module and a synchronization module, where the synchronization module includes two rail transit signal devices that are redundant to each other, one of the devices serves as a host and the other serves as a standby, the host outputs data and periodically performs data interaction with the standby, the standby periodically receives and processes the synchronization data sent by the host, compares the operation result of the standby with the operation result of the host, and switches the device state of the standby according to the comparison result; and the switching module acquires the equipment states of the two rail traffic signal equipment and switches the equipment states of the main machine and the standby machine. The method aims to solve the technical problems that a main backup machine in the prior art is difficult to quickly locate when a fault occurs, double main problems are easy to occur and a switching mode is single, but in an actual switching scene, the situation that communication with an opposite system is interrupted due to main backup switching often occurs, and real environment simulation of a system to be tested cannot be achieved.
Disclosure of Invention
The invention aims to provide a simulation system master-slave switching method based on a railway safety communication protocol, which is used for solving the problems of safety communication interruption and application data interruption caused by the double-machine switching of the safety communication protocol.
The purpose of the invention can be realized by the following technical scheme:
according to one aspect of the invention, a method for switching between main and standby simulation systems based on a railway safety communication protocol is provided, which comprises the following steps:
step S1: initializing a system, and selecting a simulation protocol simulated by an external simulation system;
step S2: compiling an automatic switching script or a manual switching script and sending a switching command;
step S3: before executing the switching command, the main and standby systems of the simulation system need to carry out data synchronization;
step S4: after the main system and the standby system of the simulation system receive the switch command, the synchronization of the main system and the standby system is confirmed at the same time, and the roles of the main system and the standby system are respectively converted into the standby system or the main system;
step S5: and recording the network information in the switching process.
As a preferred technical solution, the simulation protocols in step S1 include RSSP1, RSSP2, and FSFB2 protocols.
As a preferred technical solution, the step S1 specifically includes the following steps:
s101) respectively simulating a main system and a standby system of an external system through different processes or threads;
s102) simulating an external single system to respectively establish connection with a main system and a standby system of a system to be tested;
s103) for RSSP1 protocol, the security layer message sent by the external system contains a master/standby machine mark;
s104) for RSSP2 protocol, the security layer messages sent by the external system are identical.
As a preferred technical solution, the manual switching in step S2 is specifically: and sending a main/standby switching command through manual control.
As a preferred technical solution, the automatic switching in step S2 is specifically: and sending a main/standby switching command at regular time through the test script to realize scene simulation during copying.
As a preferred technical solution, the data synchronized in step S3 includes:
s301) the master system and the standby system of the simulated external system synchronize protocol safety layer data each period
S302) the master system and the standby system of the simulated external system synchronize application data every period.
As a preferred technical solution, the data synchronized in S301 includes a security layer connection state, current cycle timestamp information, and security check information.
As a preferred technical scheme, when the main/standby switch is performed, the safety data received from the system to be tested can be checked according to the synchronous information, and data check failure caused by errors of the timestamp and the safety check data is avoided.
As a preferred technical solution, the synchronization of S302 can ensure the consistency of data transmitted and received by the master system and the backup system of the simulated external system.
As a preferred technical solution, in the step S5, network data of the switching process is automatically recorded, and when the secure connection is interrupted, a field log of the connection interruption is provided, and a reason of the disconnection of the secure connection is recorded for analysis.
Compared with the prior art, the invention has the following advantages:
1) the invention solves the problems of safety communication interruption and application data interruption caused by the switching of the safety communication protocol between two computers;
2) the invention can realize the master-slave switching simulation of various safety communication protocols, and is convenient for testing the stability of the tested system;
3) the invention adopts an automatic switching mode, which is convenient for long-time copying simulation to test the stability of the tested system;
4) the invention adopts script control, is flexible to compile, and can realize two modes of manual operation and automatic operation;
5) the invention adopts the automatic recording function, thereby being convenient for finding problems.
Drawings
FIG. 1 is a diagram of a dual net cross-interconnect;
FIG. 2 is a schematic diagram of the active/standby switching according to the present invention;
fig. 3 is a flow chart of the main backup cutting machine of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step based on the embodiments of the present invention, shall fall within the scope of protection of the present invention.
The invention discloses a main-standby switching method of a secure communication protocol simulation system, which solves the problems of secure communication interruption and application data interruption caused by the switching of a secure communication protocol on a dual computer, and is structured as shown in figure 2.
The specific process of the invention is as follows:
step S1: initializing the system, and selecting simulation protocols simulated by the external simulation system, such as RSSP1/RSSP2/FSFB2 protocols;
s101) simulating a main system and a standby system, an A machine and a B machine of an external system respectively through different processes or threads.
S102) establishing connection between the simulated external single system and the main system and the standby system of the system to be tested respectively.
S103) for the RSSP1 protocol, the security layer message sent by the external system comprises a main/standby, A/B machine mark.
S104) for RSSP2 protocol, the security layer messages sent by the external system are identical.
Step S2: compiling an automatic or manual switching script and sending a switching command;
s201) manual switching, wherein a main/standby switching command is manually sent through manual control;
s202), automatic switching can be realized, and the automatic switching can realize scene simulation during copying by sending a main/standby switching command through a test script at regular time.
Step S3: before executing the switching command, the main and standby systems of the simulation system need to perform data synchronization, and the synchronized data mainly comprises:
s301) the master system and the standby system of the simulated external system synchronize protocol security layer data every period. The synchronized data should include the security layer connection status, the current period timestamp information, and the security check information. Therefore, when the main and standby switches, the safety data received from the system to be tested can be verified according to the synchronous information, and the problem that safety connection is disconnected due to data verification failure caused by the error of the timestamp and the safety verification data is avoided.
S302) the master system and the standby system of the simulated external system synchronize application data every period. Therefore, the consistency of data transmission and reception of the main system and the standby system of the simulated external system can be ensured. In a fault test scenario, inconsistency of data sent by the master system and the standby system needs to be supported.
Step S4: when the main system and the standby system of the simulation system receive the switch command, the synchronization of the main system and the standby system is confirmed, and the roles of the main system and the standby system are respectively converted into the standby system/the main system
Step S5: recording network information in the switching process: and automatically recording network data in the switching process, providing a field log of the connection interruption when the safety connection is interrupted, and recording the reason of the disconnection of the safety connection for analysis.
DETAILED DESCRIPTION OF EMBODIMENT (S) OF INVENTION
Referring to fig. 3, step S1 is executed to establish RSSP1 primary/secondary switching simulation system;
different processes are established through S101 to simulate a main system and a standby system, an A machine and a B machine of an external system of the RSSP1 respectively.
After the simulation test system is established, a connection is established with the master system and the backup system of the system under test through step S102.
For the RSSP1 protocol, the security layer message sent by the external emulation system contains the host/standby, a/B machine flag.
Figure BDA0002781515420000041
Figure BDA0002781515420000051
In the simulation system, there may be various combinations, such as a owner and B backup, or B owner and a backup;
the machine A is set as a main machine and the machine B is set as a standby machine in the example;
by step S2: writing an automatic or manual switching script, sending a switching command, and simulating the main system and the standby system of the system to perform data synchronization through step S3 before executing the switching command. In the structure of the security layer, the data of the security protocols of the main and standby systems need to be synchronized to ensure that the security link is not interrupted after switching. Security layer data
Figure BDA0002781515420000052
Figure BDA0002781515420000061
Figure BDA0002781515420000071
Figure BDA0002781515420000081
During the handover, the network message needs to be recorded by step 5 for analyzing the problem.
While the invention has been described with reference to specific embodiments, the invention is not limited thereto, and various equivalent modifications and substitutions can be easily made by those skilled in the art within the technical scope of the invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.

Claims (10)

1. A simulation system active-standby switching method based on a railway safety communication protocol is characterized by comprising the following steps:
step S1: initializing a system, and selecting a simulation protocol simulated by an external simulation system;
step S2: compiling an automatic switching script or a manual switching script and sending a switching command;
step S3: before executing the switching command, the main and standby systems of the simulation system need to carry out data synchronization;
step S4: after the main system and the standby system of the simulation system receive the switch command, the synchronization of the main system and the standby system is confirmed at the same time, and the roles of the main system and the standby system are respectively converted into the standby system or the main system;
step S5: and recording the network information in the switching process.
2. The method as claimed in claim 1, wherein the emulation protocol of step S1 includes RSSP1, RSSP2 and FSFB2 protocols.
3. The method for switching between master and slave emulation systems according to claim 2, wherein step S1 specifically includes the following steps:
s101) respectively simulating a main system and a standby system of an external system through different processes or threads;
s102) simulating an external single system to respectively establish connection with a main system and a standby system of a system to be tested;
s103) for RSSP1 protocol, the security layer message sent by the external system contains a master/standby machine mark;
s104) for RSSP2 protocol, the security layer messages sent by the external system are identical.
4. The method for switching between master and slave emulation systems according to claim 1, wherein the manual switching in step S2 is specifically: and sending a main/standby switching command through manual control.
5. The method for switching between master and slave emulation systems according to claim 1, wherein the automatic switching in step S2 specifically comprises: and sending the main/standby switching command at regular time through the test script.
6. The method according to claim 1, wherein the data synchronized in step S3 includes:
s301) the master system and the standby system of the simulated external system synchronize protocol safety layer data each period
S302) the master system and the standby system of the simulated external system synchronize application data every period.
7. The method according to claim 6, wherein the data synchronized in S301 includes a security layer connection status, current period timestamp information, and security check information.
8. The method according to claim 7, wherein when the master/slave switching is performed, the safety data received from the system under test can be checked according to the synchronization information, thereby avoiding data check failure due to errors of the timestamp and the safety check data.
9. The method for master-slave switching of the simulation system based on the railway safety communication protocol as claimed in claim 6, wherein the synchronization of S302 can ensure the consistency of data transmission and reception between the master system and the slave system of the simulated external system.
10. The method for switching between master and slave emulation systems according to claim 9, wherein in step S5, network data of the switching process is automatically recorded, and when the safety connection is interrupted, a field log of the interruption of the connection is provided, and the reason of the disconnection of the safety connection is recorded for analysis.
CN202011283308.3A 2020-11-17 2020-11-17 Simulation system master-slave switching method based on railway safety communication protocol Active CN112615728B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011283308.3A CN112615728B (en) 2020-11-17 2020-11-17 Simulation system master-slave switching method based on railway safety communication protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011283308.3A CN112615728B (en) 2020-11-17 2020-11-17 Simulation system master-slave switching method based on railway safety communication protocol

Publications (2)

Publication Number Publication Date
CN112615728A true CN112615728A (en) 2021-04-06
CN112615728B CN112615728B (en) 2022-07-15

Family

ID=75224971

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011283308.3A Active CN112615728B (en) 2020-11-17 2020-11-17 Simulation system master-slave switching method based on railway safety communication protocol

Country Status (1)

Country Link
CN (1) CN112615728B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113682348A (en) * 2021-08-25 2021-11-23 湖南中车时代通信信号有限公司 Novel interlocking dual-computer switching method based on communication
CN115333984A (en) * 2022-08-17 2022-11-11 卡斯柯信号有限公司 System and method for testing communication performance of security protocol

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5404465A (en) * 1992-03-18 1995-04-04 Aeg Transportation Systems, Inc. Method and apparatus for monitoring and switching over to a back-up bus in a redundant trainline monitor system
RU2405700C1 (en) * 2009-09-01 2010-12-10 Открытое акционерное общество "Российские железные дороги" (ОАО "РЖД") Stationary system for control of tone-frequency rail circuits for high-speed main line
CN101931983A (en) * 2010-07-22 2010-12-29 北京交通大学 Method and device for simulating switching
CN104299475A (en) * 2014-10-23 2015-01-21 上海自仪泰雷兹交通自动化系统有限公司 Simulator used for automatic monitoring system of train
CN106813702A (en) * 2015-12-02 2017-06-09 北京铁路信号有限公司 A kind of test device and system of communications records device
CN107885099A (en) * 2017-11-08 2018-04-06 交控科技股份有限公司 Emulation and enhancing emulation 2oo2 security platforms equipment, security platform maintaining method
CN111186464A (en) * 2020-01-16 2020-05-22 浙江众合科技股份有限公司 Full electronic computer interlocking system based on switching button

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5404465A (en) * 1992-03-18 1995-04-04 Aeg Transportation Systems, Inc. Method and apparatus for monitoring and switching over to a back-up bus in a redundant trainline monitor system
RU2405700C1 (en) * 2009-09-01 2010-12-10 Открытое акционерное общество "Российские железные дороги" (ОАО "РЖД") Stationary system for control of tone-frequency rail circuits for high-speed main line
CN101931983A (en) * 2010-07-22 2010-12-29 北京交通大学 Method and device for simulating switching
CN104299475A (en) * 2014-10-23 2015-01-21 上海自仪泰雷兹交通自动化系统有限公司 Simulator used for automatic monitoring system of train
CN106813702A (en) * 2015-12-02 2017-06-09 北京铁路信号有限公司 A kind of test device and system of communications records device
CN107885099A (en) * 2017-11-08 2018-04-06 交控科技股份有限公司 Emulation and enhancing emulation 2oo2 security platforms equipment, security platform maintaining method
CN111186464A (en) * 2020-01-16 2020-05-22 浙江众合科技股份有限公司 Full electronic computer interlocking system based on switching button

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
何青等: "轨旁安全平台协议通信的测试技术研究", 《铁道通信信号》 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113682348A (en) * 2021-08-25 2021-11-23 湖南中车时代通信信号有限公司 Novel interlocking dual-computer switching method based on communication
CN115333984A (en) * 2022-08-17 2022-11-11 卡斯柯信号有限公司 System and method for testing communication performance of security protocol
CN115333984B (en) * 2022-08-17 2023-10-31 卡斯柯信号有限公司 Safety protocol communication performance test system and method

Also Published As

Publication number Publication date
CN112615728B (en) 2022-07-15

Similar Documents

Publication Publication Date Title
CN112615728B (en) Simulation system master-slave switching method based on railway safety communication protocol
CN101217353B (en) A control method on multi-point dual redundancy system of call center
CN107453913B (en) Gateway redundancy method with high-speed communication between processors
CN101267392B (en) A realizing method for notifying downstream device in case of switch of uplink link status
EP2866388B1 (en) Method for detecting correctness of optic fiber connection based on radio remote unit (rru) looped network, and base band unit (bbu)
CN112218321B (en) Master-slave link switching method, device, communication equipment and storage medium
EP2928229A1 (en) Cross-device linear multiplex section overhead method, gateway and controller
CN112153134A (en) Disaster tolerance drilling method, device, equipment and storage medium of disaster tolerance cloud host
CN109981353B (en) Method and system for protecting adjacent station redundancy in frame type network communication equipment
JP5706347B2 (en) Redundant control system
CN103391324B (en) A kind of heat backup method based on tftp agreement
CN110351122B (en) Disaster recovery method, device, system and electronic equipment
CN102843265B (en) Not resetting without the hot standby dual link method of perturbation of a kind of communication protocol
CN101247213A (en) Method and system for master/standby rearrangement
JP2008146236A (en) Duplex control device and redundancy method of its control right setting signal
CN111460029A (en) Data synchronization method and device
CN108616591B (en) Interface device and method for data exchange
CN114598594B (en) Method, system, medium and equipment for processing application faults under multiple clusters
CN116027705A (en) Main-standby switching and data synchronizing system and method for programmable controller
CN114528242A (en) Computer platform dual-system synchronization method, device, equipment and medium
JP2009075719A (en) Redundancy configuration device and self-diagnostic method thereof
CN103023697B (en) A kind of management method, Apparatus and system of array multipath
CN102340407A (en) Protection switching method and system
JP2004007930A (en) System and program for controlling power system monitoring
JP7306983B2 (en) Controller and facility monitoring system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant