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

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

Info

Publication number
CN106100987A
CN106100987A CN201610645657.2A CN201610645657A CN106100987A CN 106100987 A CN106100987 A CN 106100987A CN 201610645657 A CN201610645657 A CN 201610645657A CN 106100987 A CN106100987 A CN 106100987A
Authority
CN
China
Prior art keywords
router
backup
master
vrrp
priority
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
Application number
CN201610645657.2A
Other languages
Chinese (zh)
Other versions
CN106100987B (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

Abstract

The application provides the method and device of the secondary router of a kind of active router based on VRRP agreement switching, described method includes: after the order switching to Backup router of the first router execution user's input of Master router, all Backup routers in described VRRP backup group send the notification packet that priority is 0 carried, and re-elect Master router based on priority triggering other Backup router in described VRRP backup group.Judge whether to receive the notification packet that in described VRRP backup group, other Backup router is responded.If receiving the notification packet carrying other Backup router own priority described that other Backup router described returns, deleting the virtual ip address of local pre-configured described VRRP backup group, switching to Backup router.In the embodiment of the present application, Master router switches to Backup router to be no longer necessary to revise VRRP backup group or the configuration of VRRP monitored item, becomes more convenient.

Description

A kind of method and device of the secondary router of active router based on VRRP agreement switching
Technical field
The application relates to communication technical field, particularly to the secondary router of a kind of active router based on VRRP agreement switching Method and device.
Background technology
VRRP (Virtual Router Redundancy Protocol, Virtual Router Redundacy Protocol) is by IETF (The Internet Engineering Task Force, Internet engineering duty group) the solution LAN that proposes configures quiet There is the Routing Protocol of single point failure phenomenon in state gateway.VRRP is widely used in edge network, and its design object is to support Under particular case, IP traffic amount unsuccessfully shifts and will not cause confusion, it is allowed to main frame uses single-router, and jumps actual first Router still is able to the connectedness safeguarding between router when using failed.Set of router in LAN is drawn by VRRP It is grouped together, referred to as one backup group.Backup group is made up of, functionally a Master router and multiple Backup router Be equivalent to a virtual router.
Master router is the router that the priority elected by priority in VRRP backup group is the highest, this route Device undertakes the function of active router in backup group, is responsible for the message under this backup group and forwards.Backup router is VRRP backup Router in addition to Master router in group, becomes for taking over Master router when Master router failure The active router of backup group.
In network management, manager may need upgrade current Master router or check Backup to route The running status of device, at this moment to become Backup router by current Master router.In prior art, it is achieved Master Router becomes the method for Backup router need to revise VRRP configuration, affects actual networking, it is achieved process is complex.
Summary of the invention
In view of this, the application provides method and the dress of the secondary router of a kind of active router based on VRRP agreement switching Put, become the mistake of Backup router in order to solve prior art Master router in the backup group realize virtual router The problem that journey is excessively complicated.
Specifically, the application is achieved by the following technical solution:
The method of the secondary router of a kind of active router based on VRRP agreement switching, is applied to the route in VRRP backup group Device, including:
After the order switching to Backup router of the first router execution user's input of Master router, All Backup routers in described VRRP backup group send the notification packet that priority is 0 carried, described to trigger In VRRP backup group, other Backup router re-elects Master router based on priority;
Judge whether to receive the notification packet that in described VRRP backup group, other Backup router is responded;
If it is preferential that what described in receiving, other Backup router returned carries described other Backup router self The notification packet of level, deletes the virtual ip address of local pre-configured described VRRP backup group, switches to Backup router.
In the method for the secondary router of described active router based on VRRP agreement switching, also include:
Without receiving the notification packet that other Backup router described returns, retransmitting the priority carried is 0 Notification packet, and after number of retransmissions reaches preset times, if not receiving what other Backup router described returned yet Notification packet, then stop switching to described in response the order of Backup router.
In the method for the secondary router of described active router based on VRRP agreement switching, also include:
The described the first router switching to Backup router receives the Master router re-elected out and sends The notification packet that the priority carried is 0 after, in default Master exception time-out time, be not responding to this notification packet.
In the method for the secondary router of described active router based on VRRP agreement switching, also include:
When in described default Master exception time-out time, do not receive the Master router re-elected out yet and send out The notification packet sent, it is determined that the described Master router operation irregularity re-elected out, is Master road by self-recovery By device.
In the method for the secondary router of described active router based on VRRP agreement switching, also include:
The order of the described Backup of switching to router is restarted in the described the first router switching to Backup router Rear inefficacy;
The described the first router switching to Backup router performs the cancellation of user's input and switches to Backup to route After the order of device, described in switch to the command expiration of Backup router.
In the method for the secondary router of described active router based on VRRP agreement switching, described deletion is local pre-configured The virtual ip address of described VRRP backup group, also includes:
The delay time deleting virtual address is set, and arrive delete after described delay time local pre-configured described in The virtual ip address of VRRP backup group.
The device of the secondary router of a kind of active router based on VRRP agreement switching, is applied to the route in VRRP backup group Device, including:
Transmitting element, switches to Backup road for input as the first router of Master router execution user After the order of device, all Backup routers in described VRRP backup group send the notice report that priority is 0 carried Literary composition, re-elects Master router based on priority triggering other Backup router in described VRRP backup group;
Judging unit, for judging whether to receive the notice of other Backup router response in described VRRP backup group Message;
Delete unit, if carrying other Backup road described for receive that other Backup router described returns By the notification packet of device own priority, delete the virtual ip address of local pre-configured described VRRP backup group, switch to Backup router.
In the device of the secondary router of described active router based on VRRP agreement switching, described transmitting element is used further In:
Without receiving the notification packet that other Backup router described returns, retransmitting the priority carried is 0 Notification packet, and after number of retransmissions reaches preset times, if not receiving what other Backup router described returned yet Notification packet, then stop switching to described in response the order of Backup router.
In the device of the secondary router of described active router based on VRRP agreement switching, described judging unit is used further In:
The described the first router switching to Backup router receives the Master router re-elected out and sends The notification packet that the priority carried is 0 after, in default Master exception time-out time, be not responding to this notification packet.
In the device of the secondary router of described active router based on VRRP agreement switching, described transmitting element is used further In:
When in described default Master exception time-out time, do not receive the Master router re-elected out yet and send out The notification packet sent, it is determined that the described Master router operation irregularity re-elected out, is Master road by self-recovery By device.
In the device of described active router based on the VRRP agreement secondary router of switching, described in switch to Backup to route The order of device also includes:
The order of the described Backup of switching to router is restarted in the described the first router switching to Backup router Rear inefficacy;
The described the first router switching to Backup router performs the cancellation of user's input and switches to Backup to route After the order of device, described in switch to the command expiration of Backup router.
In the device of the secondary router of described active router based on VRRP agreement switching, described deletion unit is used further In:
The delay time deleting virtual address is set, and arrive delete after described delay time local pre-configured described in The virtual ip address of VRRP backup group.
In the embodiment of the present application, when network manager needs to force to switch to Backup road by current Master router During by device, one can be inputted and hold for the order that Master router is switched to Backup router, Master router Row after this switches to the order of Backup router, can send one to all Backup routers in VRRP backup group and take The notification packet that priority is 0 of band, makes other Backup router in backup group according to priority size to re-elect Master router, thus need current Master router is upgraded or checks Backup to route network manager The running status of device, during forcing to switch to Backup router by current Master router, it is no longer necessary to amendment VRRP configures, and simplifies the process of realization.
Accompanying drawing explanation
Fig. 1 is a network architecture diagram of virtual router based on VRRP agreement;
Fig. 2 is the flow process of the method for the secondary router of a kind of based on VRRP agreement active router switching shown in the application Figure;
Fig. 3 is the box of the device of the secondary router of a kind of based on VRRP agreement active router switching shown in the application Figure;
Fig. 4 is the hardware knot of the device of the secondary router of a kind of based on VRRP agreement active router switching shown in the application Composition.
Detailed description of the invention
For the technical scheme making those skilled in the art be more fully understood that in the embodiment of the present application, and make the application real Execute the above-mentioned purpose of example, feature and advantage can become apparent from understandable, below in conjunction with the accompanying drawings to prior art and the application Technical scheme in embodiment is described in further detail.
See Fig. 1, for a network architecture diagram of virtual router based on VRRP agreement, as it can be seen, the first via by Device, the second router, third router together constitute a backup group, form a virtual router.Master in LAN Machine 1, main frame 2 and main frame 3 is realized and the communicating of external network by virtual router.
Specifically, the set of router that can undertake gateway function is joined in the backup group of VRRP by VRRP, is formed One virtual router.The All hosts of same LAN all arranges identical, silent with virtual router as down hop Recognize route.Main frame mails to the message of other network segment will mail to virtual router by default route, then be carried out by virtual router Forward, thus realize the communication of main frame and external network.VRRP elects a Master router, Master router hold The forwarding task that load is actual.When Master router occurs abnormal, Backup router passes through timeout mechanism and election mechanism The Master router that election makes new advances.
VRRP backup group can elect Master router, the highest the becoming of priority according to the height of VRRP priority Master router, the configurable priority of user is in the range of 1 to 254.If backup group exists IP address and virtual flow-line The router that the interface IP address of device is identical, then this router is referred to as the owner of IP address, has limit priority 255. Priority is that the Master router at 0 expression IP place actively switches to Backup router.
Under VRRP contention mode, as long as backup group having the priority of Backup router higher than Master router, This Backup router will replace the Master router that existing Master router becomes new.
Under VRRP non-preemption pattern, as long as Master router is working properly in backup group, even if there is Backup road Be higher than the priority of Master router by the priority of device, this Backup router can not replace existing Master route Device becomes new Master router.
In actual applications, network manager may need to carry out upgrading or checking by current Master router The running status of Backup router, now needs current Master router is switched to Backup router.
Existing technology can allow the priority of Backup router be higher than the excellent of Master router under contention mode First level so that Backup router replaces the router that existing Master router becomes new, thus realizes existing Master router becomes the conversion of Backup router.
On the one hand, the priority of existing Master router can be reduced, when the priority of existing Master router is low When the priority of backup group medium priority the highest Backup router, this Backup router can replace existing Master Router, makes existing Master router switch to Backup router.
On the other hand, the priority of arbitrary Backup router in backup group can be improved, when this Backup router When priority is higher than the priority of existing Master router, this Backup router can replace existing Master router, Existing Master router is made to switch to Backup router.
This method needs backup group is arranged in contention mode, can affect actual networking.Another side of prior art Method is to increase or revises the monitored item of backup group, allows existing Master router actively reduce priority to 0, triggers Backup Router re-elects and produces new Master router, and existing Master router becomes Backup router.In monitored item In the case of not recovering, existing Master router cannot switch to Master router after becoming Backup router again, as Fruit Master router operation irregularity hereafter, not having again other Backup router to take over becomes Master router, virtual Router will be unable to carry out forwarding work.
In sum, current Master router is switched to Backup router at needs by existing technical scheme Time, it is achieved Master router switches to the method for Backup router need to revise VRRP configuration, affects actual networking;Or Backup router is switched to, it is achieved process is the most multiple by not recovering the monitored item of continuous action to be realized to Master router Miscellaneous.
In view of this, the application provides method and the dress of the secondary router of a kind of active router based on VRRP agreement switching Put, for solving the problem that Master router in prior art becomes the realization excessively complexity of Backup router.
See Fig. 2, switch the method for secondary router for a kind of based on VRRP agreement the active router shown in the application Flow chart.
Step 201: as Master router the first router perform user input switch to Backup router Order after, all Backup routers in described VRRP backup group send the notification packet that priority is 0 carried, with Trigger other Backup router in described VRRP backup group and re-elect Master router based on priority.
Step 202: judge whether to receive the notification packet that in described VRRP backup group, other Backup router is responded.
Step 203: if receive that other Backup router described returns carries other Backup router described The notification packet of own priority, deletes the virtual ip address of local pre-configured described VRRP backup group, switches to Backup Router.
As it was previously stated, in prior art, Master router change Backup router need to be revised configuration, affect actual group Net, or because change monitored item causes affected Backup router cannot become Master router again, it is achieved process is complicated.
In the present embodiment, what the first router execution user as Master router inputted switches to Backup road After the order of device, this first router can send all in backup group of the notification packet that priority is 0 that carries Backup router, re-elects Master router based on priority triggering Backup router.This first router exists After receiving the notification packet of Backup router response, delete local virtual ip address, switch to Backup router.Whole Individual process need not change the configuration of VRRP, without increasing or the monitored item of amendment VRRP backup group, it is achieved Master route Device switches to the process of Backup router to become very convenient.
The network architecture in conjunction with Fig. 1 illustrates the technical scheme of the embodiment of the present application, sets the priority of the first router Being 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 first router as Master router receive user input the Backup that switches to route After the order of device, perform this order switching to Backup router.The first router owning in VRRP backup group Backup router sends the notification packet that priority is 0 carried.Backup router in VRRP backup group, the i.e. second tunnel By device and third router, after receiving the notification packet that the priority carried is 0 that the first router sends, based on self Priority carry out the election of Master router.
According to VRRP agreement, the Master router in VRRP backup group sends notice according to notification time for interval timing Message, the Backup router in informing VRRP backup group oneself works.It is local that notification packet can carry Master router Priority.Described notification time can be traditionally arranged to be 1 second according to actual application settings.
Generally, after Backup router receives the notification packet that Master router sends, set Master Abnormal time-out time, receives notification packet in above-mentioned Master exception time-out time, then to above-mentioned Master abnormal the most overtime time Between reclocking;If not receiving the notification packet of Master router in above-mentioned Master exception time-out time, the most above-mentioned Master exception time-out time time-out, Backup router identification oneself is Master router, its in 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.
Priority be the notification packet of 0 be special method.When Master router Backup road in VRRP backup group When being sent, by device, the notification packet that priority is 0 carried, represent that current Master router abandons the identity of Master.VRRP After Backup router in backup group receives the notification packet that priority is 0 carried, by Master exception time-out time It is set as: notification time * (256-priority)/256.
In this example, the election of Master router can have a two ways:
On the one hand, the second router and third router receive the priority carried of the first router transmission is 0 After notification packet, local Master exception time-out time is set as: notification time * (256-priority)/256.Second tunnel By the Master exception time-out time of device it is: notification time * 176/256.The Master exception time-out time of third router is: Notification time * 196/256.The Master exception time-out time of the second router is abnormal less than the Master of third router overtime Time, the Master exception time-out time of the second router first time-out.The Master exception time-out time time-out of the second router After, the second router identification oneself is Master router, sends to the first router and third router and carries secondary route The notification packet of device priority.Third router receives the notification packet that the second router as Master router sends After, to Master exception time-out time reclocking.
On the other hand, the second router and third router receive the priority carried of the first router transmission is 0 Notification packet after, can assert it oneself is Master router immediately, and other router in VRRP backup group sends Carry the notification packet of own priority.After third router receives the notification packet that the second router sends, 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 is abandoned the identity of Master, is again switched to Backup router.The second router receives the 3rd After the notification packet that router sends, 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 keeps constant.
In this example, the first router other Backup router in VRRP backup group, i.e. the second router and Three routers, after sending the notification packet that priority is 0 carried, judge whether to receive the second router or third router The notification packet carrying himself priority responded.Because the second router and the second router are likely to be at operation irregularity shape State, or it is likely to occur packet loss during the first router sends the notification packet that priority is 0 carried.At this moment first If router directly switches to Backup router, then whole VRRP backup group will not have Master router, virtual Router cannot be the main frame forwarding data packets in LAN.
The first router after sending, to the second router and third router, the notification packet that priority is 0 carried, If confiscating the second router or the notification packet carrying himself priority of third router response in notification time, Then retransmit, with notification time, the notification packet that priority is 0 carried for interval.If after number of retransmissions reaches preset times, still The most do not receive the second router or the notification packet carrying himself priority of third router response;Secondary route is described Device and third router operation irregularity, it is impossible to switch to Master router.Now switch to Backup in the first router The command expiration of router, the first router does not retransmit the notification packet that priority is 0 carried.
Wherein, when arranging above-mentioned preset times, the acquiescence number of retransmissions that VRRP agreement is supported can be used;Such as, 3 Secondary.
In this example, what the first router received that the second router or third router respond carries himself priority Notification packet, it is determined that VRRP backup group occurs in that new Master router, the first router can arrange deletion this The delay time of the virtual ip address of the described VRRP backup group that ground is pre-configured, and delete pre-configured after this delay time time-out The virtual ip address of described VRRP backup group, switch to Backup router.The effect of this delay time is: VRRP backs up When the second router in group or third router respond the notification packet carrying own priority to the first router, even if the Two routers switch to Master router, the second router will send the notification packet that carries own priority The virtual ip address of VRRP backup group can be used.This delay time is possible to prevent because the first router switches to Backup route Device, and when the second router in VRRP backup group not yet can use the virtual ip address of VRRP backup group, cause virtual road By the vacancy of Master router in device.The calculation of this delay time may is that notification time * (256-priority)/ 256。
In this example, after the first router switches to Backup router, in VRRP backup group in addition to the first router The second router that priority is the highest switches to Master router.If what continuation inputted in the second router switches to The order of Backup router, then the second router is by performing this order switching to Backup router, to VRRP backup group In other Backup router, i.e. the first router and the second router, send the notification packet that priority is 0 that carries.
Now the first router still switches to the order of Backup router in response;The first router receives the second tunnel After the priority sent by device is the notification packet of 0, what identification received is common notification packet, by abnormal for Master the most 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 level)/256.In this way, other is made in VRRP backup group also not switch the Backup router of Master router After receiving the notification packet that priority is 0 carried, before the first router, participate in the election of Master router.
It is 0 that other Backup router in VRRP backup group receives the priority carried of the second router transmission After notification packet, priority based on self carries out the election of Master router.According to the two kinds of Master roads proposed above Arbitrary by the way to elect of device, third router can switch to Master router.This example is sent out with 3 router explanations Bright scheme, actual by this 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 as the third router operation irregularity of Master router, no longer to the first router and The second router sends notification packet.The first router and the second router are receiving the notice that third router finally sends Timing Master exception time-out time is started during message.When the Master exception time-out time of the first router may is that notice Between * 3+ notification time * 156/256.The Master exception time-out time of the second router may is that when notification time * 3+ notices 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 first time-out, the life switching to Backup router in the first router Order was lost efficacy, and the first router switches to Master router, and sent carry preferential to the second router and third router Level is the notification packet of 100.The second router receives the notification packet that the priority carried is 100 that the first router sends After, reclocking Master exception time-out time.
Therefore, when Backup router all of in VRRP backup group all switched Master router, last weight During the Master router operation irregularity newly elected, other Backup router medium priority remaining can be made the highest The abnormal time-out time time-out of Backup router and the command expiration switching to Backup router of its response, switch again For Master router.Prevent virtual router from occurring lacking the fault of Master router.
In this example, restart and switch to the first router of Backup router just can cancel cutting in the first router It is changed to the order of Backup router.After the above-mentioned order cancellation switching to Backup router, the first router is receiving During the notification packet that the priority carried is 0 that Master router sends, no longer by this notification packet as commonly noticing report Literary composition, but set Master exception time-out time as notification time * (256-priority)/256, abnormal the most overtime at this Master The election of Master router is i.e. participated in after time time-out.Or can also be in the first router switching to Backup router The order switching to Backup router is cancelled in upper input, makes the order nothing switching to Backup router in the first router Effect.
After the first router switches to Master router again, unless occurred abnormal, otherwise the second router is unanimously located In performing to switch to the state of the order of Backup router.The second router can be restarted, or input to the second router Cancel the order switching to Backup router, so that the second router recovers normal condition.So allow when needing next time When the first router forces to switch to Backup router, the second router receives the priority carried that the first router sends Be 0 notification packet can participate in the election of normal Master router.
In the embodiment of the present application, when network manager needs to force to switch to Backup road by current Master router During by device, one can be inputted and hold for the order that Master router is switched to Backup router, Master router Row after this switches to the order of Backup router, can send one to all Backup routers in VRRP backup group and take The notification packet that priority is 0 of band, makes other Backup router in backup group according to priority size to re-elect Master router, thus need current Master router is upgraded or checks Backup to route network manager The running status of device, during forcing to switch to Backup router by current Master router, it is no longer necessary to amendment VRRP configures, and simplifies the process of realization.
The embodiment of the method for the secondary router of active router based on VRRP agreement with present invention switching is corresponding, the present invention Additionally provide the embodiment of device for performing said method embodiment.
See Fig. 3, for an embodiment of the device of the secondary router of present invention active router based on VRRP agreement switching Block diagram:
As it is shown on figure 3, the device 30 being somebody's turn to do the secondary router of active router based on VRRP agreement switching includes:
Transmitting element 310, for performing switching to of user's input as the first router of Master router After the order of Backup router, it is 0 that all Backup routers in described VRRP backup group send the priority carried Notification packet, re-elect Master route based on priority triggering in described VRRP backup group other Backup router Device.
Judging unit 320, for judging whether to receive other Backup router response in described VRRP backup group Notification packet.
Delete unit 330, if carrying described Backup road for receive that other Backup router described returns By the notification packet of device own priority, delete the virtual ip address of local pre-configured described VRRP backup group, switch to Backup router.
In this example, described transmitting element 310 is further used for:
Without receiving the notification packet that described Backup router returns, retransmit the priority carried be 0 logical Accuse message, and after number of retransmissions reaches preset times, if not receiving the notification packet that described Backup router returns yet, Then stop switching to described in response the order of Backup router.
In this example, described judging unit 320 is further used for:
The described the first router switching to Backup router receives the Master router re-elected out and sends The notification packet that the priority carried is 0 after, in default Master exception time-out time, be not responding to this notification packet.
In this example, described transmitting element 310 is further used for:
When in described default Master exception time-out time, do not receive the Master router re-elected out yet and send out The notification packet sent, it is determined that the described Master router operation irregularity re-elected out, is Master road by self-recovery By device.
In this example, the order switching to Backup router described in also includes:
The order of the described Backup of switching to router is restarted in the described the first router switching to Backup router Rear inefficacy;
The described the first router switching to Backup router performs the cancellation of user's input and switches to Backup to route After the order of device, described in switch to the command expiration of Backup router.
In this example, described deletion unit 330, it is further used for:
The delay time deleting virtual address is set, and arrive delete after described delay time local pre-configured described in The virtual ip address of VRRP backup group.
The embodiment of the device of the secondary router of the application active router based on VRRP agreement switching can be applied at VRRP On router in backup group.Device embodiment can be realized by software, it is also possible to by hardware or software and hardware combining Mode realizes.As a example by implemented in software, as the device on a logical meaning, it is by the road in the VRRP backup group of its place By the processor of device, computer program instructions corresponding in nonvolatile memory is read what operation in internal memory was formed.From firmly For part aspect, as shown in Figure 4, for the device place VRRP of the secondary router of the application active router based on VRRP agreement switching A kind of hardware structure diagram of the router in backup group, except the processor shown in Fig. 4, internal memory, network interface and non-volatile Outside property memorizer, in embodiment, the router in the VRRP backup group at device place is generally according to this master based on VRRP agreement The actual functional capability of the device of the secondary router of router switching, it is also possible to include other hardware, this is repeated no more.
In said apparatus, the function of unit and the process that realizes of effect specifically refer to corresponding step in said method Realize process, do not repeat them here.
For device embodiment, owing to it corresponds essentially to embodiment of the method, so relevant part sees method in fact The part executing example illustrates.Device embodiment described above is only schematically, wherein said as separating component The unit illustrated can be or may not be physically separate, and the parts shown as unit can be or can also It not physical location, i.e. may be located at a place, or can also be distributed on multiple NE.Can be according to reality Need to select some or all of module therein to realize the purpose of the application scheme.Those of ordinary skill in the art are not paying In the case of going out creative work, i.e. it is appreciated that and implements.
The foregoing is only the preferred embodiment of the application, not in order to limit the application, all essences in the application Within god and principle, any modification, equivalent substitution and improvement etc. done, should be included within the scope of the application protection.

