CN101702681A - 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
CN101702681A
CN101702681A CN200910226372A CN200910226372A CN101702681A CN 101702681 A CN101702681 A CN 101702681A CN 200910226372 A CN200910226372 A CN 200910226372A CN 200910226372 A CN200910226372 A CN 200910226372A CN 101702681 A CN101702681 A CN 101702681A
Authority
CN
China
Prior art keywords
router
dynamic priority
equipment
main road
state
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
CN200910226372A
Other languages
Chinese (zh)
Other versions
CN101702681B (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 more and more higher 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 send the advertised information that carries self priority level 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 level 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 be carried out " seizing " by state by sending advertised information.Usually, the priority of indication is specially a fixing priority valve herein, 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 appear 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 can be competed success again, causes that the role of active router in the group is switched.And if new active router is because the faults itself of former active router produces, two kinds of situations will appear in this moment: have highest priority level 255 as if former active router, it can directly enter main road by state, causes role's switching of active router; 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 had recovered stable before former active router recovers normally, 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, original main road by equipment when malfunction returns to normal condition, the main road of a new round that occurs is by the election competition of equipment, perhaps former main road is seized again by equipment 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 described virtual group of router devices except that described main road by first advertised information that first routing device the equipment sends, carry the first dynamic priority weights of described first routing device in described first advertised information;
Described main road is compared described first dynamic priority weights and the second dynamic priority weights of self by equipment, if the described first dynamic priority weights less than the described second dynamic priority weights, then keep described main road by state;
Described first dynamic priority weights and the described second dynamic priority weights are respectively, described first routing device and described 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 described 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 described standby routing equipment sends in the described virtual group of router devices, carries the 3rd dynamic priority weights of described secondary route equipment in described second advertised information;
Described standby routing equipment compares described the 3rd dynamic priority weights and the 4th dynamic priority weights of self, if described the 3rd dynamic priority weights greater than described the 4th dynamic priority weights, then keep described route stand-by state;
Described the 3rd dynamic priority weights and the 4th dynamic priority weights are respectively, described secondary route equipment and described 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 described 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 described main road by the transmission of first routing device the equipment, carries the first dynamic priority weights of described first routing device in described first advertised information;
The first dynamic priority weights comparison module, be used for described first dynamic priority weights and the second dynamic priority weights of self are compared, if the described first dynamic priority weights are less than the described second dynamic priority weights, then keep described main road by the main road of equipment by state;
Described first dynamic priority weights and the described second dynamic priority weights are respectively, described first routing device and described 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 described 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 described standby routing equipment sends, and carries the 3rd dynamic priority weights of described secondary route equipment in described second advertised information;
The second dynamic priority weights comparison module, be used for described the 3rd dynamic priority weights and the 4th dynamic priority weights of self are compared, if described the 3rd dynamic priority weights greater than described the 4th dynamic priority weights, then keep the route stand-by state of described standby routing equipment;
Described the 3rd dynamic priority weights and the 4th dynamic priority weights are respectively, described secondary route equipment and described 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 described 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,
Described routing state judge module is used for, and judges described routing device residing routing state in virtual group of router devices;
Described processing module is used for, if know that according to judgement described routing device is in main road by state, then calls first processing module, if know that according to judgement described routing device is in the route stand-by state, then calls second processing module;
Described first processing module comprises above-mentioned main road by equipment, and described second processing module comprises as 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, by 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, dynamic priority as 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, apparently, 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, 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, below in conjunction with the accompanying drawing in the embodiment of the invention, technical scheme in the embodiment of the invention is clearly and completely described, 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 belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
Core of the present invention is: the notion of introducing a dynamic priority in the VRRP agreement 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 determine other height of priority level each other by 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 height of judgement, and based on the election of the main road on the dynamic priority by equipment, avoided in the virtual group of router devices after main road is stable by equipment work, 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 concussion of the network 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 with the router; 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.
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 actual applications, 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 situations, 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, will begin to carry out the election of 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 the stable or congested inadequately 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, 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 the 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 to 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 situations, the advertised information that another router sends in the group will be received, and learn thus this moment virtual router group in 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, the advertised information that claims active router to receive at this moment is first advertised information, and the router that claims this first advertised information of transmission is the first router in the virtual router group.And after active router receives this first advertised information, will at first from first advertised information, extract the dynamic priority weights of the first router of wherein carrying, in the present embodiment, these dynamic priority weights that claim extract this moment are the first dynamic priority weights.
Particularly, in the present embodiment, the implication of these first dynamic priority weights for its corresponding the first 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 (Intemet 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 by 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, basically just can constantly receive the packet that other network elements send in the network, 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 the 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 the first router, itself and self dynamic priority valve are carried out the comparison of size, determine by result relatively who is a 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 the first router are less than the second dynamic priority weights of self, the dynamic priority that is the 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 above-mentioned several 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 during with self static priority valve comparison, because 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 reentering this virtual router group, the highest static priority valve 255 in the group that has as if this former active router, it will directly enter 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, similarly, 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, similarly avoided the switching of active router and the concussion of the network that brings.
Therefore, in the present embodiment, by 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 may receive the advertised information of former active router transmission, the size of the dynamic priority weights of the former active router that carries in this advertised information and self dynamic priority weights at first relatively, 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, by 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, dynamic priority as 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 the first router except that active router in the active router reception virtual router group of state sends, carry the first dynamic priority weights of the 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 the 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 corresponding the first 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, if the first dynamic priority weights are less than the second dynamic priority weights, then execution in step 202, 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 determine that virtual router group is in the competition election of this active router, the successful router of final competition, 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 operations 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 the first router of the active router that receives advertised information by 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 determines that thus the level of priority of the 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, by dynamic priority weights with router, be that the real work amount that router E-Packeted in a nearest announcement cycle is used as judging its priority most important condition just, 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 the 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 by comparing first dynamic priority weights of the 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 the 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, determines other height of priority level 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 by comparing, the active router that receives advertised information is known the second static priority valve of the first static priority valve of the first router less than self, this active router is determined the level of priority of the level of priority of the 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 by relatively knowing the second static priority valve of the first static priority valve greater than self, be the level of priority of the level of priority of the first router greater than 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, therefore, each active router is basis static priority valve each other further, determine other height of priority level 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 by comparing first dynamic priority weights of the 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 by first static priority valve of further relatively the first router and the second static priority valve of self.Promptly in big or small comparison procedure to representative other priority valve of priority level each other, find the level of priority of the level of priority of the 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, by 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, dynamic priority as 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 second router except that backup router sends in the virtual router group, carries the 3rd dynamic priority weights of the second router 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, backup router in the group is after the advertised information that receives the active router transmission, priority valve that can will carry in this advertised information and the priority valve of self compare, 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 by 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, in the static priority of former active router is not group during highest priority 255, when it returns virtual router group, selection is entered the route stand-by state.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 by the new active router priority of relatively learning of static priority valve, former active router will become active router again by " 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 that claims this second advertised information of transmission is the second router in the virtual router group, and claims that the dynamic priority weights of this second router correspondence 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 the second router, 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 the second router are greater than the 4th dynamic priority weights of self, the dynamic priority that is the second router is higher than the self dynamic priority, 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 enter 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 by 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, by 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, dynamic priority as 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 second router except that backup router sends in the virtual router group, carries the 3rd dynamic priority weights of the second router 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, will at first from advertised information, extract corresponding dynamic priority weights.In the present embodiment, the advertised information that claims backup router to receive is second advertised information, claim that the router of this second advertised information of transmission is a second router, and claim that the dynamic priority weights of this second router that second advertised information is carried are the 3rd dynamic priority weights.The 3rd dynamic priority weights be specially corresponding the second 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 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 determine backup router the main road of the second router, 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 operations 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 by comparing the 3rd dynamic priority weights of the second router 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 determines that thus the level of priority of the second router 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.Static priority is not a highest priority 255 in the group if former active router generates heat, and will enter the route stand-by state its this moment, and receives the advertised information that new active router sends.And former active router is by 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 the second router 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 by comparing the 3rd dynamic priority weights of the second router 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 the second router 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, determines other height of priority level 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 by comparing, if backup router is known the four static priority valve of the 3rd static priority valve of the second router greater than self, this backup router is determined the level of priority of the level of priority of the second router 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 by 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 the second router 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 by dynamic priority weights and static priority valve, know that the priority level of the second router 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 the overtime timer of self can 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 oneself state can 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, by 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, dynamic priority as 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 finished by the relevant hardware of program command, aforesaid program can be stored in the computer read/write memory medium, this program is carried out 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 described 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 the 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 not repeat them here 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 in addition to illustrate; 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, by 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, dynamic priority as this routing device, thereby make 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 is, the first dynamic priority weights equal the described second dynamic priority weights, then the first static priority valve and the main road second static priority valve by equipment self is 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 is, 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.
Similarly, in the technique scheme, the concrete course of work that all modules are related can not repeat them here 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 described virtual group of router devices.
Particularly, in the present embodiment, the concrete course of work that all modules are related can not repeat them here 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 in addition to illustrate; 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, by 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, dynamic priority as 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 is, 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 is 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, 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.
Similarly, the concrete course of work that all modules in the technique scheme are related can not repeat them here 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 described routing device is in main road by state, then calls first processing module, if know that according to judgement described 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 not repeat them here 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, by 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, dynamic priority as 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.
It should be noted that at last: above embodiment only in order to technical scheme of the present invention to be described, is not intended to limit; Although with reference to previous embodiment the present invention is had been described in detail, 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 modifications or replacement do not make the essence of appropriate technical solution break away from the spirit and scope of various embodiments of the present invention technical 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 described virtual group of router devices except that described main road by first advertised information that first routing device the equipment sends, carry the first dynamic priority weights of described first routing device in described first advertised information;
Described main road is compared described first dynamic priority weights and the second dynamic priority weights of self by equipment, if the described first dynamic priority weights less than the described second dynamic priority weights, then keep described main road by state;
Described first dynamic priority weights and the described second dynamic priority weights are respectively, described first routing device and described 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 described 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 described first routing device in described first advertised information;
Described method also comprises: if the described first dynamic priority weights equal the described second dynamic priority weights, described main road is compared the described first static priority valve and the second static priority valve of self by equipment, if the described first static priority valve is less than the described second static priority valve, then keep described main road by state, if the described first static priority valve greater than the described second static priority valve, then switches to the route stand-by state from described 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 described first dynamic priority weights are greater than the described second dynamic priority weights, described main road switches to route stand-by state from described 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 described standby routing equipment sends in the described virtual group of router devices, carries the 3rd dynamic priority weights of described secondary route equipment in described second advertised information;
Described standby routing equipment compares described the 3rd dynamic priority weights and the 4th dynamic priority weights of self, if described the 3rd dynamic priority weights greater than described the 4th dynamic priority weights, then keep described route stand-by state;
Described the 3rd dynamic priority weights and the 4th dynamic priority weights are respectively, described secondary route equipment and described 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 described 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 described secondary route equipment in described second advertised information;
Described method also comprises: if described the 3rd dynamic priority weights equal described the 4th dynamic priority weights, described standby routing equipment compares the described the 3rd static priority valve and the 4th static priority valve of self, if the described the 3rd static priority valve is greater than the described the 4th static priority valve, then keep the route stand-by state, if the described the 3rd static priority valve less than the described the 4th static priority valve, then switches to main road by state from described route stand-by state.
6. the main road in the Virtual Router Redundacy Protocol be 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 described main road by the transmission of first routing device the equipment, carries the first dynamic priority weights of described first routing device in described first advertised information;
The first dynamic priority weights comparison module, be used for described first dynamic priority weights and the second dynamic priority weights of self are compared, if the described first dynamic priority weights are less than the described second dynamic priority weights, then keep described main road by the main road of equipment by state;
Described first dynamic priority weights and the described second dynamic priority weights are respectively, described first routing device and described 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 described virtual group of router devices.
7. the main road in the Virtual Router Redundacy Protocol according to claim 6 be is characterized in that by equipment:
Also carry the first static priority valve of described first routing device in described first advertised information;
Described active router equipment also comprises: the first static priority valve comparison module, be used for if the described first dynamic priority weights equal the described second dynamic priority weights, then the described first static priority valve and the second static priority valve of self are compared, if the described first static priority valve is less than the described second static priority valve, then keep described main road by the main road of equipment by state, if the described first static priority valve greater than the described second static priority valve, then switches to route stand-by state from described main road by state by equipment with described 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 described first dynamic priority weights greater than the described second dynamic priority weights, then switch to route stand-by state from described main road by state by equipment with described 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 described standby routing equipment sends, and carries the 3rd dynamic priority weights of described secondary route equipment in described second advertised information;
The second dynamic priority weights comparison module, be used for described the 3rd dynamic priority weights and the 4th dynamic priority weights of self are compared, if described the 3rd dynamic priority weights greater than described the 4th dynamic priority weights, then keep the route stand-by state of described standby routing equipment;
Described the 3rd dynamic priority weights and the 4th dynamic priority weights are respectively, described secondary route equipment and described 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 described 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 described secondary route equipment in described second advertised information;
Described standby routing equipment also comprises: the second static priority valve comparison module, be used for if described the 3rd dynamic priority weights equal described the 4th dynamic priority weights, the described the 3rd static priority valve and the 4th static priority valve of self are compared, if the described the 3rd static priority valve is greater than the described the 4th static priority valve, the route stand-by state that then keeps described standby routing equipment, if the described the 3rd static priority valve less than the described the 4th static priority valve, then switches to main road by state with described standby routing equipment from described 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;
Described routing state judge module is used for, and judges described routing device residing routing state in virtual group of router devices;
Described processing module is used for, if know that according to judgement described routing device is in main road by state, then calls first processing module, if know that according to judgement described routing device is in the route stand-by state, then calls second processing module;
Described first processing module comprises that as the arbitrary described main road of claim 6~8 by equipment, described second processing module comprises as 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 true CN101702681A (en) 2010-05-05
CN101702681B 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 (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)
CN103441940A (en) * 2013-08-29 2013-12-11 华为技术有限公司 Method and device for switching network device from stand-by state to main state and network device
CN103748843A (en) * 2011-08-23 2014-04-23 瑞典爱立信有限公司 Methods and apparatus for avoiding inter-chassis redundancy switchover to non-functional standby nodes
CN104158642A (en) * 2014-08-08 2014-11-19 上海斐讯数据通信技术有限公司 Method and system for providing backup for software defined network controller
CN106100987A (en) * 2016-08-08 2016-11-09 杭州迪普科技有限公司 A kind of method and device of the secondary router of active router based on VRRP agreement switching
CN106130898A (en) * 2016-08-29 2016-11-16 北京神州绿盟信息安全科技股份有限公司 A kind of virtual flow-line link support method and device
CN106888116A (en) * 2016-12-30 2017-06-23 北京同有飞骥科技股份有限公司 A kind of dispatching method of dual controller cluster shared resource
CN107888492A (en) * 2017-10-16 2018-04-06 闽南师范大学 A kind of method and apparatus of VRRP load balancing
CN107911291A (en) * 2017-11-28 2018-04-13 中国移动通信集团湖北有限公司 VRRP routers switching method, router, VRRP active-standby switch system and storage medium
CN108924044A (en) * 2018-06-22 2018-11-30 迈普通信技术股份有限公司 Link maintains method, PE equipment and readable storage medium storing program for executing
CN111277436A (en) * 2020-01-17 2020-06-12 深信服科技股份有限公司 Equipment state switching method and device, electronic equipment and storage medium
CN111464438A (en) * 2020-03-04 2020-07-28 邦彦技术股份有限公司 Method and device for managing state of VRRP node, and method and device for improving equipment
CN112887204A (en) * 2021-01-29 2021-06-01 上海弘积信息科技有限公司 Method for periodically setting VRRP node as main node
CN114070781A (en) * 2020-08-05 2022-02-18 北京威努特技术有限公司 Data communication method, device and system and computer equipment
CN114244735A (en) * 2021-12-09 2022-03-25 南京丰道电力科技有限公司 Main/standby operation switching method and device and storage medium
CN114285795A (en) * 2021-12-02 2022-04-05 中国银联股份有限公司 State control method, device, equipment and storage medium of virtual equipment
CN115396307A (en) * 2022-07-13 2022-11-25 微网优联科技(成都)有限公司 Method, system, storage medium and electronic device for restarting multi-router

Families Citing this family (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

Family Cites Families (2)

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

Cited By (28)

* 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)
CN103748843A (en) * 2011-08-23 2014-04-23 瑞典爱立信有限公司 Methods and apparatus for avoiding inter-chassis redundancy switchover to non-functional standby nodes
CN103441940A (en) * 2013-08-29 2013-12-11 华为技术有限公司 Method and device for switching network device from stand-by state to main state and network device
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
CN104158642A (en) * 2014-08-08 2014-11-19 上海斐讯数据通信技术有限公司 Method and system for providing backup for software defined network controller
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
CN106100987A (en) * 2016-08-08 2016-11-09 杭州迪普科技有限公司 A kind of method and device of the secondary router of active router based on VRRP agreement switching
CN106130898A (en) * 2016-08-29 2016-11-16 北京神州绿盟信息安全科技股份有限公司 A kind of virtual flow-line link support method and device
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
CN106888116A (en) * 2016-12-30 2017-06-23 北京同有飞骥科技股份有限公司 A kind of dispatching method of dual controller cluster shared resource
CN107888492A (en) * 2017-10-16 2018-04-06 闽南师范大学 A kind of method and apparatus of VRRP load balancing
CN107888492B (en) * 2017-10-16 2020-07-24 闽南师范大学 VRRP load balancing method and device
CN107911291A (en) * 2017-11-28 2018-04-13 中国移动通信集团湖北有限公司 VRRP routers 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
CN108924044A (en) * 2018-06-22 2018-11-30 迈普通信技术股份有限公司 Link maintains method, PE equipment and readable storage medium storing program for executing
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
CN111464438A (en) * 2020-03-04 2020-07-28 邦彦技术股份有限公司 Method and device for managing state of VRRP node, and method and device for improving equipment
CN114070781A (en) * 2020-08-05 2022-02-18 北京威努特技术有限公司 Data communication method, device and system and computer 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
CN114285795A (en) * 2021-12-02 2022-04-05 中国银联股份有限公司 State control method, device, equipment and storage medium of virtual equipment
CN114244735A (en) * 2021-12-09 2022-03-25 南京丰道电力科技有限公司 Main/standby operation switching method and device and storage medium
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

Also Published As

Publication number Publication date
CN101702681B (en) 2012-02-22

Similar Documents

Publication Publication Date Title
CN101702681B (en) Switching method and device of main/standby router in virtual route redundancy protocol
CN110912780B (en) High-availability cluster detection method, system and controlled terminal
CN100417094C (en) Network failure recovery method with redundancy port
CN100452759C (en) Ip redundancy with improved failover notification
CN101729426B (en) Method and system for quickly switching between master device and standby device of virtual router redundancy protocol (VRRP)
CN102624635B (en) Method and device for realizing graceful restart
CN102006184B (en) Management method, device and network device of stack link
CN101652963B (en) Method for reconfiguring a communications network
CN101483592B (en) Method and apparatus for inhibiting bidirectional forwarding detection link oscillation
CN101425953A (en) Address updating method for Ether ring network and network node
CN101610193A (en) Ethernet ring network finds and generates the method for ring automatically
CN102546222A (en) Backup system and fault detection and processing method
CN103200109B (en) A kind of ospf neighbor relationship management method and equipment
CN103001799A (en) Method and node for achieving redundancy on basis of chain network
CN101984600A (en) Graceful restart method, equipment and system of routing protocol
CN1859423B (en) Synchronous switching method for host and repeat device
KR101075462B1 (en) Method to elect master nodes from nodes of a subnet
JP5491623B2 (en) Address refresh method and system
CN102136947A (en) Method and device for processing link faults
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
CN102244589A (en) Method and opposite terminal apparatus for processing link fault in virtual switch unit system
CN102487332A (en) Fault processing method, apparatus thereof and system thereof
CN102271049B (en) Method, device and system for setting state of communication equipment
CN104243304A (en) Data processing method, device and system of locally-connected topological structure

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

Granted publication date: 20120222

Termination date: 20151126

CF01 Termination of patent right due to non-payment of annual fee