CN101702681B - Switching method and device of main/standby router in virtual route redundancy protocol - Google Patents

Switching method and device of main/standby router in virtual route redundancy protocol Download PDF

Info

Publication number
CN101702681B
CN101702681B CN2009102263725A CN200910226372A CN101702681B CN 101702681 B CN101702681 B CN 101702681B CN 2009102263725 A CN2009102263725 A CN 2009102263725A CN 200910226372 A CN200910226372 A CN 200910226372A CN 101702681 B CN101702681 B CN 101702681B
Authority
CN
China
Prior art keywords
router
dynamic priority
equipment
state
main road
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.)
Expired - Fee Related
Application number
CN2009102263725A
Other languages
Chinese (zh)
Other versions
CN101702681A (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.)
Fujian Star Net Communication Co Ltd
Original Assignee
Fujian Star Net Communication 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 Fujian Star Net Communication Co Ltd filed Critical Fujian Star Net Communication Co Ltd
Priority to CN2009102263725A priority Critical patent/CN101702681B/en
Publication of CN101702681A publication Critical patent/CN101702681A/en
Application granted granted Critical
Publication of CN101702681B publication Critical patent/CN101702681B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a switching method and a device of a main/standby router in a virtual route redundancy protocol. The method comprises the following steps: the main router in the virtual router group receives the first announcement information which is sent by the first router except for the main router in the group and which carries the first dynamic priority value of the first router; the main router compares the first dynamic priority value with the own second dynamic priority value, if the first dynamic priority value is less than the second dynamic priority value, then the main router state is maintained; and the first dynamic priority value and the second dynamic priority value are respectively the number of the message of which the destination MAC address is the virtual MAC address of the virtual router group which is respectively received in the recent announcement period by the first router and the main router. By introducing the mechanism of dynamic priority to the VRRP protocol, the invention avoids network oscillation caused by unnecessary switching of main/standby router, thus improving the stability of the network.

Description

