[go: up one dir, main page]

CN119576659A - Dual-system hot standby switching method and system for 2-by-2 fetch 2 structure - Google Patents

Dual-system hot standby switching method and system for 2-by-2 fetch 2 structure Download PDF

Info

Publication number
CN119576659A
CN119576659A CN202411650061.2A CN202411650061A CN119576659A CN 119576659 A CN119576659 A CN 119576659A CN 202411650061 A CN202411650061 A CN 202411650061A CN 119576659 A CN119576659 A CN 119576659A
Authority
CN
China
Prior art keywords
state
opposite
systems
standby
calculating
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.)
Pending
Application number
CN202411650061.2A
Other languages
Chinese (zh)
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.)
CRSC Urban Rail Transit Technology Co Ltd
Original Assignee
CRSC Urban Rail Transit Technology Co 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 CRSC Urban Rail Transit Technology Co Ltd filed Critical CRSC Urban Rail Transit Technology Co Ltd
Priority to CN202411650061.2A priority Critical patent/CN119576659A/en
Publication of CN119576659A publication Critical patent/CN119576659A/en
Pending legal-status Critical Current

Links

Landscapes

  • Hardware Redundancy (AREA)

Abstract

本发明涉及铁路信号控制技术领域,提供了一种用于2乘2取2结构的双系热备切换方法及系统,旨在解决现有技术中存在的进行主备系统的切换接管工作时,难以确保主备系统之间的数据一致性和同步性的技术问题。包括:周期性获取两个系统的状态因素,基于所述状态因素,计算每个系统的本系状态和对系状态;两个系统分别将各自计算的本系状态和对系状态发送至对方系统;在每个系统内,根据当前系统计算的本系状态和对系状态,以及对方系统发送的本系状态和对系状态,判断切系计算是否正确,若正确,则生成切系结果;每个系统根据当前系统生成的所述切系结果执行切系操作。本发明能够迅速进行主备切换,减少服务中断时间,提高系统的恢复速度。

The present invention relates to the technical field of railway signal control, and provides a dual-system hot standby switching method and system for a 2x2-out-of-2 structure, aiming to solve the technical problem in the prior art that it is difficult to ensure data consistency and synchronization between the main and standby systems when performing the switching and takeover of the main and standby systems. It includes: periodically obtaining the status factors of the two systems, and calculating the local system status and the opposite system status of each system based on the status factors; the two systems respectively send their own calculated local system status and opposite system status to the other system; in each system, according to the local system status and opposite system status calculated by the current system, and the local system status and opposite system status sent by the other system, it is judged whether the switching calculation is correct, and if correct, a switching result is generated; each system performs the switching operation according to the switching result generated by the current system. The present invention can quickly perform the main and standby switching, reduce the service interruption time, and improve the recovery speed of the system.

Description

