CN108075971B - Main/standby switching method and device - Google Patents

Main/standby switching method and device Download PDF

Info

Publication number
CN108075971B
CN108075971B CN201711421014.0A CN201711421014A CN108075971B CN 108075971 B CN108075971 B CN 108075971B CN 201711421014 A CN201711421014 A CN 201711421014A CN 108075971 B CN108075971 B CN 108075971B
Authority
CN
China
Prior art keywords
vrrp
standby
equipment
message
switching
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
CN201711421014.0A
Other languages
Chinese (zh)
Other versions
CN108075971A (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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C 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 H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201711421014.0A priority Critical patent/CN108075971B/en
Publication of CN108075971A publication Critical patent/CN108075971A/en
Application granted granted Critical
Publication of CN108075971B publication Critical patent/CN108075971B/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/58Association of routers
    • H04L45/586Association of routers of virtual routers
    • 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 application provides a method and a device for switching between a main standby mode and a standby mode, wherein the method comprises the following steps: if the access equipment is the main equipment and receives a restarting instruction, a first type VRRP notification message is sent to the standby equipment; if the confirmation response message is received, or the confirmation response message is not received within the preset time length, restarting is carried out; if the access equipment is standby equipment and receives a first type VRRP notification message, switching to a proxy main equipment state and returning a confirmation response message to the main equipment; if the access equipment is in the proxy main equipment state, the VRRP virtual MAC address is issued, routing information is issued, and a VRRP protocol message is sent at regular time. By applying the embodiment of the application, the flow loss of the main equipment during the restart responding to the restart instruction can be avoided.

Description

Main/standby switching method and device
Technical Field
The present application relates to the field of network communication technologies, and in particular, to a method and an apparatus for switching between a master device and a slave device.
Background
The multi-machine backup function can ensure that the user service is not interrupted under the condition that the key service node has a single point fault. After the multi-machine backup function is configured, the main equipment backs up locally generated dynamic service information to the standby equipment in real time by using a service data backup channel established by the service. When the main equipment fails, the standby equipment can replace the main equipment to work. Because the backup service information exists on the standby equipment, the user who has been on line does not need to dial again, the charging and authorization information is not lost, the service of the user is not interrupted, and the reliability of the network is improved.
However, in the existing multi-machine backup scheme, when the active device reboots in response to the reboot command, the standby device needs to sense the reboot of the active device through a Virtual Router Redundancy Protocol (VRRP) Protocol or a Bidirectional Forwarding Detection (BFD) linkage VRRP, so as to perform active-standby switching, and during the active-standby switching, flow loss may occur.
Disclosure of Invention
The application provides a method and a device for switching a main backup and a standby, which are used for solving the problem that the flow is lost during the main backup and standby switching in the conventional multi-computer backup scheme
According to a first aspect of the present application, a method for switching between a master and a slave is provided, which is applied to an access device in a multi-machine backup networking supporting a virtual routing redundancy protocol VRRP, and the method includes:
if the access equipment is the main equipment and receives a restarting instruction, a first type VRRP notification message is sent to the standby equipment; the first type VRRP notification message is used for indicating that the standby equipment is switched to a proxy main equipment state;
and if the confirmation response message is received or the confirmation response message is not received within the preset time length, restarting.
According to a second aspect of the present application, a method for switching between a master and a slave is provided, which is applied to an access device in a multi-machine backup networking supporting a virtual routing redundancy protocol VRRP, and the method includes:
if the access equipment is standby equipment and receives a first type VRRP notification message, switching to a proxy main equipment state and returning a confirmation response message to the main equipment;
if the access device is in the proxy main device state, issuing a VRRP virtual Media Access Control (MAC) address, issuing routing information, and sending a VRRP protocol message at regular time.
According to a third aspect of the present application, a master/slave switching apparatus is provided, which is applied to an access device in a multi-machine backup networking supporting a virtual routing redundancy protocol VRRP protocol, the apparatus including:
a receiving unit for receiving a restart instruction;
a sending unit, configured to send a first type VRRP notification message to a standby device if the access device is a master device and the receiving unit receives a restart instruction; the first type VRRP notification message is used for indicating that the standby equipment is switched to the proxy main equipment state;
and the restarting unit is used for restarting if the receiving unit receives the acknowledgement message or the receiving unit does not receive the acknowledgement message within the preset time length.
According to a fourth aspect of the present application, a master/slave switching apparatus is provided, which is applied to an access device in a multi-machine backup networking supporting a virtual routing redundancy protocol VRRP protocol, the apparatus includes:
the receiving unit is used for receiving a first type VRRP notification message;
the switching unit is used for switching to a proxy main equipment state if the access equipment is standby equipment and the receiving unit receives a first type VRRP notification message;
a sending unit, configured to return a confirmation response message to the primary device if the access device is a standby device and the receiving unit receives the first type VRRP notification message;
the sending unit is further configured to issue a VRRP virtual MAC address, issue routing information, and send a VRRP protocol packet at regular time if the access device is in the proxy master device state.
By applying the application, if the access equipment is the main equipment and receives a restart instruction, a first type VRRP notification message is sent to the standby equipment; if the confirmation response message is received, or the confirmation response message is not received within the preset time length, restarting is carried out; if the access equipment is standby equipment and receives the first type VRRP notification message, switching to the state of the proxy main equipment and returning a confirmation response message to the main equipment; if the access device is in the proxy main device state, issuing a VRRP MAC address, issuing routing information, and sending a VRRP protocol message at regular time.
Drawings
Fig. 1 is a schematic diagram of a state machine in a multi-machine backup networking supporting a VRRP protocol according to an embodiment of the present application;
fig. 2 is a schematic flowchart of a main/standby switching method according to an embodiment of the present application;
fig. 3 is a schematic architecture diagram of a specific application scenario provided in an embodiment of the present application;
fig. 4 is a schematic structural diagram of a main/standby switching device according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of another active/standby switching device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a main/standby switching device according to an embodiment of the present application;
fig. 7 is a schematic structural diagram of another active/standby switching device according to an embodiment of the present application.
Detailed Description
In order to make those skilled in the art better understand the technical solution in the embodiment of the present application, first, a rule to be followed by a master device and a slave device in a multi-machine backup networking supporting a VRRP protocol is briefly described below.
1. The main equipment issues a VRRP virtual MAC address, and the standby equipment cannot issue the VRRP virtual MAC address;
2. the main equipment sends VRRP protocol messages at regular time and refreshes MAC table entries of the two-layer switch, so that the flow of a user access network can find an outlet interface according to the refreshed MAC table entries for forwarding;
3. the primary device issues a route, and the standby device does not issue a route.
In order to make the aforementioned objects, features and advantages of the embodiments of the present application more comprehensible, embodiments of the present application are described in detail below with reference to the accompanying drawings.
Referring to fig. 1, a schematic diagram of a state machine in a multi-machine Backup networking supporting a VRRP protocol according to an embodiment of the present disclosure is shown in fig. 1, where in the embodiment of the present disclosure, a Proxy Master-Proxy state machine is newly added on the basis of an original Master state machine (Master), a Backup state machine (Backup) and an initial (initial) state machine; wherein:
when the multi-machine Backup networking is initialized to operate, each access device is in an Initialize state, main devices are selected in an competition mode, the access devices selected in the competition mode as the main devices are switched to a Master state from the Initialize state, and the rest access devices are switched to a Backup state from the Initialize state;
when receiving a VRRP notification message (herein referred to as a first type VRRP notification message) sent by a Master device and used for indicating that the Master device is switched to a Proxy Master device state, a standby device switches to a Master-Proxy state;
when the main equipment receives a restart instruction, a first type VRRP notification message is sent, and when the main equipment is restarted, the Master state is switched to the Backup state, and the Backup state is switched to the Master state after the preset delay preemption time; when the access equipment in the Master-Proxy state receives a VRRP protocol message sent by the main equipment, the Master-Proxy state is switched to the Backup state;
when the access equipment in any state has equipment or port failure, the access equipment is switched to the Initialize state;
when the Master device fails, the Master device is switched to the initialization state from the Master state, the standby device reselects a new Master device, and the new Master device is switched to the Master state from the Backup state.
Referring to fig. 2, a schematic flow chart of a main/standby switching method provided in an embodiment of the present application is shown, where the main/standby switching method may be applied to an Access device in a multi-computer backup networking supporting a VRRP protocol, such as a BRAS (Broadband Remote Access Server), as shown in fig. 2, the main/standby switching method may include the following steps:
step 201, if the access device is a master device and receives a restart instruction, sending a first type VRRP notification message to a standby device; and if the confirmation response message is received or the confirmation response message is not received within the preset time length, restarting.
In this embodiment of the application, if the active device receives a restart instruction, for example, if the active device performs version upgrade, the active device needs to send a first type VRRP notification message to the standby device before restarting, and restart the active device when receiving an acknowledgement message (such as an ACK (acknowledgement) message) sent by the standby device or when not receiving the acknowledgement message within a preset time length.
After the master device receives the first type of VRRP advertisement message and before restarting, the master device needs to cancel the issued VRRP virtual MAC Address and the issued route, and refuse to respond to the received free ARP (Address Resolution Protocol) message and the VRRP Protocol message, and does not send the VRRP Protocol message according to the mechanism of the original master device.
Step 202, if the access device is a standby device and receives the first type VRRP notification message, the access device is switched to the proxy master device state, and returns a confirmation response message to the master device.
In this embodiment, when receiving the first type VRRP notification message sent by the active device, the standby device may return an acknowledgement message to the active device, and switch to the proxy active device state.
It should be noted that, in this embodiment of the present application, because multiple backup devices may exist in a multi-machine backup networking, and only one proxy main device needs to exist in the networking, if multiple backup devices exist, and the backup devices receive a first type VRRP notification message sent by a main device, then the multiple backup devices need to perform proxy main device election, and specific implementation thereof may refer to an implementation manner in which, when a main device in an existing multi-machine backup networking fails, a backup device performs new main device election, which is not described in detail in this embodiment of the present application.
Correspondingly, in one embodiment of the present application, if the access device is a standby device and receives the first type VRRP advertisement packet, before the switching to the proxy master device state, the method further includes:
if other standby equipment exists, carrying out agent main equipment election with other standby equipment;
if the access device is elected as the proxy main device, determining to execute the step of switching to the proxy main device state.
In this embodiment, when receiving a first type VRRP protocol packet sent by a primary device, a standby device needs to first determine whether there are other standby devices, and if there are other standby devices, the standby device needs to perform proxy master device election with the other standby devices, and when itself is elected as a proxy master device, it is switched to a proxy master device state.
If the standby equipment determines that other standby equipment does not exist, the standby equipment is directly switched to the proxy main equipment state.
Step 203, if the access device is in the proxy master device state, issuing a VRRP MAC address, issuing routing information, and sending a VRRP protocol message at regular time.
In the embodiment of the application, after the access device is switched from the standby device state to the proxy master device state, the relevant processing of the master device needs to be executed, that is, a VRRP MAC address is issued, routing information is issued, and a VRRP protocol message is sent at regular time; when the two-layer switch receives the VRRP protocol message sent by the proxy main equipment, the two-layer switch can refresh the local MAC table entry.
It can be seen that, in the flow of the method shown in fig. 2, when the active device receives a restart instruction, before the restart, the active device actively triggers the standby device to switch to the proxy master device state, and the access device in the proxy master device state issues the VRRP MAC address, issues the routing information, and sends the VRRP protocol packet at a fixed time.
Further, in one embodiment of the present application, after the restarting in step 201, the method may further include:
if the restart is completed, switching to a standby equipment state;
if receiving the VRRP protocol message and determining that the priority of the access equipment is higher than the priority carried in the VRRP protocol message, switching to the state of the main equipment after waiting for the preset delay preemption time.
In this embodiment, when the original master device is restarted, the original master device is first switched to the standby device state. Because the access device in the proxy master device state can send the VRRP protocol packet at regular time, the VRRP protocol packet sent by the access device in the proxy master device state can be received after the original master device is switched to the standby device state.
If the original master device is restarted and receives the VRRP protocol packet, the priority of the master device itself may be compared with the priority carried in the VRRP protocol packet (i.e., the priority of the access device in the proxy master device state). If the priority of the master device is higher than that carried in the VRRP protocol message, the original master device is switched from the standby device state to the master device state again.
After the original master device is switched from the standby device state to the master device state again, relevant processing operations of the master device are re-executed, such as sending a virtual VRRP MAC address, issuing a route, sending a VRRP protocol message at regular time, and the like.
Accordingly, in one implementation manner of this embodiment, after the switching to the proxy master device state in step 202, the method may further include:
if the VRRP protocol message is received and the priority of the access equipment is determined to be lower than the priority carried in the VRRP protocol message, the state of the standby equipment is switched.
In this embodiment, after the original master device is restarted and switched to the master device state again, the VRRP protocol packet is sent at regular time.
When the access device in the proxy master device state receives the VRRP protocol packet sent by the master device, the priority of the access device itself may be compared with the priority (priority of the master device) carried in the VRRP protocol packet. If the self priority is lower than the priority carried in the VRRP protocol message, the access equipment in the proxy main equipment state is switched to the standby equipment state from the proxy main equipment state.
If the access device is switched from the proxy main device state to the standby device state, the access device will withdraw the VRRP virtual MAC address issued by itself and the issued route.
In order to enable those skilled in the art to better understand the technical solutions provided in the embodiments of the present application, the following describes the technical solutions provided in the embodiments of the present application with reference to specific application scenarios.
Referring to fig. 3, a schematic diagram of an architecture of a specific application scenario provided in the embodiment of the present application is shown in fig. 3, in this embodiment, taking an access device as a BRAS device as an example, a BRAS a and a BRAS B form a dual-device hot standby. Suppose BRAS a is a primary device and BRAS B is a backup device.
Based on the application scenario shown in fig. 3, the implementation flow of the active/standby switching scheme provided in the embodiment of the present invention is as follows:
1. the BRAS a receives the restart instruction, and at this time, the BRAS a does not directly restart, but performs the following processing:
a. sending a first type VRRP notification message (called VRRP Master-Proxy message in the embodiment), waiting for BRAS B to reply an ACK message, and directly restarting if receiving the ACK message; if the ACK message replied by the BRAS B is not received in the continuous preset number (such as 3) sending periods, restarting is also carried out;
b. after sending VRRP Master-Proxy message, before restarting, BRAS A does not respond to the free ARP message received (avoid BRAS B sending free ARP conflict after switching to Master-Proxy state);
c. after sending the VRRP Master-Proxy message and before restarting, BRAS A does not send the VRRP protocol message at regular time (preventing from triggering and refreshing the MAC table entry of the two-layer switch) and does not respond to the received VRRP protocol message.
2. After receiving the VRRP Master-Proxy message, the BRAS B executes the following processing:
a. replying an ACK message, and switching to a Master-Proxy state;
b. issuing a VRRP virtual MAC address;
c. sending VRRP protocol message at fixed time, triggering and refreshing MAC table entry of the two-layer switch, so that the two-layer switch forwards the flow of a user side (namely Host A-C) to a network side to a BRAS B;
c. and issuing the route so that the traffic from the network side to the user side is forwarded through the BRAS B.
3. After the BRAS a is restarted, the state is switched to the Backup state, if a VRRP protocol message sent by a BRAS B is received, the priority of the BRAS a is compared with the priority carried in the VRRP protocol message (namely the priority of the BRAS B), and the priority of the BRAS a is found to be higher than the priority carried in the VRRP protocol message.
After BRAS a switches to Master status, the following processing is executed:
a. issuing a VRRP virtual MAC address;
b. issuing a route;
c. and sending a VRRP protocol message at regular time, and triggering and refreshing the MAC table entry of the two-layer switch so that the two-layer switch forwards the traffic from a user side (namely Host A-C) to a network side to the BRAS A.
4. The BRAS B receives the VRRP protocol message sent by the BRAS A, compares the self priority with the priority carried in the VRRP protocol message (the priority of the BRAS A), finds that the self priority is lower than the priority carried in the VRRP protocol message, and at the moment, the BRAS B is switched to a Backup state from a Master-proxy state.
After the BRAS B is switched from the Master-proxy state to the Backup state, the following processing is executed:
a. revoking the VRRP virtual MAC address issued by the user;
b. and canceling the route issuing.
As can be seen from the above description, in the embodiment of the present invention, if the access device is the active device and receives the restart instruction, the first type VRRP notification packet is sent to the standby device; if the confirmation response message is received, or the confirmation response message is not received within the preset time length, restarting is carried out; if the access equipment is standby equipment and receives the first type VRRP notification message, switching to the state of the proxy main equipment and returning a confirmation response message to the main equipment; if the access device is in the proxy main device state, issuing a VRRP MAC address, issuing routing information, and sending a VRRP protocol message at regular time.
Referring to fig. 4, a schematic structural diagram of a main/standby switching device provided in an embodiment of the present application is shown, where the main/standby switching device may be applied to an access device in the foregoing method embodiment, and as shown in fig. 4, the main/standby switching device may include:
a receiving unit 410, configured to receive a restart instruction;
a sending unit 420, configured to send a first type VRRP notification message to a standby device if the access device is a master device and the receiving unit 410 receives a restart instruction; the first type VRRP notification message is used for indicating that the standby equipment is switched to the proxy main equipment state;
the restarting unit 430 is configured to restart the receiving unit 410 if the receiving unit receives the acknowledgement message, or the receiving unit 430 does not receive the acknowledgement message within a preset time length.
In an optional embodiment, the sending unit 420 is further configured to, after sending the first type VRRP notification message to the standby device, before the restarting unit restarts, reject to respond to the gratuitous ARP message, and reject to send the VRRP protocol message at regular time;
accordingly, please refer to fig. 5 together, which is a schematic structural diagram of another active/standby switching device provided in the embodiment of the present application, as shown in fig. 5, based on the active/standby switching device shown in fig. 4, the active/standby switching device shown in fig. 5 further includes:
a switching unit 440, configured to refuse to respond to the VRRP protocol packet after the sending unit 420 sends the first type VRRP notification packet to the standby device and before the restarting unit 430 restarts the VRRP protocol packet.
In an optional embodiment, the switching unit 440 is further configured to switch to the standby device state if the access device is an active device and the restart is completed;
the switching unit 440 is further configured to, if the receiving unit 410 receives a VRRP protocol packet and determines that the priority of the access device is higher than the priority carried in the VRRP protocol packet, wait for a preset delay preemption time and then switch to the active device state.
Referring to fig. 6, a schematic structural diagram of a main/standby switching device provided in an embodiment of the present application is shown, where the main/standby switching device may be applied to an access device in the foregoing method embodiment, and as shown in fig. 6, the main/standby switching device may include:
a receiving unit 610, configured to receive a first type VRRP notification message;
a switching unit 620, configured to switch to a proxy master device state if the access device is a standby device and the receiving unit 610 receives the first type VRRP notification packet;
a sending unit 630, configured to return an acknowledgement message to the active device if the access device is a standby device and the receiving unit 610 receives the first type VRRP notification message;
the sending unit 630 is further configured to issue a VRRP virtual MAC address, issue routing information, and send a VRRP protocol packet at regular time if the access device is in the proxy master device state.
Referring to fig. 7 together, for a schematic structural diagram of another active/standby switching device provided in the embodiment of the present application, as shown in fig. 7, on the basis of the active/standby switching device shown in fig. 6, the active/standby switching device shown in fig. 7 further includes:
an election unit 640, configured to perform proxy master device election with other standby devices if the access device is a standby device, and the receiving unit 610 receives the first type VRRP advertisement packet and other standby devices exist;
the switching unit 620 is specifically configured to switch to the proxy master state if the access device is elected as the proxy master.
In an optional embodiment, the switching unit 620 is further configured to switch to the standby device state if the receiving unit 610 receives a VRRP protocol packet and determines that the priority of the access device is lower than the priority carried in the VRRP protocol packet.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
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.
As can be seen from the above embodiments, if the access device is the master device and receives the restart instruction, a first type VRRP notification packet is sent to the standby device; if the confirmation response message is received, or the confirmation response message is not received within the preset time length, restarting is carried out; if the access equipment is standby equipment and receives the first type VRRP notification message, switching to the state of the proxy main equipment and returning a confirmation response message to the main equipment; if the access device is in the proxy main device state, issuing a VRRP MAC address, issuing routing information, and sending a VRRP protocol message at regular time.
Other embodiments of the present application will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the invention following, in general, the principles of the application and including such departures from the present disclosure as come within known or customary practice within the art to which the invention pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the application being indicated by the following claims.
It will be understood that the present application is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (10)

1. A master/standby switching method is applied to access equipment in a multi-machine backup networking supporting a Virtual Route Redundancy Protocol (VRRP), and is characterized by comprising the following steps:
if the access equipment is the main equipment and receives a restarting instruction, a first type VRRP notification message is sent to the standby equipment; the first type VRRP notification message is used for indicating that the standby equipment is switched to a proxy main equipment state;
if the confirmation response message is received or the confirmation response message is not received within the preset time length, restarting is carried out;
after sending the first type VRRP notification message to the standby device and before restarting, the method further includes:
refusing to respond to the free ARP message and the VRRP protocol message, and refusing to send the VRRP protocol message regularly.
2. The method of claim 1, wherein after said performing a reboot, further comprising:
if the restart is completed, switching to a standby equipment state;
and if receiving a VRRP protocol message and determining that the priority of the access equipment is higher than the priority carried in the VRRP protocol message, switching to a main equipment state after waiting for preset delay preemption time.
3. A master/standby switching method is applied to access equipment in a multi-machine backup networking supporting a Virtual Route Redundancy Protocol (VRRP), and is characterized by comprising the following steps:
if the access equipment is standby equipment and receives a first type VRRP notification message, switching to a proxy main equipment state and returning a confirmation response message to the main equipment; the first type VRRP notification message is sent to the standby equipment when the main equipment receives a restart instruction, and the main equipment refuses to respond to the free ARP message and the VRRP protocol message after sending the first type VRRP notification message and before restarting, and refuses to send the VRRP protocol message at regular time;
if the access device is in the proxy main device state, issuing a VRRP virtual Media Access Control (MAC) address, issuing routing information, and sending a VRRP protocol message at regular time.
4. The method of claim 3, wherein prior to the switching to the proxy master state, further comprising:
if other standby equipment exists, carrying out agent main equipment election with the other standby equipment;
and if the access equipment is elected to be the proxy main equipment, determining to execute the step of switching to the proxy main equipment state.
5. The method of claim 3, wherein after the switching to the proxy master state, further comprising:
and if receiving a VRRP protocol message and determining that the priority of the access equipment is lower than the priority carried in the VRRP protocol message, switching to a standby equipment state.
6. A master/standby switching device is applied to an access device in a multi-machine backup network supporting a Virtual Router Redundancy Protocol (VRRP), and is characterized by comprising:
a receiving unit for receiving a restart instruction;
a sending unit, configured to send a first type VRRP notification message to a standby device if the access device is a master device and the receiving unit receives a restart instruction; the first type VRRP notification message is used for indicating that the standby equipment is switched to the proxy main equipment state;
the restarting unit is used for restarting if the receiving unit receives the acknowledgement message or the receiving unit does not receive the acknowledgement message within the preset time length; wherein the content of the first and second substances,
the sending unit is also used for refusing to respond to the free ARP message and refusing to send the VRRP protocol message regularly after the first type VRRP notification message is sent to the standby equipment and before the restarting unit restarts;
the device further comprises:
and the switching unit is used for refusing to respond to the VRRP protocol message before the restarting unit restarts after the sending unit sends the first type VRRP notification message to the standby equipment.
7. The apparatus of claim 6,
the switching unit is further configured to switch to a standby device state if the access device is a master device and the restart is completed;
the switching unit is further configured to switch to the active device state after waiting for a preset delay preemption time if the receiving unit receives a VRRP protocol packet and determines that the priority of the access device is higher than the priority carried in the VRRP protocol packet.
8. A master/standby switching device is applied to an access device in a multi-machine backup network supporting a Virtual Router Redundancy Protocol (VRRP), and is characterized by comprising:
the receiving unit is used for receiving a first type VRRP notification message; the first type VRRP notification message is sent to the standby equipment when the main equipment receives a restart instruction, and the main equipment refuses to respond to the free ARP message and the VRRP protocol message after sending the first type VRRP notification message and before restarting, and refuses to send the VRRP protocol message at regular time;
the switching unit is used for switching to a proxy main equipment state if the access equipment is standby equipment and the receiving unit receives a first type VRRP notification message;
a sending unit, configured to return a confirmation response message to the primary device if the access device is a standby device and the receiving unit receives the first type VRRP notification message;
the sending unit is further configured to issue a VRRP virtual media access control MAC address, issue routing information, and send a VRRP protocol packet at regular time if the access device is in the proxy master device state.
9. The apparatus of claim 8, further comprising:
an election unit, configured to perform proxy master device election with other standby devices if the access device is a standby device, and the receiving unit receives the first type VRRP notification packet and other standby devices exist;
the switching unit is specifically configured to switch to the proxy master device state if the access device is elected to be the proxy master device.
10. The apparatus of claim 8,
the switching unit is further configured to switch to a standby device state if the receiving unit receives the VRRP protocol packet and determines that the priority of the access device is lower than the priority carried in the VRRP protocol packet.
CN201711421014.0A 2017-12-25 2017-12-25 Main/standby switching method and device Active CN108075971B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711421014.0A CN108075971B (en) 2017-12-25 2017-12-25 Main/standby switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711421014.0A CN108075971B (en) 2017-12-25 2017-12-25 Main/standby switching method and device

Publications (2)

Publication Number Publication Date
CN108075971A CN108075971A (en) 2018-05-25
CN108075971B true CN108075971B (en) 2021-01-26

Family

ID=62155917

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711421014.0A Active CN108075971B (en) 2017-12-25 2017-12-25 Main/standby switching method and device

Country Status (1)

Country Link
CN (1) CN108075971B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108880917B (en) * 2018-08-23 2021-01-05 华为技术有限公司 Switching method and device of control plane equipment and transfer control separation system
CN109861867B (en) * 2019-02-28 2022-04-26 新华三技术有限公司 MEC service processing method and device
CN110231961B (en) * 2019-06-27 2023-02-28 杭州迪普信息技术有限公司 Control method and system for restarting main control board
CN110417761B (en) * 2019-07-17 2021-12-17 上海东土远景工业科技有限公司 Communication method and device based on dual-computer redundancy
CN110417599B (en) * 2019-08-01 2022-07-05 青岛聚看云科技有限公司 Main/standby node switching method and node server
CN110572318B (en) * 2019-09-29 2021-11-26 迈普通信技术股份有限公司 Main/standby switching method and router
CN111371592B (en) * 2020-02-21 2023-09-19 无锡华云数据技术服务有限公司 Node switching method, device, equipment and storage medium
CN112286041B (en) * 2020-09-09 2023-02-03 许继集团有限公司 Switching method and switching control system for electrical equipment redundancy monitoring device
CN112367253A (en) * 2020-11-09 2021-02-12 北京卓越信通电子股份有限公司 Method for solving multiple switching of low-priority equipment main/standby states when vrrp protocol is started in preemption mode
CN115865772A (en) * 2022-11-25 2023-03-28 迈普通信技术股份有限公司 Flow back-switching method and device, electronic equipment, M-LAG system and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1558638A (en) * 2004-01-18 2004-12-29 中兴通讯股份有限公司 An inter-processor communication method based on message
CN101094102A (en) * 2007-07-18 2007-12-26 杭州华三通信技术有限公司 Main and standby switching method and route standby system for route device
CN101197709A (en) * 2007-12-24 2008-06-11 华为技术有限公司 Method and system for upgrading telecommunication apparatus
CN101917225A (en) * 2010-08-04 2010-12-15 烽火通信科技股份有限公司 Method for realizing inter-disc STM-1 interface automatic protection switching in gigabit-capable passive optical network (GPON) system
CN103138983A (en) * 2011-12-01 2013-06-05 苏州达联信息科技有限公司 Method and device of primary-backup switching of video distribution network global server
CN106533736A (en) * 2016-10-13 2017-03-22 杭州迪普科技股份有限公司 Network device reboot method and apparatus
CN106789540A (en) * 2017-01-25 2017-05-31 北京华为数字技术有限公司 A kind of gateway deployment method and apparatus

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3956685B2 (en) * 2001-05-31 2007-08-08 古河電気工業株式会社 Network connection method, virtual network connection device, and network connection system using the device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1558638A (en) * 2004-01-18 2004-12-29 中兴通讯股份有限公司 An inter-processor communication method based on message
CN101094102A (en) * 2007-07-18 2007-12-26 杭州华三通信技术有限公司 Main and standby switching method and route standby system for route device
CN101197709A (en) * 2007-12-24 2008-06-11 华为技术有限公司 Method and system for upgrading telecommunication apparatus
CN101917225A (en) * 2010-08-04 2010-12-15 烽火通信科技股份有限公司 Method for realizing inter-disc STM-1 interface automatic protection switching in gigabit-capable passive optical network (GPON) system
CN103138983A (en) * 2011-12-01 2013-06-05 苏州达联信息科技有限公司 Method and device of primary-backup switching of video distribution network global server
CN106533736A (en) * 2016-10-13 2017-03-22 杭州迪普科技股份有限公司 Network device reboot method and apparatus
CN106789540A (en) * 2017-01-25 2017-05-31 北京华为数字技术有限公司 A kind of gateway deployment method and apparatus

Also Published As

Publication number Publication date
CN108075971A (en) 2018-05-25

Similar Documents

Publication Publication Date Title
CN108075971B (en) Main/standby switching method and device
AU2004306913B2 (en) Redundant routing capabilities for a network node cluster
CN110224871B (en) High-availability method and device for Redis cluster
TWI736657B (en) Method and device for switching virtual internet protocol address
US20200042410A1 (en) Role designation in a high availability node
US9634887B2 (en) System, method and computer-readable medium for using a plurality of virtual machines
US10771318B1 (en) High availability on a distributed networking platform
CN109587286B (en) Equipment access control method and device
US20150113313A1 (en) Method of operating a server system with high availability
US11349706B2 (en) Two-channel-based high-availability
CN104158707A (en) Method and device of detecting and processing brain split in cluster
CN111314098A (en) Method and device for realizing VIP address drift in HA system
EP4164197A1 (en) Virtual ip management method and apparatus, electronic device and storage medium
CN109815065B (en) Main-standby switching method and device for dual computers and electronic equipment
US11418382B2 (en) Method of cooperative active-standby failover between logical routers based on health of attached services
JP2021061478A (en) Relay device, relay system, and relay program
KR20150104435A (en) Method of performing transition of operation mode for a routing processor
JP2009075710A (en) Redundant system
CN110417599B (en) Main/standby node switching method and node server
CN108768798B (en) Equipment access method and device
US20230254270A1 (en) Computer-readable recording medium storing program, information processing method, and information processing system
US20150154083A1 (en) Information processing device and recovery management method
US20130279506A1 (en) Methods and systems for routing application traffic
JP2009278436A (en) Communication system and redundant configuration management method
JP2002099444A (en) Computer system

Legal Events

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