The changing method of master-slave back-up route apparatus and equipment in the Virtual Router Redundacy Protocol
Technical field
The present invention relates to communication technical field, relate in particular to the changing method and the equipment of master-slave back-up route apparatus in a kind of Virtual Router Redundacy Protocol.
Background technology
Development along with technique of internet; People have proposed increasingly high requirement to the reliability and the stability of network; Virtual Router Redundacy Protocol (Virtual Router Redundancy Protocol; Being called for short VRRP) technology is arisen at the historic moment, and is a kind of preferable technical scheme that improves network reliability.As a kind of protocol for error tolerance, VRRP can guarantee when the next hop router of main frame in the local area network (LAN) breaks down, can replace by another router timely, thus continuity of keeping in communication and reliability.
Usually, in the VRRP agreement, a virtual router group is made up of an active router and some backup routers in the same network segment.Wherein, active router is realized the real function that E-Packets, and regularly sends the advertised information that carries self priority to backup router; If active router breaks down; When remaining backup router does not receive advertised information, can carry out the election of active router, the backup router that priority is the highest is elected successfully; Become new active router, take over the work of original active router.In addition; When a virtual router group is in contention mode; Backup router wherein is if receive the advertised information that its low active router of priority ratio sends; Also can initiatively switch to the state of active router, and then the main road of active router carried out " seizing " by state through sending advertised information.Usually, the priority of indication is specially a fixing priority valve here, and the size of this value is by cost, performance, reliability and the decision of other management strategy of this router, and for some fixing routers, this value is generally the value of immobilizing.
But the inventor finds in the process of invention: in the practical application, the situation of communication link fails or self functional fault may take place in active router, and this moment, backup router did not receive the advertised information of its transmission, can elect new active router.And after former active router recovers normally; If being the communication failure owing to former active router, new active router produces; Two active routers can occur in the group, cause the competition of the active router of a new round, and because the static priority of former active router is higher than new active router; Former active router is competition success again, causes that the role of active router in the group is switched.And the faults itself of former active router produces if new active router is, two kinds of situation will appear in this moment: if former active router has highest priority level 255, its directly the entering main road cause role's switching of active router by state; Even former active router does not have the highest priority level, because its static priority is higher than new active router all the time, under contention mode, former active router can be competed equally becomes active router, causes that the role of active router is switched.
Yet the handoff procedure of the active router of this moment is fully unnecessary in the practical application; Because network linking is recovered normal at former active router and has been recovered stable before; Be the handoff procedure of current unnecessary active router on the contrary, caused the unstable of network again again and made network produce reforming phenomena.
Summary of the invention
The embodiment of the invention provides the changing method and the equipment of master-slave back-up route apparatus in a kind of Virtual Router Redundacy Protocol; In the virtual group of router devices of VRRP that solves prior art; When malfunction returned to normal condition, the main road of the new round of appearance was by the election competition of equipment by equipment for original main road, and perhaps former main road is seized by equipment again becomes main road by equipment; Thereby the unnecessary main road that causes is by the switching of equipment, the problem of the unstable networks of bringing.
The embodiment of the invention provides the changing method of master-slave back-up route apparatus in a kind of Virtual Router Redundacy Protocol, comprising:
Be in the virtual group of router devices main road by the main road of state by equipment receive in the said virtual group of router devices except that said main road by first advertised information that first routing device the equipment sends, carry the first dynamic priority weights of said first routing device in said first advertised information;
Said main road is compared said first dynamic priority weights and the second dynamic priority weights of self by equipment, if the said first dynamic priority weights less than the said second dynamic priority weights, then keep said main road by state;
Said first dynamic priority weights and the said second dynamic priority weights are respectively, said first routing device and said main road by equipment in a nearest announcement cycle, the target MAC (Media Access Control) address that receives respectively is the message number of the virtual mac address of said virtual group of router devices.
The embodiment of the invention also provides the changing method of master-slave back-up route apparatus in a kind of Virtual Router Redundacy Protocol, comprising:
The standby routing equipment that is in the route stand-by state in the virtual group of router devices receives second advertised information that the secondary route equipment except that said standby routing equipment sends in the said virtual group of router devices, carries the 3rd dynamic priority weights of said secondary route equipment in said second advertised information;
Said standby routing equipment compares said the 3rd dynamic priority weights and the 4th dynamic priority weights of self, if said the 3rd dynamic priority weights greater than said the 4th dynamic priority weights, then keep said route stand-by state;
Said the 3rd dynamic priority weights and the 4th dynamic priority weights are respectively, said secondary route equipment and said standby routing equipment in a nearest announcement cycle, the target MAC (Media Access Control) address that receives respectively is the message number of the virtual mac address of said virtual group of router devices.
The embodiment of the invention also provides main road in a kind of Virtual Router Redundacy Protocol by equipment, comprising:
First receiver module is used for receiving virtual group of router devices except that first advertised information of said main road by the transmission of first routing device the equipment, carries the first dynamic priority weights of said first routing device in said first advertised information;
The first dynamic priority weights comparison module; Be used for said first dynamic priority weights and the second dynamic priority weights of self are compared; If the said first dynamic priority weights are less than the said second dynamic priority weights, then keep said main road by the main road of equipment by state;
Said first dynamic priority weights and the said second dynamic priority weights are respectively, said first routing device and said main road by equipment in a nearest announcement cycle, the target MAC (Media Access Control) address that receives respectively is the message number of the virtual mac address of said virtual group of router devices.
The embodiment of the invention also provides the standby routing equipment in a kind of Virtual Router Redundacy Protocol, comprising:
Second receiver module is used for receiving second advertised information that the secondary route equipment of virtual group of router devices except that said standby routing equipment sends, and carries the 3rd dynamic priority weights of said secondary route equipment in said second advertised information;
The second dynamic priority weights comparison module; Be used for said the 3rd dynamic priority weights and the 4th dynamic priority weights of self are compared; If said the 3rd dynamic priority weights greater than said the 4th dynamic priority weights, then keep the route stand-by state of said standby routing equipment;
Said the 3rd dynamic priority weights and the 4th dynamic priority weights are respectively, said secondary route equipment and said standby routing equipment in a nearest announcement cycle, the target MAC (Media Access Control) address that receives respectively is the message number of the virtual mac address of said virtual group of router devices.
The embodiment of the invention also provides the routing device in a kind of Virtual Router Redundacy Protocol, comprises routing state judge module and processing module; Wherein,
Said routing state judge module is used for, and judges said routing device residing routing state in virtual group of router devices;
Said processing module is used for, if know that according to judgement said routing device is in main road by state, then calls first processing module, if know that according to judgement said routing device is in the route stand-by state, then calls second processing module;
Said first processing module comprises above-mentioned main road by equipment, and said second processing module comprises like above-mentioned standby routing equipment.
The changing method of master-slave back-up route apparatus and equipment in the Virtual Router Redundacy Protocol that the embodiment of the invention provides; Through in the main road of VRRP agreement is elected by equipment, introducing the mechanism of " dynamic priority "; With each VRRP routing device in a nearest announcement cycle; The target MAC (Media Access Control) address that receives is the message number of the virtual mac address of virtual routing device; As the dynamic priority of this VRRP routing device, make that the priority valve of each VRRP routing device changes along with the variation of its actual workload in the virtual group of router devices, thereby make that the main road of electing based on the VRRP under this dynamic priority mechanism is more reasonable by equipment; The network concussion of having avoided unnecessary main road to be switched by the role of equipment and having brought has improved stability of network.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art; To do one to the accompanying drawing of required use in embodiment or the description of the Prior Art below introduces simply; Obviously, the accompanying drawing in describing below is some embodiments of the present invention, for those of ordinary skills; Under the prerequisite of not paying creative work property, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart of the changing method embodiment one of master-slave back-up route apparatus in the Virtual Router Redundacy Protocol of the present invention;
Fig. 2 is the flow chart of the changing method embodiment two of master-slave back-up route apparatus in the Virtual Router Redundacy Protocol of the present invention;
Fig. 3 is the flow chart of the changing method embodiment three of master-slave back-up route apparatus in the Virtual Router Redundacy Protocol of the present invention;
Fig. 4 is the flow chart of the changing method embodiment four of master-slave back-up route apparatus in the Virtual Router Redundacy Protocol of the present invention;
Fig. 5 is the structural representation of the main road in the Virtual Router Redundacy Protocol of the present invention by apparatus embodiments;
Fig. 6 is the structural representation of the standby routing equipment embodiment in the Virtual Router Redundacy Protocol of the present invention;
Fig. 7 is the structural representation of the routing device embodiment in the Virtual Router Redundacy Protocol of the present invention.
Embodiment
For the purpose, technical scheme and the advantage that make the embodiment of the invention clearer; To combine the accompanying drawing in the embodiment of the invention below; Technical scheme in the embodiment of the invention is carried out clear, intactly description; Obviously, described embodiment is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills are not making the every other embodiment that is obtained under the creative work prerequisite, all belong to the scope of the present invention's protection.
Core of the present invention is: the notion of in the VRRP agreement, introducing a dynamic priority for each the VRRP routing device in the virtual group of router devices; Be dynamic priority weights of each routing device definition; These dynamic priority weights are that its corresponding routing device is in a nearest announcement cycle; The virtual medium access control that receives (Media Access Control is called for short MAC) address is the message number of the virtual mac address of this virtual group of router devices.And when in virtual group of router devices, occurring main road by the election of equipment competition; At first confirm other height of priority each other through the size of dynamic priority weights more separately; Only when dynamic priority weights equal and opposite in direction separately, further more each other the size of static priority valve.
This technical scheme makes in embodiments of the present invention; The real work amount of the forwarding data message of each routing device in a nearest announcement cycle; Become the primary factor of its level of priority of judgement height, and based on the election of the main road on the dynamic priority, avoided in the virtual group of router devices after main road is stable by equipment work by equipment; Because the adding again of the routing device that former static level of priority is higher in the group; And the unnecessary main road that causes is by the switching of equipment, with and the network concussion that brings, improved stability of network.
Fig. 1 is the flow chart of the changing method embodiment one of master-slave back-up route apparatus in the Virtual Router Redundacy Protocol of the present invention, and as shown in Figure 1, present embodiment specifically comprises the steps:
Step 100; Be in main road in the virtual group of router devices and remove first advertised information that main road is sent by first routing device the equipment in the virtual group of router devices, the first dynamic priority weights of extraction first routing device from first advertised information by equipment if receive by the main road of state;
Concrete; Each routing device of indication can have the communication equipment of data forwarding function for router, switch etc. in embodiments of the present invention; And in present embodiment and following embodiment; Only be that example is explained, but need be appreciated that, as long as possess the category that the device of the corresponding function described in the embodiment of the invention all belongs to the present invention and protected with the router.
In a VRRP virtual router group; Only be in main road is just possessed other routers transmission advertised information in oriented group by the active router of state function; Thereby in normal operation; Owing to include only an active router in a virtual router group, this active router can not receive the advertised information that other routers send.But in practical application; When active router breaks down, begin to elect new active router in the virtual router group, in the election process of this new active router; And former active router recovers again just often after new active router produces; The situation that two above active routers might occur and deposit, corresponding, be in main road might be received another active router transmission in the group by the active router of state advertised information this moment.Particularly, an active router under following three kinds of situation, can receive the advertised information that another router sends in the group usually:
First kind of situation: when the active router in the virtual router group broke down, each backup router did not receive the advertised information that active router sends in three continuous announcement cycles, with the election that begins to carry out new active router.At first, each backup router will declare directly that oneself becomes active router, from the state of route stand-by switch to main road by state, and send the advertised information that carries priority valve each other, participate in thus in the election process of new active router.At this moment, these are in main road and will be received by all active routers of state and be in the advertised information that main road is sent by other active routers of state in the group equally;
Second kind of situation; Because the VRRP virtual router group is in inadequately in the stable or congested network environment usually, the communication link fails of networking takes place in the active router in virtual router group, after other member's routers are elected a new active router; Because the election of this new active router is not because former active router self functional fault occurs; Cisco unity malfunction causes that therefore this former active router is after new active router produces, owing to do not receive the advertised information that new active router sends always; Can't learn the existence of new active router, be in all the time main road by state.And when former active router from the networking malfunction return to the networking normal state after; Recover on the normal basis at its communication link; New active router in the group can receive the advertised information of its transmission thus; Simultaneously, this former active router also will receive the advertised information that new active router sends equally;
The third situation; The functional fault of self takes place in active router in virtual router group, after other member's routers are elected a new active router thus, when former active router functional rehabilitation; When entering into this virtual router group again; If the static priority that has of former active router is the highest static priority valve 255 in the group, this former active router will be directly switch to main road by state, and send advertised information and give other routers in the group.At this moment, the new active router in the virtual router group will receive the advertised information of its transmission, and simultaneously, this former active router also will receive the advertised information that new active router sends.
This shows; In virtual router group, be in main road by the active router of state at least under above-mentioned three kinds of situation; With receiving the advertised information that another router sends in the group; And learn thus in virtual router group this moment except self, also have other router also be in simultaneously main road by state, and cause the competition process of an active router between two or more active routers thus.Particularly, in the present embodiment, claim that the advertised information that active router receives at this moment is first advertised information, claim that the router of this first advertised information of transmission is first router in the virtual router group.And after active router receives this first advertised information,, in the present embodiment, claim that these dynamic priority weights that extract this moment are the first dynamic priority weights with the dynamic priority weights that at first from first advertised information, extract first router that wherein carries.
Particularly, in the present embodiment, the implication of these first dynamic priority weights for its first corresponding router in a nearest announcement cycle, the target MAC (Media Access Control) address that receives is the message number of the virtual mac address of the virtual router group under it.For a virtual router group in the VRRP agreement; It externally shows as unique virtual IP protocol (Internet Protocol; Be called for short IP) address and a virtual mac address; Have only the active router in this virtual router group just to have this virtual ip address and virtual mac address, and the responsible data message that sends through other network elements in this virtual ip address reception network, and the data message that passes through other network elements transmissions in this virtual mac address reception and the transmission network.Therefore, in a virtual router group, have only active router just can receive purpose IP address or target MAC (Media Access Control) address, be the virtual ip address of this virtual router group or the packet of virtual mac address.And further, target MAC (Media Access Control) address is that having contained purpose IP address is the notion of the packet of virtual ip address in the notion of packet of virtual mac address.Therefore; With the dynamic priority value defined of router in a nearest announcement cycle, the target MAC (Media Access Control) address that receives is the message number of the virtual mac address of its virtual router group; Its meaning is; With the workload that the real data of each router in the nearest announcement cycle is transmitted, decide the height of its dynamic priority.
So; Based on above-mentioned definition; For the active router in the virtual router group; As long as it is in normal operating conditions, just can constantly receive the packet that other network elements send in the network basically, the target MAC (Media Access Control) address of this packet is the virtual mac address of the virtual router group under it.And no matter constantly at what; The dynamic priority weights of each backup router are zero forever; And the dynamic priority weights of in running order active router are a positive forever, greater than the dynamic priority weights of each backup router and not in running order active router.
Step 101, active router compares the first dynamic priority weights and the second dynamic priority weights of self, if the first dynamic priority weights less than the second dynamic priority weights, then keep main road by state.
Be in main road by the active router of state if receive after first advertised information that first router sends; Learn also have in the virtual router group this moment another one router also be in main road by state, so will produce the competition process of a main road between these two routers this moment by state.Particularly; Active router extracts from first advertised information that receives after the first dynamic priority weights of first router; Itself and self dynamic priority valve are carried out the comparison of size, determine through result relatively who is the real active router in this virtual router group.Particularly, in the present embodiment, claim that active router self dynamic priority valve is the second dynamic priority weights.If active router is according to relatively learning; The first dynamic priority weights of first router are less than the second dynamic priority weights of self; Promptly the dynamic priority of first router is lower than the self dynamic priority; This active router will continue to keep main road by state, and need not to carry out main road by and the switching of route stand-by state.
Particularly, the processing procedure of this step is applied in the above-mentioned several kinds of situation, will be to bringing useful effect based on the stability of network of VRRP agreement.For example, when the former active router in the virtual router group from the networking fault recovery behind the networking state, new active router receives the advertised information that former active router sends in this virtual router group, has wherein carried the first dynamic priority weights of former active router.So,, new active router extracts the first dynamic priority weights from the advertised information that receives after, its second dynamic priority weights with self are carried out the size comparison according to this step.Because in a nearest announcement cycle, new router is in the state of work in virtual router group, constantly receive the packet that target MAC (Media Access Control) address is the virtual router group virtual mac address, its second dynamic priority weights must be a positive integer; And former active router is not because the fault of communication link receives any packet, though its be in equally main road by state, this moment, its first dynamic priority weights were zero.Obviously, according to comparative result, the first dynamic priority weights, continue to carry out the function of active router, and need not to carry out the switching of active router so new active router will keep the operating state of its active router less than the second dynamic priority weights.This compares with same case of the prior art; In the prior art; New active router is with the static priority valve of former active router and self static priority valve relatively the time, owing to the static priority valve of former active router is higher than the static priority valve of new active router all the time, thereby must recover under the stable status at network; Again produce the switching of an active router, and brought concussion to network.
Further; In above-mentioned the third situation; After the former active router in the virtual router group returns to normal condition from functional fault, when getting into this virtual router group again, as if the highest static priority valve 255 in the group that has of this former active router; It will directly get into main road by state, and send advertised information.So this moment, the new active router in this virtual router group will receive the advertised information of its transmission, wherein carry the first dynamic priority weights of former active router.According to this step, new active router extracts the first dynamic priority weights from the advertised information that receives after, its second dynamic priority weights with self are carried out the size comparison.Equally, because in a nearest announcement cycle, new router is in the state of work, constantly receives the packet that target MAC (Media Access Control) address is the virtual router group virtual mac address always, its second dynamic priority weights must be a positive integer; And former active router is because functional fault is worked, so its data forwarding workload in a nearest announcement cycle is zero, and promptly this moment, its first dynamic priority weights were zero.Obviously, according to comparative result, the first dynamic priority weights are less than the second dynamic priority weights; So; Likewise, new active router will keep the operating state of its active router, continue to carry out the function of active router; And need not to carry out the switching of active router, likewise avoided the switching of active router and the concussion of the network that brings.
Therefore; In the present embodiment; Through being the new dynamic priority weights of each router definition in the virtual router group; When the former active router of virtual router group after malfunction returns to normal condition, when new active router possibly receive the advertised information that former active router sends, the size of the dynamic priority weights of the former active router that at first relatively carries in this advertised information and self dynamic priority weights; Thereby guaranteed that new active router need not to switch to the state of route stand-by from the active router state at this moment, avoided the switching of unnecessary active router and the unstable networks that causes.
The changing method of master-slave back-up route apparatus in the Virtual Router Redundacy Protocol of the embodiment of the invention; Through in the main road of VRRP agreement is elected by equipment, introducing the mechanism of " dynamic priority "; With each VRRP routing device in a nearest announcement cycle; The target MAC (Media Access Control) address that receives is the message number of the virtual mac address of virtual routing device; As the dynamic priority of this VRRP routing device, make that the priority valve of each VRRP routing device changes along with the variation of its actual workload in the virtual group of router devices, thereby make that the main road of electing based on the VRRP under this dynamic priority mechanism is more reasonable by equipment; The network concussion of having avoided unnecessary main road to be switched by the role of equipment and having brought has improved stability of network.
Fig. 2 is the flow chart of the changing method embodiment two of master-slave back-up route apparatus in the Virtual Router Redundacy Protocol of the present invention, and as shown in Figure 2, present embodiment comprises the steps:
Step 200; Be in main road in the virtual router group by first advertised information that first router except that active router in the active router reception virtual router group of state sends, carry the first dynamic priority weights of first router in this first advertised information;
In a VRRP virtual router group; When wherein being in the active router of main road and receiving the advertised information of another router transmission in the group by state; Learn this moment virtual router group in except self; Also have other router also be in simultaneously main road by state, so will produce the competition process of an active router between these two or more active routers.Particularly, active router will extract the transmit leg of this first advertised information that wherein comprises, i.e. the dynamic priority weights of first router at first from first advertised information that receives.In the present embodiment; Claim that these dynamic priority weights are the first dynamic priority weights, and the implication of these first dynamic priority weights for the first corresponding router in a nearest announcement cycle, the target MAC (Media Access Control) address that receives is the message number of the virtual mac address of the virtual router group under it.
Step 201; Active router compares the first dynamic priority weights and the second dynamic priority weights of self, and less than the second dynamic priority weights, then execution in step 202 as if the first dynamic priority weights; If the first dynamic priority weights equal the second dynamic priority weights; Then execution in step 203, and greater than the second dynamic priority weights, then execution in step 205 as if the first dynamic priority weights;
In order to confirm that virtual router group is in the competition election of this active router; The router of final competition success; Active router is after extracting the first dynamic priority weights from first advertised information that receives, with these first dynamic priority weights and self dynamic priority valve, promptly the second dynamic priority weights carry out size relatively; And, carry out different operation according to different comparative results.
Step 202, active router keep main road by state;
Particularly; If in above-mentioned steps 201; First dynamic priority weights of first router of the active router that receives advertised information through will sending this advertised information and the second dynamic priority weights of self compare; Find the second dynamic priority weights of the first dynamic priority weights less than self, this active router confirms that thus the level of priority of first router is lower than the level of priority of self.So, this active router still keep its main road by state, and need not to switch in the state of route stand-by.
In the present embodiment; Through the dynamic priority weights with router, promptly the real work amount that in a nearest announcement cycle, E-Packets of router is used as judging the most important condition of its priority height, has avoided thus in the virtual router group behind the active router working stability; Because the adding again of the router that former static level of priority is higher in the group; And the switching of the active router that causes, thereby the problem of the network that brings concussion has improved stability of network.
Step 203, active router are extracted the first static priority valve of first router from first advertised information;
Step 204; Active router compares the first static priority valve and the second static priority valve of self, and less than the second static priority valve, then execution in step 202 as if the first static priority valve; If the first static priority valve is greater than the second static priority valve, then execution in step 205;
If in above-mentioned steps 201; Active router is through comparing first dynamic priority weights of first router and the second dynamic priority weights of self; Find that the first dynamic priority weights equal the second dynamic priority weights of self; Promptly this moment, dynamic priority rank each other equated, only can not determine the height of its priority with the dynamic priority weights.So active router extracts the first static priority valve of first router further from first advertised information; And with the static priority valve of itself and self; Promptly the second static priority valve carries out size relatively, confirms other height of priority each other with this.Particularly, this static state priority valve then is the numerical value in one relevant with corresponding router self performance, changeless 1~255 scope, is the implication of the priority valve of each router in the virtual router group in the prior art.
If through comparing; The active router that receives advertised information is known the second static priority valve of the first static priority valve of first router less than self; This active router is confirmed the level of priority of the level of priority of first router less than self thus, so, this active router keep its main road by state; And need not to switch in the state of route stand-by, promptly carry out above-mentioned steps 202.Otherwise; If active router is through relatively knowing the second static priority valve of the first static priority valve greater than self; Promptly the level of priority of first router is greater than the level of priority of self; So this active router will be switched to the state of route stand-by by state from main road, withdraw from the competition of active router.
Particularly, above-mentioned situation appears at usually when the active router in the virtual router group breaks down, in the VRRP election process of each backup router.In this election process, each backup router will declare at first that all oneself is active router, and switch to main road by state, and therefore, a plurality of active routers occurred in the group this moment.Each active router receives the advertised information that the other side sends each other, and at first dynamic priority weights in the advertised information that receives and self dynamic priority valve is compared.Because in a last announcement cycle; These active routers all are in the state of route stand-by; Dynamic priority weights separately are zero, and therefore, each active router is basis static priority valve each other further; Confirm other height of priority each other, and then elect new active router.
Step 205, active router switches to the route stand-by state from main road by state.
If in above-mentioned steps 201; Active router is through comparing first dynamic priority weights of first router and the second dynamic priority weights of self; Find the second dynamic priority weights of the first dynamic priority weights greater than self; Or in above-mentioned steps 204, active router is to find that the first static priority valve is greater than the second static priority valve through first static priority valve of further comparison first router and the second static priority valve of self.Promptly in big or small comparison procedure to representative other priority valve of priority each other; Find the level of priority of the level of priority of first router greater than self; Active router will withdraw from the competition of active router thus; And switch to by state the state of route stand-by from main road, transfer backup router to.
The method for switching master-slave back-up route apparatus of the Virtual Router Redundacy Protocol of the embodiment of the invention; Through in the main road of VRRP agreement is elected by equipment, introducing the mechanism of " dynamic priority "; With each VRRP routing device in a nearest announcement cycle; The target MAC (Media Access Control) address that receives is the message number of the virtual mac address of virtual routing device; As the dynamic priority of this VRRP routing device, make that the priority valve of each VRRP routing device changes along with the variation of its actual workload in the virtual group of router devices, thereby make that the main road of electing based on the VRRP under this dynamic priority mechanism is more reasonable by equipment; The network concussion of having avoided unnecessary main road to be switched by the role of equipment and having brought has improved stability of network.
Fig. 3 is the flow chart of the changing method embodiment three of master-slave back-up route apparatus in the Virtual Router Redundacy Protocol of the present invention, and as shown in Figure 3, present embodiment comprises the steps:
Step 300; The backup router that is in the route stand-by state in the virtual router group receives second advertised information that the secondary route device except that backup router sends in the virtual router group, carries the 3rd dynamic priority weights of secondary route device in this second advertised information;
In a VRRP virtual router group; The backup router that is in the route stand-by state is not born the forwarding task of data message; Detect and monitor but be responsible for operating state to active router; If it does not receive the advertised information that active router sends in continuous three announcement cycles, can think that then fault has taken place this active router, thereby between each backup router, will produce the election of an active router.But; For the virtual router group that is under the contention mode, the backup router in the group can compare priority valve that carries in this advertised information and the priority valve of self after the advertised information that receives the active router transmission; If it finds the priority valve of the priority valve of active router less than self; This backup router will then switch to main road by state, and then the competition through active router is carried out " seizing " with the main road in the group by state.
This backup router " is seized " situation of the interior main road of group by state; Usually return to normal condition at former active router from functional fault when virtual router group; Take place when returning this virtual router group;, the static priority of former active router during highest priority 255, when it returns virtual router group, will not select entering route stand-by state in being group.But because its static priority is higher than the active router of newly electing in the group all the time; Therefore in the prior art; Former active router is receiving the advertised information that new active router sends this moment; And after being lower than self priority through the new active router priority of relatively learning of static priority valve, former active router will become active router again through " seizing ", from and will cause the switching of an active router.Yet this time role's handoff procedure of active router is fully unnecessary in the practical application; Because it is stable that network has recovered at this moment; Be the handoff procedure of current unnecessary active router on the contrary, caused the unstable of network again again and made network produce reforming phenomena.
So; In the present embodiment; Define the notion of a dynamic priority for router based on the VRRP agreement; And each router all possesses dynamic priority weights, should for its corresponding router in a nearest announcement cycle, the target MAC (Media Access Control) address that receives is the message number of the virtual mac address of the virtual router group under it, is specially this router was transmitted data message in a last announcement cycle real work amount.And when the backup router in the virtual router group receives the advertised information of the active router transmission in organizing; This backup router at first extracts the dynamic priority weights of the active router that carries in this advertised information, can whether carry out " seizing " to the routing state of living of active router according to the decision of this dynamic priority weights with expectation.
Particularly; In the present embodiment; Claiming to be in the advertised information that the backup router of route stand-by state receives is second advertised information; The active router of claiming this second advertised information of transmission is the secondary route device in the virtual router group, and claims that the corresponding dynamic priority weights of this secondary route device are the 3rd dynamic priority weights.
Step 301, backup router compares the 3rd dynamic priority weights and the 4th dynamic priority weights of self, if the 3rd dynamic priority weights greater than the 4th dynamic priority weights, then keep the route stand-by state.
Backup router extracts from second advertised information that receives after the 3rd dynamic priority weights of secondary route device; Itself and self dynamic priority valve are carried out the comparison of size; In the present embodiment; Claim that backup router self dynamic priority valve is the 4th dynamic priority weights, the 4th dynamic priority weights refer to this backup router in a nearest announcement cycle, the target MAC (Media Access Control) address that receives is the message number of the virtual mac address of the virtual router group under it.Usually,, do not bear the task of real data message, thereby the 4th dynamic priority weights of backup router are generally zero because backup router is in the state of route stand-by.
Particularly; If backup router is according to relatively learning; The 3rd dynamic priority weights of secondary route device are greater than the 4th dynamic priority weights of self; The dynamic priority that is the secondary route device is higher than the self dynamic priority, and backup router will continue to keep the state of its route stand-by, and need not to carry out route stand-by to the switching of main road by state.
Thereby, when this processing scheme being applied in the above-mentioned situation, will bring useful effect to stability of network.Particularly, when the former active router of virtual router group returns to normal condition from functional fault, when returning this virtual router group,, will get into the route stand-by state if its static priority is not a highest priority 255 in the group.At this moment; This former active router will receive the advertised information that new active router sends; Former active router will extract the 3rd dynamic priority weights of the new active router that carries in this advertised information, and the 3rd dynamic priority weights and the 4th dynamic priority weights of self are carried out size relatively.Because in a nearest announcement cycle, new active router be in always main road by operating state, its dynamic priority weights must be a positive integer, and for former active router, it is in the route stand-by state, the dynamic priority weights are zero.Thereby; Carry out size relatively through preferential dynamic priority weights to both; According to this comparative result; Even the static priority of former active router is higher than new active router, it still can not seized by state main road, thereby can not cause the switching of active router at this moment and the concussion of the network that brings.
The changing method of master-slave back-up route apparatus in the Virtual Router Redundacy Protocol of the embodiment of the invention; Through in the main road of VRRP agreement is elected by equipment, introducing the mechanism of " dynamic priority "; With each VRRP routing device in a nearest announcement cycle; The target MAC (Media Access Control) address that receives is the message number of the virtual mac address of virtual routing device; As the dynamic priority of this VRRP routing device, make that the priority valve of each VRRP routing device changes along with the variation of its actual workload in the virtual group of router devices, thereby make that the main road of electing based on the VRRP under this dynamic priority mechanism is more reasonable by equipment; The network concussion of having avoided unnecessary main road to be switched by the role of equipment and having brought has improved stability of network.
Fig. 4 is the flow chart of the changing method embodiment four of master-slave back-up route apparatus in the Virtual Router Redundacy Protocol of the present invention, and as shown in Figure 4, present embodiment comprises the steps:
Step 400; The backup router that is in the route stand-by state in the virtual router group receives second advertised information that the secondary route device except that backup router sends in the virtual router group, carries the 3rd dynamic priority weights of secondary route device in this second advertised information;
Particularly, when the backup router that is in the route stand-by state in the VRRP virtual router group receives the advertised information of active router transmission, with at first from advertised information, extracting corresponding dynamic priority weights.In the present embodiment; Claim that the advertised information that backup router receives is second advertised information; The router of claiming this second advertised information of transmission is the secondary route device, and claims that the dynamic priority weights of this secondary route device that second advertised information is carried are the 3rd dynamic priority weights.The 3rd dynamic priority weights be specially corresponding secondary route device in a nearest announcement cycle, the target MAC (Media Access Control) address that receives is the message number of the virtual mac address of the virtual router group under it.
Step 401; Backup router compares the 3rd dynamic priority weights and the 4th dynamic priority weights of self, and greater than the 4th dynamic priority weights, then execution in step 402 as if the 3rd dynamic priority weights; If the first dynamic priority weights equal the second dynamic priority weights, then execution in step 403;
Whether should seize by state in order to confirm backup router the main road of secondary route device; In the present embodiment; Backup router extracts the 3rd dynamic priority weights from second advertised information that receives after, with the 3rd dynamic priority weights and self dynamic priority valve, promptly the 4th dynamic priority weights carry out size relatively; And, carry out different operation according to different comparative results.
Step 402, backup router keeps the route stand-by state;
Particularly; If in above-mentioned steps 401; If backup router is through comparing the 3rd dynamic priority weights of secondary route device and the 4th dynamic priority weights of self; Find the four dynamic priority weights of the 3rd dynamic priority weights greater than self, this backup router confirms that thus the level of priority of secondary route device is higher than the level of priority of self.So this backup router still keeps the state of its route stand-by, and need not to switch in the state of main part route.
Particularly, the former active router that above-mentioned situation appears at usually in virtual router group returns to normal condition from functional fault, when returning this virtual router group.If it is not highest priority 255 in the group that former active router is found static priority, will get into the route stand-by state its this moment, and receive the advertised information that new active router sends.And former active router is through at first extracting the 3rd dynamic priority weights of the new active router that carries in this advertised information; And the 3rd dynamic priority weights and the 4th dynamic priority weights of self are carried out size relatively; Find that the level of priority of new active router still is higher than the level of priority of self, so, even the static priority of former active router is higher than new active router; It still can not seized by state main road, thereby can not cause the switching of active router at this moment.
Step 403, backup router are extracted the 3rd static priority valve of secondary route device from second advertised information;
Step 404; Backup router compares the 3rd static priority valve and the 4th static priority valve of self, and greater than the 4th static priority valve, then execution in step 402 as if the 3rd static priority valve; If the 3rd static priority valve is less than the 4th static priority valve, then execution in step 405;
Step 405, backup router switches to main road by state from the route stand-by state.
If in above-mentioned steps 401; Backup router is through comparing the 3rd dynamic priority weights of secondary route device and the 4th dynamic priority weights of self; Find that the 3rd dynamic priority weights equate with the 4th dynamic priority weights of self; Promptly this moment, dynamic priority rank each other was identical, only can not determine the height of its priority with the dynamic priority weights.So backup router extracts the 3rd static priority valve of secondary route device further from second advertised information; And with the static priority valve of itself and self; Promptly the 4th static priority valve carries out size relatively, confirms other height of priority each other with this.Particularly, this static state priority valve then is the numerical value in one relevant with corresponding router self performance, changeless 1~255 scope, is the implication of the priority valve of each router in the virtual router group in the prior art.
If through comparing; If backup router is known the four static priority valve of the 3rd static priority valve of secondary route device greater than self; This backup router is confirmed the level of priority of the level of priority of secondary route device greater than self thus, so this backup router still keeps the state of its route stand-by; And need not to switch to main road by state in, promptly carry out above-mentioned steps 402.Otherwise; If backup router is through relatively knowing the four static priority valve of the 3rd static priority valve less than self; Be the level of priority of the level of priority of secondary route device less than self, so, this backup router will from the route stand-by state switch to main road by state.
Particularly; Backup router is as if the comparison through dynamic priority weights and static priority valve; Know that the priority level of the secondary route device in the group is lower than the priority level of self; Switching to main road from the route stand-by state by the detailed process of state is: backup router at first abandons second advertised information that receives, and does not carry out himself the work of overtime timer of resetting.Because under normal circumstances, backup router whenever receives an advertised information in an announcement cycle after, the zero clearing that can the overtime timer of self be resetted is to carry out the timing in next announcement cycle.Thereby; This moment is not if the overtime timer of backup router resets; This overtime timer will send the overtime instruction of representative at timing to three an all after date of announcement; Thereby backup router is after receiving this overtime instruction, can think that continuous three announcement cycles do not receive advertised information, thereby can oneself state be switched to main road by the state from the route stand-by state.
Need to prove in addition; Because for the backup router that is in the route stand-by state in the virtual router group; It is in a nearest announcement cycle, and the target MAC (Media Access Control) address that receives is that the message number of the virtual mac address of virtual router group is generally zero.Therefore, in the comparison procedure of dynamic priority, the situation of dynamic priority weights corresponding in the advertised information that backup router receives less than self dynamic priority weights can not appear, so this is not made an explanation in the present embodiment.
The changing method of master-slave back-up route apparatus in the Virtual Router Redundacy Protocol of the embodiment of the invention; Through in the main road of VRRP agreement is elected by equipment, introducing the mechanism of " dynamic priority "; With each VRRP routing device in a nearest announcement cycle; The target MAC (Media Access Control) address that receives is the message number of the virtual mac address of virtual routing device; As the dynamic priority of this VRRP routing device, make that the priority valve of each VRRP routing device changes along with the variation of its actual workload in the virtual group of router devices, thereby make that the main road of electing based on the VRRP under this dynamic priority mechanism is more reasonable by equipment; The network concussion of having avoided unnecessary main road to be switched by the role of equipment and having brought has improved stability of network.
One of ordinary skill in the art will appreciate that: all or part of step that realizes said method embodiment can be accomplished through the relevant hardware of program command; Aforesaid program can be stored in the computer read/write memory medium; This program the step that comprises said method embodiment when carrying out; And aforesaid storage medium comprises: various media that can be program code stored such as ROM, RAM, magnetic disc or CD.
Fig. 5 is the structural representation of the main road in the Virtual Router Redundacy Protocol of the present invention by apparatus embodiments, and as shown in Figure 5, the main road of present embodiment is comprised by equipment: first receiver module 11 and the first dynamic priority weights comparison module 12.Wherein, first receiver module 11 is used for receiving virtual group of router devices except that first advertised information of said main road by the transmission of first routing device the equipment, carries the first dynamic priority weights of first routing device in this first advertised information.The first dynamic priority weights comparison module 12 then is used for; The first dynamic priority weights in first advertised information that first receiver module 11 is received; Compare with the second dynamic priority weights of self; If the first dynamic priority weights are less than the second dynamic priority weights, then keep this main road by the main road of equipment by state.
Wherein, The above-mentioned first dynamic priority weights and the second dynamic priority weights are respectively, the main road of first router and present embodiment by equipment in a nearest announcement cycle, the target MAC (Media Access Control) address that receives respectively is the message number of the virtual mac address of virtual group of router devices.
Particularly, in the present embodiment, the concrete course of work that all modules are related can repeat no more at this with reference to the related content of the related related embodiment exposure of the changing method of master-slave back-up route apparatus in the above-mentioned Virtual Router Redundacy Protocol.
Need explain in addition; The routing device of indication can have the communication equipment of data forwarding function for router, switch etc. in the present embodiment, as long as possess the category that the device of the corresponding function described in the embodiment of the invention all belongs to the present invention and protected.
Main road in the Virtual Router Redundacy Protocol of the embodiment of the invention is by equipment; Through in the main road of VRRP agreement is elected by equipment, introducing the mechanism of " dynamic priority "; With each routing device in a nearest announcement cycle; The target MAC (Media Access Control) address that receives is the message number of the virtual mac address of virtual group of router devices, as the dynamic priority of this routing device, thereby makes that the main road of being elected by equipment based on the main road under this " dynamic priority " mechanism is more reasonable by equipment; The network concussion of having avoided unnecessary main road to be brought by the switching of equipment has improved stability of network.
Further; On the basis of the technique scheme of present embodiment; Also comprise the first static priority valve of first routing device in first advertised information that first receiver module 11 receives, correspondingly, the main road of present embodiment can also comprise the first static priority valve comparison module 13 by equipment.Particularly; The first static priority valve comparison module 13 is used for; If the comparative result of the first dynamic priority weights comparison module 12 does, the first dynamic priority weights equal the said second dynamic priority weights, then the first static priority valve and the main road second static priority valve by equipment self are compared; If the first static priority valve is less than the second static priority valve; Then keep main road by the main road of equipment by state, if the first static priority valve greater than the second static priority valve, then switches to route stand-by state from main road by state by equipment with main road.
Further; The main road of present embodiment can also comprise the first routing state handover module 14 by equipment; Be used for if the comparative result of the first dynamic priority weights comparison module 12 does; The first dynamic priority weights then switch to route stand-by state from main road by state by equipment with main road greater than the second dynamic priority weights.
Likewise, in the technique scheme, the concrete course of work that all modules are related can repeat no more at this with reference to the related content of the related related embodiment exposure of the changing method of master-slave back-up route apparatus in the above-mentioned Virtual Router Redundacy Protocol.
Fig. 6 is the structural representation of the standby routing equipment embodiment in the Virtual Router Redundacy Protocol of the present invention, and as shown in Figure 6, the standby routing equipment of present embodiment comprises: second receiver module 21 and the second dynamic priority weights comparison module 22.Wherein, second receiver module 21 is used for, and receives second advertised information that the secondary route equipment except that standby routing equipment sends in the virtual group of router devices, carries the 3rd dynamic priority weights of secondary route equipment in this second advertised information.The second dynamic priority weights comparison module 22 then is used for; The 3rd dynamic priority weights that carry in second advertised information that second receiver module 21 is received; Compare with the 4th dynamic priority weights of standby routing equipment self; If the 3rd dynamic priority weights greater than the 4th dynamic priority weights, then keep the route stand-by state of this standby routing equipment;
Wherein, The 3rd dynamic priority weights and the 4th dynamic priority weights are respectively, the standby routing equipment of secondary route equipment and present embodiment in a nearest announcement cycle, the target MAC (Media Access Control) address that receives respectively is the message number of the virtual mac address of said virtual group of router devices.
Particularly, in the present embodiment, the concrete course of work that all modules are related can repeat no more at this with reference to the related content of the related related embodiment exposure of the changing method of master-slave back-up route apparatus in the above-mentioned Virtual Router Redundacy Protocol.
Need explain in addition; The routing device of indication can have the communication equipment of data forwarding function for router, switch etc. in the present embodiment, as long as possess the category that the device of the corresponding function described in the embodiment of the invention all belongs to the present invention and protected.
Standby routing equipment in the Virtual Router Redundacy Protocol of the embodiment of the invention; Through in the routing device election of VRRP agreement, introducing the mechanism of " dynamic priority "; With each routing device in a nearest announcement cycle; The target MAC (Media Access Control) address that receives is the message number of the virtual mac address of virtual group of router devices; As the dynamic priority of this routing device, thereby make that the priority valve of each VRRP routing device changes along with the variation of its actual workload in the virtual group of router devices, and make that the main road of electing based on the VRRP under this " dynamic priority " mechanism is more reasonable by equipment; The network concussion of having avoided unnecessary main road to be brought by the switching of equipment has improved stability of network.
Further; On the basis of the technique scheme of present embodiment; Also carry the 3rd static priority valve of secondary route equipment in second advertised information that second receiver module 21 of present embodiment receives; Correspondingly, the standby routing equipment of present embodiment also comprises the second static priority valve comparison module 23.Particularly; The second static priority valve comparison module 23 is used for; If the comparative result of the second dynamic priority weights comparison module 22 does, the 3rd dynamic priority weights equal the 4th dynamic priority weights, then further the 4th static priority valve of the 3rd static priority valve and standby routing equipment self are compared; If the 3rd static priority valve is greater than the 4th static priority valve; The route stand-by state that then keeps standby routing equipment is if the 3rd static priority valve less than the 4th static priority valve, then switches to main road by state with standby routing equipment from the route stand-by state.
Likewise, the concrete course of work that all modules in the technique scheme are related can repeat no more at this with reference to the related content of the related related embodiment exposure of the changing method of master-slave back-up route apparatus in the above-mentioned Virtual Router Redundacy Protocol.
Fig. 7 is the structural representation of the routing device embodiment in the Virtual Router Redundacy Protocol of the present invention.Particularly, the routing device of present embodiment is in the said method, the arbitrary routing device in the virtual group of router devices.As shown in Figure 7, the routing device of present embodiment comprises routing state judge module 1 and processing module 2.Wherein, routing state judge module 1 is used for, and judges this routing device residing routing state in virtual group of router devices; Processing module 2 then is used for, if know that according to judgement said routing device is in main road by state, then calls first processing module, if know that according to judgement said routing device is in the route stand-by state, then calls second processing module.Wherein, first processing module is specially carries out that main road is by the correlation function of equipment in the foregoing description, and second processing module then is specially the correlation function of carrying out standby routing equipment in the foregoing description.
Particularly; The concrete course of work that first processing module in the technique scheme and second processing module are related; Can repeat no more at this with reference to the changing method of master-slave back-up route apparatus in the above-mentioned Virtual Router Redundacy Protocol, main road by the related content that equipment and the related related embodiment of standby routing equipment disclose.
Routing device in the Virtual Router Redundacy Protocol of the embodiment of the invention; Through in the routing device election of VRRP agreement, introducing the mechanism of " dynamic priority "; With each routing device in a nearest announcement cycle; The target MAC (Media Access Control) address that receives is the message number of the virtual mac address of virtual group of router devices; As the dynamic priority of this routing device, thereby make that the priority valve of each VRRP routing device changes along with the variation of its actual workload in the virtual group of router devices, and make that the main road of electing based on the VRRP under this " dynamic priority " mechanism is more reasonable by equipment; The network concussion of having avoided unnecessary main road to be brought by the switching of equipment has improved stability of network.
What should explain at last is: above embodiment is only in order to explaining technical scheme of the present invention, but not to its restriction; Although with reference to previous embodiment the present invention has been carried out detailed explanation, those of ordinary skill in the art is to be understood that: it still can be made amendment to the technical scheme that aforementioned each embodiment put down in writing, and perhaps part technical characterictic wherein is equal to replacement; And these are revised or replacement, do not make the spirit and the scope of the essence disengaging various embodiments of the present invention technical scheme of relevant art scheme.