Dual-system hot standby switching method and system for 2-by-2 fetch 2 structure
Technical Field
The invention belongs to the technical field of railway signal control, and particularly relates to a double-system hot standby switching method and system for a 2-by-2 taking-2 structure.
Background
The 2-by-2 taking 2 structure consists of two completely independent systems (A system and B system), and each system is internally provided with two independent computers (A1/A2 and B1/B2). Within each system, two computers independently process the same input signal and perform operations. If the results of the two computers agree, the output of the system is considered valid. If the results are inconsistent or any computer self-test finds a failure, the system is deemed unusable.
In the prior art, data consistency checks are performed within each system (e.g., A1 and A2 in the a system) as well as between different systems (e.g., the a system and the B system). If the output results of two computing nodes (A1 and A2) in the system are consistent, the system is considered healthy, and if not, a further judgment is needed as to whether there is a fault. Similarly, if the output results of the two systems are consistent, the system state is considered to be good, and if the output results are inconsistent, further fault detection is required. If a failure is detected in one system (e.g., system a) and the other system (system B) is operating properly, the system will automatically switch to the operating properly system to continue operation.
The prior art has the following technical problems:
in the prior art, when the switching takeover work of the main and standby systems is performed, the data consistency and the synchronism between the main and standby systems are difficult to ensure.
Disclosure of Invention
The invention provides a dual-system hot standby switching method and system for a 2-by-2 fetch-2 structure, and aims to solve the technical problem that data consistency and synchronism between main and standby systems are difficult to ensure when switching connection pipe work of the main and standby systems is performed in the prior art.
The technical scheme for solving the technical problems is as follows, the double-system hot standby switching method for the 2-by-2 taking-2 structure comprises the following steps:
periodically acquiring state factors of two systems, and calculating the own system state and the opposite system state of each system based on the state factors;
The system state is used for representing the target state of the other system except the current system;
The two systems respectively send the own calculated own system state and opposite system state to the opposite system;
Judging whether the cut system calculation is correct or not in each system according to the system state and the opposite system state calculated by the current system and the system state and the opposite system state sent by the opposite system, and if so, generating a cut system result;
each system performs a slicing operation based on the slicing results generated by the current system.
Further, the target states include a master state and a non-master state, and the non-master state includes a standby state and a standby state.
Further, the state factors include a communication state and a working state, and calculating the local system state and the opposite system state of each system specifically includes:
detecting the communication state between two systems, if the communication is normal, calculating the local system state and the opposite system state of each system by detecting the working state of the system;
If the communication is abnormal, the system in the main system state and the opposite system state are respectively output as the main system state and the standby state, and the system in the non-main system state and the opposite system state are respectively output as the standby state and the main system state;
if the communication is interrupted, the system state of both systems is outputted as a master system state, and the system state of both systems is outputted as a standby state.
Further, the above state factors further include a synchronization state, and calculating the local system state and the opposite system state of each system by detecting the working state of the system specifically includes:
detecting the working state between two systems, if the working state is normal, calculating the local system state and the opposite system state of each system by detecting the synchronous state between the two systems;
If the working state fails, defining the target state of one system as the main system state and the target state of the other system as the standby state, and correspondingly generating the main system states of the two systems and outputting the main system states.
Further, the above state factor further includes a cut request, and calculating the local state and the opposite state of each system by detecting the synchronization state between two systems specifically includes:
Detecting the synchronous state between two system systems, if the synchronous state is normal, calculating the local system state and the opposite system state of each system through the system cutting request;
if the synchronization state is abnormal, the system in the master state and the slave state are respectively outputted as the master state and the standby state, and the system in the non-master state and the slave state are respectively outputted as the standby state and the master state.
Further, the above state factor further includes a health state, and calculating the local state and the opposite state of each system by the cut request specifically includes:
judging whether each system has faults or not through application software, if not, calculating the own system state and the opposite system state of each system by detecting the health states of the two systems;
If one of the systems has a fault, the system state and the opposite system state of the system with the fault are respectively output as a standby state and a main system state, and the system state and the opposite system state of the system without the fault are respectively output as the main system state and the standby state;
If both systems have faults, the system in the master state and the slave state are respectively output as the master state and the standby state, and the system in the non-master state and the slave state are respectively output as the standby state and the master state.
Further, the calculating the local system state and the opposite system state of each system by detecting the health states of the two systems specifically includes:
And calculating health values of the two systems, judging whether the health values of the two systems are equal, if not, outputting the system state and the opposite system state of the system with high health value as a main system state and a standby system state respectively, and outputting the system state and the opposite system state of the system with low health value as the standby system state and the main system state respectively.
Further, the determining whether the cut system calculation is correct specifically is:
Judging whether the cut system calculation is correct or not through a state judgment equation, wherein the formula of the state judgment equation is shown as follows:
G The system =G′ Pairing system
G Pairing system =G′ The system
Wherein, G The system represents the present system state, G Pairing system represents the present system state, G ' Pairing system represents the calculated system state, and G' The system represents the calculated present system state;
If the cut calculation is correct, G The system is taken as the cut result of the current system.
The technical scheme has the beneficial effects that each system not only calculates the own target state, but also receives the target state of the other system, and the state judgment equation is used for verification, so that the consistency of the calculation results of the two systems is ensured. The double checking mechanism reduces the possibility of misjudgment and improves the stability and the safety of the system.
In a second aspect, the present invention further provides a dual-system hot standby switching system for a2 by 2 access 2 structure, for solving the above technical problems, including:
The state calculation module is used for periodically acquiring state factors of the two systems and calculating the own system state and the opposite system state of each system based on the state factors;
The system state is used for representing the target state of the other system except the current system;
the state transmission module is used for respectively transmitting the own calculated local system state and opposite system state to the opposite system by the two systems;
The state judging module is used for judging whether the cutting calculation is correct or not in each system according to the local system state and the opposite system state calculated by the current system and the local system state and the opposite system state sent by the opposite system, and generating a cutting result if the cutting calculation is correct;
And the system is used for executing the cutting operation according to the cutting result generated by the current system.
Further, the status factors include a communication status, an operating status, a synchronization status, a handoff request, and a health status.
Compared with the prior art, the invention has the following advantages:
1. When the system and the method calculate the local system state and the opposite system state of each system, a plurality of factors such as the communication state, the working state, the synchronous state, the cutting system request and the health state are comprehensively considered, and more comprehensive fault detection and processing are ensured. By periodically acquiring and analyzing the state factors of each system, potential faults can be found in time, and corresponding measures are taken for isolation. Once a fault or inconsistent state is detected, the system can rapidly switch the main and standby, reduce the service interruption time and improve the recovery speed of the system.
2. According to the invention, each system calculates the own target state, receives the target state of the other system, and checks the target state through the state judgment equation, so that the calculation results of the two systems are consistent. The double checking mechanism reduces the possibility of misjudgment and improves the stability and the safety of the system.
Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention may be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required in the embodiments or the description of the prior art will be briefly described, and it is obvious that the drawings in the following description are some embodiments of the present invention, and other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flow diagram of a dual hot standby switching method for a 2-by-2 fetch 2 architecture according to an embodiment of the present invention;
FIG. 2 is a schematic diagram showing steps of a dual hot standby switching method for a 2-by-2 fetch 2 architecture according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a dual hot standby switching method for a 2-by-2 fetch 2 architecture according to an embodiment of the present invention;
FIG. 4 illustrates a system block diagram of a dual hot standby switching system for a 2 by 2 fetch 2 architecture in accordance with an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Fig. 1 shows a flow diagram of a dual-system hot standby switching method for a2 by 2 fetch 2 structure according to an embodiment of the present invention, as shown in fig. 1 and fig. 2, the dual-system hot standby switching method for a2 by 2 fetch 2 structure according to an embodiment of the present invention includes:
periodically acquiring state factors of two systems, and calculating the own system state and the opposite system state of each system based on the state factors;
The system state is used for representing the target state of the other system except the current system;
The two systems respectively send the own calculated own system state and opposite system state to the opposite system;
Judging whether the cut system calculation is correct or not in each system according to the system state and the opposite system state calculated by the current system and the system state and the opposite system state sent by the opposite system, and if so, generating a cut system result;
each system performs a slicing operation based on the slicing results generated by the current system.
In the embodiment, the whole cutting process is automatic, the cutting operation is performed after the cutting result is generated from the state detection, the requirement of manual intervention is reduced, and the response speed and the accuracy of the system are improved.
Optionally, the target state includes a master state and a non-master state, and the non-master state includes a standby state and a standby state.
Optionally, the state factors include a communication state and a working state, and calculating the local system state and the opposite system state of each system specifically includes:
detecting the communication state between two systems, if the communication is normal, calculating the local system state and the opposite system state of each system by detecting the working state of the system;
If the communication is abnormal, the system in the main system state and the opposite system state are respectively output as the main system state and the standby state, and the system in the non-main system state and the opposite system state are respectively output as the standby state and the main system state;
if the communication is interrupted, the system state of both systems is outputted as a master system state, and the system state of both systems is outputted as a standby state.
Among them, since the subsequent status factor requires the two systems to perform data transmission to perform detection, the communication status of the two systems is preferentially detected.
In this embodiment, the checking of the status factors is performed in order of priority from the communication status to the health status, so that the priority processing of the key factors (communication status) is ensured, thereby ensuring the stable operation of the system.
In this embodiment, as shown in fig. 3, 6 general-purpose computers are used to build a 2-by-2-fetch structure, three devices are respectively defined as a machine a, a machine B and a machine C in the system I and I I, the two systems realize a 2-by-2 hot standby redundancy function, the machine a and the machine B in the system realize a 2-fetch safety operation function, and the machine C serves as a communication machine. The three devices in the system and the corresponding devices between the systems are connected through redundant Ethernet, and all communication interfaces of the external devices are only connected with the C machines of the two systems through Ethernet.
When the IA-IA, I B-IIB and I C-IIC are partially interrupted and partially normal, the communication is abnormal, and when the I A-IIA, I B-IIB and I C-IIC are all interrupted, the communication is interrupted.
Optionally, the state factors further include a synchronization state, and calculating the local system state and the opposite system state of each system by detecting the working state of the system specifically includes:
detecting the working state between two systems, if the working state is normal, calculating the local system state and the opposite system state of each system by detecting the synchronous state between the two systems;
If the working state fails, defining the target state of one system as the main system state and the target state of the other system as the standby state, and correspondingly generating the main system states of the two systems and outputting the main system states.
In this embodiment, as shown in FIG. 2, the dual system includes an I system and a I I system, if the dual system has a fault and the current states are identical (dual main system, dual standby system), defining the target state of the I system as the main system state and the target state of the I I system as the standby state, and correspondingly generating the own system states and outputting the system states of the two systems;
if the two systems are in failure and are inconsistent (one system is standby and the other system is standby), the system in standby state and the opposite system in standby state are respectively output as the main system state and the standby state, and the system in standby state and the opposite system in standby state are respectively output as the standby state and the main system state.
Optionally, the state factor further includes a cut request, and calculating the local state and the opposite state of each system by detecting a synchronization state between two systems specifically includes:
Detecting the synchronous state between two system systems, if the synchronous state is normal, calculating the local system state and the opposite system state of each system through the system cutting request;
if the synchronization state is abnormal, the system in the master state and the slave state are respectively outputted as the master state and the standby state, and the system in the non-master state and the slave state are respectively outputted as the standby state and the master state.
Optionally, the state factors further include health states, and calculating the local state and the opposite state of each system through the cut request specifically includes:
judging whether each system has faults or not through application software, if not, calculating the own system state and the opposite system state of each system by detecting the health states of the two systems;
If one of the systems has a fault, the system state and the opposite system state of the system with the fault are respectively output as a standby state and a main system state, and the system state and the opposite system state of the system without the fault are respectively output as the main system state and the standby state;
If both systems have faults, the system in the master state and the slave state are respectively output as the master state and the standby state, and the system in the non-master state and the slave state are respectively output as the standby state and the master state.
In this embodiment, the system provides an interface for the application software, allowing the application software to send the cut-line request according to its own judgment. This enhances the flexibility and adaptability of the system so that the application layer can also participate in the fault management and handover process of the system.
Optionally, calculating the local system state and the opposite system state of each system by detecting the health states of the two systems specifically includes:
And calculating health values of the two systems, judging whether the health values of the two systems are equal, if not, outputting the system state and the opposite system state of the system with high health value as a main system state and a standby system state respectively, and outputting the system state and the opposite system state of the system with low health value as the standby system state and the main system state respectively.
In this embodiment, by calculating and comparing the health values of the two systems, a healthier system can be selected as the master system under the condition that both systems are normal but have different health degrees, thereby further improving the reliability and stability of the system.
Optionally, determining whether the cut-line calculation is correct is:
Judging whether the cut system calculation is correct or not through a state judgment equation, wherein the formula of the state judgment equation is shown as follows:
G The system =G′ Pairing system
G Pairing system =G′ The system
Optionally, G The system represents the current system's own system state, G Pairing system represents the current system's own system state, G ' Pairing system represents the own system state calculated by the own system, and G' The system represents the own system state calculated by the own system;
If the cut calculation is correct, G The system is taken as the cut result of the current system.
In this embodiment, the state judgment equation is used to verify, so as to ensure that the calculation results of both sides are consistent. If the calculation results are inconsistent, the fault is indicated, and the cutting is not executed at the moment, so that the cutting scene with the fault is prevented, and double-series recalculation and interactive confirmation are waited. The double checking mechanism reduces the possibility of misjudgment and improves the stability and the safety of the system.
In this embodiment, if the two systems have confirmed the cutting result, immediately execute the cutting, directly modify the working state of the system into the confirmed target cutting state G The system of the system, and according to this rule, correspondingly modify the working state into the target cutting state G Pairing system of the system, so as to complete the complete cutting logic.
Based on the same principle as the method shown in fig. 1, the embodiment of the present invention further provides a dual-system hot standby switching system for a 2 by 2 access 2 structure, as shown in fig. 4, including:
The state calculation module is used for periodically acquiring state factors of the two systems and calculating the own system state and the opposite system state of each system based on the state factors;
The system state is used for representing the target state of the other system except the current system;
the state transmission module is used for respectively transmitting the own calculated local system state and opposite system state to the opposite system by the two systems;
The state judging module is used for judging whether the cutting calculation is correct or not in each system according to the local system state and the opposite system state calculated by the current system and the local system state and the opposite system state sent by the opposite system, and generating a cutting result if the cutting calculation is correct;
And the system is used for executing the cutting operation according to the cutting result generated by the current system.
The dual hot standby switching system for a 2 by 2 access 2 structure according to the embodiments of the present invention may execute the dual hot standby switching method for a 2 by 2 access 2 structure according to the embodiments of the present invention, and its implementation principle is similar, and actions executed by each module and unit in the dual hot standby switching system for a 2 by 2 access 2 structure according to the embodiments of the present invention correspond to steps in the dual hot standby switching method for a 2 by 2 access 2 structure according to the embodiments of the present invention, and detailed functional descriptions of each module of the dual hot standby switching system for a 2 by 2 access 2 structure may be specifically referred to the descriptions in the corresponding dual hot standby switching method for a 2 by 2 access 2 structure shown in the foregoing, which are not repeated herein.
The modules involved in the embodiments of the present invention may be implemented in software or in hardware. The name of a module does not in some cases define the module itself.
Based on the same principles as the methods shown in the embodiments of the present invention, there is also provided in the embodiments of the present invention an electronic device that may include, but is not limited to, a processor and a memory, the memory storing a computer program, the processor being configured to execute the methods shown in any of the embodiments of the present invention by invoking the computer program.
The memory is used for storing application program codes (computer programs) for executing the scheme of the invention, and the execution is controlled by the processor. The processor is configured to execute the application code stored in the memory to implement what is shown in the foregoing method embodiments.
Embodiments of the present invention provide a computer-readable storage medium having a computer program stored thereon, which when run on a computer, causes the computer to perform the corresponding method embodiments described above.
According to another aspect of the present invention, there is also provided a computer program product or computer program comprising computer instructions stored in a computer readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device performs the methods provided in the implementation of the various embodiments described above.
Computer program code for carrying out operations of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, SMA L L TA L K, C++ and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
It should be appreciated that the flow charts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The computer-readable storage medium carries one or more programs which, when executed by the electronic device, cause the electronic device to perform the methods shown in the above-described embodiments.
The above description is only illustrative of the preferred embodiments of the present invention and of the principles of the technology employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in the present invention is not limited to the specific combinations of technical features described above, but also covers other technical features formed by any combination of the technical features described above or their equivalents without departing from the spirit of the disclosure. Such as the above-mentioned features and the technical features disclosed in the present invention (but not limited to) having similar functions are replaced with each other.

