CN107968718B - Method, device and equipment for confirming main standby state - Google Patents

Method, device and equipment for confirming main standby state Download PDF

Info

Publication number
CN107968718B
CN107968718B CN201610913404.9A CN201610913404A CN107968718B CN 107968718 B CN107968718 B CN 107968718B CN 201610913404 A CN201610913404 A CN 201610913404A CN 107968718 B CN107968718 B CN 107968718B
Authority
CN
China
Prior art keywords
terminal
standby state
identifier
opposite terminal
controlling
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.)
Active
Application number
CN201610913404.9A
Other languages
Chinese (zh)
Other versions
CN107968718A (en
Inventor
李广亮
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Zhejiang Dahua Technology Co Ltd
Original Assignee
Zhejiang Dahua Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Zhejiang Dahua Technology Co Ltd filed Critical Zhejiang Dahua Technology Co Ltd
Priority to CN201610913404.9A priority Critical patent/CN107968718B/en
Publication of CN107968718A publication Critical patent/CN107968718A/en
Application granted granted Critical
Publication of CN107968718B publication Critical patent/CN107968718B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery
    • H04L41/0663Performing the actions predefined by failover planning, e.g. switching to standby network elements

Abstract

The invention discloses a method, a device and equipment for confirming a main standby state, which are used for realizing the purpose of automatically confirming the main standby state of two mutually connected equipment under the condition of no third party arbitration unit or manual participation. The method for confirming the main standby state comprises the following steps: after the physical connection is established between the home terminal and the opposite terminal, determining an IP address for realizing the mutual communication between the home terminal and the opposite terminal according to a preset protocol IP address distribution principle of interconnection between networks; in a preset period, modifying the identifier for controlling the home terminal, and sending a request for modifying the identifier for controlling the opposite terminal to the opposite terminal; when receiving a response sent by the opposite terminal for agreeing to modify the identifier for controlling the opposite terminal, modifying the identifier for controlling the opposite terminal, and judging whether the local terminal stores the main/standby state information, if so, determining that the local terminal is in a main state or a standby state according to the main/standby state information, and if not, determining that the local terminal is in the main state and the opposite terminal is in the standby state.

Description

Method, device and equipment for confirming main standby state
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method, an apparatus, and a device for determining a master/slave status.
Background
The dual-computer hot standby scheme is always the main method for ensuring the reliability and stability of the system and the normal operation and uninterrupted service. When the working host is in abnormal conditions such as downtime, the host in the backup state immediately takes over the task of the host in the normal working state to continue running, so that the normal running and uninterrupted running of system services are ensured.
The existing dual-computer hot standby scheme is mainly determined by adopting the following two ways:
the first mode is a dual-computer hot standby scheme with third-party arbitration. In the scheme, an arbitration service unit needs to be deployed besides the two hosts, and the arbitration service unit is responsible for resource allocation and active/standby state confirmation of the two hosts. For example, referring to fig. 1, the dual-device hot-standby scheme includes a host 1, a standby device 2, and an arbitration unit 3, where the host 1 and the standby device 2 both include a service unit 11 and a control unit 12, and the control units 12 of the host 1 and the standby device 2 communicate with each other through the arbitration unit 3.
And the second mode is a dual-computer hot standby scheme without third party arbitration. The scheme uses two completely physically independent hosts to carry out dual-computer hot standby software and hardware deployment. In the existing dual-computer hot standby system adopting the scheme, because the physical independence of the equipment, the initial form of the equipment and other factors need to be manually intervened to configure the network and set the active and standby states. For example, as shown in fig. 2, the dual-host hot-standby scheme includes a host 1 and a standby 2, where the host 1 and the standby 2 both include a service unit 11 and a control unit 12, and the control units 12 of the host 1 and the standby 2 mutually communicate with each other through manual intervention and network configuration, so as to confirm a primary-standby relationship.
To sum up, in the dual-computer hot standby scheme with the third party arbitration, additional hardware and software resources need to be deployed, so that the development and deployment cost is increased, and the system complexity is correspondingly improved. In the dual-computer hot standby scheme without third party arbitration, because the physical independence of the equipment, the initial form of the equipment and other factors need to be manually intervened to configure the network and set the main standby state, the maintenance cost of the system is high, and the human resources are wasted.
Disclosure of Invention
The invention provides a method, a device and equipment for confirming a main standby state, which are used for realizing the purpose of automatically confirming the main standby state of two mutually connected equipment under the condition of no third party arbitration unit or manual participation.
The embodiment of the invention provides a method for confirming a main standby state, which comprises the following steps:
after the physical connection is established between the local terminal and the opposite terminal, determining an IP address for realizing the mutual communication between the local terminal and the opposite terminal according to a preset Internet Protocol (IP) address allocation principle of interconnection between networks;
in a preset period, modifying the identifier for controlling the home terminal, and sending a request for modifying the identifier for controlling the opposite terminal to the opposite terminal;
when a request sent by an opposite terminal for modifying the identifier for controlling the home terminal is received, sending a response which does not agree to modify the identifier for controlling the home terminal to the opposite terminal, or when a response which does not agree to modify the identifier for controlling the opposite terminal and is sent by the opposite terminal is received, restoring the identifier for controlling the home terminal, and entering a next period after waiting for a preset random time length;
when receiving a response sent by an opposite terminal for agreeing to modify the identifier for controlling the opposite terminal, modifying the identifier for controlling the opposite terminal, and judging whether the local terminal stores the main/standby state information, if so, determining that the local terminal is in a main state or a standby state according to the main/standby state information, and if not, determining that the local terminal is in the main state and the opposite terminal is in the standby state.
Specifically, the method for confirming the master standby state provided by the embodiment of the present invention includes: firstly, after a local terminal and an opposite terminal establish physical connection, determining an IP address for realizing mutual communication between the local terminal and the opposite terminal according to a preset IP address allocation principle, thereby determining that mutual communication can be carried out between the local terminal and the opposite terminal, then entering a period for determining a main standby state according to a preset period and a preset random time length, modifying an identifier for controlling the local terminal by the local terminal, sending a request for modifying the identifier for controlling the opposite terminal, modifying the identifier for controlling the opposite terminal after receiving a response which is sent by the opposite terminal and agrees to modify the identifier for controlling the opposite terminal, and then determining that the local terminal is in the main state or the standby state; when a response sent by the opposite terminal and not agreeing to modify the identifier for controlling the opposite terminal is received or an identifier request sent by the opposite terminal and used for modifying the identifier for controlling the local terminal is received, the identifier for controlling the local terminal is restored, a preset random time length is waited, the period for determining the active/standby state is entered again, the identifier for controlling the local terminal is modified again, and a request for modifying the identifier for controlling the opposite terminal is sent until the local terminal is determined to be in the active state or the standby state. Therefore, the method for confirming the master-standby state provided by the embodiment of the present invention does not need manual intervention or a third-party arbitration unit, and only modifies the identifiers of the home terminal and the opposite terminal in a contention manner according to a random waiting duration when each device is preset to determine the master-standby state, so as to determine whether the home terminal is in the master-standby state or the standby state after obtaining the control rights of the home terminal and the opposite terminal.
Preferably, determining the IP address for implementing mutual communication between the local terminal and the peer terminal according to a preset IP address allocation principle includes:
sending an original socket broadcast request to an opposite terminal, and receiving an MAC address response sent by the opposite terminal;
sequencing the MAC addresses of the home terminal and the opposite terminal, and sequencing two preset IP addresses, so that each sequenced MAC address corresponds to an IP address with the same serial number position as the MAC address;
and determining the IP address corresponding to the MAC address of the local terminal according to the arrangement sequence of the MAC address and the IP address.
Preferably, the sorting the MAC addresses of the home terminal and the peer terminal, and sorting the two preset IP addresses includes:
and arranging the MAC addresses of the home terminal and the opposite terminal according to the character priority order, and arranging the two preset IP addresses according to the order of the numbers from small to large or from large to small.
Preferably, after determining that the local terminal is in the active state and the opposite terminal is in the standby state, or that the local terminal is in the standby state and the opposite terminal is in the active state, the method further includes:
and storing the main and standby state information of which the local terminal is in the main state and the opposite terminal is in the standby state or the local terminal is in the standby state and the opposite terminal is in the main state in the local terminal and sending the main and standby state information to the opposite terminal.
Preferably, when receiving a response sent by the peer to agree to modify the identity of the controlling peer, after modifying the identity of the controlling peer, the method further includes:
and judging whether the local terminal stores the main standby state information, if so, determining the main standby state of the local terminal according to the main standby state information, otherwise, determining that the local terminal is in the main state and the opposite terminal is in the standby state.
Preferably, after determining that the local terminal is in the active state and the opposite terminal is in the standby state, or that the local terminal is in the standby state and the opposite terminal is in the active state, the method further includes:
and restoring the identifier for controlling the local terminal and the identifier for controlling the opposite terminal.
Correspondingly, an embodiment of the present invention further provides a device for confirming a master standby state, where the device includes:
an IP address determining unit, configured to determine, according to a preset protocol IP address allocation principle of interconnection between networks, an IP address for implementing mutual communication between a home terminal and an opposite terminal after the home terminal and the opposite terminal establish a physical connection;
determining a main standby state unit, which is used for modifying the identifier used for controlling the local terminal in a preset period and sending a request for modifying the identifier used for controlling the opposite terminal to the opposite terminal; when a request sent by an opposite terminal for modifying the identifier for controlling the home terminal is received, sending a response which does not agree to modify the identifier for controlling the home terminal to the opposite terminal, or when a response which does not agree to modify the identifier for controlling the opposite terminal and is sent by the opposite terminal is received, restoring the identifier for controlling the home terminal, and entering a next period after waiting for a preset random time length; when receiving a response sent by an opposite terminal for agreeing to modify the identifier for controlling the opposite terminal, modifying the identifier for controlling the opposite terminal, and judging whether the local terminal stores the main/standby state information, if so, determining that the local terminal is in a main state or a standby state according to the main/standby state information, and if not, determining that the local terminal is in the main state and the opposite terminal is in the standby state.
Preferably, the IP address determining unit determines, according to a preset IP address allocation principle, an IP address for implementing mutual communication between the home terminal and the peer terminal, and specifically is configured to:
sending an original socket broadcast request to an opposite terminal, and receiving an MAC address response sent by the opposite terminal;
sequencing the MAC addresses of the home terminal and the opposite terminal, and sequencing two preset IP addresses, so that each sequenced MAC address corresponds to an IP address with the same serial number position as the MAC address;
and determining the IP address corresponding to the MAC address of the local terminal according to the arrangement sequence of the MAC address and the IP address.
Preferably, the determining IP address unit sequences MAC addresses of the home terminal and the peer terminal, and sequences two preset IP addresses, specifically configured to:
and arranging the MAC addresses of the home terminal and the opposite terminal according to the character priority order, and arranging the two preset IP addresses according to the order of the numbers from small to large or from large to small.
Preferably, after determining that the active/standby state unit determines that the local terminal is in the active state and the opposite terminal is in the standby state, or that the local terminal is in the standby state and the opposite terminal is in the active state, the active/standby state unit is further configured to:
and storing the main and standby state information of which the local terminal is in the main state and the opposite terminal is in the standby state or the local terminal is in the standby state and the opposite terminal is in the main state in the local terminal and sending the main and standby state information to the opposite terminal.
Preferably, after determining that the active/standby state unit modifies the identifier for controlling the peer when receiving a response sent by the peer and agreeing to modify the identifier for controlling the peer, the active/standby state unit is further configured to:
and judging whether the local terminal stores the main standby state information, if so, determining the main standby state of the local terminal according to the main standby state information, otherwise, determining that the local terminal is in the main state and the opposite terminal is in the standby state.
Preferably, after the determining that the local terminal is in the active state and the opposite terminal is in the standby state, or the local terminal is in the standby state and the opposite terminal is in the active state, the determining that the main standby state unit is further configured to:
and restoring the identifier for controlling the local terminal and the identifier for controlling the opposite terminal.
Correspondingly, the embodiment of the invention also provides equipment for confirming the main standby state, which comprises any one of the devices for confirming the main standby state provided by the embodiment of the invention.
Drawings
Fig. 1 is a schematic structural diagram of a dual-computer hot-standby system for confirming a main standby state in the prior art;
fig. 2 is a schematic structural diagram illustrating a second dual-computer hot-standby system for determining a main/standby state in the prior art;
FIG. 3 is a flowchart illustrating a method for confirming a primary standby status according to the present invention;
FIG. 4 is a flowchart illustrating a second method for confirming a primary standby status according to the present invention;
fig. 5 is a schematic structural diagram of a device for confirming a master/standby state according to the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention clearer, the present invention will be described in further detail with reference to the accompanying drawings, and it is apparent that the described embodiments are only a part of the embodiments of the present invention, not all of the embodiments. 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.
The embodiment of the invention provides a method, a device and equipment for confirming a main standby state, which are used for realizing the purpose of automatically confirming the main standby state of two mutually connected equipment under the condition of no third party arbitration unit or manual participation.
It should be noted that the method for confirming the master-standby status provided by the present invention is applicable to a system formed by two devices connected to each other.
Referring to fig. 3, a method for confirming a master standby state according to an embodiment of the present invention includes:
s301, after physical connection is established between the home terminal and the opposite terminal, determining an IP address for realizing mutual communication between the home terminal and the opposite terminal according to a preset protocol IP address distribution principle of interconnection between networks;
s302, in a preset period, modifying the identifier for controlling the home terminal, and sending a request for modifying the identifier for controlling the opposite terminal to the opposite terminal;
s303, when a request for modifying the identifier for controlling the home terminal sent by the opposite terminal is received, sending a response which does not agree to modify the identifier for controlling the home terminal to the opposite terminal, or when a response which does not agree to modify the identifier for controlling the opposite terminal and sent by the opposite terminal is received, restoring the identifier for controlling the home terminal, and waiting for a preset random time length to execute the step S302;
s304, when a response sent by the opposite terminal for agreeing to modify the identifier for controlling the opposite terminal is received, modifying the identifier for controlling the opposite terminal, and determining that the opposite terminal is in the active state or the opposite terminal is in the standby state.
It should be noted that the method for confirming the master standby status provided by the embodiment of the present invention is applied to a system of two devices. Specifically, the initial state of the device may not be known, and the IP address of each device may be the same or different, so the device provided by the present invention may be a completely independent host in any physical form. And the devices are connected with each other without any third party arbitration unit or manual control. The two devices which are mutually connected in the implementation of the invention can realize the purpose of automatically confirming the main standby state without considering whether the initial forms of the networks of the two parties are different.
Specifically, in the embodiment of the present invention, the identifier for controlling the local terminal refers to a control right for controlling the device itself, the identifier for controlling the opposite terminal refers to a control right for controlling the device at the opposite terminal, and after the control rights of the local terminal and the device at the opposite terminal are obtained, it is further determined whether the local terminal is in the active state or the standby state. The identifier for controlling the peer is located in the host of the peer device, so a competitive manner may be adopted to obtain the control right of the peer device and the peer device. Specifically, each device includes an identifier for controlling the control right of the local device, and the specific content of the identifier may be set by a programmer according to an actual situation. For example, two devices may be respectively marked as a device one and a device two, where initial identifiers used for controlling the devices in the device one and the device two are both 0, and if the device one or the device two is controlled, the identifier is modified from 0 to 1; when the identification used for controlling the first equipment is modified from 0 to 1 by the second equipment, the first equipment is determined to be controlled by the first equipment, and when the identification used for controlling the first equipment is modified from 0 to 1 by the second equipment, the first equipment is determined to be controlled by the second equipment; and if the identifier for controlling the second device in the second device is modified from 0 to 1 by the first device, determining that the second device is controlled by the first device, and if the identifier for controlling the second device in the second device is modified from 0 to 1 by the second device, determining that the second device is controlled by the second device. The identifier for controlling the local terminal may be 1 or 0 in the binary data, and may be set according to circumstances, and is controlled when the identifier is 1, or is controlled when the identifier is 0. And is not particularly limited herein.
When the first device and the second device compete to obtain the control right of the local terminal and the opposite terminal, a random period of each device when obtaining the control right is preset in a system formed by the first device and the second device. In the first period of obtaining the control right, the first device modifies the identifier in the first device, and the second device modifies the identifier in the second device; then the first device sends a request for modifying the identifier used for controlling the second device, the second device simultaneously sends a request for modifying the identifier used for controlling the first device, and the identifier in the second device is modified by the first device and controlled by the first device, and is modified by the second device and controlled by the second device; and finally, the first equipment receives a response which is sent by the second equipment and is not authorized to modify the identifier used for controlling the second equipment, and meanwhile, the second equipment receives a response which is sent by the first equipment and is not authorized to modify the identifier used for controlling the first equipment. Therefore, in the first period, neither the first device nor the second device obtains the control right of the first device or the second device, the first device restores the identifier for controlling the first device, and the second device restores the identifier for controlling the second device. Thus, at the end of the first period, neither device one nor device two acquires control of both devices. The first device and the second device wait for the random time length and then enter the period for obtaining the control right again, and since the waiting time lengths are random, the time lengths of entering the next period after the first device and the second device finish one period may be equal or unequal. Therefore, after a plurality of periods, the first device is in a waiting period, and the second device enters a period for acquiring the control right to modify the identifier, so that the second device acquires the control right of the first device and the second device and determines the main and standby states of the second device and the first device; or the second device is in a waiting period, and the first device enters a period for acquiring the control right to modify the identifier, so that the first device acquires the control right of the second device and the first device, and determines the active/standby states of the first device and the second device.
For example, after a period of time, the first device enters a period, the second device is still in a waiting time, the first device modifies the identifier for controlling the first device, and sends a request for modifying the identifier for controlling the second device, because the second device is in a waiting time, the identifier in the second device is still an initial identifier, that is, 0, when receiving the request sent by the first device, the second device sends a response that agrees to modify the identifier for controlling the second device, and after receiving the response, the first device modifies the identifier in the second device, and at this time, the first device acquires the control rights of the first device and the second device, so that the first device can determine that the first device is in a main state, the second device is in a standby state, or the first device is in a standby state, and the second device is in the main state. Therefore, when the present invention confirms that the device is in the active state or the standby state, the two devices both agree with the active and standby states of the device and the opposite device by acquiring the control rights of the two devices.
Therefore, the method for confirming the master standby state provided by the embodiment of the invention comprises the following steps: firstly, after a local terminal and an opposite terminal establish physical connection, determining an IP address for realizing mutual communication between the local terminal and the opposite terminal according to a preset IP address allocation principle, thereby determining that mutual communication can be carried out between the local terminal and the opposite terminal, then entering a period for determining a main standby state according to a preset period and a preset random time length, modifying an identifier for controlling the local terminal by the local terminal, sending a request for modifying the identifier for controlling the opposite terminal, modifying the identifier for controlling the opposite terminal after receiving a response which is sent by the opposite terminal and agrees to modify the identifier for controlling the opposite terminal, and then determining that the local terminal is in the main state or the standby state; when a response sent by the opposite terminal and not agreeing to modify the identifier for controlling the opposite terminal is received or an identifier request sent by the opposite terminal and used for modifying the identifier for controlling the local terminal is received, the identifier for controlling the local terminal is restored, a preset random time length is waited, the period for determining the active/standby state is entered again, the identifier for controlling the local terminal is modified again, and a request for modifying the identifier for controlling the opposite terminal is sent until the local terminal is determined to be in the active state or the standby state. Therefore, the method for confirming the master-standby state provided by the embodiment of the present invention does not need manual intervention or a third-party arbitration unit, and only modifies the identifiers of the home terminal and the opposite terminal in a contention manner according to a random waiting duration when each device is preset to determine the master-standby state, so as to determine whether the home terminal is in the master-standby state or the standby state after obtaining the control rights of the home terminal and the opposite terminal.
In a specific embodiment, the two devices connected to each other may be physically connected to each other by using a network cable, or by using another method.
How to achieve the mutual connection will be described below by taking the way of the mutual connection through the network cable as an example. Specifically, each device provided in the embodiment of the present invention needs to deploy 2 network cards, where one network card is used when the two device hosts are connected to each other through a network cable, and the other network card is used to access the service network of the device. In a specific embodiment, one network card of each device is accessed to a service network to realize the service operation of the device; the other network card is directly connected with the other equipment through a network cable; and then the power supply module of each device is switched on to realize the interconnection of a plurality of devices. Therefore, the devices provided by the embodiment of the invention are only connected with each other through the network cable, and no third party arbitration unit or manual intervention is needed. Preferably, the initial network configurations of the network cards for direct connection via the network cable in each device may be completely the same or different, and the implementation of determining the active/standby states in the present invention is not affected.
In a specific embodiment, the step S301 is configured to implement an IP address for mutual communication between the home terminal and the peer terminal according to a preset IP address allocation principle, and includes:
sending an original socket broadcast request to an opposite terminal, and receiving an MAC address response sent by the opposite terminal;
sequencing the MAC addresses of the home terminal and the opposite terminal, and sequencing two preset IP addresses, so that each sequenced MAC address corresponds to an IP address with the same serial number position as the MAC address;
and determining the IP address corresponding to the MAC address of the local terminal according to the arrangement sequence of the MAC address and the IP address.
Specifically, each device is respectively deployed with a function of monitoring an original socket, and the original socket is bound to a network card that is connected to each device through a network cable or wirelessly. Respectively sending a request of original socket broadcasting on each device, wherein the request carries a data packet with specified content; after each device receives a request of original socket broadcast sent by other devices, the MAC address of the local network card for direct connection through a network cable or wireless is sent to the other devices as a response to the request, so that each device obtains the MAC addresses of the other devices connected with each other through the network cable or wireless. By adopting the method that the original sockets are bound on the network cable or the wireless directly connected network card to obtain the MAC addresses of the devices through the network cable or the wireless mutually connected devices in a broadcasting mode, the possible influence of cross negotiation among the multiple sets of dual-machine hot-standby systems when the multiple sets of dual-machine hot-standby systems are in the same local area network is avoided, and the multiple sets of dual-machine hot-standby systems are isolated. Particularly, the broadcast is carried out on the network card directly connected with the network cable or the wireless network card by using the original socket, the data link does not depend on the completely same network state such as the initial IP address of the network card of the device, and the influence on the sending and receiving of the broadcast data caused by the completely same initial network configuration of the two devices is avoided.
In a specific embodiment, the sorting the MAC addresses of the home terminal and the peer terminal, and the sorting the two preset IP addresses includes:
and arranging the MAC addresses of the home terminal and the opposite terminal according to the character priority order, and arranging the two preset IP addresses according to the order of the numbers from small to large or from large to small.
Specifically, after receiving all MAC addresses of network cards connected to each other through a network cable or wirelessly, each device stores the MAC addresses locally, and uses the MAC addresses as a MAC address set, and orders the MAC addresses in the MAC address set, where the order of the MAC addresses is an order of devices corresponding to the MAC addresses. The present invention is not specifically limited, and may be arranged according to a sequence of the first letter characters in the MAC address, or according to a sequence of the opposite direction of the sequence of the first letter characters in the MAC address, which is not specifically limited herein.
The IP address in the embodiment of the present invention and the IP address used by the device to access the service network do not belong to one network segment, and in order to avoid the conflict between the IP address used for determining the active state or the standby state of the device and the IP address used by the service network, the IP address in the embodiment of the present invention may adopt a preset IP address. An IP address set may be preset for determining whether the device is in the active state or the standby state. For example, when two devices are included in the system, the IP address set is selected as {110.110.110.111, 110.110.110.112}, and then the selected IP addresses are sorted, wherein the principle of sorting IP addresses is not particularly limited in the embodiments of the present invention. For example, the IP addresses may be sorted in descending order of the numbers of the IP addresses, and the like. After the IP addresses are sequenced, the sequenced IP addresses correspond to the sequenced MAC addresses one by one, so that the IP address corresponding to the MAC address of each device is determined, namely the IP address of each device is determined, and the two devices can communicate with each other through a network cable.
For example, when the system includes two devices, the two devices are respectively called a device one and a device two, and the MAC address corresponding to the device one is ordered at the first position in the MAC address set, and the MAC address is ordered at the first IP address; and if the MAC address corresponding to the second device is in the second bit in the MAC address set, the MAC address corresponds to the IP address ordered in the second bit. Or if the sequence of the MAC address corresponding to the first equipment in the MAC address set is at the second position, the MAC address is correspondingly sequenced at the IP address of the second position; and if the MAC address corresponding to the second device is in the first order in the MAC address set, the MAC address corresponds to the IP address ordered in the first order.
Specifically, when each device sequences the MAC addresses in the MAC address set, the devices may be arranged according to the sequence of characters included in the MAC addresses; when the IP addresses assigned to all the devices are sorted, the data in the IP addresses may be sorted in the order from small to large. And then, allocating the IP address corresponding to each device according to the IP address allocation method. The method for allocating the IP address comprises the following steps: judging the arrangement sequence of the MAC addresses corresponding to the equipment, and if the MAC addresses of the equipment are ordered first, selecting the IP addresses ordered first in the IP address set; or judging the arrangement sequence of the MAC addresses corresponding to the equipment, and if the MAC addresses of the equipment are ordered first, selecting the IP addresses ordered last in the IP address set.
After each device determines the IP address of the home terminal, the selected IP address is dynamically configured to the network card of the device through the network cable or wireless connection, so that each device stores the IP address of the home terminal. When the network card is dynamically configured, a virtual network card of the network card connected through a network cable can be used for storage. For example, if the network card connected to the network cable is eth1, an eth 1: 254 as a virtual network card to dynamically configure IP addresses.
Therefore, the devices in the embodiment of the present invention are connected to each other through a network cable or wirelessly, and then each device feeds back the MAC address of the device to other devices after receiving a broadcast request of an original socket, so that each device can obtain the MAC address of each other, and determine the IP address corresponding to each device according to the arrangement sequence of the MAC addresses and the arrangement sequence of the two preset IP addresses and according to the IP address allocation method, so that the two devices can communicate with each other.
Specifically, after the two devices communicate with each other, the purpose of determining the active/standby state can be automatically achieved, and the specific implementation manner is described in detail below.
After the two devices dynamically configure the IP addresses of the local terminals, the two devices respectively enter a period for determining the active/standby states. Further, in order to avoid conflict or failure in determining the active/standby states due to the two devices respectively having the control right of the two devices at the same time, the active/standby states of the local terminal and the opposite terminal may be determined in a competitive manner.
The process of confirming the active/standby state in a competitive mode includes: modifying an identifier for controlling the home terminal, sending a request for modifying the identifier for controlling the opposite terminal to the opposite terminal, and determining that the home terminal is in a main state or a standby state when receiving a response which is sent by the opposite terminal and agrees to modify the identifier for controlling the opposite terminal; when receiving a response sent by the opposite terminal and not agreeing to modify the identifier for controlling the opposite terminal, restoring the identifier for controlling the local terminal, and entering a period for confirming the active/standby state again after waiting for the random time length; when receiving the mark for controlling the home terminal sent by the opposite terminal, sending a response which does not agree with the mark for controlling the home terminal, restoring the mark for controlling the home terminal, and entering a period for confirming the active/standby state again after waiting for the random time length. The random time length of waiting of each device is different, so that one of the two devices must obtain a response for agreeing to modify the identifier for controlling the opposite terminal in a certain period, thereby determining the active/standby state. Wherein the time of the random time length is not specifically limited herein.
In a specific embodiment, after determining that the local terminal is in the active state and the opposite terminal is in the standby state, or that the local terminal is in the standby state and the opposite terminal is in the active state, the method further includes: and storing the main and standby state information of which the home terminal is in the main state and the opposite terminal is in the standby state, or the home terminal is in the standby state and the opposite terminal is in the main state, and sending the main and standby state information to the opposite terminal.
Specifically, after determining the active/standby state of any device, the device i and the device ii store the information of the active/standby state at the local terminal and send the information of the active/standby state to the opposite terminal. If the first device and the second device start to compete for the control right at the same time, if the first device obtains the control right of the first device and the second device and determines that the first device is in the active state and the second device is in the standby state, or the first device is in the standby state and the second device is in the active state. In order to avoid that the second device further determines the primary and standby states of the second device in a competitive manner, the first device sends the primary and standby states of the first device and the second device to the second device, so that the second device omits a process of determining the primary and standby states of the second device in a competitive manner. The purpose of storing the primary and standby states is to avoid a process that the primary and standby states need to be further determined in a competitive manner again after the first device and the second device are powered off. Therefore, the main/standby state is further determined directly through the locally stored main/standby state information.
In a specific embodiment, after determining that the local terminal is in the active state and the opposite terminal is in the standby state, or that the local terminal is in the standby state and the opposite terminal is in the active state, the method further includes: and restoring the identifier for controlling the local terminal and the identifier for controlling the opposite terminal.
Specifically, after the device i or the device ii determines the primary/secondary state in a competitive manner, the device i or the device ii determines the primary/secondary state of the device in order to facilitate the device i or the device i further entering a period for determining the primary/secondary state, and restores the identifier for controlling the device i and the identifier for controlling the device ii after the primary/secondary state is determined. After the identifiers in the first device and the second device are both restored, the primary and standby states can be further confirmed in a competitive mode.
In a specific embodiment, when receiving a response sent by the peer to agree to modify the identifier for controlling the peer, after modifying the identifier for controlling the peer, the method further includes: and judging whether the local terminal stores the main standby state information, if so, determining the main standby state of the local terminal according to the main standby state information, otherwise, determining that the local terminal is in the main state and the opposite terminal is in the standby state.
When any one of the first device and the second device has determined the active/standby state, the other device determines the active/standby state of itself, and may determine the active/standby state of itself in the above-mentioned competitive manner, or determine the active/standby state of itself through information stored in a local record table after receiving the active/standby state information. For example, after determining the primary/secondary state by the first device through a contention mode, the first device records the primary/secondary state and sends the primary/secondary state to the second device, where the primary/secondary state includes the primary/secondary state of the first device and the second device, and the second device stores the received information of the primary/secondary state locally, so that the second device can determine whether the second device is in the primary state or the secondary state according to the locally stored information of the primary/secondary state.
In a specific embodiment, after determining that the active/standby state unit determines that the local terminal is in the active state and the opposite terminal is in the standby state, or that the local terminal is in the standby state and the opposite terminal is in the active state, the method further includes: and restoring the identifier for controlling the local terminal and the identifier for controlling the opposite terminal.
Specifically, after the two devices connected to each other have confirmed the main/standby state, the system composed of the two devices starts to operate, and when the devices in the main state are in abnormal conditions such as a host shutdown, the devices in the standby state take over the operation of the devices in the main state to continue operating.
The method for confirming the primary standby state according to the embodiment of the present invention is described in detail below with reference to specific embodiments. For example, a hot standby system composed of two devices is adopted, and the purpose of automatically confirming the main standby state is realized by the method for confirming the main standby state provided by the invention.
Referring to fig. 4, a method for confirming a primary standby state according to an embodiment of the present invention includes:
s401, creating a physical environment of dual-computer hot standby, and connecting two devices which are completely the same or different with each other through a network cable;
each device comprises two network cards, one network card is used for connecting a service network, and the other network card is used for connecting the two devices. Further, in order to distinguish the two devices, the two devices are respectively called a device one and a device two.
S402, original socket monitoring is respectively deployed on a network card of each device for connecting a network cable, and the MAC address of the local terminal is fed back to the other device according to the sent original socket broadcasting request;
for example, when receiving an original socket broadcast request sent by the home terminal, the device one feeds back the MAC address of the home terminal to the device one; or the first device feeds back the MAC address of the local terminal to the second device when receiving the original socket broadcast request sent by the second device. Similarly, when receiving the original socket broadcast request sent by the home terminal, the second device feeds back the MAC address of the home terminal to the second device; or the second device feeds back the MAC address of the local terminal to the first device when receiving the original socket broadcast request sent by the first device.
S403, sequencing the obtained MAC addresses, and sequencing two preset IP addresses;
s404, selecting the IP address corresponding to the MAC address according to the MAC address sequencing, thereby determining the IP addresses of the local terminal and the opposite terminal equipment;
after the IP addresses of the first device and the second device are determined, the first device and the second device can achieve the purpose of mutual communication.
S405, modifying the identifier for controlling the home terminal, and sending a request for modifying the identifier for controlling the opposite terminal;
s406, receiving a response sent by the opposite terminal for agreeing to modify the identifier for controlling the opposite terminal, and executing the step S408;
s407, when receiving the identifier which is sent by the opposite terminal and is not approved to modify and is used for controlling the opposite terminal, or receiving the request which is sent by the opposite terminal and is used for controlling the identifier of the local terminal, sending the response of not approving to modify and is used for controlling the identifier of the local terminal, waiting for the preset random time length, and returning to the step S405.
S408, judging whether the local terminal stores the main standby state information, if so, executing a step S409, otherwise, executing a step S4010;
s409, confirming that the local terminal is in a main state or a standby state according to the main/standby state information, and then executing S4011;
s4010, determining that the local terminal is in a primary state and the opposite terminal is in a standby state, storing primary and standby state information of which the local terminal is in the primary state and the opposite terminal is in the standby state in the local terminal, sending the primary and standby state information to the opposite terminal, and then executing S4011;
s4011, restoring the identifier for controlling the local terminal and restoring the identifier for controlling the opposite terminal.
Referring to fig. 5, an apparatus for confirming a master standby state according to an embodiment of the present invention includes:
an IP address determining unit 51, configured to determine, according to a preset protocol IP address allocation principle of interconnection between networks, an IP address for implementing mutual communication between the home terminal and the peer terminal after the home terminal and the peer terminal establish a physical connection;
a main/standby state determining unit 52, configured to modify the identifier for controlling the local terminal in a preset period, and send a request for modifying the identifier for controlling the opposite terminal to the opposite terminal; when a request sent by an opposite terminal for modifying the identifier for controlling the home terminal is received, sending a response which does not agree to modify the identifier for controlling the home terminal to the opposite terminal, or when a response which does not agree to modify the identifier for controlling the opposite terminal and is sent by the opposite terminal is received, restoring the identifier for controlling the home terminal, and entering a next period after waiting for a preset random time length; when receiving a response sent by the opposite terminal for agreeing to modify the identifier for controlling the opposite terminal, modifying the identifier for controlling the opposite terminal, and determining that the opposite terminal is in the active state or the opposite terminal is in the standby state.
In a specific embodiment, in the device for confirming a master standby state provided in the embodiment of the present invention, the home terminal and the peer terminal are connected to each other through a network cable.
In a specific embodiment, in the above device for confirming a master standby state provided in the embodiment of the present invention, the IP address determining unit 51 determines, according to a preset IP address allocation principle, an IP address used for implementing mutual communication between a home terminal and an opposite terminal, and is specifically configured to:
sending an original socket broadcast request to an opposite terminal, and receiving an MAC address response sent by the opposite terminal;
sequencing the MAC addresses of the home terminal and the opposite terminal, and sequencing two preset IP addresses, so that each sequenced MAC address corresponds to an IP address with the same serial number position as the MAC address;
and determining the IP address corresponding to the MAC address of the local terminal according to the arrangement sequence of the MAC address and the IP address.
In a specific embodiment, in the device for confirming a master standby state provided in the embodiment of the present invention, the determining IP address unit sequences MAC addresses of the home terminal and the peer terminal, and sequences two preset IP addresses, which is specifically configured to:
and arranging the MAC addresses of the home terminal and the opposite terminal according to the character priority order, and arranging the two preset IP addresses according to the order of the numbers from small to large or from large to small.
In a specific embodiment, in the device for confirming a main standby state provided in the embodiment of the present invention, after determining that the main standby state unit is in the standby state when determining that the local terminal is in the main state and the opposite terminal is in the standby state, or that the local terminal is in the standby state and the opposite terminal is in the main state, the main standby state unit is further configured to:
and storing the main and standby state information of which the local terminal is in the main state and the opposite terminal is in the standby state or the local terminal is in the standby state and the opposite terminal is in the main state in the local terminal and sending the main and standby state information to the opposite terminal.
In a specific embodiment, in the device for confirming a master standby state provided in the embodiment of the present invention, after determining that the master standby state unit modifies the identifier for controlling the opposite end when receiving a response, sent by the opposite end, that agrees to modify the identifier for controlling the opposite end, the master standby state unit is further configured to:
and judging whether the local terminal stores the main standby state information, if so, determining the main standby state of the local terminal according to the main standby state information, otherwise, determining that the local terminal is in the main state and the opposite terminal is in the standby state.
In a specific embodiment, in the device for confirming a main standby state provided in the embodiment of the present invention, after determining that the main standby state unit determines that the local terminal is in the main state and the opposite terminal is in the standby state, or that the local terminal is in the standby state and the opposite terminal is in the main state, the device is further configured to:
and restoring the identifier for controlling the local terminal and the identifier for controlling the opposite terminal.
Based on the same inventive concept, an embodiment of the present invention further provides an apparatus for confirming a primary standby state, including any one of the above-mentioned devices for confirming a primary standby state provided by the embodiments of the present invention.
The embodiment of the invention provides a method, a device and equipment for confirming a main standby state, wherein the method comprises the following steps: firstly, after a local terminal and an opposite terminal establish physical connection, determining an IP address for realizing mutual communication between the local terminal and the opposite terminal according to a preset IP address allocation principle, thereby determining that mutual communication can be carried out between the local terminal and the opposite terminal, then entering a period for determining a main standby state according to a preset period and a preset random time length, modifying an identifier for controlling the local terminal by the local terminal, sending a request for modifying the identifier for controlling the opposite terminal, modifying the identifier for controlling the opposite terminal after receiving a response which is sent by the opposite terminal and agrees to modify the identifier for controlling the opposite terminal, and then determining that the local terminal is in the main state or the standby state; when a response sent by the opposite terminal and not agreeing to modify the identifier for controlling the opposite terminal is received or an identifier request sent by the opposite terminal and used for modifying the identifier for controlling the local terminal is received, the identifier for controlling the local terminal is restored, a preset random time length is waited, the period for determining the active/standby state is entered, the identifier for controlling the local terminal is modified again, and a request for modifying the identifier for controlling the opposite terminal is sent until the local terminal is determined to be in the active state or the standby state. Therefore, the method for confirming the master-standby state provided by the embodiment of the present invention does not need manual intervention or a third-party arbitration unit, and only modifies the identifiers of the home terminal and the opposite terminal in a contention manner according to a random waiting duration when each device is preset to determine the master-standby state, so as to determine whether the home terminal is in the master-standby state or the standby state after obtaining the control rights of the home terminal and the opposite terminal.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (11)

1. A method for confirming a primary/standby status, the method comprising:
after the physical connection is established between the home terminal and the opposite terminal, determining an IP address for realizing the mutual communication between the home terminal and the opposite terminal according to a preset protocol IP address distribution principle of interconnection between networks;
in a preset period, modifying the identifier for controlling the home terminal, and sending a request for modifying the identifier for controlling the opposite terminal to the opposite terminal;
when a request sent by an opposite terminal for modifying the identifier for controlling the home terminal is received, sending a response which does not agree to modify the identifier for controlling the home terminal to the opposite terminal, or when a response which does not agree to modify the identifier for controlling the opposite terminal and is sent by the opposite terminal is received, restoring the identifier for controlling the home terminal, and entering a next period after waiting for a preset random time length;
when receiving a response sent by an opposite terminal for agreeing to modify the identifier for controlling the opposite terminal, modifying the identifier for controlling the opposite terminal, and judging whether the local terminal stores the main/standby state information, if so, determining that the local terminal is in a main state or a standby state according to the main/standby state information, and if not, determining that the local terminal is in the main state and the opposite terminal is in the standby state.
2. The method of claim 1, wherein determining the IP address for implementing the mutual communication between the home terminal and the peer terminal according to a preset IP address allocation rule comprises:
sending an original socket broadcast request to an opposite terminal, and receiving an MAC address response sent by the opposite terminal;
sequencing the MAC addresses of the home terminal and the opposite terminal, and sequencing two preset IP addresses, so that each sequenced MAC address corresponds to an IP address with the same serial number position as the MAC address;
and determining the IP address corresponding to the MAC address of the local terminal according to the arrangement sequence of the MAC address and the IP address.
3. The method of claim 2, wherein the sorting the MAC addresses of the home terminal and the peer terminal and the sorting the two preset IP addresses comprises:
and arranging the MAC addresses of the home terminal and the opposite terminal according to the character priority order, and arranging the two preset IP addresses according to the order of the numbers from small to large or from large to small.
4. The method of claim 1, wherein determining whether the local terminal stores active/standby state information, if yes, determining that the local terminal is in an active state or a standby state according to the active/standby state information, if no, determining that the local terminal is in the active state, and after the opposite terminal is in the standby state, the method further comprises:
and storing the main and standby state information of which the local terminal is in the main state and the opposite terminal is in the standby state or the local terminal is in the standby state and the opposite terminal is in the main state in the local terminal and sending the main and standby state information to the opposite terminal.
5. The method of claim 1, wherein determining whether the local terminal stores active/standby state information, if yes, determining that the local terminal is in an active state or a standby state according to the active/standby state information, if no, determining that the local terminal is in the active state, and after the opposite terminal is in the standby state, the method further comprises:
and restoring the identifier for controlling the local terminal and the identifier for controlling the opposite terminal.
6. An apparatus for confirming a master/standby status, the apparatus comprising:
an IP address determining unit, configured to determine, according to a preset protocol IP address allocation principle of interconnection between networks, an IP address for implementing mutual communication between a home terminal and an opposite terminal after the home terminal and the opposite terminal establish a physical connection;
determining a main standby state unit, which is used for modifying the identifier used for controlling the local terminal in a preset period and sending a request for modifying the identifier used for controlling the opposite terminal to the opposite terminal; when a request sent by an opposite terminal for modifying the identifier for controlling the home terminal is received, sending a response which does not agree to modify the identifier for controlling the home terminal to the opposite terminal, or when a response which does not agree to modify the identifier for controlling the opposite terminal and is sent by the opposite terminal is received, restoring the identifier for controlling the home terminal, and entering a next period after waiting for a preset random time length; when receiving a response sent by an opposite terminal for agreeing to modify the identifier for controlling the opposite terminal, modifying the identifier for controlling the opposite terminal, and judging whether the local terminal stores the main/standby state information, if so, determining that the local terminal is in a main state or a standby state according to the main/standby state information, and if not, determining that the local terminal is in the main state and the opposite terminal is in the standby state.
7. The apparatus according to claim 6, wherein the unit for determining an IP address determines, according to a preset principle of IP address allocation, an IP address for implementing mutual communication between the local terminal and the peer terminal, and is specifically configured to:
sending an original socket broadcast request to an opposite terminal, and receiving an MAC address response sent by the opposite terminal;
sequencing the MAC addresses of the home terminal and the opposite terminal, and sequencing two preset IP addresses, so that each sequenced MAC address corresponds to an IP address with the same serial number position as the MAC address;
and determining the IP address corresponding to the MAC address of the local terminal according to the arrangement sequence of the MAC address and the IP address.
8. The apparatus according to claim 7, wherein the determining IP address unit sequences MAC addresses of the home terminal and the peer terminal, and sequences two preset IP addresses, specifically configured to:
and arranging the MAC addresses of the home terminal and the opposite terminal according to the character priority order, and arranging the two preset IP addresses according to the order of the numbers from small to large or from large to small.
9. The apparatus of claim 6, wherein the means for determining whether the local end stores active/standby state information is further configured to, if yes, determine that the local end is in the active state or the standby state according to the active/standby state information, if no, determine that the local end is in the active state, and after the opposite end is in the standby state, the means for determining the active/standby state is further configured to:
and storing the main and standby state information of which the local terminal is in the main state and the opposite terminal is in the standby state or the local terminal is in the standby state and the opposite terminal is in the main state in the local terminal and sending the main and standby state information to the opposite terminal.
10. The apparatus of claim 6, wherein the means for determining whether the local end stores active/standby state information is further configured to, if yes, determine that the local end is in the active state or the standby state according to the active/standby state information, if no, determine that the local end is in the active state, and after the opposite end is in the standby state, the means for determining the active/standby state is further configured to:
and restoring the identifier for controlling the local terminal and the identifier for controlling the opposite terminal.
11. A device for confirming primary standby status, comprising means for confirming primary standby status according to any one of claims 6 to 10.
CN201610913404.9A 2016-10-20 2016-10-20 Method, device and equipment for confirming main standby state Active CN107968718B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610913404.9A CN107968718B (en) 2016-10-20 2016-10-20 Method, device and equipment for confirming main standby state

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610913404.9A CN107968718B (en) 2016-10-20 2016-10-20 Method, device and equipment for confirming main standby state

Publications (2)

Publication Number Publication Date
CN107968718A CN107968718A (en) 2018-04-27
CN107968718B true CN107968718B (en) 2022-02-25

Family

ID=61996993

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610913404.9A Active CN107968718B (en) 2016-10-20 2016-10-20 Method, device and equipment for confirming main standby state

Country Status (1)

Country Link
CN (1) CN107968718B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109823375A (en) * 2019-01-07 2019-05-31 北京全路通信信号研究设计院集团有限公司 A kind of applied to the double of automatic train operation system is hot standby switch method and system
CN110912839B (en) * 2019-12-24 2021-11-26 北京东土军悦科技有限公司 Main and standby switch detection method, system, terminal and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1476178A (en) * 2003-07-08 2004-02-18 大唐移动通信设备有限公司 Device and method for realizing high availability in communication system
CN102291303A (en) * 2011-08-12 2011-12-21 大唐移动通信设备有限公司 Single board and method for determining primary and standby states for the same
CN103095502A (en) * 2013-01-23 2013-05-08 深圳市磊科实业有限公司 One-way inter-integrated circuit (IIC) unit frame management system of dynamic double unit switch mechanism
CN104468210A (en) * 2014-12-01 2015-03-25 国家计算机网络与信息安全管理中心 Quick main and standby switching control method
CN105871524A (en) * 2016-05-11 2016-08-17 福建三元达网络技术有限公司 Method and system for achieving hot standby on basis of TIPC protocol

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3517219B2 (en) * 2000-08-28 2004-04-12 松下電器産業株式会社 Communication terminal accommodation device and communication terminal accommodation method
CN101594258A (en) * 2009-07-06 2009-12-02 杭州华三通信技术有限公司 The method of real-time processing data, system and equipment in a kind of double-machine standby technology

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1476178A (en) * 2003-07-08 2004-02-18 大唐移动通信设备有限公司 Device and method for realizing high availability in communication system
CN102291303A (en) * 2011-08-12 2011-12-21 大唐移动通信设备有限公司 Single board and method for determining primary and standby states for the same
CN103095502A (en) * 2013-01-23 2013-05-08 深圳市磊科实业有限公司 One-way inter-integrated circuit (IIC) unit frame management system of dynamic double unit switch mechanism
CN104468210A (en) * 2014-12-01 2015-03-25 国家计算机网络与信息安全管理中心 Quick main and standby switching control method
CN105871524A (en) * 2016-05-11 2016-08-17 福建三元达网络技术有限公司 Method and system for achieving hot standby on basis of TIPC protocol

Also Published As

Publication number Publication date
CN107968718A (en) 2018-04-27

Similar Documents

Publication Publication Date Title
CN108833163B (en) Linux virtual server creating method and device, computer equipment and storage medium
US6434612B1 (en) Connection control interface for asynchronous transfer mode switches
CN102571996B (en) IP (Internet Protocol) address assignment method, IP address assignment device and network system
CN110995554A (en) Method and device for configuring and accessing intelligent household electrical appliance network and storage medium
CN102025798A (en) Address allocation processing method, device and system
CN102611750A (en) Double-protocol-stack accessing method and system
CN106982133B (en) Method, equipment and system for changing configuration information of virtual network card
CN107948063B (en) Method for establishing aggregation link and access equipment
CN107332814B (en) Request message transmission method and device
CN107968718B (en) Method, device and equipment for confirming main standby state
CN106464521B (en) Method and system for deterministically automatically configuring devices
CN105827496B (en) Manage the method and device of PE equipment
CN108810881B (en) Network distribution method, equipment and system
CN104468389A (en) Message processing method, servers and server system
US20100162009A1 (en) Network communication system for uninterruptable power supply and method for dividing controller group for performing communication to control operating status of load device of uninterruptible power supply for each uninterruptible power supply
CN108667640B (en) Communication method and device, and network access system
CN104935614B (en) Data transmission method and device
CN105451215A (en) Communication method and electronic device
CN112000019A (en) Method, device and equipment for sharing equipment instruction control
CN106169982B (en) Method, device and system for processing expansion port
CN103873294A (en) Keep-alive method and device for PPP (Point-to-Point Protocol) link during ISSU (In Service Software Upgrade) process
CN114978296B (en) Equipment switching method, device, earth station and readable storage medium
CN109274532B (en) Method, device and system for issuing policy, centralized control equipment and readable storage medium
CN103974224A (en) Credit control method and equipment
CN109039754B (en) Network equipment management method and device

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