Claims (12)

1. a method for the secondary router of active router based on VRRP agreement switching, is applied to the route in VRRP backup group Device, it is characterised in that including:
After the order switching to Backup router of the first router execution user's input of Master router, to institute State all Backup routers in VRRP backup group and send the notification packet that priority is 0 carried, to trigger described VRRP In backup group, other Backup router re-elects Master router based on priority;
Judge whether to receive the notification packet that in described VRRP backup group, other Backup router is responded;
If what described in receiving, other Backup router returned carries other Backup router own priority described Notification packet, deletes the virtual ip address of local pre-configured described VRRP backup group, switches to Backup router.
Method the most according to claim 1, it is characterised in that described method also includes:
Without receiving the notification packet that other Backup router described returns, retransmit the priority carried be 0 logical Accuse message, and after number of retransmissions reaches preset times, if not receiving the notice that other Backup router described returns yet Message, then stop switching to described in response the order of Backup router.
Method the most according to claim 1, it is characterised in that described method also includes:
What the described the first router switching to Backup router received that the Master router that re-elects out sends takes After the notification packet that priority is 0 of band, in default Master exception time-out time, it is not responding to this notification packet.
Method the most according to claim 3, it is characterised in that described method also includes:
When, in described default Master exception time-out time, not receiving what the Master router re-elected out sent yet Notification packet, it is determined that the described Master router operation irregularity re-elected out, is Master router by self-recovery.
Method the most according to claim 4, it is characterised in that described method also includes:
The order of the described Backup of switching to router is lost after the described the first router switching to Backup router is restarted Effect;
The described the first router switching to Backup router performs the cancellation of user's input and switches to Backup router After order, described in switch to the command expiration of Backup router.
Method the most according to claim 1, it is characterised in that the local pre-configured described VRRP backup group of described deletion Virtual ip address, also includes:
The delay time deleting virtual address is set, and after arriving described delay time, deletes local pre-configured described VRRP The virtual ip address of backup group.
7. a device for the secondary router of active router based on VRRP agreement switching, is applied to the route in VRRP backup group Device, it is characterised in that including:
Transmitting element, switches to Backup router for input as the first router of Master router execution user Order after, all Backup routers in described VRRP backup group send the notification packet that priority is 0 carried, with Trigger other Backup router in described VRRP backup group and re-elect Master router based on priority;
Judging unit, for judging whether to receive the notice report of other Backup router response in described VRRP backup group Literary composition;
Delete unit, if carrying other Backup router described for receive that other Backup router described returns The notification packet of own priority, deletes the virtual ip address of local pre-configured described VRRP backup group, switches to Backup Router.
Device the most according to claim 7, it is characterised in that described transmitting element is further used for:
Without receiving the notification packet that other Backup router described returns, retransmit the priority carried be 0 logical Accuse message, and after number of retransmissions reaches preset times, if not receiving the notice that other Backup router described returns yet Message, then stop switching to described in response the order of Backup router.
Device the most according to claim 7, it is characterised in that described judging unit is further used for:
What the described the first router switching to Backup router received that the Master router that re-elects out sends takes After the notification packet that priority is 0 of band, in default Master exception time-out time, it is not responding to this notification packet.
Device the most according to claim 9, it is characterised in that described transmitting element is further used for:
When, in described default Master exception time-out time, not receiving what the Master router re-elected out sent yet Notification packet, it is determined that the described Master router operation irregularity re-elected out, is Master router by self-recovery.
11. devices according to claim 10, it is characterised in that described in switch to the order of Backup router also to wrap Include:
The order of the described Backup of switching to router is lost after the described the first router switching to Backup router is restarted Effect;
The described the first router switching to Backup router performs the cancellation of user's input and switches to Backup router After order, described in switch to the command expiration of Backup router.
12. devices according to claim 7, it is characterised in that described deletion unit is further used for:
The delay time deleting virtual address is set, and after arriving described delay time, deletes local pre-configured described VRRP The virtual ip address of backup group.
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 true CN106100987A (en) 2016-11-09
CN106100987B 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)