Claims (10)

1. A dual-system hot standby switching method for a 2-by-2 fetch 2 structure is characterized by comprising the following steps:
periodically acquiring state factors of two systems, and calculating the own system state and the opposite system state of each system based on the state factors;
The system state is used for representing the target state of the other system except the current system;
The two systems respectively send the own calculated own system state and opposite system state to the opposite system;
Judging whether the cut system calculation is correct or not in each system according to the system state and the opposite system state calculated by the current system and the system state and the opposite system state sent by the opposite system, and if so, generating a cut system result;
each system performs a slicing operation based on the slicing results generated by the current system.
2. A dual-standby switching method for a 2-by-2 fetch 2 architecture as defined in claim 1, wherein the target states include a master state and a non-master state, the non-master state including a standby state and a standby state.
3. The method for switching between the dual-system hot standby for the 2-by-2 fetch 2 structure according to claim 2, wherein the state factors comprise a communication state and a working state, and calculating the local system state and the opposite system state of each system specifically comprises:
detecting the communication state between two systems, if the communication is normal, calculating the local system state and the opposite system state of each system by detecting the working state of the system;
If the communication is abnormal, the system in the main system state and the opposite system state are respectively output as the main system state and the standby state, and the system in the non-main system state and the opposite system state are respectively output as the standby state and the main system state;
if the communication is interrupted, the system state of both systems is outputted as a master system state, and the system state of both systems is outputted as a standby state.
4. The method for switching between two systems of 2-by-2 and 2-fetch structure according to claim 3, wherein the state factors further comprise a synchronization state, and calculating the local system state and the opposite system state of each system by detecting the working state of the system specifically comprises:
detecting the working state between two systems, if the working state is normal, calculating the local system state and the opposite system state of each system by detecting the synchronous state between the two systems;
If the working state fails, defining the target state of one system as the main system state and the target state of the other system as the standby state, and correspondingly generating the main system states of the two systems and outputting the main system states.
5. The method for switching between the two systems of the 2-by-2 hot standby architecture according to claim 4, wherein the state factors further comprise a request for switching between the two systems, and the step of calculating the local state and the opposite state of each system by detecting the synchronization state between the two systems specifically comprises:
Detecting the synchronous state between two system systems, if the synchronous state is normal, calculating the local system state and the opposite system state of each system through the system cutting request;
if the synchronization state is abnormal, the system in the master state and the slave state are respectively outputted as the master state and the standby state, and the system in the non-master state and the slave state are respectively outputted as the standby state and the master state.
6. The method for switching between the two systems of the 2-by-2 fetch 2 architecture according to claim 5, wherein the state factors further comprise health states, and calculating the local state and the opposite state of each system by the cut-line request specifically comprises:
judging whether each system has faults or not through application software, if not, calculating the own system state and the opposite system state of each system by detecting the health states of the two systems;
If one of the systems has a fault, the system state and the opposite system state of the system with the fault are respectively output as a standby state and a main system state, and the system state and the opposite system state of the system without the fault are respectively output as the main system state and the standby state;
If both systems have faults, the system in the master state and the slave state are respectively output as the master state and the standby state, and the system in the non-master state and the slave state are respectively output as the standby state and the master state.
7. The method for switching between the hot standby mode and the hot standby mode for the 2-by-2-taking structure according to claim 6, wherein the step of calculating the local system state and the opposite system state of each system by detecting the health states of two systems specifically comprises the following steps:
And calculating health values of the two systems, judging whether the health values of the two systems are equal, if not, outputting the system state and the opposite system state of the system with high health value as a main system state and a standby system state respectively, and outputting the system state and the opposite system state of the system with low health value as the standby system state and the main system state respectively.
8. The method for switching between dual hot standby for 2-by-2 fetch 2 architecture according to claim 7, wherein determining whether the cut-line calculation is correct is:
Judging whether the cut system calculation is correct or not through a state judgment equation, wherein the formula of the state judgment equation is shown as follows:
G The system =G′ Pairing system
G Pairing system =G′ The system
Wherein, G The system represents the present system state, G Pairing system represents the present system state, G ' Pairing system represents the calculated system state, and G' The system represents the calculated present system state;
If the cut calculation is correct, G The system is taken as the cut result of the current system.
9. A dual-system hot standby switching system for a 2-by-2 fetch 2 architecture, comprising:
The state calculation module is used for periodically acquiring state factors of the two systems and calculating the own system state and the opposite system state of each system based on the state factors;
The system state is used for representing the target state of the other system except the current system;
the state transmission module is used for respectively transmitting the own calculated local system state and opposite system state to the opposite system by the two systems;
The state judging module is used for judging whether the cutting calculation is correct or not in each system according to the local system state and the opposite system state calculated by the current system and the local system state and the opposite system state sent by the opposite system, and generating a cutting result if the cutting calculation is correct;
And the system is used for executing the cutting operation according to the cutting result generated by the current system.
10. The dual hot standby switching system for a2 by 2 fetch 2 architecture of claim 9, wherein the state factors include communication state, operational state, synchronization state, handoff request, and health state.
CN202411650061.2A 2024-11-19 2024-11-19 Dual-system hot standby switching method and system for 2-by-2 fetch 2 structure Pending CN119576659A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202411650061.2A CN119576659A (en) 2024-11-19 2024-11-19 Dual-system hot standby switching method and system for 2-by-2 fetch 2 structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202411650061.2A CN119576659A (en) 2024-11-19 2024-11-19 Dual-system hot standby switching method and system for 2-by-2 fetch 2 structure