Claims (11)

1. the changing method of master-slave back-up route apparatus in the Virtual Router Redundacy Protocol is characterized in that, comprising:
Be in the virtual group of router devices main road by the main road of state by equipment receive in the said virtual group of router devices except that said main road by first advertised information that first routing device the equipment sends, carry the first dynamic priority weights of said first routing device in said first advertised information;
Said main road is compared said first dynamic priority weights and the second dynamic priority weights of self by equipment, if the said first dynamic priority weights less than the said second dynamic priority weights, then keep said main road by state;
Said first dynamic priority weights and the said second dynamic priority weights are respectively, said first routing device and said main road by equipment in a nearest announcement cycle, the target MAC (Media Access Control) address that receives respectively is the message number of the virtual mac address of said virtual group of router devices.
2. the changing method of master-slave back-up route apparatus in the Virtual Router Redundacy Protocol according to claim 1 is characterized in that:
Also carry the first static priority valve of said first routing device in said first advertised information;
Said method also comprises: if the said first dynamic priority weights equal the said second dynamic priority weights; Said main road is compared the said first static priority valve and the second static priority valve of self by equipment; If the said first static priority valve is less than the said second static priority valve; Then keep said main road by state, if the said first static priority valve greater than the said second static priority valve, then switches to the route stand-by state from said main road by state.
3. the changing method of master-slave back-up route apparatus is characterized in that in the Virtual Router Redundacy Protocol according to claim 1 and 2, also comprises:
If the said first dynamic priority weights are greater than the said second dynamic priority weights, said main road switches to route stand-by state from said main road by state by equipment.
4. the changing method of master-slave back-up route apparatus in the Virtual Router Redundacy Protocol is characterized in that, comprising:
The standby routing equipment that is in the route stand-by state in the virtual group of router devices receives second advertised information that the secondary route equipment except that said standby routing equipment sends in the said virtual group of router devices, carries the 3rd dynamic priority weights of said secondary route equipment in said second advertised information;
Said standby routing equipment compares said the 3rd dynamic priority weights and the 4th dynamic priority weights of self, if said the 3rd dynamic priority weights greater than said the 4th dynamic priority weights, then keep said route stand-by state;
Said the 3rd dynamic priority weights and the 4th dynamic priority weights are respectively, said secondary route equipment and said standby routing equipment in a nearest announcement cycle, the target MAC (Media Access Control) address that receives respectively is the message number of the virtual mac address of said virtual group of router devices.
5. the changing method of master-slave back-up route apparatus in the Virtual Router Redundacy Protocol according to claim 4 is characterized in that:
Also carry the 3rd static priority valve of said secondary route equipment in said second advertised information;
Said method also comprises: if said the 3rd dynamic priority weights equal said the 4th dynamic priority weights; Said standby routing equipment compares the said the 3rd static priority valve and the 4th static priority valve of self; If the said the 3rd static priority valve is greater than the said the 4th static priority valve; Then keep the route stand-by state, if the said the 3rd static priority valve less than the said the 4th static priority valve, then switches to main road by state from said route stand-by state.
6. the main road in the Virtual Router Redundacy Protocol is characterized in that by equipment, comprising:
First receiver module is used for receiving virtual group of router devices except that first advertised information of said main road by the transmission of first routing device the equipment, carries the first dynamic priority weights of said first routing device in said first advertised information;
The first dynamic priority weights comparison module; Be used for said first dynamic priority weights and the second dynamic priority weights of self are compared; If the said first dynamic priority weights are less than the said second dynamic priority weights, then keep said main road by the main road of equipment by state;
Said first dynamic priority weights and the said second dynamic priority weights are respectively, said first routing device and said main road by equipment in a nearest announcement cycle, the target MAC (Media Access Control) address that receives respectively is the message number of the virtual mac address of said virtual group of router devices.
7. the main road in the Virtual Router Redundacy Protocol according to claim 6 is characterized in that by equipment:
Also carry the first static priority valve of said first routing device in said first advertised information;
Said active router equipment also comprises: the first static priority valve comparison module; Be used for if the said first dynamic priority weights equal the said second dynamic priority weights; Then the said first static priority valve and the second static priority valve of self are compared; If the said first static priority valve is less than the said second static priority valve; Then keep said main road by the main road of equipment by state, if the said first static priority valve greater than the said second static priority valve, then switches to route stand-by state from said main road by state by equipment with said main road.
According to the main road in claim 6 or the 7 described Virtual Router Redundacy Protocols by equipment, it is characterized in that, also comprise:
The first routing state handover module is used for if the said first dynamic priority weights greater than the said second dynamic priority weights, then switch to route stand-by state from said main road by state by equipment with said main road.
9. the standby routing equipment in the Virtual Router Redundacy Protocol is characterized in that, comprising:
Second receiver module is used for receiving second advertised information that the secondary route equipment of virtual group of router devices except that said standby routing equipment sends, and carries the 3rd dynamic priority weights of said secondary route equipment in said second advertised information;
The second dynamic priority weights comparison module; Be used for said the 3rd dynamic priority weights and the 4th dynamic priority weights of self are compared; If said the 3rd dynamic priority weights greater than said the 4th dynamic priority weights, then keep the route stand-by state of said standby routing equipment;
Said the 3rd dynamic priority weights and the 4th dynamic priority weights are respectively, said secondary route equipment and said standby routing equipment in a nearest announcement cycle, the target MAC (Media Access Control) address that receives respectively is the message number of the virtual mac address of said virtual group of router devices.
10. the standby routing equipment in the Virtual Router Redundacy Protocol according to claim 9 is characterized in that:
Also carry the 3rd static priority valve of said secondary route equipment in said second advertised information;
Said standby routing equipment also comprises: the second static priority valve comparison module; Be used for if said the 3rd dynamic priority weights equal said the 4th dynamic priority weights; The said the 3rd static priority valve and the 4th static priority valve of self are compared; If the said the 3rd static priority valve is greater than the said the 4th static priority valve; The route stand-by state that then keeps said standby routing equipment is if the said the 3rd static priority valve less than the said the 4th static priority valve, then switches to main road by state with said standby routing equipment from said route stand-by state.
11. the routing device in the Virtual Router Redundacy Protocol is characterized in that, comprises routing state judge module and processing module;
Said routing state judge module is used for, and judges said routing device residing routing state in virtual group of router devices;
Said processing module is used for, if know that according to judgement said routing device is in main road by state, then calls first processing module, if know that according to judgement said routing device is in the route stand-by state, then calls second processing module;
Said first processing module comprises that like the arbitrary described main road of claim 6~8 by equipment, said second processing module comprises like the arbitrary described standby routing equipment of claim 9~10.
CN2009102263725A 2009-11-26 2009-11-26 Switching method and device of main/standby router in virtual route redundancy protocol Expired - Fee Related CN101702681B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2009102263725A CN101702681B (en) 2009-11-26 2009-11-26 Switching method and device of main/standby router in virtual route redundancy protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2009102263725A CN101702681B (en) 2009-11-26 2009-11-26 Switching method and device of main/standby router in virtual route redundancy protocol

Publications (2)

Publication Number Publication Date
CN101702681A CN101702681A (en) 2010-05-05
CN101702681B true CN101702681B (en) 2012-02-22

Family

ID=42157576

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2009102263725A Expired - Fee Related CN101702681B (en) 2009-11-26 2009-11-26 Switching method and device of main/standby router in virtual route redundancy protocol

Country Status (1)

Country Link
CN (1) CN101702681B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455451B (en) * 2012-06-05 2016-02-03 宏碁股份有限公司 Dual-mode electric device, electronic system and main control end determination methods
CN105681187A (en) * 2014-11-18 2016-06-15 华为技术有限公司 VRRP (Virtual Router Redundancy Protocol) backup set management method and related device

Families Citing this family (17)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102035906A (en) * 2010-12-17 2011-04-27 中兴通讯股份有限公司 IPv6 (Internet Protocol Version 6) protocol address conflict processing method and system based on VRRP (Virtual Router Redundancy Protocol)
US8553532B2 (en) * 2011-08-23 2013-10-08 Telefonaktiebolaget L M Ericsson (Publ) Methods and apparatus for avoiding inter-chassis redundancy switchover to non-functional standby nodes
CN103441940B (en) * 2013-08-29 2017-12-15 华为技术有限公司 The network equipment is by the switching method, device and the network equipment for state to major state
CN104158642B (en) * 2014-08-08 2018-03-27 上海斐讯数据通信技术有限公司 A kind of method and system that backup is provided for software defined network controller
CN106100987B (en) * 2016-08-08 2019-06-07 杭州迪普科技股份有限公司 A kind of active router based on VRRP agreement switches the method and device of secondary router
CN106130898B (en) * 2016-08-29 2019-11-19 北京神州绿盟信息安全科技股份有限公司 A kind of virtual flow-line link support method and device
CN106888116B (en) * 2016-12-30 2020-03-10 北京同有飞骥科技股份有限公司 Scheduling method of double-controller cluster shared resources
CN107888492B (en) * 2017-10-16 2020-07-24 闽南师范大学 VRRP load balancing method and device
CN107911291B (en) * 2017-11-28 2019-04-12 中国移动通信集团湖北有限公司 VRRP router switching method, router, VRRP active-standby switch system and storage medium
CN108924044B (en) * 2018-06-22 2020-12-11 迈普通信技术股份有限公司 Link maintenance method, PE device and readable storage medium
CN111277436A (en) * 2020-01-17 2020-06-12 深信服科技股份有限公司 Equipment state switching method and device, electronic equipment and storage medium
CN111464438B (en) * 2020-03-04 2023-02-28 邦彦技术股份有限公司 Method and device for managing state of VRRP node, and method and device for improving equipment
CN114070781B (en) * 2020-08-05 2023-08-08 北京威努特技术有限公司 Data communication method, device, system and computer equipment
CN112887204A (en) * 2021-01-29 2021-06-01 上海弘积信息科技有限公司 Method for periodically setting VRRP node as main node
CN114285795B (en) * 2021-12-02 2023-01-31 中国银联股份有限公司 State control method, device, equipment and storage medium of virtual equipment
CN114244735B (en) * 2021-12-09 2024-01-16 南京丰道电力科技有限公司 Master and slave operation switching method, device and storage medium
CN115396307A (en) * 2022-07-13 2022-11-25 微网优联科技(成都)有限公司 Method, system, storage medium and electronic device for restarting multi-router

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1581821A (en) * 2003-08-15 2005-02-16 华为技术有限公司 Key route information monitoring method based on virtual router redundant protocol
CN1968260A (en) * 2005-11-17 2007-05-23 华为技术有限公司 Method for implementing virtual router redundancy protocol switching between primary/standby devices

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1581821A (en) * 2003-08-15 2005-02-16 华为技术有限公司 Key route information monitoring method based on virtual router redundant protocol
CN1968260A (en) * 2005-11-17 2007-05-23 华为技术有限公司 Method for implementing virtual router redundancy protocol switching between primary/standby devices

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
JP特开2007-318263A 2007.12.06

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103455451B (en) * 2012-06-05 2016-02-03 宏碁股份有限公司 Dual-mode electric device, electronic system and main control end determination methods
CN105681187A (en) * 2014-11-18 2016-06-15 华为技术有限公司 VRRP (Virtual Router Redundancy Protocol) backup set management method and related device

Also Published As

Publication number Publication date
CN101702681A (en) 2010-05-05

Similar Documents

Publication Publication Date Title
CN101702681B (en) Switching method and device of main/standby router in virtual route redundancy protocol
CN100452759C (en) Ip redundancy with improved failover notification
CN100417094C (en) Network failure recovery method with redundancy port
US4912656A (en) Adaptive link assignment for a dynamic communication network
CN101729426B (en) Method and system for quickly switching between master device and standby device of virtual router redundancy protocol (VRRP)
CN101588304B (en) Implementation method of VRRP and device
CN102006184B (en) Management method, device and network device of stack link
CN102624635B (en) Method and device for realizing graceful restart
CN101652963B (en) Method for reconfiguring a communications network
CN101425953A (en) Address updating method for Ether ring network and network node
CN101764744B (en) VRRP (Virtual Router Redundancy Protocol) access method, device and system, as well as VRRP routing equipment
CN101610193A (en) Ethernet ring network finds and generates the method for ring automatically
US7983152B1 (en) Dual-homing layer 2 switch
CN103001799A (en) Method and node for achieving redundancy on basis of chain network
JP5491623B2 (en) Address refresh method and system
KR101075462B1 (en) Method to elect master nodes from nodes of a subnet
CN102244589B (en) Method and opposite terminal apparatus for processing link fault in virtual switch unit system
CN101141282A (en) Network management system and its management method
CN102420737A (en) Method for processing failure in MRP (Media Redundancy Protocol) looped network and MRP looped network
CN101136838B (en) Bridge mode elastic grouping ring transannular bridge equipment redundancy protecting method
CN101702684B (en) Method for realizing to refresh Ethernet ring network forwarding database and device
CN101980478B (en) Method and device for detecting and processing equipment failures and network equipment
CN102487332A (en) Fault processing method, apparatus thereof and system thereof
CN104243304A (en) Data processing method, device and system of locally-connected topological structure
CN101662329B (en) Switching method, network nodes and network system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20120222

Termination date: 20151126