Cited By (3)

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

Citations (8)

* 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)
US20110164494A1 (en) * 2010-01-07 2011-07-07 Samsung Electronics Co., Ltd. Method for operating a virtual router redundancy protocol router and communication system therefor
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

Patent Citations (8)

* 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)
US20110164494A1 (en) * 2010-01-07 2011-07-07 Samsung Electronics Co., Ltd. Method for operating a virtual router redundancy protocol router and communication system therefor
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

Cited By (4)

* 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
US11716279B2 (en) 2020-08-19 2023-08-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
CN114143253A (en) * 2021-11-24 2022-03-04 锐捷网络股份有限公司 VRRP back-switching method and device

Also Published As

Publication number Publication date
CN106100987B (en) 2019-06-07

Similar Documents

Publication Publication Date Title
US10686749B2 (en) Packet sending method and network device
CN102035676B (en) ARP (Address Resolution Protocol) interaction based method and equipment for detecting and recovering link fault
US8208464B2 (en) Data communication system and method for preventing packet proliferation in a multi-device link aggregate network
EP1969768B1 (en) Method and system for providing user access to communication services, and related computer program product
EP1482694B1 (en) Virtual private network fault tolerance
EP3605968B1 (en) N:1 stateful application gateway redundancy model
AU2003204799B2 (en) Method for implementing router interface backup with Virtual Router Redundancy Protocol
JP5077098B2 (en) Transmission method and transmission apparatus in ring network
CN105471725B (en) Pass through the method for routing and device of autonomous system
CN104125088A (en) Method of interaction information between systems in same terminal of DRNI and system thereof
CN103354521B (en) The optimization method of a kind of LSP based on LDP renewal and device
EP1482693B1 (en) Enhanced virtual router redundancy protocol
CN106100987A (en) A kind of method and device of the secondary router of active router based on VRRP agreement switching
CN113141268A (en) Method and device for realizing redundancy backup of link aggregation group of manual aggregation
CN105939254B (en) The method and device of VRRP backup group state switching
CN102932230B (en) Method and device for virtual router redundancy protocol backup group issuing routing
CN107770061B (en) Method and equipment for forwarding message
CN107995106A (en) A kind of interchanger redundant system of data storing platform
CN113037565B (en) Message processing method and device
CN105939215B (en) The method and device of VRRP backup group state switching
Osman et al. Hybrid SDN: Evaluation of the impact of an unreliable control channel
CN110138656B (en) Service processing method and device
CN107819680A (en) A kind of method of service switchover, the network equipment
CN111817953A (en) Method and device for electing master equipment based on Virtual Router Redundancy Protocol (VRRP)
EP2693706A1 (en) Method and device for implementing multi-protection overlapped protection groups

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