Publications (1)

Publication Number Publication Date
CN119576659A true CN119576659A (en) 2025-03-07

Family

ID=94803014

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202411650061.2A Pending CN119576659A (en) 2024-11-19 2024-11-19 Dual-system hot standby switching method and system for 2-by-2 fetch 2 structure

Country Status (1)

Country Link
CN (1) CN119576659A (en)

Similar Documents

Publication Publication Date Title
US7797457B2 (en) Leaderless byzantine consensus
US7721149B2 (en) Method for verifying redundancy of secure systems
EP1703401A2 (en) Information processing apparatus and control method therefor
CN108153263B (en) DCS controller redundancy method and device
CN103678031A (en) Double 2-vote-2 redundant system and method
CN113791937B (en) Data synchronous redundancy system and control method thereof
CN107967195A (en) A kind of fault repairing method and system based on dual control storage
CN105487945A (en) Self-monitoring fault-tolerant control method of non-similar dual-redundancy four processors
US20030149970A1 (en) Portable software for rolling upgrades
KR101560497B1 (en) Method for controlling reset of lockstep replicated processor cores and lockstep system using the same
CN115913906A (en) Redundancy control system and method for ship
CN119576659A (en) Dual-system hot standby switching method and system for 2-by-2 fetch 2 structure
JPH11261663A (en) Communication processing control means and information processor having the control means
WO2024131366A1 (en) Cluster repair method and apparatus
KR101594453B1 (en) An apparatus for diagnosing a failure of a channel and method thereof
JP7512529B2 (en) Data Processing Network for Data Processing
JP3652232B2 (en) Microcomputer error detection method, error detection circuit, and microcomputer system
JP3884643B2 (en) Process control device
JPS5931738B2 (en) Parallel triple system configuration method for computer system
EP4361817A1 (en) 2*2oo2 security system based on cloud platform
JP3706332B2 (en) Process control device
CN119376366A (en) A method, device, medium and product for diagnosing communication status of a distributed control system
WO2008062511A1 (en) Multiprocessor system
JP6271103B1 (en) Control apparatus and control method
JP2023124400A (en) Information processing system and information processing method

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