CN114884803A - Method, device, equipment and medium for processing multiple redundant states - Google Patents
Method, device, equipment and medium for processing multiple redundant states Download PDFInfo
- Publication number
- CN114884803A CN114884803A CN202210469300.9A CN202210469300A CN114884803A CN 114884803 A CN114884803 A CN 114884803A CN 202210469300 A CN202210469300 A CN 202210469300A CN 114884803 A CN114884803 A CN 114884803A
- Authority
- CN
- China
- Prior art keywords
- control center
- redundant
- center host
- main control
- host
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 43
- 238000012545 processing Methods 0.000 title claims abstract description 34
- 238000004891 communication Methods 0.000 claims abstract description 52
- 238000004590 computer program Methods 0.000 claims description 13
- 238000004458 analytical method Methods 0.000 claims description 3
- 230000001174 ascending effect Effects 0.000 claims description 2
- 239000004973 liquid crystal related substance Substances 0.000 claims 1
- 238000003672 processing method Methods 0.000 description 13
- 238000010586 diagram Methods 0.000 description 5
- 230000003993 interaction Effects 0.000 description 5
- 230000005540 biological transmission Effects 0.000 description 4
- 238000012544 monitoring process Methods 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000007547 defect Effects 0.000 description 1
- 238000001514 detection method Methods 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- PLAIAIKZKCZEQF-UHFFFAOYSA-N methyl 6-chloro-2-oxo-3h-1,2$l^{4},3-benzodithiazole-4-carboxylate Chemical compound COC(=O)C1=CC(Cl)=CC2=C1NS(=O)S2 PLAIAIKZKCZEQF-UHFFFAOYSA-N 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000006467 substitution reaction Methods 0.000 description 1
- 238000012795 verification Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0668—Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/08—Configuration management of networks or network elements
- H04L41/0876—Aspects of the degree of configuration automation
- H04L41/0886—Fully automatic configuration
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/10—Active monitoring, e.g. heartbeat, ping or trace-route
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/02—Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]
Abstract
The invention provides a method, a device, equipment and a medium for processing multiple redundant states, which comprise the following steps: under the condition that the communication broken link of the first main control center host is detected, analyzing the redundant equipment state frame fed back by the second main control center host to obtain the number of the redundant equipment and the identification of each redundant equipment; and under the condition that the redundant equipment identification comprises a first main control center host identification and the number of the redundant equipment meets the preset number of the redundant equipment, judging that the first main control center host works normally and maintaining a standby control state. Therefore, the number and the host identification of the hosts which are working at present are determined through the redundant equipment state frame so as to judge whether the master of the standby control center needs to be increased or not, and further improve the reliability of the system.
Description
Technical Field
The present invention relates to the field of signal processing technologies, and in particular, to a method, an apparatus, a device, and a medium for processing multiple redundant states.
Background
An Automatic Train Supervision (ATS) system is an important part of a Train Automatic control system (CBTC) system, and is used as a hub for dispatching, commanding and monitoring Train operation. Therefore, the system key equipment usually adopts a redundant hot standby mode to ensure that the system has high reliability and availability.
In the ATS system, the relevant information of the vehicle-mounted control system is converted into the system through gateway computer software, and application server software is integrated to form uniform train monitoring information to be delivered to an operation platform. At present, most of newly opened or built full-automatic operation circuits in China are provided with a control center and a standby center, and an application server and a gateway computer are respectively provided with dual-computer hot standby software in a main control center and the standby control center to realize the quadruple redundancy of a central-level server.
In the quadruple redundancy scheme, a pure quadruple redundancy scheme relies on a redundancy platform to switch a main control center and a standby control center, however, when the redundancy platform is relied on to switch the main control center and the standby control center, a double main control center occurs, and a redundancy fault occurs, for example, when a communication fault occurs between the main control center and the standby control center but the main control center still operates normally, the standby control center host cannot acquire the redundancy working state of the main control center host through the redundancy platform, and if the main control center is automatically raised, the double main control center may be caused, and further, the redundancy fault occurs.
Disclosure of Invention
The invention provides a method, a device, equipment and a medium for processing multiple redundant states, which are used for solving the defects that in the prior art, a redundant platform is relied on to switch a main control center and a standby control center, so that double main control centers of the control centers and redundant faults occur, and the reliability of the interaction of redundant information of an ATS system is improved.
The invention provides a processing method of multiple redundant states, which is applied to a first standby control center host and comprises the following steps:
under the condition that the communication broken link of the first main control center host is detected, analyzing the redundant equipment state frame fed back by the second main control center host to obtain the number of redundant equipment and the identification of each redundant equipment;
and under the condition that the redundant equipment identification comprises a first main control center host identification and the number of the redundant equipment meets the preset number of the redundant equipment, judging that the first main control center host works normally and maintaining a standby control state.
According to the method for processing multiple redundant states provided by the present invention, after analyzing the redundant device state frame fed back by the second main control center host to obtain the number of redundant devices and the identifier of each redundant device, the method further comprises:
and under the condition that the redundant equipment identification does not contain a first main control center host identification and the number of the redundant equipment does not meet the preset number of the redundant equipment, judging that the first main control center host fails.
And executing automatic master-raising operation under the condition that the first master control center host fails.
According to the processing method for multiple redundant states provided by the present invention, when the first main control center host fails, the automatic master-up operation is executed, specifically including:
under the condition that the first main control center host computer fails, judging whether the communication link-breaking time of the first main control center host computer exceeds the internal redundancy link-breaking time;
and executing automatic main ascending operation under the condition that the communication broken link of the first main control center host exceeds the internal redundant broken link time length.
According to the method for processing multiple redundant states provided by the present invention, before analyzing the redundant device state frame fed back by the second main control center host, the method further includes:
periodically sending a state frame to the second main control center host;
and receiving a first redundant equipment state frame or a second redundant equipment state frame fed back by the second main control center host.
The redundant equipment identifier of the first redundant equipment state frame contains a first main control center host identifier and the number of the redundant equipment meets the preset number of the redundant equipment, and the redundant equipment identifier of the second redundant equipment state frame does not contain the first main control center host identifier and the number of the redundant equipment does not meet the preset number of the redundant equipment.
According to the method for processing multiple redundant states provided by the present invention, the receiving of the first redundant device status frame or the second redundant device status frame fed back by the second host includes:
receiving a first redundant equipment state frame fed back by the second main control center host, wherein the second main control center host feeds back the first redundant equipment state frame when receiving the first state frame sent by the first main control center host and receiving a second state frame sent by the first main control center host within the interval internal redundant link-breaking duration; alternatively, the first and second electrodes may be,
and receiving a second redundant equipment state frame fed back by the second main control center host, wherein the second main control center host feeds back the second redundant equipment state frame when receiving the first state frame sent by the first main control center host and under the condition that the second state frame sent by the first main control center host is not received within the interval internal redundant link-down duration.
According to the processing method of the multiple redundancy state provided by the invention, the internal redundancy broken link time length is calculated by the following method:
acquiring the master-up time of a first master control center host and the internal communication link-breaking time of the first master control center host;
and calculating a difference value between the communication broken link time and the master-up time of the first standby control center host, and obtaining internal redundant broken link time according to the difference value.
According to the processing method of the multiple redundant states provided by the invention, the first standby control center host comprises a gateway computer standby control center host, the first main control center host comprises a gateway computer main control center host, and the second main control center host comprises an application server main control center host; alternatively, the first and second electrodes may be,
the first master control center host comprises an application server master control center host, and the second master control center host comprises a gateway computer master control center host.
The present invention also provides a processing apparatus for multiple redundant states, comprising:
the analysis unit is used for analyzing the redundant equipment state frame fed back by the second main control center host to obtain the number of the redundant equipment and the identification of each redundant equipment under the condition of detecting that the communication link breaking occurs to the first main control center host;
and the judging unit is used for judging that the first main control center host works normally and maintaining a standby control state under the condition that the redundant equipment identification comprises a first main control center host identification and the redundant equipment number meets the preset redundant equipment number.
The invention also provides an electronic device, which comprises a memory, a processor and a computer program stored on the memory and capable of running on the processor, wherein the processor executes the program to realize the processing method of the multiple redundancy states.
The present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of handling multiple redundancy states as described in any of the above.
The present invention also provides a computer program product comprising a computer program which, when executed by a processor, implements a method of processing multiple redundancy states as described in any of the above.
According to the processing method, the device, the equipment and the medium for the multiple redundant states, provided by the invention, the redundant equipment state frame fed back by the second main control center host is analyzed under the condition that the communication link failure of the first main control center host is detected, so that the number of redundant equipment and the identification of each redundant equipment are obtained; and under the condition that the redundant equipment identification comprises a first main control center host identification and the number of the redundant equipment meets the preset number of the redundant equipment, judging that the first main control center host works normally and maintaining a standby control state. Therefore, the number and the host identification of the hosts which are working at present are determined through the redundant equipment state frame so as to judge whether the master of the standby control center needs to be increased or not, and further improve the reliability of the system.
Drawings
In order to more clearly illustrate the technical solutions of the present invention or the prior art, the drawings needed for the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
FIG. 1 is a flow chart of a method for handling multiple redundancy states according to the present invention;
FIG. 2 is a schematic diagram of the communication connections of a gateway computer provided by the present invention;
FIG. 3 is a second flowchart of a method for processing multiple redundancy statuses provided by the present invention;
FIG. 4 is a third flowchart illustrating a method for processing multiple redundancy statuses according to the present invention;
FIG. 5 is a fourth flowchart illustrating a method for processing multiple redundant states according to the present invention;
FIG. 6 is a schematic diagram of a processing apparatus for multiple redundancy states according to the present invention;
fig. 7 is a schematic structural diagram of an electronic device provided by the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
A method for handling multiple redundancy states according to the present invention is described below with reference to fig. 1-5.
Specifically, the processing method of multiple redundant states provided by the present invention is applied to a first standby control center host, wherein the first standby control center host may be a gateway computer standby control center host or an application server standby control center host.
When the first master control center host is a gateway computer master control center host, and the second master control center host is an application server master control center host. When the first standby control center host is the application server standby control center host, the first main control center host in the invention is the application server main control center host, and the second main control center host comprises a gateway computer main control center host.
It should be noted that the first and second embodiments of the present invention are only used to distinguish the application server from the gateway computer, and in the quadruple redundancy scheme, four software deployed in the active/standby control center is simultaneously operated in a hot standby mode. The master and standby states of the four redundant devices are managed by the software redundant platform and switched, and the specific switching priority is as follows: the main control center host computer- > main control center standby computer- > standby control center host computer- > standby control center standby computer.
In the present invention, the gateway computer standby control center host is taken as a representative explanation, and the processing method of the multiple redundant states of the application server standby control center host is the same as that of the gateway computer standby control center host, and the description of the present invention is omitted here.
Fig. 1 is a schematic flow chart of a method for processing multiple redundancy states according to the present invention, as shown in fig. 1, the method includes:
step S1, under the condition that the communication link failure of the first main control center host is detected, analyzing the redundant equipment state frame fed back by the second main control center host to obtain the number of the redundant equipment and the identification of each redundant equipment;
specifically, there is a communication connection between the master and slave control centers of the gateway computer, referring to fig. 2, in fig. 2, the gateway computer OCC-a is a master control center host of the gateway computer, the gateway computer OCC-B is a master control center slave of the gateway computer, the gateway computer BOCC-a is a master control center host of the gateway computer, and the gateway computer OCC-B is a master control center slave of the gateway computer, wherein redundant devices are directly networked between each master control center host and each master control center slave, and the four redundant devices are connected through an intranet communication of the ATS system. And when the standby control center of the gateway computer cannot receive the working state of the master control center of the gateway computer, judging that the host of the master control center is in communication broken link.
Specifically, the number of redundant devices is a character with a byte length of 1, the number of redundant devices refers to the number of hosts of the gateway computer connected to the host of the application server main control center, the number of redundant devices is a character with a byte length of 2, and the number of redundant devices refers to the host ID of the gateway computer connected to the host of the application server main control center.
In practical application, when the host of the gateway computer connected to the host of the application server main control center includes the host of the gateway computer main control center and the host of the gateway computer standby control center, the number of the redundant devices is 2, and the redundant device identifier includes the host ID of the gateway computer main control center and the host ID of the gateway computer standby control center. When the host of the gateway computer connected with the application server main control center host only comprises the gateway computer standby control center host, the number of the redundant equipment is 1, and the redundant equipment identification comprises the ID of the gateway computer standby control center host.
Step S2, when the redundant device identification contains a first main control center host computer identification and the redundant device number meets the preset redundant device number, the first main control center host computer is judged to work normally and the standby control state is maintained.
Specifically, the number of the preset redundant devices is 2. In the step, under the condition that the redundant equipment identification comprises the ID of the main control center host of the gateway computer and the number of the redundant equipment is 2, the working state of the main control center host of the gateway computer is judged to be still normal, and the main control center host of the gateway computer is eliminated from being required to be increased, so that the system reliability is improved, and the problem of double main control of the control center is avoided.
The processing method of the multiple redundant states provided by the invention analyzes the redundant equipment state frame fed back by the host of the second main control center under the condition of detecting that the communication link breaking occurs to the host of the first main control center, and obtains the number of redundant equipment and the identification of each redundant equipment; and under the condition that the redundant equipment identification contains a first main control center host identification and the number of the redundant equipment meets the preset number of the redundant equipment, judging that the first main control center host normally works and maintaining a standby control state, and determining the number of the hosts which are working currently and the host identification through a redundant equipment state frame so as to judge whether the standby control center needs to be raised, thereby improving the reliability of the system.
In another embodiment, referring to fig. 3, fig. 3 is a second schematic flow chart of the processing method for multiple redundancy states provided by the present invention, as shown in fig. 3: after analyzing the redundant device status frame fed back by the second main control center host and obtaining the number of the redundant devices and the identifiers of the redundant devices, the method further comprises the following steps:
step S3, when the redundant device identifier does not include the first host identifier and the number of redundant devices does not satisfy the preset number of redundant devices, determining that the first host is faulty.
Specifically, under the condition that the redundant equipment identification does not include the host ID of the main control center of the gateway computer and the number of the redundant equipment is 1, the main control center of the gateway computer is judged to have a fault, and the condition that the communication link of the first main control center host is broken is detected, so that the reliability of the system is improved through double fault detection.
And step S4, executing an automatic master raising operation when the first master control center host fails.
The automatic master-up operation refers to the state that a gateway computer standby control center host enters an output control signal.
In practical application, when the main control center host of the gateway computer is in a normal working state, the main control center host of the gateway computer and the main control center host of the gateway computer run in parallel, but only the main control center host of the gateway computer outputs a control signal, the main control center host of the gateway computer does not output the control signal, and when the main control center host of the gateway computer breaks down, the main control center host of the gateway computer replaces the main control center host of the gateway computer to output the control signal, so that the normal operation of the system is ensured.
In another embodiment, referring to fig. 4, fig. 4 is a third schematic flow chart of the processing method for multiple redundancy states provided by the present invention, as shown in fig. 4: the executing of the automatic master-raising operation under the condition that the first master control center host fails specifically includes:
step S41, under the condition that the first main control center host computer has a fault, judging whether the communication link-breaking time of the first main control center host computer exceeds the internal redundancy link-breaking time;
specifically, the communication link-down duration refers to a duration that the first master control center host does not acquire the first master control center host.
In this step, in order to improve timeliness of redundant information interaction between a gateway computer and core devices such as an application server, the internal redundant link-down duration is limited in the present invention, and specifically, the internal redundant link-down duration is calculated in the following manner:
acquiring the master-up time of a first master control center host and the internal communication link-breaking time of the first master control center host; and calculating a difference value between the communication broken link time and the master-up time of the first standby control center host, and obtaining the internal redundant broken link time according to the difference value.
Specifically, the setting of the internal redundancy broken link time length should be smaller than the difference between the communication broken link time length and the master-up time length of the first master control center host, that is, the internal redundancy broken link time length may be any value within the range of the difference, which is not limited to this. The master-up duration of the first standby control center host is a flexibly variable value, for example, when the load of the first standby control center host is too large, the master-up duration of the first standby control center host is larger than the value of the master-up duration when the load of the first standby control center host is small.
And step S42, executing automatic master-raising operation when the communication broken link of the first main control center host exceeds the internal redundancy broken link time length.
When the main machine of the main control center of the gateway computer has network or software failure and can not work normally, based on the scheme, the main machine of the main control center of the application server only leaves the ID of the main machine of the standby control center of the gateway computer which is still working in the redundant equipment state frame which is reported to the main machine of the standby control center of the gateway computer after the main machine of the main control center of the application server starts to receive the state frame which is not reported by the main machine of the main control center of the gateway computer and waits for an internal redundant link-breaking time.
Meanwhile, the communication link-breaking time of the gateway computer main control center host and the gateway computer main control center host exceeds the internal redundancy link-breaking time, and the gateway computer main control center host can make sure that the gateway computer main control center host fails by combining the redundant equipment state frame reported by the application server main control center host. At the moment, the host of the gateway computer standby control center is immediately upgraded into a main control center to carry out control of output control signals.
In summary, from the time when the main control center host of the gateway computer stops operating to the time when the main control center host of the gateway computer is upgraded, the interruption time of the logic processing of the main control center host of the gateway computer is shorter than the communication link-down time in the ATS system. Before other devices in the ATS system judge that the communication with the main control center host of the gateway computer is interrupted, a new gateway computer standby control center host which is already upgraded in the ATS system can establish a path for information transmission with other software or systems in time, and the continuity of the information transmission is ensured.
In another embodiment, referring to fig. 5, fig. 5 is a fourth flowchart illustrating a processing method for multiple redundancy statuses provided by the present invention, as shown in fig. 5: before analyzing the redundant device status frame fed back by the second main control center host, the method further includes:
step S11, periodically sending a status frame to the second main control center host;
in the step, in order to avoid the situation of double masters of the control center, the master computer of the server main control center, the master computer of the server standby control center, the master computer of the gateway computer standby control center and the master computer of the gateway computer main control center periodically report respective state frames to the master computer of the opposite side, so that the reliability of the system is ensured by periodically reporting the state frames.
Step S12, receiving the first redundant device status frame or the second redundant device status frame fed back by the second host.
The redundant equipment identifier of the first redundant equipment state frame contains a first main control center host identifier, the number of the redundant equipment meets the preset redundant equipment number, and the redundant equipment identifier of the second redundant equipment state frame does not contain the first main control center host identifier and the number of the redundant equipment does not meet the preset redundant equipment number.
Specifically, a first redundant device status frame fed back by a second master control center host is received, wherein the second master control center host feeds back the first redundant device status frame when receiving the first status frame sent by the first master control center host and receiving a second status frame sent by the first master control center host within an interval internal redundant link-down duration; alternatively, the first and second electrodes may be,
and receiving a second redundant equipment state frame fed back by the second main control center host, wherein the second main control center host feeds back the second redundant equipment state frame when receiving the first state frame sent by the first main control center host and under the condition that the second state frame sent by the first main control center host is not received within the interval internal redundant link-breaking time.
The first redundant equipment state frame refers to an information frame for indicating that the gateway computer standby control center host is in a normal working state, and the second state frame refers to an information frame for indicating that the gateway computer main control center host is in an abnormal working state.
In other words, in the invention, when the main control center host of the gateway computer is in a normal working state, the number of the redundant devices in the first redundant device status frame fed back by the main control center host of the application server is 2, and the redundant device identifier includes the host ID of the main control center host of the gateway computer. When the main control center host of the gateway computer fails, the number of redundant devices in a second redundant device status frame fed back by the main control center host of the application server is 1, and the redundant device identifier does not include the main control center host ID of the gateway computer, so that whether the main control center host of the gateway computer is in a failure state or not is determined by the first redundant device status frame and the first redundant device status frame, and the normal operation of the system can be ensured.
In this step, after the application server main control center host receives the first status frame sent by the gateway computer standby control center host, the application server main control center host may also send a status frame request signal to the gateway computer main control center host to notify the gateway computer main control center host to send a second status frame to indicate that the gateway computer main control center host is in a normal operating state.
In addition, when the load of the host in the main control center of the gateway computer is too large, the speed of the host in the main control center of the gateway computer for processing signals may become slow, and thus the host in the main control center of the gateway computer may not be able to send the status frame in time. Therefore, the invention adopts setting an internal redundant broken link time length to verify whether the main machine of the main control center of the gateway computer fails. Therefore, the problem that the host of the standby control center of the gateway computer is misjudged due to the situation of the host of the main control center of the gateway computer, and enters the automatic master-raising mode to cause double masters of the control center is avoided, and the reliability of the system is improved.
In another embodiment, in order to improve timeliness of redundant information interaction between a gateway computer and core devices such as an application server, the present invention limits internal redundant link-breaking time, specifically, the internal redundant link-breaking time is calculated in the following manner:
acquiring the master-up time of a first master control center host and the internal communication link-breaking time of the first master control center host; and calculating a difference value between the communication broken link time and the master-up time of the first standby control center host, and obtaining the internal redundant broken link time according to the difference value.
Specifically, the setting of the internal redundancy broken link time length should be smaller than the difference between the communication broken link time length and the master-up time length of the first master control center host, that is, the internal redundancy broken link time length may be any value within the range of the difference, which is not limited to this. The master-up duration of the first standby control center host is a flexibly variable value, for example, when the load of the first standby control center host is too large, the master-up duration of the first standby control center host is larger than the value of the master-up duration when the load of the first standby control center host is small.
In summary, from the time when the main control center host of the gateway computer stops operating to the time when the main control center host of the gateway computer is upgraded, the interruption time of the logic processing of the main control center host of the gateway computer is shorter than the communication link-down time in the ATS system. Before other devices in the ATS system judge that the communication with the main control center host of the gateway computer is interrupted, a new gateway computer standby control center host which is already upgraded in the ATS system can establish a path for information transmission with other software or systems in time, and the continuity of the information transmission is ensured.
In another embodiment, in order to improve the timeliness of the interaction of the redundant information of the core devices such as the gateway and the application, the invention can also actively send the first state frame to the server standby control center host when the gateway computer standby control center host detects that the first main control center host has a communication broken link, thereby accelerating the speed of detecting the fault of the gateway computer standby control center host.
Specifically, when detecting that a communication link failure occurs in a first main control center host, sending a first status frame to the second main control center host; and receiving the redundant equipment state frame fed back by the second main control center host, and analyzing the redundant equipment state frame fed back by the second main control center host to obtain the number of the redundant equipment and the identification of each redundant equipment.
The first status frame refers to an information frame indicating that the gateway computer standby control center host is in a normal working state, where the first status frame may include a gateway computer standby control center host identifier, such as an interface ID, and the first status frame may further include a logic instruction, that is, after the application server main control center host receives the first status frame sent by the gateway computer standby control center host, the application server main control center host requests the gateway computer main control center host to send a second status frame, so as to verify whether the gateway computer main control center host is in a normal working state.
In addition, in another embodiment, the ATS system in the present invention is further provided with a redundant platform, and when detecting that a communication link failure occurs in the first host center, sending the first status frame to the second host center specifically includes:
under the condition that the working state of the first main control center host cannot be obtained through a redundant platform, judging that communication disconnection occurs in the first main control center host; and sending a first state frame carrying a first standby control center host identity to the second main control center host.
It should be noted that, in the present invention, the server main control center host, the server standby control center host, the gateway computer standby control center host, and the gateway computer main control center host are respectively provided with a redundant platform, and the working states of the two can be mutually known through information interaction of the four redundant platforms.
The redundant platform can monitor each redundant device in real time, for example, the main control center of the gateway computer feeds back a working state signal to the redundant platform every interval of time to indicate that the main control center of the gateway computer is in normal operation, and when the redundant platform does not receive the working state signal fed back by the main control center of the gateway computer after an interval of time, the redundant platform judges that the main control center of the gateway computer has a communication broken link fault. In addition, the redundant platform can also actively send a state frame request signal to the gateway computer main control center under the condition that a working state signal fed back by the gateway computer main control center is not received after a period of time, and judges that the communication link failure occurs in the gateway computer main control center under the condition that the state frame fed back by the gateway computer main control center is not received, so that the system reliability is improved through double verification, and the occurrence of double main control centers of the control centers is avoided.
The processing apparatus for multiple redundant states provided by the present invention is described below, and the processing apparatus for multiple redundant states described below and the processing method for multiple redundant states described above can be referred to correspondingly.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a processing apparatus in multiple redundant states provided by the present invention, and as shown in fig. 6, the processing apparatus in multiple redundant states includes: the analysis unit 610 is configured to analyze the redundant device status frame fed back by the second main control center host to obtain the number of redundant devices and identifiers of the redundant devices when detecting that the first main control center host has a communication link failure; and a determining unit 620, configured to determine that the first host computer of the master control center normally works and maintain a standby control state when the redundant device identifier includes a first host computer identifier of the master control center and the number of the redundant devices satisfies a preset number of redundant devices.
According to the processing device for the multiple redundant states, provided by the invention, under the condition that the communication broken link of the first main control center host is detected, the redundant equipment state frame fed back by the second main control center host is analyzed to obtain the number of redundant equipment and the identification of each redundant equipment; and under the condition that the redundant equipment identification comprises a first main control center host identification and the number of the redundant equipment meets the preset number of the redundant equipment, judging that the first main control center host works normally and maintaining a standby control state. Therefore, the number and the host identification of the hosts which are working at present are determined through the redundant equipment state frame so as to judge whether the master of the standby control center needs to be increased or not, and further improve the reliability of the system.
Fig. 7 illustrates a physical structure diagram of an electronic device, and as shown in fig. 7, the electronic device may include: a processor (processor)710, a communication Interface (Communications Interface)720, a memory (memory)730, and a communication bus 740, wherein the processor 710, the communication Interface 720, and the memory 730 communicate with each other via the communication bus 740. Processor 710 may call logic instructions in memory 730 to perform a method of processing multiple redundant states, the method comprising: under the condition that the communication broken link of the first main control center host is detected, analyzing the redundant equipment state frame fed back by the second main control center host to obtain the number of redundant equipment and the identification of each redundant equipment; and under the condition that the redundant equipment identification is detected to contain a first main control center host identification and the number of the redundant equipment meets the preset number of the redundant equipment, judging that the first main control center host works normally and maintaining a standby control state.
In addition, the logic instructions in the memory 730 can be implemented in the form of software functional units and stored in a computer readable storage medium when the software functional units are sold or used as independent products. Based on such understanding, the technical solution of the present invention may be embodied in the form of a software product, which is stored in a storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
In another aspect, the present invention also provides a computer program product, the computer program product comprising a computer program, the computer program being stored on a non-transitory computer-readable storage medium, wherein when the computer program is executed by a processor, the computer is capable of executing the method for processing multiple redundancy statuses provided by the methods, the method comprising: under the condition that the communication broken link of the first main control center host is detected, analyzing the redundant equipment state frame fed back by the second main control center host to obtain the number of redundant equipment and the identification of each redundant equipment; and under the condition that the redundant equipment identification is detected to contain a first main control center host identification and the number of the redundant equipment meets the preset number of the redundant equipment, judging that the first main control center host works normally, and maintaining a standby control state.
In yet another aspect, the present invention also provides a non-transitory computer-readable storage medium having stored thereon a computer program which, when executed by a processor, implements a method of processing multiple redundancy states provided by the above methods, the method comprising: under the condition that the communication broken link of the first main control center host is detected, analyzing the redundant equipment state frame fed back by the second main control center host to obtain the number of redundant equipment and the identification of each redundant equipment; and under the condition that the redundant equipment identification is detected to contain a first main control center host identification and the number of the redundant equipment meets the preset number of the redundant equipment, judging that the first main control center host works normally and maintaining a standby control state.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one position, or may be distributed on multiple network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. A method for processing multiple redundant states is applied to a first standby control center host, and comprises the following steps:
under the condition that the communication broken link of the first main control center host is detected, analyzing the redundant equipment state frame fed back by the second main control center host to obtain the number of redundant equipment and the identification of each redundant equipment;
and under the condition that the redundant equipment identification comprises a first main control center host identification and the number of the redundant equipment meets the preset number of the redundant equipment, judging that the first main control center host works normally and maintaining a standby control state.
2. The method for processing multiple redundant states according to claim 1, wherein after analyzing the redundant device state frame fed back by the second host to obtain the number of redundant devices and the identifiers of the redundant devices, the method further comprises:
and under the condition that the redundant equipment identification does not contain a first main control center host identification and the number of the redundant equipment does not meet the preset number of the redundant equipment, judging that the first main control center host fails.
And executing automatic master-raising operation under the condition that the first master control center host fails.
3. The method for processing multiple redundant states according to claim 2, wherein the executing an auto-master-up operation when the first master control center host fails includes:
under the condition that the first main control center host computer fails, judging whether the communication link-breaking time of the first main control center host computer exceeds the internal redundancy link-breaking time;
and executing automatic main ascending operation under the condition that the communication broken link of the first main control center host exceeds the internal redundant broken link time length.
4. The method for processing multiple redundant states according to claim 1, wherein before parsing the redundant device status frame fed back by the second host, the method further comprises:
periodically sending a state frame to the second main control center host;
and receiving a first redundant equipment state frame or a second redundant equipment state frame fed back by the second main control center host.
The redundant equipment identifier of the first redundant equipment state frame contains a first main control center host identifier and the number of the redundant equipment meets the preset number of the redundant equipment, and the redundant equipment identifier of the second redundant equipment state frame does not contain the first main control center host identifier and the number of the redundant equipment does not meet the preset number of the redundant equipment.
5. The method for processing multiple redundant states according to claim 4, wherein the receiving the first redundant device status frame or the second redundant device status frame fed back by the second host comprises:
receiving a first redundant equipment state frame fed back by the second main control center host, wherein the second main control center host feeds back the first redundant equipment state frame when receiving the first state frame sent by the first main control center host and receiving a second state frame sent by the first main control center host within the interval internal redundant link-breaking duration; alternatively, the first and second electrodes may be,
and receiving a second redundant equipment state frame fed back by the second main control center host, wherein the second main control center host feeds back the second redundant equipment state frame when receiving the first state frame sent by the first main control center host and under the condition that the second state frame sent by the first main control center host is not received within the interval internal redundant link-down duration.
6. The method for processing multiple redundant states according to claim 3 or 5, wherein the internal redundant link-down time is calculated by:
acquiring the master-up time of a first master control center host and the internal communication link-breaking time of the first master control center host;
and calculating a difference value between the communication broken link time and the master-up time of the first standby control center host, and obtaining internal redundant broken link time according to the difference value.
7. The method for handling multiple redundant states according to claim 1, wherein the first backup center host comprises a gateway computer backup center host, the first key center host comprises a gateway computer key center host, and the second key center host comprises an application server key center host; alternatively, the first and second liquid crystal display panels may be,
the first master control center host comprises an application server master control center host, and the second master control center host comprises a gateway computer master control center host.
8. A device for handling multiple redundant states, comprising:
the analysis unit is used for analyzing the redundant equipment state frame fed back by the second main control center host to obtain the number of the redundant equipment and the identification of each redundant equipment under the condition of detecting that the communication link breaking occurs to the first main control center host;
and the judging unit is used for judging that the first main control center host works normally and maintaining a standby control state under the condition that the redundant equipment identification comprises a first main control center host identification and the redundant equipment number meets the preset redundant equipment number.
9. An electronic device comprising a memory, a processor and a computer program stored on the memory and executable on the processor, wherein the processor implements a method of handling multiple redundancy states as claimed in any one of claims 1 to 7 when executing the program.
10. A non-transitory computer-readable storage medium having stored thereon a computer program, wherein the computer program, when executed by a processor, implements a method for processing multiple redundancy states according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210469300.9A CN114884803B (en) | 2022-04-28 | 2022-04-28 | Method, device, equipment and medium for processing multiple redundant states |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202210469300.9A CN114884803B (en) | 2022-04-28 | 2022-04-28 | Method, device, equipment and medium for processing multiple redundant states |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114884803A true CN114884803A (en) | 2022-08-09 |
CN114884803B CN114884803B (en) | 2024-02-20 |
Family
ID=82673624
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202210469300.9A Active CN114884803B (en) | 2022-04-28 | 2022-04-28 | Method, device, equipment and medium for processing multiple redundant states |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114884803B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115257884A (en) * | 2022-08-19 | 2022-11-01 | 交控科技股份有限公司 | Rail transit energy-saving control method and device based on passenger carrying state |
CN115257884B (en) * | 2022-08-19 | 2024-04-26 | 交控科技股份有限公司 | Rail transit energy-saving control method and device based on passenger carrying state |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1764191A (en) * | 2004-10-18 | 2006-04-26 | 国际商业机器公司 | Methods and systems for dynamically updating session state affinity |
US7477657B1 (en) * | 2002-05-08 | 2009-01-13 | Juniper Networks, Inc. | Aggregating end-to-end QoS signaled packet flows through label switched paths |
CN103780389A (en) * | 2012-10-26 | 2014-05-07 | 华为技术有限公司 | Port based authentication method and network device |
WO2014075596A1 (en) * | 2012-11-13 | 2014-05-22 | 中兴通讯股份有限公司 | Method and system for performing dual-homing automatic switching decision according to the number of registered gateways |
CN105487413A (en) * | 2015-11-24 | 2016-04-13 | 北京交控科技股份有限公司 | Main/standby control system and main/standby switching method of urban railway transit |
CN108924879A (en) * | 2018-06-22 | 2018-11-30 | 北京格瑞空间科技有限公司 | A kind of load-balancing method for wireless internet of things |
CN110658718A (en) * | 2019-11-08 | 2020-01-07 | 北京市轨道交通建设管理有限公司 | Multi-master-control redundancy switching control method and system |
CN112477919A (en) * | 2020-12-11 | 2021-03-12 | 交控科技股份有限公司 | Dynamic redundancy backup method and system suitable for train control system platform |
CN114116321A (en) * | 2022-01-25 | 2022-03-01 | 苏州浪潮智能科技有限公司 | Redundant data management method and device, computer equipment and storage medium |
CN114297296A (en) * | 2021-12-27 | 2022-04-08 | 广州市保伦电子有限公司 | Server active-standby switching system for broadcasting |
-
2022
- 2022-04-28 CN CN202210469300.9A patent/CN114884803B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7477657B1 (en) * | 2002-05-08 | 2009-01-13 | Juniper Networks, Inc. | Aggregating end-to-end QoS signaled packet flows through label switched paths |
CN1764191A (en) * | 2004-10-18 | 2006-04-26 | 国际商业机器公司 | Methods and systems for dynamically updating session state affinity |
CN103780389A (en) * | 2012-10-26 | 2014-05-07 | 华为技术有限公司 | Port based authentication method and network device |
WO2014075596A1 (en) * | 2012-11-13 | 2014-05-22 | 中兴通讯股份有限公司 | Method and system for performing dual-homing automatic switching decision according to the number of registered gateways |
CN105487413A (en) * | 2015-11-24 | 2016-04-13 | 北京交控科技股份有限公司 | Main/standby control system and main/standby switching method of urban railway transit |
CN108924879A (en) * | 2018-06-22 | 2018-11-30 | 北京格瑞空间科技有限公司 | A kind of load-balancing method for wireless internet of things |
CN110658718A (en) * | 2019-11-08 | 2020-01-07 | 北京市轨道交通建设管理有限公司 | Multi-master-control redundancy switching control method and system |
CN112477919A (en) * | 2020-12-11 | 2021-03-12 | 交控科技股份有限公司 | Dynamic redundancy backup method and system suitable for train control system platform |
CN114297296A (en) * | 2021-12-27 | 2022-04-08 | 广州市保伦电子有限公司 | Server active-standby switching system for broadcasting |
CN114116321A (en) * | 2022-01-25 | 2022-03-01 | 苏州浪潮智能科技有限公司 | Redundant data management method and device, computer equipment and storage medium |
Non-Patent Citations (1)
Title |
---|
周树桥;李铎;: "双冗余控制器的失效状态分析及面向高可靠度的设计", 清华大学学报(自然科学版), no. 04 * |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115257884A (en) * | 2022-08-19 | 2022-11-01 | 交控科技股份有限公司 | Rail transit energy-saving control method and device based on passenger carrying state |
CN115257884B (en) * | 2022-08-19 | 2024-04-26 | 交控科技股份有限公司 | Rail transit energy-saving control method and device based on passenger carrying state |
Also Published As
Publication number | Publication date |
---|---|
CN114884803B (en) | 2024-02-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US10491671B2 (en) | Method and apparatus for switching between servers in server cluster | |
CN105933407B (en) | method and system for realizing high availability of Redis cluster | |
CN111385107B (en) | Main/standby switching processing method and device for server | |
CN113726573B (en) | Redundant network communication method, device, electronic equipment and storage medium | |
CN111490903A (en) | Network data acquisition and processing method and device | |
CN102026042A (en) | Keep-alive and self-healing method and device for advanced telecom computing architecture control surface | |
CN105630647A (en) | Equipment detection method and detection equipment | |
CN113608908B (en) | Server fault processing method, system, equipment and readable storage medium | |
CN109062184B (en) | Double-machine emergency rescue equipment, fault switching method and rescue system | |
CN110224872B (en) | Communication method, device and storage medium | |
CN114884803A (en) | Method, device, equipment and medium for processing multiple redundant states | |
US8111625B2 (en) | Method for detecting a message interface fault in a communication device | |
JP2007280155A (en) | Reliability improving method in dispersion system | |
CN111891192B (en) | Train overspeed protection equipment, control method and dual-machine hot standby system | |
US11954509B2 (en) | Service continuation system and service continuation method between active and standby virtual servers | |
CN114355760A (en) | Main control station and hot standby redundancy control method thereof | |
CN110572292A (en) | high availability system and method based on unidirectional transmission link | |
CN110138446B (en) | Detection method for redundancy degradation fault of dual-redundancy fiber channel network | |
CN116340045A (en) | Database exception handling method, apparatus, device and computer readable storage medium | |
CN117555711A (en) | Virtual machine management method and device, cloud computing platform and medium | |
CN111045872A (en) | Method and system for realizing high-availability self-protection mechanism | |
JP3317278B2 (en) | FDDI fault monitoring method, FDDI fault monitoring device, recording medium storing program, and network system | |
CN116846731A (en) | Fault detection method and device and railway vehicle | |
KR100439370B1 (en) | Method and System for managing interference of u-link condition in total access mode | |
CN116347489A (en) | Service processing method based on data center |
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 |