CN111030871A - Configuration information synchronization method and device based on dual-computer hot standby system - Google Patents

Configuration information synchronization method and device based on dual-computer hot standby system Download PDF

Info

Publication number
CN111030871A
CN111030871A CN201911336285.5A CN201911336285A CN111030871A CN 111030871 A CN111030871 A CN 111030871A CN 201911336285 A CN201911336285 A CN 201911336285A CN 111030871 A CN111030871 A CN 111030871A
Authority
CN
China
Prior art keywords
configuration information
standby
host
machine
dual
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
CN201911336285.5A
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.)
Hangzhou DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies 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 Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201911336285.5A priority Critical patent/CN111030871A/en
Publication of CN111030871A publication Critical patent/CN111030871A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/22Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • H04L41/0816Configuration setting characterised by the conditions triggering a change of settings the condition being an adaptation, e.g. in response to network events
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • H04L43/103Active monitoring, e.g. heartbeat, ping or trace-route with adaptive polling, i.e. dynamically adapting the polling rate

Abstract

The application provides a configuration information synchronization method and device based on a dual-computer hot-standby system, which are applied to a host included in the dual-computer hot-standby system, and the method comprises the following steps: setting a first abnormal zone bit after the abnormality of the host is detected; polling the first abnormal zone bit in a set period; if the first abnormal zone bit is determined, sending a configuration information acquisition request to a standby machine included in the dual-machine hot standby system so that the standby machine sends first configuration information of the standby machine; comparing whether the second configuration information of the host is the same as the first configuration information; and if the first configuration information is different from the second configuration information, sending a synchronization instruction carrying the second configuration information to the standby machine, so that the standby machine returns a synchronization response after successfully replacing the first configuration information with the second configuration information. By applying the embodiment of the application, the time consumption can be reduced, the detection accuracy is improved, and the reliability of the dual-computer hot standby system is ensured.

Description

