CN106100987B - A kind of active router based on VRRP agreement switches the method and device of secondary router - Google Patents

A kind of active router based on VRRP agreement switches the method and device of secondary router Download PDF

Info

Publication number
CN106100987B
CN106100987B CN201610645657.2A CN201610645657A CN106100987B CN 106100987 B CN106100987 B CN 106100987B CN 201610645657 A CN201610645657 A CN 201610645657A CN 106100987 B CN106100987 B CN 106100987B
Authority
CN
China
Prior art keywords
router
backup
master
switched
vrrp
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
CN201610645657.2A
Other languages
Chinese (zh)
Other versions
CN106100987A (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 DPTech Technologies Co Ltd
Original Assignee
Hangzhou DPTech Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou DPTech Technologies Co Ltd filed Critical Hangzhou DPTech Technologies Co Ltd
Priority to CN201610645657.2A priority Critical patent/CN106100987B/en
Publication of CN106100987A publication Critical patent/CN106100987A/en
Application granted granted Critical
Publication of CN106100987B publication Critical patent/CN106100987B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/302Route determination based on requested QoS

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a kind of method and device of secondary router of active router switching based on VRRP agreement, the described method includes: as Master router the first router execute user input be switched to the order of Backup router after, all Backup routers into the VRRP backup group send the notification packet that the priority carried is 0, and being based on priority to trigger other Backup routers in the VRRP backup group re-elects Master router.Judge whether to receive the notification packet that other Backup routers are responded in the VRRP backup group.If receiving the notification packet for carrying other Backup router own priorities that other Backup routers return, the virtual ip address for the VRRP backup group being locally pre-configured is deleted, Backup router is switched to.In the embodiment of the present application, Master router is switched to the configuration that Backup router no longer needs to modify VRRP backup group or VRRP monitored item, becomes more convenient.

Description

A kind of active router based on VRRP agreement switches the method and device of secondary router
Technical field
This application involves field of communication technology, in particular to a kind of active router based on VRRP agreement switches secondary router Method and device.
Background technique
VRRP (Virtual Router Redundancy Protocol, Virtual Router Redundacy Protocol) is by IETF (The Internet Engineering Task Force, Internet engineering task force) propose solution local area network in configure it is quiet There is the Routing Protocol of single point failure phenomenon in state gateway.VRRP is widely used in edge network, its design object is to support IP traffic amount, which unsuccessfully shifts, under specific condition will not cause confusion, allow host to use single-router, and jump practical first Router uses the connectivity between still being able to maintenance router in the case of failure.VRRP draws the set of router in local area network It is grouped together, referred to as a backup group.Backup group is made of a Master router and multiple Backup routers, functionally It is equivalent to a virtual router.
Master router is the router of the highest priority elected in VRRP backup group by priority, the routing Device undertakes the function of active router in backup group, the message forwarding being responsible under the backup group.Backup router is VRRP backup Router in group other than Master router becomes for taking over Master router in Master router failure The active router of backup group.
Administrator may need to upgrade current Master router or Backup is examined to route in network management At this moment current Master router is become Backup router by the operating status of device.In the prior art, Master is realized The method that router becomes Backup router need to modify VRRP configuration, influence practical networking, realize that process is complex.
Summary of the invention
In view of this, the application provides the method and dress of a kind of secondary router of active router switching based on VRRP agreement It sets, becomes the mistake of Backup router to solve prior art Master router in the backup group for realizing virtual router The excessively complicated problem of journey.
Specifically, the application is achieved by the following technical solution:
A method of the active router based on VRRP agreement switches secondary router, applied to the routing in VRRP backup group Device, comprising:
After what the first router execution user as Master router inputted is switched to the order of Backup router, All Backup routers into the VRRP backup group send the notification packet that the priority carried is 0, described in triggering Other Backup routers are based on priority and re-elect Master router in VRRP backup group;
Judge whether to receive the notification packet that other Backup routers are responded in the VRRP backup group;
If it is preferential to receive carrying other Backup routers itself that other Backup routers return The notification packet of grade deletes the virtual ip address for the VRRP backup group being locally pre-configured, is switched to Backup router.
In the method that the active router based on VRRP agreement switches secondary router, further includes:
If being not received by the notification packet that other Backup routers return, the priority for retransmitting carrying is 0 Notification packet, and after number of retransmissions reaches preset times, if not receiving what other Backup routers returned yet Notification packet then stops the order that Backup router is switched to described in response.
In the method that the active router based on VRRP agreement switches secondary router, further includes:
The first router for being switched to Backup router receives the Master router re-elected out and sends Carrying priority be 0 notification packet after, be not responding to the notification packet in preset Master exception time-out time.
In the method that the active router based on VRRP agreement switches secondary router, further includes:
In the preset Master exception time-out time, the Master router hair re-elected out is not received yet The notification packet sent, it is determined that self-recovery is the road Master by the Master router operation irregularity re-elected out By device.
In the method that the active router based on VRRP agreement switches secondary router, further includes:
The order for being switched to Backup router is restarted in the first router for being switched to Backup router After fail;
The first router for being switched to Backup router executes the cancellation that user inputs and is switched to Backup routing After the order of device, the command expiration for being switched to Backup router.
In the method that the active router based on VRRP agreement switches secondary router, what the deletion was locally pre-configured The virtual ip address of the VRRP backup group, further includes:
The delay time for deleting virtual address is set, and described in deleting after reaching the delay time and being locally pre-configured The virtual ip address of VRRP backup group.
A kind of active router based on VRRP agreement switches the device of secondary router, applied to the routing in VRRP backup group Device, comprising:
Transmission unit is switched to the road Backup for the first router execution user's input as Master router After the order of device, all Backup routers in Xiang Suoshu VRRP backup group send the notice report that the priority carried is 0 Text is based on priority to trigger in the VRRP backup group other Backup routers and re-elects Master router;
Judging unit, for judging whether to receive the notice that other Backup routers are responded in the VRRP backup group Message;
Unit is deleted, if the carrying other roads Backup returned for receiving other Backup routers By the notification packet of device own priority, the virtual ip address for the VRRP backup group being locally pre-configured is deleted, is switched to Backup router.
In the device that the active router based on VRRP agreement switches secondary router, the transmission unit is further used In:
If being not received by the notification packet that other Backup routers return, the priority for retransmitting carrying is 0 Notification packet, and after number of retransmissions reaches preset times, if not receiving what other Backup routers returned yet Notification packet then stops the order that Backup router is switched to described in response.
In the device that the active router based on VRRP agreement switches secondary router, the judging unit is further used In:
The first router for being switched to Backup router receives the Master router re-elected out and sends Carrying priority be 0 notification packet after, be not responding to the notification packet in preset Master exception time-out time.
In the device that the active router based on VRRP agreement switches secondary router, the transmission unit is further used In:
In the preset Master exception time-out time, the Master router hair re-elected out is not received yet The notification packet sent, it is determined that self-recovery is the road Master by the Master router operation irregularity re-elected out By device.
It is described to be switched to Backup routing in the device that the active router based on VRRP agreement switches secondary router The order of device further include:
The order for being switched to Backup router is restarted in the first router for being switched to Backup router After fail;
The first router for being switched to Backup router executes the cancellation that user inputs and is switched to Backup routing After the order of device, the command expiration for being switched to Backup router.
In the device that the active router based on VRRP agreement switches secondary router, the deletion unit is further used In:
The delay time for deleting virtual address is set, and described in deleting after reaching the delay time and being locally pre-configured The virtual ip address of VRRP backup group.
In the embodiment of the present application, when network administrator needs current Master router pressure being switched to the road Backup When by device, one can be inputted for Master router to be switched to the order of Backup router, Master router is held After capable this is switched to the order of Backup router, one can be sent to all Backup routers in VRRP backup group and taken The notification packet that the priority of band is 0, according to priority size re-elects the other Backup routers for enabling in backup group Master router, to need to upgrade current Master router in network administrator or Backup is examined to route The operating status of device, during current Master router pressure is switched to Backup router, it is no longer necessary to modify VRRP configuration, simplifies realization process.
Detailed description of the invention
Fig. 1 is a network architecture diagram of the virtual router based on VRRP agreement;
Fig. 2 is a kind of process of the method for secondary router of active router switching based on VRRP agreement shown in the application Figure;
Fig. 3 is a kind of logical box of the device of secondary router of active router switching based on VRRP agreement shown in the application Figure;
Fig. 4 is a kind of hardware knot of the device of secondary router of active router switching based on VRRP agreement shown in the application Composition.
Specific embodiment
In order to make those skilled in the art more fully understand the technical solution in the embodiment of the present application, and keep the application real The above objects, features, and advantages for applying example can be more obvious and easy to understand, with reference to the accompanying drawing to prior art and the application Technical solution in embodiment is described in further detail.
Referring to Fig. 1, for a network architecture diagram of the virtual router based on VRRP agreement, as shown, the first via by Device, the second router, third router together constitute a backup group, form a virtual router.Master in local area network Machine 1, host 2 and host 3 realize the communication with external network by virtual router.
Specifically, the set of router that can undertake gateway function is added in the backup group of VRRP by VRRP, formed One virtual router.Identical, writing from memory using virtual router as next-hop is all arranged in the All hosts of same local area network Recognize routing.The message that host is sent to other network segments will be sent to virtual router by default route, then be carried out by virtual router Forwarding, to realize the communication of host and external network.VRRP elects a Master router, is held by Master router Carry on a shoulder pole actual forwarding task.When Master router occurs abnormal, Backup router passes through timeout mechanism and election mechanism Elect new Master router.
Master router can be elected according to the height of VRRP priority in VRRP backup group, highest priority becomes Master router, the range for the priority that user can configure are 1 to 254.If there are IP address and virtual flow-line in backup group The identical router of the interface IP address of device, then the router is referred to as the owner of IP address, possesses highest priority 255. Priority is that the Master router where 0 expression IP is actively switched to Backup router.
Under VRRP contention mode, as long as there is the priority of Backup router to be higher than Master router in backup group, The Backup router will replace existing Master router to become new Master router.
Under VRRP non-preemption mode, as long as Master router is working properly in backup group, even if there are the roads Backup It is higher than the priority of Master router by the priority of device, which can not replace existing Master to route Device becomes new Master router.
In practical applications, network administrator may need that current Master router is upgraded or examined The operating status of Backup router needs current Master router being switched to Backup router at this time.
Existing technology can allow the priority of Backup router to be higher than the excellent of Master router under contention mode First grade, so that Backup router replaces existing Master router to become new router, to realize existing Master router becomes the conversion of Backup router.
On the one hand, the priority that existing Master router can be reduced, when the priority of existing Master router is low In backup group when the priority of the Backup router of highest priority, which can replace existing Master Router makes existing Master router be switched to Backup router.
On the other hand, the priority that any Backup router in backup group can be improved, when the Backup router When priority is higher than the priority of existing Master router, which can replace existing Master router, Existing Master router is set to be switched to Backup router.
This method needs to configure backup group in contention mode, will affect practical networking.Another side of the prior art Method is to increase or modify the monitored item of backup group, allows existing Master router actively to reduce priority to 0, triggers Backup Router, which re-elects, generates new Master router, and existing Master router becomes Backup router.In monitored item In the case where not restoring, existing Master router can not be switched to Master router after becoming Backup router again, such as The Master router operation irregularity of fruit hereafter, and taken over as Master router, virtually without other Backup routers Router will be unable to be forwarded work.
In conclusion existing technical solution is needing current Master router being switched to Backup router When, it realizes that the method that Master router is switched to Backup router need to modify VRRP configuration, influences practical networking;Either By realizing that process is more multiple not restoring to realize that Master router is switched to Backup router with regard to the monitored item of continuous action It is miscellaneous.
In view of this, the application provides the method and dress of a kind of secondary router of active router switching based on VRRP agreement It sets, for solving the problems, such as that it is excessively complicated to become realizing for Backup router for Master router in the prior art.
Referring to fig. 2, switch the method for secondary router for a kind of active router based on VRRP agreement shown in the application Flow chart.
Step 201: what the first router execution user as Master router inputted is switched to Backup router Order after, all Backup routers in Xiang Suoshu VRRP backup group send the notification packet that the priority carried is 0, with It triggers in the VRRP backup group other Backup routers and is based on priority and re-elect Master router.
Step 202: judging whether to receive the notification packet that other Backup routers are responded in the VRRP backup group.
Step 203: if receiving carrying other Backup routers that other Backup routers return The notification packet of own priority deletes the virtual ip address for the VRRP backup group being locally pre-configured, is switched to Backup Router.
As previously mentioned, in the prior art, Master router change Backup router need to be modified configuration, influence practical group Net, or because Backup router impacted caused by changing monitored item can not become Master router, realization process complexity again.
In the present embodiment, the road Backup is switched to as the first router execution user's input of Master router After the order of device, it is all into backup group which can send the notification packet that the priority of carrying is 0 Backup router re-elects Master router to trigger Backup router based on priority.The first router exists After the notification packet for receiving the response of Backup router, local virtual ip address is deleted, Backup router is switched to.It is whole A process does not need the configuration of change VRRP, without the monitored item for increasing or modifying VRRP backup group, realizes Master routing The process that device is switched to Backup router becomes very convenient.
Illustrate the technical solution of the embodiment of the present application in conjunction with the network architecture of Fig. 1, sets the priority of the first router It is 100, the priority of the second router is 80, and the priority of third router is 60.Master in current VRRP backup group Router is the first router.
In this example, the Backup that is switched to that the first router as Master router receives user's input is routed After the order of device, the order for being switched to Backup router is executed.The first router is all into VRRP backup group Backup router sends the notification packet that the priority carried is 0.Backup router in VRRP backup group, i.e. the second tunnel Itself is based on after receiving the notification packet that the priority of carrying of the first router transmission is 0 by device and third router Priority carry out Master router election.
According to VRRP agreement, the Master router in VRRP backup group regularly sends notice according to notification time for interval Message, Backup router oneself work in informing VRRP backup group.It is local that notification packet can carry Master router Priority.The notification time can be set according to practical application, be traditionally arranged to be 1 second.
Under normal circumstances, after Backup router receives the notification packet that Master router is sent, Master is set Abnormal time-out time receives notification packet in above-mentioned Master exception time-out time, then when extremely overtime to above-mentioned Master Between reclocking;It is above-mentioned if not receiving the notification packet of Master router in above-mentioned Master exception time-out time Master exception time-out time time-out, it oneself is Master router that Backup router, which is assert, its into VRRP backup group Its Backup router sends notification packet.The calculation of above-mentioned Master exception time-out time may is that notification time * 3+ Notification time * (256- priority)/256.
The notification packet that priority is 0 is special method.When Backup road of the Master router into VRRP backup group When sending the notification packet that the priority carried is 0 by device, indicate that current Master router abandons the identity of Master.VRRP After Backup router in backup group receives the notification packet that the priority of carrying is 0, by Master exception time-out time Setting are as follows: notification time * (256- priority)/256.
In this example, the election of Master router can be there are two types of mode:
On the one hand, it is 0 that the second router and third router, which receive the priority of the carrying of the first router transmission, After notification packet, local Master exception time-out time is set are as follows: notification time * (256- priority)/256.Second tunnel By the Master exception time-out time of device are as follows: notification time * 176/256.The Master exception time-out time of third router are as follows: Notification time * 196/256.The Master that the Master exception time-out time of the second router is less than third router is extremely overtime The Master exception time-out time of time, the second router are first overtime.The Master exception time-out time time-out of the second router Afterwards, it oneself is Master router that the second router, which is assert, sends to the first router and third router and carries secondary route The notification packet of device priority.Third router receives the notification packet of the second router transmission as Master router Afterwards, to Master exception time-out time reclocking.
On the other hand, it is 0 that the second router and third router, which receive the priority of the carrying of the first router transmission, Notification packet after, can assert it oneself is Master router immediately, and other routers into VRRP backup group are sent Carry the notification packet of own priority.After third router receives the notification packet of the second router transmission, compare notice The priority of the second router and local priority in message;Because the priority of the second router is higher than third router Priority, third router abandon the identity of Master, are switched to Backup router again.The second router receives third After the notification packet that router is sent, compare the priority of third router and local priority in notification packet;Because the The priority of two routers is higher than the priority of third router, and the identity of the Master of the second router remains unchanged.
In this example, other Backup routers of the first router into VRRP backup group, i.e. the second router and Three routers will judge whether to receive the second router or third router after sending the priority of carrying as 0 notification packet The notification packet of its own priority of the carrying of response.Because the second router and the second router are likely to be at operation irregularity shape State, or packet loss is likely to occur during the first router sends the notification packet that the priority carried is 0.At this moment first If router is directly switched to Backup router, will there is no Master router in entire VRRP backup group, virtually Router can not be the host forwarding data packets in local area network.
The first router after sending the notification packet that the priority carried is 0 to the second router and third router, If confiscating the notification packet for carrying its own priority that the second router or third router are responded in notification time, The notification packet that the priority carried is 0 is then retransmitted by interval of notification time.After if number of retransmissions reaches preset times, still The notification packet for carrying its own priority that the second router or third router are responded is not received;Illustrate secondary route Device and third router operation irregularity, can not be switched to Master router.Backup is switched in the first router at this time The command expiration of router, the first router do not retransmit the notification packet that the priority of carrying is 0.
It wherein, can be using the default number of retransmissions of VRRP agreement support when above-mentioned preset times are arranged;For example, 3 It is secondary.
In this example, carrying its own priority that the first router receives that the second router or third router respond Notification packet, it is determined that occur new Master router in VRRP backup group, the first router can be set deletion this The delay time of the virtual ip address for the VRRP backup group that ground is pre-configured, and delete and be pre-configured after delay time time-out The VRRP backup group virtual ip address, be switched to Backup router.The effect of the delay time is: VRRP backup When the second router or third router in group respond notification packet to the first router for carrying own priority, even if the Two routers are switched to Master router, the second router will issue the notification packet for carrying own priority later The virtual ip address of VRRP backup group can be used.The delay time can prevent from switching to Backup routing because of the first router Device, and when the second router in VRRP backup group is not yet able to use the virtual ip address of VRRP backup group, cause virtual road By the vacancy of Master router in device.The calculation of the delay time may is that notification time * (256- priority)/ 256。
In this example, after the first router is switched to Backup router, in VRRP backup group in addition to the first router The second router of highest priority is switched to Master router.If that continues to input in the second router is switched to The order of Backup router, then the second router will execute the order for being switched to Backup router, to VRRP backup group In other Backup routers, i.e. the first router and the second router, send carrying priority be 0 notification packet.
The first router is still switched to the order of Backup router in response at this time;The first router receives the second tunnel After the notification packet that priority by device transmission is 0, assert that is received is common notification packet, Master is extremely overtime Time reclocking;The Master exception time-out time of the first router may is that notification time * 3+ notification time *, and (256- is excellent First grade)/256.In this way, make other Backup routers for not switching Master router also in VRRP backup group After the notification packet that the priority for receiving carrying is 0, the election of Master router is participated in front of the first router.
The priority that other Backup routers in VRRP backup group receive the carrying of the second router transmission is 0 After notification packet, the election of Master router is carried out based on the priority of itself.According to the two kinds of roads Master proposed above By any of the way to elect of device, third router can switch to Master router.Illustrate to send out with 3 routers in this example Bright scheme, it is practical by the scheme of the invention, all Backup routers in VRRP backup group according to priority from high to low, all Master router can be switched to.
In this example, when the third router operation irregularity as Master router, no longer to the first router and The second router sends notification packet.The first router and the second router are in the notice for receiving third router and finally sending Start timing Master exception time-out time when message.When the Master exception time-out time of the first router may is that notice Between * 3+ notification time * 156/256.When the Master exception time-out time of the second router may is that notification time * 3+ notice Between * 176/256.The Master exception time-out time of the first router is less than the Master exception time-out time of the second router. So the Master exception time-out time of the first router is first overtime, the life for being switched to Backup router in the first router Failure is enabled, the first router is switched to Master router, and sends the preferential of carrying to the second router and third router The notification packet that grade is 100.The second router receives the notification packet that the priority of the carrying of the first router transmission is 100 Afterwards, reclocking Master exception time-out time.
Therefore, when Backup router all in VRRP backup group all switched Master router, last weight When the Master router operation irregularity newly elected, highest priority in remaining other Backup routers can be made The abnormal time-out time time-out of Backup router and the command expiration for being switched to Backup router of its response, switch again For Master router.Prevent virtual router from occurring lacking the failure of Master router.
In this example, restart and be switched to the first router of Backup router and can cancel cutting in the first router It is changed to the order of Backup router.After the above-mentioned order cancellation for being switched to Backup router, the first router is being received When the notification packet that the priority for the carrying that Master router is sent is 0, no longer by the notification packet as common notice report Text, but set Master exception time-out time are as follows: notification time * (256- priority)/256, it is extremely overtime in the Master The election of Master router is participated in after time time-out.Or it can also be in the first router for being switched to Backup router The order for being switched to Backup router is cancelled in upper input, makes the order nothing for being switched to Backup router in the first router Effect.
After the first router is switched to Master router again, unless being abnormal, otherwise the second router is unanimously located The state of the order of Backup router is switched in execution.The second router can be restarted, or be inputted to the second router Cancel the order for being switched to Backup router, so that the second router be made to restore normal condition.In this way when needing to allow next time When the first router pressure is switched to Backup router, the second router receives the priority of the carrying of the first router transmission The election of normal Master router can be participated in for 0 notification packet.
In the embodiment of the present application, when network administrator needs current Master router pressure being switched to the road Backup When by device, one can be inputted for Master router to be switched to the order of Backup router, Master router is held After capable this is switched to the order of Backup router, one can be sent to all Backup routers in VRRP backup group and taken The notification packet that the priority of band is 0, according to priority size re-elects the other Backup routers for enabling in backup group Master router, to need to upgrade current Master router in network administrator or Backup is examined to route The operating status of device, during current Master router pressure is switched to Backup router, it is no longer necessary to modify VRRP configuration, simplifies realization process.
With the present invention is based on the active router of VRRP agreement corresponding, the present invention that switches the secondary embodiment of method of router Additionally provide the embodiment of the device for executing above method embodiment.
Referring to Fig. 3, for the present invention is based on one embodiment of the device of the secondary router of the active router of VRRP agreement switching Block diagram:
As shown in figure 3, the device 30 that should switch secondary router based on the active router of VRRP agreement includes:
Transmission unit 310 executes being switched to for user's input for the first router as Master router After the order of Backup router, it is 0 that all Backup routers in Xiang Suoshu VRRP backup group, which send the priority carried, Notification packet, be based on priority to trigger in the VRRP backup group other Backup routers and re-elect Master routing Device.
Judging unit 320, for judging whether to receive other Backup routers responses in the VRRP backup group Notification packet.
Unit 330 is deleted, if the carrying road Backup returned for receiving other Backup routers By the notification packet of device own priority, the virtual ip address for the VRRP backup group being locally pre-configured is deleted, is switched to Backup router.
In this example, the transmission unit 310 is further used for:
If being not received by the notification packet that the Backup router returns, retransmit carrying priority be 0 it is logical Message is accused, and after number of retransmissions reaches preset times, if not receiving the notification packet that the Backup router returns yet, Then stop the order that Backup router is switched to described in response.
In this example, the judging unit 320 is further used for:
The first router for being switched to Backup router receives the Master router re-elected out and sends Carrying priority be 0 notification packet after, be not responding to the notification packet in preset Master exception time-out time.
In this example, the transmission unit 310 is further used for:
In the preset Master exception time-out time, the Master router hair re-elected out is not received yet The notification packet sent, it is determined that self-recovery is the road Master by the Master router operation irregularity re-elected out By device.
In this example, the order for being switched to Backup router further include:
The order for being switched to Backup router is restarted in the first router for being switched to Backup router After fail;
The first router for being switched to Backup router executes the cancellation that user inputs and is switched to Backup routing After the order of device, the command expiration for being switched to Backup router.
In this example, the deletion unit 330, is further used for:
The delay time for deleting virtual address is set, and described in deleting after reaching the delay time and being locally pre-configured The virtual ip address of VRRP backup group.
The application can be applied based on the embodiment for the device that the active router of VRRP agreement switches secondary router in VRRP On router in backup group.Installation practice can also pass through hardware or software and hardware combining by software realization Mode is realized.It taking software implementation as an example, is by the road in VRRP backup group where it as the device on a logical meaning Computer program instructions corresponding in nonvolatile memory are read into memory what operation was formed by the processor of device.From hard For part level, as shown in figure 4, VRRP where switching the device of secondary router based on the active router of VRRP agreement for the application A kind of hardware structure diagram of router in backup group, in addition to processor shown in Fig. 4, memory, network interface and non-volatile Except property memory, the router in VRRP backup group in embodiment where device is generally according to the master based on VRRP agreement Router switches the actual functional capability of the device of secondary router, can also include other hardware, repeat no more to this.
The function of each unit and the realization process of effect are specifically detailed in the above method and correspond to step in above-mentioned apparatus Realization process, details are not described herein.
For device embodiment, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.The apparatus embodiments described above are merely exemplary, wherein described be used as separation unit The unit of explanation may or may not be physically separated, and component shown as a unit can be or can also be with It is not physical unit, it can it is in one place, or may be distributed over multiple network units.It can be according to actual The purpose for needing to select some or all of the modules therein to realize application scheme.Those of ordinary skill in the art are not paying Out in the case where creative work, it can understand and implement.
The foregoing is merely the preferred embodiments of the application, not to limit the application, all essences in the application Within mind and principle, any modification, equivalent substitution, improvement and etc. done be should be included within the scope of the application protection.

Claims (10)

1. a kind of method that active router based on VRRP agreement switches secondary router, applied to the routing in VRRP backup group Device characterized by comprising
After what the first router execution user as Master router inputted is switched to the order of Backup router, to institute It states all Backup routers in VRRP backup group and sends the notification packet that the priority carried is 0, to trigger the VRRP Other Backup routers are based on priority and re-elect Master router in backup group;Wherein, the Master router As active router, the Backup router are secondary router;
Judge whether to receive the notification packet that other Backup routers are responded in the VRRP backup group;
If receiving carrying other Backup router own priorities that other Backup routers return Notification packet, the delay time of virtual address is deleted in setting, and deletes the institute being locally pre-configured after reaching the delay time The virtual ip address for stating VRRP backup group is switched to Backup router.
2. the method according to claim 1, wherein the method also includes:
If being not received by the notification packet that the other Backup routers return, retransmit carrying priority be 0 it is logical Message is accused, and after number of retransmissions reaches preset times, if not receiving the notice that other Backup routers return yet Message then stops the order that Backup router is switched to described in response.
3. the method according to claim 1, wherein the method also includes:
The first router for being switched to Backup router receives taking for the Master router transmission re-elected out After the notification packet that the priority of band is 0, the notification packet is not responding in preset Master exception time-out time.
4. according to the method described in claim 3, it is characterized in that, the method also includes:
In the preset Master exception time-out time, do not receive what the Master router re-elected out was sent yet Notification packet, it is determined that self-recovery is Master router by the Master router operation irregularity re-elected out.
5. according to the method described in claim 4, it is characterized in that, the method also includes:
The order for being switched to Backup router is lost after the first router for being switched to Backup router is restarted Effect;
The first router for being switched to Backup router executes the cancellation that user inputs and is switched to Backup router After order, the command expiration for being switched to Backup router.
6. a kind of active router based on VRRP agreement switches the device of secondary router, applied to the routing in VRRP backup group Device characterized by comprising
Transmission unit is switched to Backup router for the first router execution user's input as Master router Order after, all Backup routers in Xiang Suoshu VRRP backup group send the notification packet that the priority carried is 0, with It triggers in the VRRP backup group other Backup routers and is based on priority and re-elect Master router;Wherein, described Master router is active router, and the Backup router is secondary router;
Judging unit, for judging whether to receive the notice report that other Backup routers are responded in the VRRP backup group Text;
Unit is deleted, if the carrying other Backup routers returned for receiving other Backup routers The notification packet of own priority, the delay time of virtual address is deleted in setting, and deletes this after reaching the delay time The virtual ip address for the VRRP backup group that ground is pre-configured, is switched to Backup router.
7. device according to claim 6, which is characterized in that the transmission unit is further used for:
If being not received by the notification packet that the other Backup routers return, retransmit carrying priority be 0 it is logical Message is accused, and after number of retransmissions reaches preset times, if not receiving the notice that other Backup routers return yet Message then stops the order that Backup router is switched to described in response.
8. device according to claim 6, which is characterized in that the judging unit is further used for:
The first router for being switched to Backup router receives taking for the Master router transmission re-elected out After the notification packet that the priority of band is 0, the notification packet is not responding in preset Master exception time-out time.
9. device according to claim 8, which is characterized in that the transmission unit is further used for:
In the preset Master exception time-out time, do not receive what the Master router re-elected out was sent yet Notification packet, it is determined that self-recovery is Master router by the Master router operation irregularity re-elected out.
10. device according to claim 9, which is characterized in that the order for being switched to Backup router further include:
The order for being switched to Backup router is lost after the first router for being switched to Backup router is restarted Effect;
The first router for being switched to Backup router executes the cancellation that user inputs and is switched to Backup router After order, the command expiration for being switched to Backup router.
CN201610645657.2A 2016-08-08 2016-08-08 A kind of active router based on VRRP agreement switches the method and device of secondary router Active CN106100987B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610645657.2A CN106100987B (en) 2016-08-08 2016-08-08 A kind of active router based on VRRP agreement switches the method and device of secondary router

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610645657.2A CN106100987B (en) 2016-08-08 2016-08-08 A kind of active router based on VRRP agreement switches the method and device of secondary router

Publications (2)

Publication Number Publication Date
CN106100987A CN106100987A (en) 2016-11-09
CN106100987B true CN106100987B (en) 2019-06-07

Family

ID=57457019

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610645657.2A Active CN106100987B (en) 2016-08-08 2016-08-08 A kind of active router based on VRRP agreement switches the method and device of secondary router

Country Status (1)

Country Link
CN (1) CN106100987B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11265240B1 (en) 2020-08-19 2022-03-01 Cisco Technology, Inc. Systems and methods for determining FHRP switchover
CN112437454A (en) * 2020-11-23 2021-03-02 青岛海尔科技有限公司 Data transmission method and device, storage medium and electronic device
CN114143253B (en) * 2021-11-24 2023-08-18 锐捷网络股份有限公司 VRRP (virtual router redundancy protocol) back-cut method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1601140A2 (en) * 2004-05-29 2005-11-30 Sarian Systems Ltd. Method of monitoring a member router in a VRRP group
CN1949767A (en) * 2005-10-11 2007-04-18 华为技术有限公司 Method for switching master-slave back-up route apparatus based on virtual router redundant protocol
CN101488918A (en) * 2009-01-09 2009-07-22 杭州华三通信技术有限公司 Multi-network card server access method and system
CN101702681A (en) * 2009-11-26 2010-05-05 福建星网锐捷网络有限公司 Switching method and device of main/standby router in virtual route redundancy protocol
CN101729426A (en) * 2009-12-29 2010-06-09 中兴通讯股份有限公司 Method and system for quickly switching between master device and standby device of virtual router redundancy protocol (VRRP)
CN103200093A (en) * 2013-03-05 2013-07-10 杭州华三通信技术有限公司 Method and device for improving processing performance of multiple virtual router redundancy protocol (VRRP) back-up sets
CN103560955A (en) * 2013-10-24 2014-02-05 华为技术有限公司 Method and device for switching between redundancy devices

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101591102B1 (en) * 2010-01-07 2016-02-02 삼성전자주식회사 Method for router of virtual router redundancy protocol and communication system therefor

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1601140A2 (en) * 2004-05-29 2005-11-30 Sarian Systems Ltd. Method of monitoring a member router in a VRRP group
CN1949767A (en) * 2005-10-11 2007-04-18 华为技术有限公司 Method for switching master-slave back-up route apparatus based on virtual router redundant protocol
CN101488918A (en) * 2009-01-09 2009-07-22 杭州华三通信技术有限公司 Multi-network card server access method and system
CN101702681A (en) * 2009-11-26 2010-05-05 福建星网锐捷网络有限公司 Switching method and device of main/standby router in virtual route redundancy protocol
CN101729426A (en) * 2009-12-29 2010-06-09 中兴通讯股份有限公司 Method and system for quickly switching between master device and standby device of virtual router redundancy protocol (VRRP)
CN103200093A (en) * 2013-03-05 2013-07-10 杭州华三通信技术有限公司 Method and device for improving processing performance of multiple virtual router redundancy protocol (VRRP) back-up sets
CN103560955A (en) * 2013-10-24 2014-02-05 华为技术有限公司 Method and device for switching between redundancy devices

Also Published As

Publication number Publication date
CN106100987A (en) 2016-11-09

Similar Documents

Publication Publication Date Title
US10771434B1 (en) Route signaling driven service management
EP3605968B1 (en) N:1 stateful application gateway redundancy model
EP3525405A1 (en) Packet sending method and network device
CN102035676B (en) ARP (Address Resolution Protocol) interaction based method and equipment for detecting and recovering link fault
US20170264496A1 (en) Method and device for information processing
CN110535766A (en) A kind of method and apparatus generating routing
CN107911291B (en) VRRP router switching method, router, VRRP active-standby switch system and storage medium
EP3232611B1 (en) Method, device and system for performing bidirectional forwarding detection on an aggregated link
CN105745883B (en) Forwarding table synchronous method, the network equipment and system
CN105656645B (en) The decision-making technique and device of the troubleshooting of stacking system
CN106100987B (en) A kind of active router based on VRRP agreement switches the method and device of secondary router
US20140169154A1 (en) Method, routing device, and system for network device redundancy backup
CN110891018B (en) Network traffic recovery method and device, SDN controller and storage medium
EP1482693B1 (en) Enhanced virtual router redundancy protocol
CN103684953A (en) Method and device for avoiding data traffic loss in an Ethernet ring multihomed, in an active-standby manner, to a virtual private LAN service transport network
KR102157711B1 (en) Methods for recovering failure in communication networks
CN106059793A (en) Router information processing method and apparatus based on graceful restart
EP2658177B1 (en) Method for detecting tunnel faults and traffic engineering node
CN106664248A (en) Method and controller for routing data packets in a software defined network
CN111953661A (en) SDN-based east-west flow security protection method and system
CN102932230B (en) Method and device for virtual router redundancy protocol backup group issuing routing
CN105939254B (en) The method and device of VRRP backup group state switching
CN105939215B (en) The method and device of VRRP backup group state switching
CN103840972A (en) System and method for backup between link aggregation groups in packet switched network
CN102571449B (en) The switching method and device of link

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building

Applicant after: Hangzhou Dipu Polytron Technologies Inc

Address before: Binjiang District and Hangzhou city in Zhejiang Province Road 310051 No. 68 in the 6 storey building

Applicant before: Hangzhou Dipu Technology Co., Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant