CN108075971A - A kind of main/standby switching method and device - Google Patents
A kind of main/standby switching method and device Download PDFInfo
- Publication number
- CN108075971A CN108075971A CN201711421014.0A CN201711421014A CN108075971A CN 108075971 A CN108075971 A CN 108075971A CN 201711421014 A CN201711421014 A CN 201711421014A CN 108075971 A CN108075971 A CN 108075971A
- Authority
- CN
- China
- Prior art keywords
- vrrp
- equipment
- stand
- access device
- behalf
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 31
- 230000004044 response Effects 0.000 claims abstract description 37
- 238000012790 confirmation Methods 0.000 claims abstract description 21
- 208000033748 Device issues Diseases 0.000 claims abstract description 4
- 230000006855 networking Effects 0.000 claims description 19
- 239000011800 void material Substances 0.000 claims description 3
- 238000010586 diagram Methods 0.000 description 12
- 230000005540 biological transmission Effects 0.000 description 9
- 238000012545 processing Methods 0.000 description 4
- 238000001514 detection method Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 230000008569 process Effects 0.000 description 2
- 230000006978 adaptation Effects 0.000 description 1
- 230000003044 adaptive effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 238000007796 conventional method Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000001960 triggered effect Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/58—Association of routers
- H04L45/586—Association of routers of virtual routers
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0663—Performing the actions predefined by failover planning, e.g. switching to standby network elements
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Small-Scale Networks (AREA)
Abstract
The application provides a kind of main/standby switching method and device, the described method includes:If the access device is host apparatus, and receives instruction of restarting, then first kind VRRP notification packets are sent to stand-by equipment;If receiving confirmation response message or, not receiving confirmation response message in preset duration, restarted;It if the access device is stand-by equipment, and receives first kind VRRP notification packets, is then switched to and acts on behalf of master status, and returned to host apparatus and confirm response message;If the access device issues VRRP virtual MACs address, issues routing iinformation, and timing sends VRRP protocol massages to act on behalf of master status.The traffic loss during instruction of restarting is restarted can be responded to avoid host apparatus using the embodiment of the present application.
Description
Technical field
This application involves network communication technology field more particularly to a kind of main/standby switching methods and device.
Background technology
Multi-computer back-up function can ensure key business node in the case of Single Point of Faliure, and customer service is not disrupted.
After being configured with multi-computer back-up function, host apparatus will use the business datum backup path that business is established, and be moved what is locally generated
State business information is backed up in realtime to stand-by equipment.When host apparatus breaks down, stand-by equipment can replace main equipment to work.
Due to having existed the business information of backup on stand-by equipment, so the user to have reached the standard grade need not dial again, charging, mandate
Information will not lose, and customer service will not interrupt, and improve the reliability of network.
However practice is found, it is standby when host apparatus response instruction of restarting is restarted in existing multi-computer back-up scheme
Needed with equipment through VRRP (Virtual Router Redundancy Protocol, Virtual Router Redundacy Protocol) agreements or
Person BFD (Bidirectional Forwarding Detection, two-way converting detection) links VRRP to perceive main equipment weight
It opens, so as to carry out active-standby switch, during active-standby switch, it may occur that traffic loss.
The content of the invention
The application provides a kind of main/standby switching method and device, to solve in existing multi-computer back-up scheme during active-standby switch
Can there are problems that traffic loss
According to the application's in a first aspect, providing a kind of main/standby switching method, applied to support Virtual Router Redundacy Protocol
Access device in the multi-computer back-up networking of VRRP agreements, the described method includes:
If the access device is host apparatus and receives instruction of restarting, first kind VRRP is sent to stand-by equipment
Notification packet;Wherein, the first kind VRRP notification packets, which are used to indicate stand-by equipment and are switched to, acts on behalf of master status;
Confirm response message if receiving or do not receive confirmation response message in preset duration, restarted.
According to the second aspect of the application, a kind of main/standby switching method is provided, applied to support Virtual Router Redundacy Protocol
Access device in the multi-computer back-up networking of VRRP agreements, the described method includes:
If the access device is stand-by equipment, and receives first kind VRRP notification packets, then agency master is switched to
Equipment state, and returned to host apparatus and confirm response message;
If the access device issues VRRP void MAC address, issues road to act on behalf of master status
By information, and timing sends VRRP protocol massages.
According to the third aspect of the application, active-standby switch device is provided, applied to support Virtual Router Redundacy Protocol VRRP
Access device in the multi-computer back-up networking of agreement, described device include:
Receiving unit, for receiving instruction of restarting;
Transmitting element, if it is host apparatus for the access device, and the receiving unit receives instruction of restarting, then
First kind VRRP notification packets are sent to stand-by equipment;The first kind VRRP notification packets are used to indicate stand-by equipment and cut
It is changed to and acts on behalf of master status;
Unit is restarted, if receiving confirmation response message or, the receiving unit when default for the receiving unit
Confirmation response message is not received in long, then is restarted.
According to the fourth aspect of the application, active-standby switch device is provided, applied to support Virtual Router Redundacy Protocol VRRP
Access device in the multi-computer back-up networking of agreement, described device include:
Receiving unit, for receiving first kind VRRP notification packets;
Switch unit, if it is stand-by equipment for the access device, and the receiving unit receives the first kind
VRRP notification packets are then switched to and act on behalf of master status;
Transmitting element, if it is stand-by equipment for the access device, and the receiving unit receives the first kind
VRRP notification packets then return to host apparatus and confirm response message;
The transmitting element, if being additionally operable to the access device to act on behalf of master status, with issuing VRRP virtual MACs
Routing iinformation is issued in location, and timing sends VRRP protocol massages.
Using the application, if access device is host apparatus, and instruction of restarting is received, then send first to stand-by equipment
Type VRRP notification packets;If receiving confirmation response message or, not receiving confirmation response message in preset duration,
Restarted;If access device is stand-by equipment, and receives first kind VRRP notification packets, then it is switched to and acts on behalf of main equipment
State, and returned to host apparatus and confirm response message;If access device is acts on behalf of master status, with issuing VRRP MAC
Routing iinformation is issued in location, and timing sends the active-standby switch scheme phase in VRRP protocol massages, with existing multi-computer back-up networking
Than by host apparatus, proactive notification stand-by equipment is switched to and acts on behalf of master status before the restart, and stand-by equipment need not
Restarted by VRRP agreements or BFD the VRRP agreements to link to perceive host apparatus, host apparatus response instruction of restarting restarts the phase
Between can be acted on behalf of by this master status access device carry out flow forwarding, avoid traffic loss.
Description of the drawings
Fig. 1 is the state machine signal in a kind of multi-computer back-up networking for supporting VRRP agreements provided by the embodiments of the present application
Figure;
Fig. 2 is a kind of flow diagram of main/standby switching method provided by the embodiments of the present application;
Fig. 3 is a kind of configuration diagram of concrete application scene provided by the embodiments of the present application;
Fig. 4 is a kind of structure diagram of active-standby switch device provided by the embodiments of the present application;
Fig. 5 is the structure diagram of another active-standby switch device provided by the embodiments of the present application;
Fig. 6 is a kind of structure diagram of active-standby switch device provided by the embodiments of the present application;
Fig. 7 is the structure diagram of another active-standby switch device provided by the embodiments of the present application.
Specific embodiment
In order to which those skilled in the art is made to more fully understand the technical solution in the embodiment of the present application, below first to supporting
The rule that master/slave device needs in the multi-computer back-up networking of VRRP agreements follow is briefly described.
1st, host apparatus issues VRRP virtual MACs address, and stand-by equipment will not issue VRRP virtual MACs address;
2nd, host apparatus timing sends VRRP protocol massages, refreshes Layer 2 switch MAC address entries, so that customer access network
Flow can be found according to the MAC address entries after refreshing outgoing interface forwarding;
3rd, host apparatus issue routing, stand-by equipment do not issue routing.
In order to enable the above-mentioned purpose of the embodiment of the present application, feature and advantage more obvious understandable, below in conjunction with the accompanying drawings
Technical solution in the embodiment of the present application is described in further detail.
Fig. 1 is referred to, for the state in a kind of multi-computer back-up networking for supporting VRRP agreements provided by the embodiments of the present application
Machine schematic diagram, as shown in Figure 1, in the embodiment of the present application, in original host apparatus (Master) state machine, stand-by equipment
(Backup) it is newly-increased to act on behalf of main equipment (Master-Proxy) on the basis of state machine and initial (Initialize) state machine
State machine;Wherein:
During multi-computer back-up networking initialization operation, each access device is Initialize states, and it is competing to carry out host apparatus
Choosing, campaigns for and is switched to Master states by Initialize states for the access device of host apparatus, the switching of remaining access device
It is Backup states by Initialize states;
When the standby equipment that is used to indicate that stand-by equipment receives host apparatus transmission is switched to and acts on behalf of master status
During VRRP notification packets (referred to herein as first kind VRRP notification packets), Master-Proxy states are switched to;
Wherein, host apparatus sends first kind VRRP notification packets when receiving instruction of restarting, and host apparatus is restarted
During completion, Backup states are first switched to by Master states, and are switched after pre-set delay seizes the time by Backup states
For Master states;When the access device of Master-Proxy states receives the VRRP protocol massages of host apparatus transmission, by
Master-Proxy states are switched to Backup states;
When the access device occurrence of equipment or port failure of free position, Initialize states are switched to;
Wherein, when host apparatus failure, host apparatus is switched to Initialize states by Master states, and spare
Equipment re-elects new host apparatus, and new host apparatus is switched to Master states by Backup states.
Fig. 2 is referred to, is a kind of flow diagram of main/standby switching method provided by the embodiments of the present application, wherein, the master
Standby switching method can be applied to support the access device in the multi-computer back-up networking of VRRP agreements, such as BRAS (Broadband
Remote Access Server, Broadband Remote Access Server), as shown in Fig. 2, the main/standby switching method can include it is following
Step:
If step 201, access device are host apparatus, and receive instruction of restarting, then the first kind is sent to stand-by equipment
Type VRRP notification packets;If receiving confirmation response message or, not receiving confirmation response message in preset duration, into
Row is restarted.
In the embodiment of the present application, if host apparatus receives instruction of restarting, for example, host apparatus carries out edition upgrading, then
Host apparatus before being restarted, it is necessary to send first kind VRRP notification packets to stand-by equipment, it is and spare receiving
The confirmation response message (such as ACK (confirmation) message) or, do not receive confirmation response message in preset duration that equipment is sent
When, restarted.
Wherein, after host apparatus receives transmission first kind VRRP notification packets, before being restarted, host apparatus
Need the routing of the VRRP virtual MACs address that issues of revocation and issue, and the gratuitous ARP (Address that refusal respond receives
Resolution Protocol, address resolution protocol) message and VRRP protocol massages, and not according still further to original host apparatus
Mechanism send VRRP protocol massages.
If step 202, access device are stand-by equipment, and receive first kind VRRP notification packets, then generation is switched to
Master status is managed, and is returned to host apparatus and confirms response message.
It, can when stand-by equipment receives the first kind VRRP notification packets of host apparatus transmission in the embodiment of the present application
To return to confirmation message to host apparatus, and it is switched to and acts on behalf of master status.
It should be noted that in the embodiment of the present application, due to spare may be set there are multiple in multi-computer back-up networking
It is standby, and only need to act on behalf of main equipment there are one in networking, therefore, if there are multiple stand-by equipments, and stand-by equipment receives master
The first kind VRRP notification packets sent with equipment, then the plurality of stand-by equipment act on behalf of main equipment election contest, have
When body realization may refer to host apparatus failure in existing multi-computer back-up networking, stand-by equipment carries out new host apparatus election contest
Realization method, the embodiment of the present application do not repeat this.
Correspondingly, in the application in one embodiment, if access device is stand-by equipment, and the first kind is received
VRRP notification packets, then it is described to be switched to before acting on behalf of master status, it further includes:
If there are other stand-by equipments, carry out acting on behalf of main equipment election with other stand-by equipments;
If the access device is elected as acting on behalf of main equipment, it is determined that execution is above-mentioned to be switched to the step for acting on behalf of master status
Suddenly.
In this embodiment, stand-by equipment receive host apparatus transmission the first kind VRRP protocol massages when, it is necessary to
Other stand-by equipments are first judged whether, if there are other stand-by equipments, which needs and other stand-by equipments
It carries out acting on behalf of main equipment election, and when itself is elected as acting on behalf of main equipment, is switched to and acts on behalf of master status.
Wherein, if stand-by equipment determines that, there is no other stand-by equipments, which is directly switched to agency master and sets
Standby state.
If step 203, access device are to act on behalf of master status, VRRP MAC Address is issued, issues routing iinformation, and
Timing sends VRRP protocol massages.
In the embodiment of the present application, access device is switched to by stand-by equipment state acts on behalf of master status afterwards, it is necessary to hold
The relevant treatment of row host apparatus issues VRRP MAC Address, issue routing iinformation and timing sends VRRP agreement reports
Text;Wherein, when Layer 2 switch receives the VRRP protocol massages for acting on behalf of main equipment transmission, local MAC address entries can be refreshed.
As it can be seen that in method flow shown in Fig. 2, when host apparatus receives instruction of restarting, before being restarted, by leading
It stand-by equipment is actively triggered with equipment is switched to and act on behalf of master status, VRRP is issued by the access device for acting on behalf of master status
MAC Address, issues routing iinformation and timing sends VRRP protocol massages, so as to which stand-by equipment need not pass through VRRP agreements
Or the VRRP agreements of BFD linkages are restarted to perceive host apparatus, host apparatus response instruction of restarting can be by the generation during restarting
The access device for managing master status carries out flow forwarding, avoids traffic loss.
Further, in the application in one embodiment, in above-mentioned steps 201, after being restarted, can also wrap
It includes:
If restarting completion, stand-by equipment state is switched to;
If receiving VRRP protocol massages, and determine that the priority of access device is excellent higher than being carried in VRRP protocol massages
First grade then waits pre-set delay to be switched to host apparatus state after seizing the time.
In this embodiment, when former host apparatus restarts completion, stand-by equipment state can be first switched to.Due to being in agency
The access device of master status can periodically send VRRP protocol massages, and therefore, former host apparatus is switched to stand-by equipment state
Afterwards, it can receive and act on behalf of the VRRP protocol massages that the access device of master status is sent.
If former host apparatus restarts completion, and VRRP protocol massages are received, then can compare the priority of itself and be somebody's turn to do
The priority (priority for acting on behalf of the access device of master status) carried in VRRP protocol massages.If it is determined that itself is excellent
First grade is higher than the priority carried in VRRP protocol massages, then former host apparatus can be again switched to primary from stand-by equipment state
Equipment state.
Wherein, after former host apparatus is switched to host apparatus state again by stand-by equipment state, master can be re-executed
With the relevant treatment operations of equipment, VRRP virtual MACs address, issue routing are such as issued, timing sends VRRP protocol massages etc..
Correspondingly, in the one of embodiment of the embodiment, above-mentioned steps 202, it is switched to and acts on behalf of master status
Afterwards, can also include:
If receiving VRRP protocol massages, and determine that the priority of the access device is less than what is carried in VRRP protocol massages
Priority is then switched to stand-by equipment state.
In this embodiment, former host apparatus, which restarts completion and lays equal stress on, is newly switched to after host apparatus state, can timing
Send VRRP protocol massages.
Act on behalf of master status access device receive host apparatus transmission VRRP protocol massages when, can compare from
The priority (priority of host apparatus) carried in the priority of body and VRRP protocol massages.If it is determined that own priority is less than
The priority carried in the VRRP protocol massages, then the access device for acting on behalf of master status can be cut by acting on behalf of master status
It is changed to stand-by equipment state.
Wherein, if access device is switched to stand-by equipment state by acting on behalf of master status, which can cancel
The VRRP virtual MACs address itself issued and the routing of issue.
In order to which those skilled in the art is made to more fully understand technical solution provided by the embodiments of the present application, with reference to specific
Application scenarios illustrate technical solution provided by the embodiments of the present application.
Fig. 3 is referred to, is a kind of configuration diagram of concrete application scene provided by the embodiments of the present application, as shown in figure 3,
In this embodiment, by access device for exemplified by BRAS equipment, BRAS A and BRAS B form two-node cluster hot backup.Assuming that BRAS A are
Host apparatus, BRAS B are stand-by equipment.
Based on application scenarios shown in Fig. 3, active-standby switch scheme provided in an embodiment of the present invention realizes that flow is as follows:
1st, BRAS A receive instruction of restarting, at this point, BRAS A will not directly restart, but can perform following processing:
A, first kind VRRP notification packets (being known as VRRP Master-Proxy messages in this embodiment) are sent, and
BRAS B is waited to reply ACK messages, if receiving ACK messages, are directly restarted;If it is sent in continuous default quantity (such as 3)
The ACK messages of BRAS B replies are not received in cycle, then are restarted yet;
B, after sending VRRP Master-Proxy messages, before restarting, BRAS A are not responding to the gratuitous ARP received
Message (avoids BRAS B from sending gratuitous ARP conflict after switching to Master-Proxy states);
C, after sending VRRP Master-Proxy messages, before restarting, BRAS A no longer periodically send VRRP agreement reports
Text (prevents from triggering again and refreshes Layer 2 switch MAC address entries), and is not responding to the VRRP protocol massages received.
2nd, after BRAS B receive VRRP Master-Proxy messages, following processing is performed:
A, ACK messages are replied, are switched to Master-Proxy states;
B, VRRP virtual MACs address is issued;
C, timing sends VRRP protocol massages, and triggering refreshes Layer 2 switch MAC address entries, so that Layer 2 switch is by user
Side (i.e. Host (host) A~C) is forwarded toward the flow of network side to BRAS B;
C, issue routing so that the flow of network side toward user side is forwarded by BRAS B.
3rd, after the completion of BRAS A are restarted, Backup states are first switched to, if receiving the VRRP protocol massages of BRAS B transmissions,
Then compare the priority (i.e. the priority of BRAS B) carried in the priority of itself and the VRRP protocol massages, find itself
Priority is higher than the priority carried in the VRRP protocol massages, at this point, BRAS A will not be switched to Master states immediately, and
It is that can be switched to Master states after pre-set delay seizes the time.
Wherein, BRAS A are switched to after Master states, can perform following processing:
A, VRRP virtual MACs address is issued;
B, issue routing;
C, timing sends VRRP protocol massages, and triggering refreshes Layer 2 switch MAC address entries, so that Layer 2 switch is by user
Side (i.e. Host A~C) is forwarded toward the flow of network side to BRAS A.
4th, BRAS B receive the VRRP protocol massages of BRAS A transmissions, compare the priority of itself and the VRRP agreement reports
The priority (priority of BRAS A) carried in text finds that the priority of itself is excellent less than being carried in the VRRP protocol massages
First grade, at this point, BRAS B are switched to Backup states by Master-proxy states.
Wherein, after BRAS B are switched to Backup states by Master-proxy states, following processing can be performed:
A, the VRRP virtual MACs address itself issued is cancelled;
B, revocation routing issue.
By above description as can be seen that in embodiments of the present invention, if access device is host apparatus, and receiving weight
Instruction is opened, then sends first kind VRRP notification packets to stand-by equipment;If receiving confirmation response message or, when default
Confirmation response message is not received in long, then is restarted;If access device is stand-by equipment, and receives first kind VRRP
Notification packet is then switched to and acts on behalf of master status, and is returned to host apparatus and confirm response message;If access device is agency
Master status then issues VRRP MAC Address, issues routing iinformation, and timing sends VRRP protocol massages, with existing multimachine
Active-standby switch scheme in backup networking is compared, and by host apparatus, proactive notification stand-by equipment is switched to agency before the restart
Master status, stand-by equipment need not be restarted by VRRP agreements or BFD the VRRP agreements to link to perceive host apparatus, main
The access device that master status can be acted on behalf of during being restarted with equipment response instruction of restarting by this carries out flow forwarding, avoids
Traffic loss.
Fig. 4 is referred to, is a kind of structure diagram of active-standby switch device provided by the embodiments of the present application, wherein, the master
Standby switching device can be applied to the access device in above method embodiment, as shown in figure 4, the active-standby switch device can wrap
It includes:
Receiving unit 410, for receiving instruction of restarting;
Transmitting element 420, if it is host apparatus for the access device, and the receiving unit 410 is received and restarted
Instruction then sends first kind VRRP notification packets to stand-by equipment;The first kind VRRP notification packets are used to indicate standby
It is switched to equipment and acts on behalf of master status;
Unit 430 is restarted, if receiving confirmation response message or, the receiving unit for the receiving unit 410
430 do not receive confirmation response message in preset duration, then are restarted.
In an alternative embodiment, the transmitting element 420 is additionally operable to sending first kind VRRP notices to stand-by equipment
It is described to restart before unit restarted after message, refusal respond gratuitous ARP packet, and refuse timing and send VRRP agreements
Message;
Correspondingly, please also refer to Fig. 5, for the structural representation of another active-standby switch device provided by the embodiments of the present application
Figure, as shown in figure 5, on the basis of active-standby switch device shown in Fig. 4, the active-standby switch device shown in Fig. 5 further includes:
Switch unit 440, for the transmitting element 420 to stand-by equipment send first kind VRRP notification packets it
Afterwards, it is described to restart before unit 430 restarted, refusal respond VRRP protocol massages.
In an alternative embodiment, the switch unit 440 if being additionally operable to the access device as host apparatus, and is restarted
It completes, is then switched to stand-by equipment state;
The switch unit 440 if being additionally operable to the receiving unit 410 receives VRRP protocol massages, and determines described
The priority of access device is higher than the priority carried in the VRRP protocol massages, then pre-set delay is waited to be cut after seizing the time
It is changed to host apparatus state.
Fig. 6 is referred to, is a kind of structure diagram of active-standby switch device provided by the embodiments of the present application, wherein, the master
Standby switching device can be applied to the access device in above method embodiment, as shown in fig. 6, the active-standby switch device can wrap
It includes:
Receiving unit 610, for receiving first kind VRRP notification packets;
Switch unit 620, if it is stand-by equipment for the access device, and the receiving unit 610 receives first
Type VRRP notification packets, then be switched to and act on behalf of master status;
Transmitting element 630, if it is stand-by equipment for the access device, and the receiving unit 610 receives first
Type VRRP notification packets then return to host apparatus and confirm response message;
The transmitting element 630 if being additionally operable to the access device to act on behalf of master status, issues VRRP virtual MACs
Routing iinformation is issued in address, and timing sends VRRP protocol massages.
Please also refer to Fig. 7, for the structure diagram of another active-standby switch device provided by the embodiments of the present application, such as scheme
Shown in 7, on the basis of active-standby switch device shown in Fig. 6, active-standby switch device shown in Fig. 7 further includes:
Unit 640 is elected, if it is stand-by equipment for the access device, and the receiving unit 610 receives first
Type VRRP notification packets, and there are other stand-by equipments, then carry out acting on behalf of main equipment election with other stand-by equipments;
The switch unit 620 if being elected as acting on behalf of main equipment specifically for the access device, is switched to agency
Master status.
In an alternative embodiment, the switch unit 620, if being additionally operable to the receiving unit 610 receives VRRP agreements
Message, and the priority for determining the access device is switched to spare less than the priority carried in the VRRP protocol massages
Equipment state.
The function of unit and the realization process of effect specifically refer to and step are corresponded in the above method in above device
Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related part is real referring to method
Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separating component
The unit of explanation may or may not be physically separate, and the component shown as unit can be or can also
It is not physical location, you can be located at a place or can also be distributed in multiple network element.It can be according to reality
It needs that some or all of module therein is selected to realize the purpose of application scheme.Those of ordinary skill in the art are not paying
In the case of going out creative work, you can to understand and implement.
As seen from the above-described embodiment, if access device is host apparatus, and instruction of restarting is received, is then sent out to stand-by equipment
Send first kind VRRP notification packets;If it receives confirmation response message or, is not received in preset duration and confirm response report
Text is then restarted;If access device is stand-by equipment, and receives first kind VRRP notification packets, then agency is switched to
Master status, and returned to host apparatus and confirm response message;If access device issues VRRP to act on behalf of master status
MAC Address issues routing iinformation, and timing sends the active-standby switch side in VRRP protocol massages, with existing multi-computer back-up networking
Case is compared, and by host apparatus, proactive notification stand-by equipment is switched to and acts on behalf of master status before the restart, and stand-by equipment is not
The VRRP agreements by VRRP agreements or BFD linkages is needed to restart to perceive host apparatus, host apparatus response instruction of restarting weight
The access device that master status can be acted on behalf of during opening by this carries out flow forwarding, avoids traffic loss.
Those skilled in the art will readily occur to the application its after considering specification and putting into practice invention disclosed herein
Its embodiment.This application is intended to cover any variations, uses, or adaptations of the application, these modifications, purposes or
Person's adaptive change follows the general principle of the application and including the undocumented common knowledge in the art of the application
Or conventional techniques.Description and embodiments are considered only as illustratively, and the true scope and spirit of the application are by following
Claim is pointed out.
It should be appreciated that the precision architecture that the application is not limited to be described above and be shown in the drawings, and
And various modifications and changes may be made without departing from the scope thereof.Scope of the present application is only limited by appended claim.
Claims (12)
1. a kind of main/standby switching method, applied to connecing in the multi-computer back-up networking for supporting Virtual Router Redundacy Protocol VRRP agreements
Enter equipment, which is characterized in that the described method includes:
If the access device is host apparatus and receives instruction of restarting, first kind VRRP notices are sent to stand-by equipment
Message;Wherein, the first kind VRRP notification packets, which are used to indicate stand-by equipment and are switched to, acts on behalf of master status;
Confirm response message if receiving or do not receive confirmation response message in preset duration, restarted.
2. according to the method described in claim 1, it is characterized in that, described send first kind VRRP notice reports to stand-by equipment
After text, before being restarted, further include:
Refusal respond gratuitous ARP packet and VRRP protocol massages, and refuse timing and send VRRP protocol massages.
3. according to the method described in claim 1, it is characterized in that, it is described restarted after, further include:
If restarting completion, stand-by equipment state is switched to;
If receiving VRRP protocol massages, and determine that the priority of the access device is higher than in the VRRP protocol massages and carry
Priority, then pre-set delay is waited to be switched to host apparatus state after seizing the time.
4. a kind of main/standby switching method, applied to connecing in the multi-computer back-up networking for supporting Virtual Router Redundacy Protocol VRRP agreements
Enter equipment, which is characterized in that the described method includes:
If the access device is stand-by equipment, and receives first kind VRRP notification packets, then it is switched to and acts on behalf of main equipment
State, and returned to host apparatus and confirm response message;
If the access device issues VRRP void MAC address, issue routing letter to act on behalf of master status
Breath, and timing sends VRRP protocol massages.
5. according to the method described in claim 4, it is characterized in that, described be switched to before acting on behalf of master status, further include:
If there are other stand-by equipments, carry out acting on behalf of main equipment election with other stand-by equipments;
If the access device is elected as acting on behalf of main equipment, it is determined that the step for acting on behalf of master status is switched to described in execution
Suddenly.
6. according to the method described in claim 4, it is characterized in that, it is described be switched to act on behalf of master status after, further include:
If receiving VRRP protocol massages, and determine that the priority of the access device is less than in the VRRP protocol massages and carry
Priority, then be switched to stand-by equipment state.
7. a kind of active-standby switch device, applied to connecing in the multi-computer back-up networking for supporting Virtual Router Redundacy Protocol VRRP agreements
Enter equipment, which is characterized in that described device includes:
Receiving unit, for receiving instruction of restarting;
Transmitting element, if it is host apparatus for the access device, and the receiving unit receives instruction of restarting, then to standby
First kind VRRP notification packets are sent with equipment;The first kind VRRP notification packets are used to indicate stand-by equipment and are switched to
Act on behalf of master status;
Unit is restarted, if receiving confirmation response message or, the receiving unit in preset duration for the receiving unit
Confirmation response message is not received, then is restarted.
8. device according to claim 7, which is characterized in that
The transmitting element is additionally operable to after first kind VRRP notification packets are sent to stand-by equipment, described to restart unit
Before being restarted, refusal respond gratuitous ARP packet, and refuse timing and send VRRP protocol massages;
Described device further includes:
Switch unit, for the transmitting element to stand-by equipment send first kind VRRP notification packets after, it is described heavy
It opens before unit restarted, refusal respond VRRP protocol massages.
9. device according to claim 8, which is characterized in that
The switch unit if being additionally operable to the access device as host apparatus, and restarts completion, is then switched to stand-by equipment shape
State;
The switch unit if being additionally operable to the receiving unit receives VRRP protocol massages, and determines the access device
Priority is higher than the priority carried in the VRRP protocol massages, then pre-set delay is waited to be switched to primary set after seizing the time
Standby state.
10. a kind of active-standby switch device, applied in the multi-computer back-up networking for supporting Virtual Router Redundacy Protocol VRRP agreements
Access device, which is characterized in that described device includes:
Receiving unit, for receiving first kind VRRP notification packets;
Switch unit, if it is stand-by equipment for the access device, and the receiving unit receives first kind VRRP and leads to
Message is accused, then is switched to and acts on behalf of master status;
Transmitting element, if it is stand-by equipment for the access device, and the receiving unit receives first kind VRRP and leads to
Message is accused, then is returned to host apparatus and confirms response message;
The transmitting element if being additionally operable to the access device to act on behalf of master status, issues VRRP void media interviews controls
MAC Address processed issues routing iinformation, and timing sends VRRP protocol massages.
11. device according to claim 10, which is characterized in that described device further includes:
Unit is elected, if it is stand-by equipment for the access device, and the receiving unit receives first kind VRRP and leads to
Message is accused, and there are other stand-by equipments, then carries out acting on behalf of main equipment election with other stand-by equipments;
The switch unit if being elected as acting on behalf of main equipment specifically for the access device, is switched to and acts on behalf of main equipment
State.
12. device according to claim 10, which is characterized in that
The switch unit if being additionally operable to the receiving unit receives VRRP protocol massages, and determines the access device
Priority is less than the priority carried in the VRRP protocol massages, is switched to stand-by equipment state.
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 true CN108075971A (en) | 2018-05-25 |
| CN108075971B 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) |
Cited By (12)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108880917A (en) * | 2018-08-23 | 2018-11-23 | 华为技术有限公司 | Switching method and device of control surface equipment and switching control separation system |
| CN109861867A (en) * | 2019-02-28 | 2019-06-07 | 新华三技术有限公司 | A kind of MEC method for processing business and device |
| CN110231961A (en) * | 2019-06-27 | 2019-09-13 | 杭州迪普信息技术有限公司 | A kind of control method and system that master control borad is restarted |
| CN110417599A (en) * | 2019-08-01 | 2019-11-05 | 青岛聚看云科技有限公司 | The switching method and node server of main-standby nodes |
| CN110417761A (en) * | 2019-07-17 | 2019-11-05 | 上海东土远景工业科技有限公司 | Communication means and device based on dual-computer redundancy |
| CN110572318A (en) * | 2019-09-29 | 2019-12-13 | 迈普通信技术股份有限公司 | Main/standby switching method and router |
| CN111371592A (en) * | 2020-02-21 | 2020-07-03 | 无锡华云数据技术服务有限公司 | Node switching method, device, equipment and storage medium |
| CN112286041A (en) * | 2020-09-09 | 2021-01-29 | 许继集团有限公司 | 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 |
| CN113746664A (en) * | 2021-07-12 | 2021-12-03 | 浙江众合科技股份有限公司 | Redundant architecture equipment resource management method based on state machine |
| CN115865772A (en) * | 2022-11-25 | 2023-03-28 | 迈普通信技术股份有限公司 | Flow back-switching method and device, electronic equipment, M-LAG system and storage medium |
| CN118660005A (en) * | 2024-08-13 | 2024-09-17 | 福建福诺移动通信技术有限公司 | A solution and device for ARP proxy anomaly under VRRP |
Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020184387A1 (en) * | 2001-05-31 | 2002-12-05 | The Furukawa Electric Co., Ltd. | Method for connecting between networks, virtual router, and system for connecting between networks by using this virtual router |
| 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 equipment |
| 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 |
-
2017
- 2017-12-25 CN CN201711421014.0A patent/CN108075971B/en active Active
Patent Citations (8)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020184387A1 (en) * | 2001-05-31 | 2002-12-05 | The Furukawa Electric Co., Ltd. | Method for connecting between networks, virtual router, and system for connecting between networks by using this virtual router |
| 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 equipment |
| 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 |
Cited By (17)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US11765018B2 (en) | 2018-08-23 | 2023-09-19 | Huawei Technologies Co., Ltd. | Control plane device switching method and apparatus, and forwarding-control separation system |
| CN108880917A (en) * | 2018-08-23 | 2018-11-23 | 华为技术有限公司 | Switching method and device of control surface equipment and switching control separation system |
| CN109861867A (en) * | 2019-02-28 | 2019-06-07 | 新华三技术有限公司 | A kind of MEC method for processing business and device |
| CN109861867B (en) * | 2019-02-28 | 2022-04-26 | 新华三技术有限公司 | MEC service processing method and device |
| CN110231961A (en) * | 2019-06-27 | 2019-09-13 | 杭州迪普信息技术有限公司 | A kind of control method and system that master control borad is restarted |
| CN110417761A (en) * | 2019-07-17 | 2019-11-05 | 上海东土远景工业科技有限公司 | Communication means and device based on dual-computer redundancy |
| CN110417599B (en) * | 2019-08-01 | 2022-07-05 | 青岛聚看云科技有限公司 | Main/standby node switching method and node server |
| CN110417599A (en) * | 2019-08-01 | 2019-11-05 | 青岛聚看云科技有限公司 | The switching method and node server of main-standby nodes |
| CN110572318A (en) * | 2019-09-29 | 2019-12-13 | 迈普通信技术股份有限公司 | Main/standby switching method and router |
| CN111371592A (en) * | 2020-02-21 | 2020-07-03 | 无锡华云数据技术服务有限公司 | Node switching method, device, equipment and storage medium |
| 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 of redundant monitoring device for electrical equipment |
| CN112286041A (en) * | 2020-09-09 | 2021-01-29 | 许继集团有限公司 | 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 |
| CN113746664A (en) * | 2021-07-12 | 2021-12-03 | 浙江众合科技股份有限公司 | Redundant architecture equipment resource management method based on state machine |
| CN115865772A (en) * | 2022-11-25 | 2023-03-28 | 迈普通信技术股份有限公司 | Flow back-switching method and device, electronic equipment, M-LAG system and storage medium |
| CN118660005A (en) * | 2024-08-13 | 2024-09-17 | 福建福诺移动通信技术有限公司 | A solution and device for ARP proxy anomaly under VRRP |
Also Published As
| Publication number | Publication date |
|---|---|
| CN108075971B (en) | 2021-01-26 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN108075971A (en) | A kind of main/standby switching method and device | |
| AU2004306913B2 (en) | Redundant routing capabilities for a network node cluster | |
| CN106656617B (en) | Main/standby switching method and device | |
| US8375001B2 (en) | Master monitoring mechanism for a geographical distributed database | |
| TWI736657B (en) | Method and device for switching virtual internet protocol address | |
| CN102904818B (en) | A kind of ARP information entry updating method and device | |
| JP4164704B2 (en) | Network connection device switching method and network system using redundancy protocol and pseudo-redundant configuration means | |
| CN101316236B (en) | Vrrp backup group load sharing method and router | |
| CN107623593B (en) | Method and device for dual-machine hot backup based on CU separation | |
| US20080225699A1 (en) | Router and method of supporting nonstop packet forwarding on system redundant network | |
| CN100514878C (en) | Master-salve switching method and system for mutual backup device | |
| EP3226147B1 (en) | Cpu, and method of managing multi-cpu system | |
| CN101175000A (en) | A method and device for automatically detecting IP addresses | |
| JP2002057682A (en) | Network interface switching method and computer connectable to network | |
| US10447652B2 (en) | High availability bridging between layer 2 networks | |
| CN109698767A (en) | A kind of main/standby switching method and device | |
| CN111669280B (en) | Message transmission method, device and storage medium | |
| CN109815065B (en) | Main-standby switching method and device for dual computers and electronic equipment | |
| JP2009075710A (en) | Redundant system | |
| JP2018061148A (en) | Communication device, relay device, communication system, and communication method | |
| JP4757670B2 (en) | System switching method, computer system and program thereof | |
| JP2021061478A (en) | Relay device, relay system, and relay program | |
| JP2003140986A (en) | Remote monitoring system and communication control method | |
| JP2001168899A (en) | Network system | |
| CN115208783A (en) | Method, device, equipment, system and storage medium for detecting server state |
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 |