Configuration information synchronization method and device based on dual-computer hot standby system
Technical Field
The application relates to the technical field of network communication, in particular to a configuration information synchronization method and device based on a dual-computer hot standby system.
Background
The dual-computer hot-standby system uses two network devices to backup each other, when one network device fails, the other network device can undertake the service, thereby ensuring that the dual-computer hot-standby system can continuously process the service without service interruption. In order to ensure the reliability of the dual-computer hot-standby system, it is necessary to ensure that the configuration of the host and the configuration of the standby of the dual-computer hot-standby system are consistent.
At present, a configuration information synchronization method based on a dual-computer hot standby system is that a technician detects whether configuration information of a host computer is consistent with configuration information of a standby computer, if the configuration information of the host computer is not consistent with the configuration information of the standby computer, an instruction for synchronizing the configuration information to the standby computer needs to be issued on the host computer through a page or a command line, and then the host computer synchronizes the configuration information of the host computer with the standby computer.
In the method, whether the configuration information of the host is consistent with the configuration information of the standby machine needs to be manually detected, and after the inconsistency between the configuration information of the host and the configuration information of the standby machine is detected, the instruction of the synchronous configuration information is manually issued.
Disclosure of Invention
In view of this, the present application provides a method and an apparatus for synchronizing configuration information based on a dual-computer hot-standby system, so as to solve the problems that manual detection consumes a lot of time, detection accuracy is poor, and reliability of the dual-computer hot-standby system is easily reduced.
Specifically, the method is realized through the following technical scheme:
a configuration information synchronization method based on a dual-computer hot-standby system is applied to a host included in the dual-computer hot-standby system, and the method comprises the following steps:
setting a first abnormal zone bit after the host is detected to be abnormal; and the number of the first and second groups,
polling the first abnormal zone bit in a set period;
if the first abnormal flag bit is determined, sending a configuration information acquisition request to a standby machine included in the dual-machine hot standby system so that the standby machine sends first configuration information of the standby machine;
comparing whether second configuration information of the host is the same as the first configuration information;
if the first configuration information is different from the second configuration information, sending a synchronization instruction carrying the second configuration information to the standby machine, so that the standby machine returns a synchronization response after successfully replacing the first configuration information with the second configuration information.
A configuration information synchronization method based on a dual-computer hot-standby system is applied to a standby computer included in the dual-computer hot-standby system, and the method comprises the following steps:
setting a second abnormal zone bit after the standby machine is detected to be abnormal;
if a configuration information acquisition request sent by a host machine included in the dual-machine hot standby system is received, sending first configuration information of the standby machine to the host machine, wherein the configuration information acquisition request is sent after the host machine polls a first abnormal zone bit in a set period and determines the first abnormal zone bit;
if a synchronization instruction which is sent by the host and carries second configuration information of the host is received, replacing the first configuration information with the second configuration information, wherein the synchronization instruction is sent after the host determines that the first configuration information is different from the second configuration information;
and after the first configuration information is successfully replaced by the second configuration information, a synchronous response is returned to the host.
A configuration information synchronization device based on a dual-computer hot-standby system is applied to a host machine included in the dual-computer hot-standby system, and the device comprises:
the setting module is used for setting a first abnormal zone bit after the host is detected to be abnormal; and the number of the first and second groups,
the polling module is used for polling the first abnormal zone bit in a set period;
a first sending module, configured to send a configuration information acquisition request to a standby machine included in the dual-machine hot-standby system if it is determined that the first abnormal flag bit is set, so that the standby machine sends first configuration information of the standby machine;
the comparison module is used for comparing whether the second configuration information of the host is the same as the first configuration information;
and a second sending module, configured to send a synchronization instruction carrying the second configuration information to the standby device if it is determined that the first configuration information is different from the second configuration information, so that the standby device returns a synchronization response after successfully replacing the first configuration information with the second configuration information.
A configuration information synchronization device based on a dual-computer hot-standby system is applied to a standby computer included in the dual-computer hot-standby system, and the device comprises:
the setting module is used for setting a second abnormal zone bit after the standby machine is detected to be abnormal;
a sending module, configured to send first configuration information of the standby device to a host if a configuration information acquisition request sent by the host included in the dual-device hot-standby system is received, where the configuration information acquisition request is sent after the host polls a first abnormal flag bit at a set period and determines the first abnormal flag bit;
a replacing module, configured to replace, if a synchronization instruction carrying second configuration information of the host sent by the host is received, the first configuration information with the second configuration information, where the synchronization instruction is sent by the host after determining that the first configuration information is different from the second configuration information;
and the return module is used for returning a synchronous response to the host computer after the first configuration information is successfully used for replacing the second configuration information.
An electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor and the communication interface are used for realizing mutual communication by the memory through the communication bus;
a memory for storing a computer program;
a processor for implementing the above method steps when executing the program stored in the memory.
A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the above-mentioned method steps.
According to the technical scheme provided by the application, after the host is detected to be abnormal, the first abnormal zone bit is set, the first abnormal zone bit can be polled in a set period, if the first abnormal zone bit is determined to be set, the first configuration information of the standby machine is obtained from the standby machine included in the dual-machine hot standby system, and after the first configuration information is determined to be different from the second configuration information, the synchronous instruction carrying the second configuration information is sent to the standby machine, so that the standby machine replaces the first configuration information with the second configuration information.
Drawings
Fig. 1 is a flowchart illustrating a configuration information synchronization method using a host included in a dual-host hot-standby system as an execution subject;
fig. 2 is a flowchart illustrating a configuration information synchronization method using a standby machine included in a dual-machine hot standby system as an execution subject according to the present application;
fig. 3 is a schematic structural diagram of a configuration information synchronization apparatus corresponding to fig. 1 according to the present application;
fig. 4 is a schematic structural diagram of a configuration information synchronization apparatus corresponding to fig. 2 according to the present application;
fig. 5 is a schematic structural diagram of an electronic device shown in the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the associated listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
In order to solve the above problem, an embodiment of the present invention provides a method for synchronizing configuration information based on a dual-computer hot-standby system, so as to reduce time consumption, improve detection accuracy, and ensure reliability of the dual-computer hot-standby system. Referring to fig. 1, fig. 1 is a flowchart illustrating a configuration information synchronization method based on a dual-computer hot-standby system, which is applied to a host included in the dual-computer hot-standby system.
S11: and setting a first abnormal zone bit after the host is detected to be abnormal.
The selection and switching between the main machine and the standby machine are realized by negotiating the information of the priority and the like between the two machines in the dual-machine hot-standby system, if the negotiation state between the two machines is abnormal (for example, the negotiation is overtime, the opposite end negotiation information can not be obtained in real time, and the like) or the main machine and the standby machine state of the two machines are changed (the non-main machine and the standby machine are changed into the main machine or the main machine and the standby machine are switched), the abnormality can be detected at this time.
An exception flag may be preset, which may be defined as a first exception flag, which may be set after a host exception is detected.
S12: and polling the first abnormal zone bit at a set period.
The setting period can be set according to actual needs.
It should be noted that there is no strict sequence between S11 and S12, but only to give an indication to two steps, in practical cases, S11 may be executed first and then S12, S12 may be executed first and then S11 may be executed, and S11 and S12 may be executed simultaneously.
S13: and if the first abnormal zone bit is determined, sending a configuration information acquisition request to a standby machine included in the dual-machine hot standby system so that the standby machine sends the first configuration information of the standby machine.
Determining a first abnormal flag bit, that is, when the host is abnormal, it is necessary to detect whether the configuration information of the host is consistent with the configuration information of the standby machine, where the configuration information of the standby machine may be defined as the first configuration information, and then sending a configuration information acquisition request to the standby machine, and after receiving the configuration information acquisition request, the standby machine may return the first configuration information to the host.
S14: and comparing whether the second configuration information of the host is the same as the first configuration information.
The configuration information of the host may be defined as second configuration information, the host may compare whether the first configuration information is the same as the second configuration information, the first configuration information and the second configuration information may use an existing recording manner, and the comparison may use a line-by-line comparison or a block comparison, etc.
S15: and if the first configuration information is different from the second configuration information, sending a synchronization instruction carrying the second configuration information to the standby machine, so that the standby machine returns a synchronization response after successfully replacing the first configuration information with the second configuration information.
If the first configuration information is different from the second configuration information, the difference between the first configuration information and the second configuration information can be recorded and fed back to technicians, so that the configuration information can be checked, and information and directions are provided for problem troubleshooting.
If it is determined that the first configuration information is the same as the second configuration information, S12 may be performed.
According to the technical scheme provided by the application, after the host is detected to be abnormal, the first abnormal zone bit is set, the first abnormal zone bit can be polled in a set period, if the first abnormal zone bit is determined to be set, the first configuration information of the standby machine is obtained from the standby machine included in the dual-machine hot standby system, and after the first configuration information is determined to be different from the second configuration information, the synchronous instruction carrying the second configuration information is sent to the standby machine, so that the standby machine replaces the first configuration information with the second configuration information.
In an alternative embodiment, the method further comprises:
if receiving the synchronous response, resetting the first abnormal zone bit;
if the synchronous response is not received, adding 1 to the continuous execution times; and determining whether the continuous execution frequency after the 1 adding reaches the set frequency, if the continuous execution frequency after the 1 adding does not reach the set frequency, executing the step of sending a synchronization instruction carrying second configuration information to the standby machine, and if the continuous execution frequency after the 1 adding reaches the set frequency, sending a prompt message of failure of synchronization of the configuration information.
If the synchronization response is received, which indicates that the second configuration information is successfully synchronized to the standby machine, the first abnormal zone bit can be reset; if the synchronous response is not received, it is indicated that the second configuration information may not be successfully synchronized to the standby machine or a problem occurs in a link between the host and the standby machine, and the synchronous response cannot be received, the continuous execution times and the set times may be preset, at this time, the continuous execution times is increased by 1, whether the continuous execution times after the 1 addition reaches the set times is determined, if the continuous execution times after the 1 addition does not reach the set times is determined, S15 is executed again, and if the continuous execution times after the 1 addition reaches the set times is determined, a prompt message of configuration information synchronization failure is sent out, so that a technician can check the configuration information according to the prompt message, and information and a direction are provided for problem troubleshooting.
The number of times of setting may be set according to actual needs, and may be set to 3 times, 5 times, or the like, for example.
Referring to fig. 2, fig. 2 is a flowchart illustrating a configuration information synchronization method based on a dual-computer hot-standby system, which is applied to a standby computer included in the dual-computer hot-standby system.
S21: and setting a second abnormal zone bit after the standby machine is detected to be abnormal.
The selection and switching between the main machine and the standby machine are realized by negotiating the information of the priority and the like between the two machines in the dual-machine hot-standby system, if the negotiation state between the two machines is abnormal (for example, the negotiation is overtime, the opposite end negotiation information can not be obtained in real time, and the like) or the main machine and the standby machine state of the two machines are changed (the non-main machine and the standby machine are changed into the main machine or the main machine and the standby machine are switched), the abnormality can be detected at this time.
An exception flag may be preset, which may be defined as a second exception flag, and the second exception flag may be set after the standby anomaly is detected.
S22: and if a configuration information acquisition request sent by a host machine included in the dual-machine hot standby system is received, sending first configuration information of the standby machine to the host machine.
The configuration information acquisition request is sent by the host after the first abnormal zone bit is determined by polling the first abnormal zone bit at a set period.
S23: and if a synchronization instruction which is sent by the host and carries the second configuration information of the host is received, replacing the first configuration information with the second configuration information.
And the synchronization instruction is sent after the host determines that the first configuration information is different from the second configuration information.
S24: and after the first configuration information is successfully replaced by the second configuration information, a synchronous response is returned to the host.
According to the technical scheme provided by the application, after the host is detected to be abnormal, the first abnormal zone bit is set, the first abnormal zone bit can be polled in a set period, if the first abnormal zone bit is determined to be set, the first configuration information of the standby machine is obtained from the standby machine included in the dual-machine hot standby system, and after the first configuration information is determined to be different from the second configuration information, the synchronous instruction carrying the second configuration information is sent to the standby machine, so that the standby machine replaces the first configuration information with the second configuration information.
In an optional implementation manner, after the step of returning the synchronization response to the host in S24, the method further includes:
the second exception flag is reset.
After the synchronization response is returned to the host, it indicates that the second configuration information has been successfully replaced with the first configuration information, and at this time, the second abnormal flag bit may be reset to indicate that the standby machine is normal at this time.
Referring to fig. 3, fig. 3 is a schematic structural diagram of a configuration information synchronization apparatus based on a dual-computer hot-standby system according to the present application, which is applied to a host included in the dual-computer hot-standby system, and the apparatus includes:
the setting module 31 is configured to set a first abnormal flag bit after detecting that the host is abnormal; and the number of the first and second groups,
a polling module 32, configured to poll the first abnormal flag bit at a set period;
a first sending module 33, configured to send a configuration information obtaining request to a standby machine included in the dual-machine hot-standby system if it is determined that the first abnormal flag bit is set, so that the standby machine sends first configuration information of the standby machine;
a comparing module 34, configured to compare whether the second configuration information of the host is the same as the first configuration information;
the second sending module 35 is configured to send a synchronization instruction carrying the second configuration information to the standby machine if it is determined that the first configuration information is different from the second configuration information, so that the standby machine returns a synchronization response after successfully replacing the first configuration information with the second configuration information.
According to the technical scheme provided by the application, after the host is detected to be abnormal, the first abnormal zone bit is set, the first abnormal zone bit can be polled in a set period, if the first abnormal zone bit is determined to be set, the first configuration information of the standby machine is obtained from the standby machine included in the dual-machine hot standby system, and after the first configuration information is determined to be different from the second configuration information, the synchronous instruction carrying the second configuration information is sent to the standby machine, so that the standby machine replaces the first configuration information with the second configuration information.
In an alternative embodiment, the apparatus further comprises:
the reset module is used for resetting the first abnormal zone bit if the synchronous response is received;
the processing module is used for adding 1 to the continuous execution times if the synchronous response is not received; and determining whether the continuous execution frequency after the 1 adding reaches the set frequency, if the continuous execution frequency after the 1 adding does not reach the set frequency, executing the step of sending a synchronization instruction carrying second configuration information to the standby machine, and if the continuous execution frequency after the 1 adding reaches the set frequency, sending a prompt message of failure of synchronization of the configuration information.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a configuration information synchronization apparatus based on a dual-computer hot-standby system according to the present application, which is applied to a standby computer included in the dual-computer hot-standby system, and the apparatus includes:
a setting module 41, configured to set a second abnormal flag after detecting that the standby device is abnormal;
a sending module 42, configured to send first configuration information of the standby device to the host if a configuration information acquisition request sent by the host included in the dual-device hot-standby system is received, where the configuration information acquisition request is sent after the host polls the first abnormal flag bit at a set period and determines the first abnormal flag bit;
a replacing module 43, configured to replace the first configuration information with the second configuration information if a synchronization instruction carrying the second configuration information of the host sent by the host is received, where the synchronization instruction is sent by the host after determining that the first configuration information is different from the second configuration information;
and a returning module 44, configured to return a synchronization response to the host after the first configuration information is successfully replaced with the second configuration information.
According to the technical scheme provided by the application, after the host is detected to be abnormal, the first abnormal zone bit is set, the first abnormal zone bit can be polled in a set period, if the first abnormal zone bit is determined to be set, the first configuration information of the standby machine is obtained from the standby machine included in the dual-machine hot standby system, and after the first configuration information is determined to be different from the second configuration information, the synchronous instruction carrying the second configuration information is sent to the standby machine, so that the standby machine replaces the first configuration information with the second configuration information.
In an alternative embodiment, the apparatus further includes a reset module, configured to:
and after the return module returns the synchronous response to the host, resetting the second abnormal zone bit.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. 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 place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
An electronic device is further provided in the embodiment of the present application, please refer to fig. 5, which includes a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 complete communication with each other through the communication bus 540.
A memory 530 for storing a computer program;
the processor 510 is configured to execute any of the configuration information synchronization methods based on the dual-computer hot-standby system in the above embodiments when executing the program stored in the memory 530.
The communication interface 520 is used for communication between the electronic apparatus and other apparatuses.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but may also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component.
As can be seen from the above technical solutions, after the host is detected to be abnormal, a first abnormal flag bit is set, and the first abnormal flag bit is polled in a set period, if the first abnormal flag bit is determined, first configuration information of a standby machine is obtained from the standby machine included in the dual-machine hot standby system, and after the first configuration information is determined to be different from the second configuration information, a synchronization instruction carrying second configuration information is sent to the standby machine, so that the standby machine replaces the first configuration information with the second configuration information, because whether the second configuration information of the host is consistent with the first configuration information of the standby machine or not can be automatically detected, and after the second configuration information of the host is detected to be inconsistent with the first configuration information of the standby machine, an instruction for synchronizing the configuration information is automatically issued, compared with a manual detection mode, time consumption can be reduced, and detection accuracy can be improved at the same time, the reliability of the dual-computer hot standby system is ensured.
Accordingly, an embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are run on a computer, the computer is enabled to execute any one of the configuration information synchronization methods based on the dual-computer hot-standby system in the foregoing embodiments.
As can be seen from the above technical solutions, after the host is detected to be abnormal, a first abnormal flag bit is set, and the first abnormal flag bit is polled in a set period, if the first abnormal flag bit is determined, first configuration information of a standby machine is obtained from the standby machine included in the dual-machine hot standby system, and after the first configuration information is determined to be different from the second configuration information, a synchronization instruction carrying second configuration information is sent to the standby machine, so that the standby machine replaces the first configuration information with the second configuration information, because whether the second configuration information of the host is consistent with the first configuration information of the standby machine or not can be automatically detected, and after the second configuration information of the host is detected to be inconsistent with the first configuration information of the standby machine, an instruction for synchronizing the configuration information is automatically issued, compared with a manual detection mode, time consumption can be reduced, and detection accuracy can be improved at the same time, the reliability of the dual-computer hot standby system is ensured.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (10)

1. A configuration information synchronization method based on a dual-computer hot-standby system is applied to a host machine included in the dual-computer hot-standby system, and is characterized in that the method comprises the following steps:
setting a first abnormal zone bit after the host is detected to be abnormal; and the number of the first and second groups,
polling the first abnormal zone bit in a set period;
if the first abnormal flag bit is determined, sending a configuration information acquisition request to a standby machine included in the dual-machine hot standby system so that the standby machine sends first configuration information of the standby machine;
comparing whether second configuration information of the host is the same as the first configuration information;
if the first configuration information is different from the second configuration information, sending a synchronization instruction carrying the second configuration information to the standby machine, so that the standby machine returns a synchronization response after successfully replacing the first configuration information with the second configuration information.
2. The method of claim 1, further comprising:
if the synchronous response is received, resetting the first abnormal zone bit;
if the synchronous response is not received, adding 1 to the continuous execution times; and determining whether the continuous execution frequency after the 1 adding reaches the set frequency, if the continuous execution frequency after the 1 adding does not reach the set frequency, executing the step of sending a synchronization instruction carrying the second configuration information to the standby machine, and if the continuous execution frequency after the 1 adding reaches the set frequency, sending a prompt message of failure in synchronization of the configuration information.
3. A configuration information synchronization method based on a dual-computer hot standby system is applied to a standby computer included in the dual-computer hot standby system, and is characterized in that the method comprises the following steps:
setting a second abnormal zone bit after the standby machine is detected to be abnormal;
if a configuration information acquisition request sent by a host machine included in the dual-machine hot standby system is received, sending first configuration information of the standby machine to the host machine, wherein the configuration information acquisition request is sent after the host machine polls a first abnormal zone bit in a set period and determines the first abnormal zone bit;
if a synchronization instruction which is sent by the host and carries second configuration information of the host is received, replacing the first configuration information with the second configuration information, wherein the synchronization instruction is sent after the host determines that the first configuration information is different from the second configuration information;
and after the first configuration information is successfully replaced by the second configuration information, a synchronous response is returned to the host.
4. The method of claim 3, wherein after returning a synchronization response to the host, the method further comprises:
resetting the second exception flag.
5. A configuration information synchronization device based on a dual-computer hot-standby system is applied to a host machine included in the dual-computer hot-standby system, and is characterized in that the device comprises:
the setting module is used for setting a first abnormal zone bit after the host is detected to be abnormal; and the number of the first and second groups,
the polling module is used for polling the first abnormal zone bit in a set period;
a first sending module, configured to send a configuration information acquisition request to a standby machine included in the dual-machine hot-standby system if it is determined that the first abnormal flag bit is set, so that the standby machine sends first configuration information of the standby machine;
the comparison module is used for comparing whether the second configuration information of the host is the same as the first configuration information;
and a second sending module, configured to send a synchronization instruction carrying the second configuration information to the standby device if it is determined that the first configuration information is different from the second configuration information, so that the standby device returns a synchronization response after successfully replacing the first configuration information with the second configuration information.
6. The apparatus of claim 5, further comprising:
the reset module is used for resetting the first abnormal zone bit if the synchronous response is received;
the processing module is used for adding 1 to the continuous execution times if the synchronous response is not received; and determining whether the continuous execution frequency after the 1 adding reaches the set frequency, if the continuous execution frequency after the 1 adding does not reach the set frequency, executing the step of sending a synchronization instruction carrying the second configuration information to the standby machine, and if the continuous execution frequency after the 1 adding reaches the set frequency, sending a prompt message of failure in synchronization of the configuration information.
7. A configuration information synchronization device based on a dual-computer hot-standby system is applied to a standby computer included in the dual-computer hot-standby system, and is characterized in that the device comprises:
the setting module is used for setting a second abnormal zone bit after the standby machine is detected to be abnormal;
a sending module, configured to send first configuration information of the standby device to a host if a configuration information acquisition request sent by the host included in the dual-device hot-standby system is received, where the configuration information acquisition request is sent after the host polls a first abnormal flag bit at a set period and determines the first abnormal flag bit;
a replacing module, configured to replace, if a synchronization instruction carrying second configuration information of the host sent by the host is received, the first configuration information with the second configuration information, where the synchronization instruction is sent by the host after determining that the first configuration information is different from the second configuration information;
and the return module is used for returning a synchronous response to the host computer after the first configuration information is successfully used for replacing the second configuration information.
8. The apparatus of claim 7, further comprising a reset module to:
and after the return module returns the synchronous response to the host, resetting the second abnormal zone bit.
9. An electronic device, characterized in that the electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-4 when executing a program stored on a memory.
10. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of claims 1 to 4.
CN201911336285.5A 2019-12-23 2019-12-23 Configuration information synchronization method and device based on dual-computer hot standby system Pending CN111030871A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911336285.5A CN111030871A (en) 2019-12-23 2019-12-23 Configuration information synchronization method and device based on dual-computer hot standby system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911336285.5A CN111030871A (en) 2019-12-23 2019-12-23 Configuration information synchronization method and device based on dual-computer hot standby system

Publications (1)

Publication Number Publication Date
CN111030871A true CN111030871A (en) 2020-04-17

Family

ID=70211548

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911336285.5A Pending CN111030871A (en) 2019-12-23 2019-12-23 Configuration information synchronization method and device based on dual-computer hot standby system

Country Status (1)

Country Link
CN (1) CN111030871A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111770196A (en) * 2020-07-17 2020-10-13 奇瑞汽车股份有限公司 Information synchronization method and device and storage medium
CN112486593A (en) * 2020-11-30 2021-03-12 重庆芯讯通无线科技有限公司 Method and system for synchronizing configuration information of master module and slave module

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7353259B1 (en) * 2002-03-07 2008-04-01 Cisco Technology, Inc. Method and apparatus for exchanging configuration information between nodes operating in a master-slave configuration
CN102273175A (en) * 2008-12-30 2011-12-07 汤姆逊许可证公司 Synchronization of configurations for display systems
CN102360324A (en) * 2011-10-28 2012-02-22 华为技术有限公司 Failure recovery method and equipment for failure recovery
CN102769627A (en) * 2012-07-26 2012-11-07 北京神州绿盟信息安全科技股份有限公司 Configuration file synchronizing method and device
CN103226502A (en) * 2013-05-21 2013-07-31 中国工商银行股份有限公司 Data disaster backup control system and data recovery method
CN106331152A (en) * 2016-09-20 2017-01-11 郑州云海信息技术有限公司 Method and device for realizing information synchronization between modules
CN106648997A (en) * 2016-12-23 2017-05-10 北京航天测控技术有限公司 Master-salve switching method based on non-real-time operating system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7353259B1 (en) * 2002-03-07 2008-04-01 Cisco Technology, Inc. Method and apparatus for exchanging configuration information between nodes operating in a master-slave configuration
US20080288607A1 (en) * 2002-03-07 2008-11-20 Cisco Technology, Inc. Method and apparatus for exchanging heartbeat messages and configuration information between nodes operating in a master-slave configuration
CN102273175A (en) * 2008-12-30 2011-12-07 汤姆逊许可证公司 Synchronization of configurations for display systems
CN102360324A (en) * 2011-10-28 2012-02-22 华为技术有限公司 Failure recovery method and equipment for failure recovery
CN102769627A (en) * 2012-07-26 2012-11-07 北京神州绿盟信息安全科技股份有限公司 Configuration file synchronizing method and device
CN103226502A (en) * 2013-05-21 2013-07-31 中国工商银行股份有限公司 Data disaster backup control system and data recovery method
CN106331152A (en) * 2016-09-20 2017-01-11 郑州云海信息技术有限公司 Method and device for realizing information synchronization between modules
CN106648997A (en) * 2016-12-23 2017-05-10 北京航天测控技术有限公司 Master-salve switching method based on non-real-time operating system

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
苏大忠: "一种以太网交换机冷备份的实现方法", 《成都信息工程学院学报》 *

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111770196A (en) * 2020-07-17 2020-10-13 奇瑞汽车股份有限公司 Information synchronization method and device and storage medium
CN111770196B (en) * 2020-07-17 2023-05-26 奇瑞汽车股份有限公司 Information synchronization method, device and storage medium
CN112486593A (en) * 2020-11-30 2021-03-12 重庆芯讯通无线科技有限公司 Method and system for synchronizing configuration information of master module and slave module
CN112486593B (en) * 2020-11-30 2023-06-23 重庆芯讯通无线科技有限公司 Method and system for synchronizing configuration information of master-slave module

Similar Documents

Publication Publication Date Title
US10491671B2 (en) Method and apparatus for switching between servers in server cluster
US20220075698A1 (en) Method and Apparatus for Redundancy in Active-Active Cluster System
EP3142011B9 (en) Anomaly recovery method for virtual machine in distributed environment
CN113297013A (en) Device switching method and device, electronic device and storage medium
EP2626790A1 (en) Fault monitoring device, fault monitoring method and program
US8347142B2 (en) Non-disruptive I/O adapter diagnostic testing
CN108683528B (en) Data transmission method, central server, server and data transmission system
CN110580235B (en) SAS expander communication method and device
CN111030871A (en) Configuration information synchronization method and device based on dual-computer hot standby system
CN105677673A (en) Business processing method, device and system
CN106155826B (en) For the method and system of mistake to be detected and handled in bus structures
CN102664755B (en) Control channel fault determining method and device
CN107688547B (en) Method and system for switching between main controller and standby controller
CN108243031B (en) Method and device for realizing dual-computer hot standby
WO2016036383A1 (en) Backup power and load discovery
CN103823727B (en) A kind of backup method of live recording and device
CN101047490B (en) Method for testing time failure of communication system and its device
CN109557453B (en) Multi-master-control-chip identification processing method and system
CN109885420B (en) PCIe link fault analysis method, BMC and storage medium
CN106933858B (en) Page source statistical method and view controller
CN115623464A (en) Fault processing method and device for Bluetooth module of electric energy meter and electric energy meter
CN112383462B (en) Network device and bus configuration method
CN109086180B (en) Memory inspection test method
CN110321261B (en) Monitoring system and monitoring method
KR101448013B1 (en) Fault-tolerant apparatus and method in multi-computer for Unmanned Aerial Vehicle

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20200417