CN102035744B - Method for performing communication among virtual router redundancy protocol (VRRP) routers and routers - Google Patents

Method for performing communication among virtual router redundancy protocol (VRRP) routers and routers Download PDF

Info

Publication number
CN102035744B
CN102035744B CN2010106014692A CN201010601469A CN102035744B CN 102035744 B CN102035744 B CN 102035744B CN 2010106014692 A CN2010106014692 A CN 2010106014692A CN 201010601469 A CN201010601469 A CN 201010601469A CN 102035744 B CN102035744 B CN 102035744B
Authority
CN
China
Prior art keywords
vrrp
router
vrrpv3
information
notification packet
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN2010106014692A
Other languages
Chinese (zh)
Other versions
CN102035744A (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.)
Beijing Star Net Ruijie Networks Co Ltd
Original Assignee
Beijing Star Net Ruijie Networks 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 Beijing Star Net Ruijie Networks Co Ltd filed Critical Beijing Star Net Ruijie Networks Co Ltd
Priority to CN2010106014692A priority Critical patent/CN102035744B/en
Publication of CN102035744A publication Critical patent/CN102035744A/en
Application granted granted Critical
Publication of CN102035744B publication Critical patent/CN102035744B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a method for performing communication among virtual router redundancy protocol (VRRP) routers and the routers. The method comprises the following steps of: judging whether a VRRPv2 router and a VRRPv3 router exist in the same VRRP group or not according to the acquired VRRP information, wherein the VRRP information comprises identifiers of the VRRP routers, an identifier of the VRRP group and a VRRP version; and if so, inhibiting the transmission of a VRRPv3 message in the preset time and otherwise, inhibiting the transmission of a VRRPv2 message in the preset time, wherein each router comprises a judgment module and an inhibition module. The method effectively solves the problem of wasting of network bandwidth and equipment resources caused by that the VRRPv3 router must transmit the VRRPv2 message and the VRRPv3 message at the same time in the prior art, so the network bandwidth and the equipment resources are saved and the multi-MASTER problem under the coexistence of the VRRPv2 router and the VRRPv3 router is solved.

Description

Method for communicating and router between the Virtual Router Redundacy Protocol router
Technical field
The embodiment of the invention relates to networking technology area, relates in particular to method for communicating and router between a kind of Virtual Router Redundacy Protocol router.
Background technology
Virtual Router Redundacy Protocol (Virtual Router Redundancy Protocol; Abbreviate as: VRRP) be a kind of selection agreement, it can be in many VRRP routers in the VRRP group of the responsibility dynamic assignment of a virtual router to the local area network (LAN).A plurality of routers all are mapped as a virtual router in the VRRP group, and VRRP guarantees have and have only a router representing this virtual router to carry out the transmission of packet simultaneously.The VRRP router of control virtual router ip address is called the primary route device, and it is responsible for transmitting packet to these virtual ip address.In case the primary route device is unavailable, standby router can carry out function and switch under the prerequisite that does not influence inside and outside data communication, and need not revise the parameter of internal network.This has only used a router with regard to making router in the local area network (LAN) look, even and under the situation that its presently used first-hop router can not be discerned, still can keep the connectedness of route.
VRRP adopts the mode of simple election contest to select the primary route device.At first, each router in the more same VRRP group, the VRRP priority that is provided with on its corresponding interface, what priority was the highest is the primary route device, its state becomes MASTER.If the VRRP priority that is provided with on the corresponding interface is mutually the same, then compare the primary ip address on the corresponding interface, what primary ip address was big is the primary route device, its state becomes MASTER.
After the primary route device was selected, other routers in the same VRRP group were as standby router, and state becomes BACKUP, and standby router can detect the state of primary route device through the VRRP notification packet that the primary route device regularly sends.When operate as normal, the primary route device can regularly send the VRRP notification packet and give other routers in the same VRRP group, and with the equipment state of circular primary route device, promptly primary route device operating state is normal.If the standby router in the same VRRP group is not received the notification packet from the primary route device in the preset time, then transfer own state to MASTER.When having many states to be the router of MASTER in the same VRRP group, adopt the mode of simple election contest to select one, thereby realize the backup functionality of VRRP as the primary route device.
VRRP has two versions, wherein RFC3768 regulation be called version 2, the RFC5798 regulation be called version 3.Version 2 uses VRRPv2 to represent, version 3 uses VRRPv3 to represent.Generally speaking; VRRPv3 can compatible VRRPv2; Be the VRRPv3 router can with the VRRPv2 router communication, can discern the VRRPv2 message that the VRRPv2 router sends but only limit to the VRRPv3 router, and the VRRPv2 router can't be discerned the VRRPv3 message that the VRRPv3 router sends.
In realizing process of the present invention, the inventor finds to exist at least in the prior art following problem:
If when having VRRPv2 router and VRRPv3 router simultaneously in the VRRP group; Because VRRPv2 router nonrecognition VRRPv3 message; Just make the VRRPv3 router must send VRRPv2 and VRRPv3 message simultaneously; And the VRRPv3 message is useless under this scene, and this will cause the waste of the network bandwidth and device resource.Simultaneously, if in a VRRP group, have VRRPv2 router and VRRPv3 router simultaneously, and the VRRPv3 router only sends the VRRPv3 message, and the VRRPv2 router can't be discerned the VRRPv3 message that the VRRPv3 router sends so.If this moment, the VRRPv2 router was the primary route device; And it can't handle the VRRPv3 message, and the VRRPv3 router is not received other VRRPv3 messages in the cycle of regulation, then with the primary route device that oneself becomes VRRPv3; Like this; VRRPv2 router and VRRPv3 router all declare it oneself is the primary route device in the same VRRP group, can cause the request of response terminal in time of VRRP router, can cause network failure.
Summary of the invention
The embodiment of the invention provides method for communicating and router between a kind of Virtual Router Redundacy Protocol router; Must send the network bandwidth that VRRPv2 message and VRRPv3 message cause and the waste problem of device resource simultaneously in order to solve VRRPv3 router of the prior art, realize the purpose of conserve network bandwidth and device resource.
The embodiment of the invention provides method for communicating between a kind of Virtual Router Redundacy Protocol VRRP router, comprising:
The VRRPv3 router judges in the same VRRP group whether have VRRPv2 router and VRRPv3 router simultaneously according to the VRRP information that obtains, and comprises the sign of VRRP router, the sign and the VRRP version of place VRRP group in the said VRRP information;
If said VRRPv3 router suppresses the transmission of VRRPv3 message in Preset Time;
If said VRRPv3 router suppresses the transmission of VRRPv2 message in Preset Time not.
The embodiment of the invention also provides a kind of VRRPv3 router, comprising:
Judge module is used for judging in the same VRRP group whether have VRRPv2 router and VRRPv3 router simultaneously according to the VRRP information that obtains, and comprises the sign of VRRP router, the sign and the VRRP version of place VRRP group in the said VRRP information;
Suppress module, if the result who is used for said judge module is for being in Preset Time, not send the VRRPv3 message; If the judged result of said judge module is not sent the VRRPv2 message for not in Preset Time.
Method for communicating and router between the VRRP router that the embodiment of the invention provides; Through judge in the same VRRP group whether have VRRPv2 router and VRRPv3 router simultaneously according to acquired VRRP information; If exist simultaneously; Then in Preset Time, suppress the transmission of VRRPv3 message,, then in Preset Time, suppress the transmission of VRRPv2 message if only there is the VRRPv3 router.Efficiently solve VRRPv3 router of the prior art and must send the network bandwidth that VRRPv2 message and VRRPv3 message cause and the waste problem of device resource simultaneously; Realized the purpose of conserve network bandwidth and device resource, the many MASTER problem in the time of can also solving simultaneously VRRPv2 router and VRRPv3 router and exist jointly.
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, can also obtain other accompanying drawing according to these accompanying drawings.
Method for communicating flow chart between the VRRP router that Fig. 1 provides for the embodiment of the invention;
Method for communicating flow chart between the VRRP router that Fig. 2 provides for the embodiment of the invention;
The form of the VRRPv2 notification packet that Fig. 3 provides for the embodiment of the invention;
The form of the VRRPv3 notification packet that Fig. 4 provides for the embodiment of the invention;
A kind of VRRP schematic network structure that Fig. 5 embodiment of the invention provides;
The VRRP router topology intention that Fig. 6 provides for the embodiment of the 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.
Method for communicating flow chart between the VRRP router that Fig. 1 provides for the embodiment of the invention, as shown in Figure 1, this method comprises:
Step 101:VRRPv3 router judges in the same VRRP group whether have VRRPv2 router and VRRPv3 router according to the VRRP information that obtains;
If, execution in step 102;
If not, execution in step 103.
Wherein, can comprise in the VRRP information: the sign of VRRP router, the sign of VRRP router place VRRP group, and the VRRP version of VRRP router.VRRP information can use forms such as array or chained list to realize organizationally, does not do qualification here.Each VRRP router can a corresponding list item as shown in table 1 in the VRRP information, but is not limited to the form that table 1 shows:
Table 1
Figure BDA0000039985270000051
Certainly, also can use a version identifier parameter substitution version 2 sign and version 3 sign, the version identifier parameter gets 2 for using version 2, gets 3 for using version 3 etc.
VRRP information in the VRRPv3 router can be that VRRPv3 router self is preserved, and also can obtain from other routers, does not do qualification here.The VRRPv3 router can judge in the same VRRP group whether have the VRRPv2 router according to the VRRP version of the VRRP router in the VRRP information; For example; Find that version 2 is designated 1 VRRP router; Find that perhaps the version identifier parameter is under 2 the situation such as VRRP router, can judge to have the VRRPv2 router.
Step 102: in Preset Time, suppress the transmission of VRRPv3 message;
The Preset Time here can selectivity be set.In embodiments of the present invention, accomplish the present invention from the content of selecting the existing definition of agreement as far as possible, reaching the purpose that economizes on resources and oversimplify with implementation method, use be that the time span of the MASTER_DOWN_Int representative among the VRRP is as Preset Time.This MASTER_DOWN_Int is generally 3 times notification time (Advertisement Interval); What represent is if in 3 times notification time, do not receive the VRRP notification packet that MASTER sends; Show that MASTER lost efficacy, need carry out the VRRP election again.
Step 103: in Preset Time, suppress the transmission of VRRPv2 message.
Method for communicating between the VRRP router that the embodiment of the invention provides; The VRRPv3 router judges in the same VRRP group whether have VRRPv2 router and VRRPv3 router simultaneously according to acquired VRRP information; If exist simultaneously; Then in Preset Time, suppress the transmission of VRRPv3 message,, then in Preset Time, suppress the transmission of VRRPv2 message if only there is the VRRPv3 router.Efficiently solve VRRPv3 router of the prior art and must send the network bandwidth that VRRPv2 message and VRRPv3 message cause and the waste problem of device resource simultaneously, realized the purpose of conserve network bandwidth and device resource.Simultaneously; When in same VRRP group, having VRRPv2 router and VRRPv3 router simultaneously; The VRRPv3 router can suppress the transmission of VRRPv3 message; The VRRPv2 router can be discerned the message that the VRRPv3 router sends like this, efficiently solves VRRPv2 router and the VRRPv3 router many MASTER problem when existing jointly.
Method for communicating flow chart between the VRRP router that Fig. 2 provides for the embodiment of the invention, as shown in Figure 2, this method comprises:
Step 201: start VRRPv3 router R1, in first announcement cycle that starts, send VRRPv2 and VRRPv3 notification packet respectively once, and oneself state is set to BACKUP.
Wherein, the form of VRRPv2 and VRRPv3 notification packet can be respectively like Fig. 3 and shown in Figure 4.The announcement cycle is by the Advertisement Interval in the VRRPv2 notification packet (being " the Adver Int " among Fig. 3) Field Definition; By the Advertisement Interval in the VRRPv3 notification packet (being " the Max Adver Int " among Fig. 4) Field Definition, be described the time interval of sending the VRRP notification packet.
Step 202:VRRPv3 router R1 receives the notification packet that other routers send, and upgrades VRRP information according to the notification packet of other routers transmissions that receive, and restarts to calculate the life cycle of the VRRP router that upgrades in the VRRP information.
Wherein, the router of same VRRP group no matter be VRRPv2 router or VRRPv3 router, can be preserved VRRP information.Information such as the sign x of the router in each work in the same VRRP group, the sign VRID that belongs to the VRRP group and VRRP version number have been write down in this VRRP information.The sign of router can but to be not limited to be the source IP address (Source IPAddress) in the notification packet, the sign VRID of place VRRP group can but to be not limited to be the VirtualRtr id field value in the notification packet.VRRP information can but be not limited to the form of expression like table 1 among the above-mentioned embodiment.
Upgrading VRRP information can comprise:
Judge in the existing VRRP information whether have such router according to the sign x of the router that carries in the notification packet that receives and the sign VRID of place VRRP group;
If do not exist, the sign of this router, the sign of router place VRRP group and the VRRP version of router are kept in the VRRP information;
If exist, according to the version information in the VRRP version updating VRRP information of this router.
Each VRRP router all has the life cycle of oneself.In embodiments of the present invention, accomplish the present invention from the content of selecting the existing definition of agreement as far as possible, reaching the purpose that economizes on resources and oversimplify with implementation method, use be the life cycle that VRRP_Node_Down_Int representes a router.When the life cycle of a router finishes, show that this router no longer works, need from VRRP information, delete the relevant information of this router.But the life cycle of router can be reset because of the renewal of VRRP information, promptly restarts to calculate, because this router of more new description of VRRP information is still in work.Set the Advertisement Interval that VRRP_Node_Down_Int equals 6 times in the present embodiment.
Step 203:VRRPv3 router judges in the same VRRP group whether have VRRPv2 router and VRRPv3 router simultaneously according to VRRP information;
If, execution in step 204;
If not, execution in step 205.
Step 204:VRRPv3 router does not send the VRRPv3 message in Preset Time.
Wherein, the VRRPv3 router can be controlled Preset Time through the mode that starts a VRRPv3 message inhibition timer.Preset Time can not done here and give unnecessary details like the description among the above-mentioned embodiment.
Step 205:VRRPv3 router does not send the VRRPv2 message in Preset Time.
Wherein, the VRRPv3 router can be controlled Preset Time through the mode that starts a VRRPv2 message inhibition timer.Preset Time can not done here and give unnecessary details like the description among the above-mentioned embodiment.
Method for communicating between the VRRP router that the embodiment of the invention provides; The VRRPv3 router judges in the same VRRP group whether have VRRPv2 router and VRRPv3 router simultaneously according to acquired VRRP information; If exist simultaneously; Then in Preset Time, do not send the VRRPv3 message,, then in Preset Time, do not send the VRRPv2 message if only there is the VRRPv3 router.Efficiently solve VRRPv3 router of the prior art and must send the network bandwidth that VRRPv2 message and VRRPv3 message cause and the waste problem of device resource simultaneously; Realized the purpose of conserve network bandwidth and device resource, the many MASTER problem in the time of can also solving simultaneously VRRPv2 router and VRRPv3 router and exist jointly.
On the basis of the foregoing description, after the router in the same VRRP group got into stable state, so a kind of situation may appear, and a VRRP router adds suddenly in this VRRP group.Under this prerequisite, get into stable state fast in order to make the router in this VRRP group, this initiate VRRP router can send the VRRP notification packet and give the router in the same VRRP group when starting.Router in the same VRRP group upgrades VRRP information according to the notification packet that receives, and judges the message that suppresses which kind of version according to the VRRP information after upgrading.Upgrade the method for VRRP information and can judge that the message of which kind of version of inhibition can not done and give unnecessary details referring to step 203 here referring to step 202.
What need supplementary notes is; According to the primary route device after the notification packet renewal VRRP information; VRRP information after can will upgrading sends to the whole routers in the same VRRP group with the form of notification packet or special packet, with the VRRP information synchronization that guarantees that the interior whole routers of same VRRP group are preserved.
After the router in the same VRRP group gets into stable state, so a kind of situation also may appear, and a VRRP router removes this VRRP group suddenly, and promptly a VRRP router is no longer worked, and its life cycle finishes.Under this prerequisite, get into stable state fast in order to make the router in this VRRP group, method for communicating can also comprise the steps between this VRRP router.
If this VRRP router becomes the MASTER that same VRRP organizes through election contest, then method for communicating can also comprise the steps: between this VRRP router
Step 301: before the life cycle of the router that same VRRP organizes finished, the VRRPv3 router sent the survival probe messages and gives each router;
Because behind the VRRP steady operation; Have only the MASTER router to send the VRRP notification packet; And other BACKUP routers can not send the VRRP notification packet, and this will make the BACKUP router to be deleted in VRRP information by the MASTER router because life cycle finishes.Sending the survival probe messages is exactly in order to overcome the problems referred to above.
The survival probe messages can be with reference to the form of VRRP notification packet, but the type field can with 0 or other numerical value represent.Certainly, also can define a kind of message again, not do qualification here.
Step 302: other routers of same VRRP group after receiving the survival probe messages, if also in running order, multicast response message in whole VRRP at its place organize then;
Here need to prove in practical application, have a lot of interfaces to participate in the calculating of different VRRP groups on the VRRP router.Also such a case might occur, in VRRP group 1, adopt version 2, in VRRP group 2, adopt version 3.So, receive the survival probe messages after, the VRRP version information announcement that router can be adopted own whole VRRP groups of participating in once so that all VRRP routers upgrade the VRRP information that oneself this organizational security is deposited.Wherein, the VRRP version information announcement adopted of router whole VRRP groups that oneself is participated in once can comprise dual mode: a kind of is the corresponding whole VRRP version informations of this interface of announcement place VRRP group on each interface; Another kind is on a selected interface, to adopt response message to announce the corresponding whole VRRP version informations of whole interfaces place VRRP group.
Response message can be with reference to the form of VRRP notification packet, but the type field can with 0 or other numerical value represent.The advantage of this response message is: implement fairly simplely, need not do a large amount of changes to existing protocol.Certainly; Also can define a kind of message again or in notification packet, increase a User Defined field, comprise the sign of the router that sends this message, the sign and the VRRP version letter of place VRRP group again in this message of definition and in the User Defined field that increases.The advantage of this response message is: once or transmission several times can this machine VRRP information announcement be finished, need be according to the number of place VRRP group multicast respectively.Effectively reduce network congestion and saved device resource.
According to prior protocols, router can only be discerned the notification packet of the type field==1.Need replenish agreement at this, when promptly the type field was the numerical value of expression survival probe messages and response message, router did not abandon it, and it is handled.
Step 303:MASTER router upgrades VRRP information according to the response message that receives, and recomputates the life cycle of the VRRP router that VRRP information upgraded.
Step 304: the VRRP information after will upgrading sends to other routers in the same VRRP group;
VRRP information after the renewal can be sent through notification packet.
Under the another kind of execution mode, on the basis of the foregoing description, if this VRRP router becomes the BACKUP that same VRRP organizes through election contest, then method for communicating can also comprise the steps: between this VRRP router
Step 401:VRRPv3 router receives the survival probe messages that MASTER sent before the life cycle of VRRP router finishes;
Current MASTER both can be the VRRPv2 router, also can be other VRRPv3 routers.Owing to all preserve the VRRP information of each router in the same VRRP group in VRRPv2 router and the VRRPv3 router, can send the survival probe messages so no matter MASTER is VRRPv2 router or VRRPv3 router.The as above description among the embodiment of survival probe messages is not done here and is given unnecessary details.
Step 402: if this VRRPv3 router is in running order, multicast response message in the whole VRRP at its place group then is so that each router can be according to the content update VRRP information of this response message;
This response message is the description among the embodiment as above, does not do here and gives unnecessary details.
Optional step 403: the VRRP information after the renewal that this VRRPv3 router reception MASTER sends;
This VRRP information can send to this VRRPv3 router through notification packet.
Step 404: this VRRPv3 router upgrades VRRP information.
The embodiment of the invention provides method for communicating between a kind of VRRP router; The VRRPv3 router judges in the same VRRP group whether have VRRPv2 router and VRRPv3 router simultaneously according to acquired VRRP information; If exist simultaneously; Then in Preset Time, only send the VRRPv2 message,, then in Preset Time, only send the VRRPv3 message if only there is the VRRPv3 router.Efficiently solve VRRPv3 router of the prior art and must send the network bandwidth that VRRPv2 message and VRRPv3 message cause and the waste problem of device resource simultaneously; Realized the purpose of conserve network bandwidth and device resource, the many MASTER problem in the time of can also solving simultaneously VRRPv2 router and VRRPv3 router and exist jointly; Further, increase survival newly and surveyed mechanism, efficiently solved the standby router problem that contingent routing iinformation is deleted owing to do not send notification packet when steady operation, realized effective renewal of routing iinformation.
Below, with an instantiation method for communicating between above-mentioned VRRP router is described.A kind of VRRP schematic network structure that Fig. 5 embodiment of the invention provides, in Fig. 5, R1 adopts the v2 version, and R2 adopts the v3 version.Communication means between R1 and the R2 comprises:
1) R1, R2 start, and R1 sends the notification packet of VRRPv2, each one of the notification packet of R2 transmission VRRPv2 and VRRPv3;
Wherein, comprise following information: VRID=1, priority=200, ip=1.1.1.1, version=2, Virtual ip=1.1.1.254, Advertisement Int=1 in the notification packet of R1.Comprise following information: VRID=1, priority=100, ip=1.1.1.2, version=3, Virtual ip=1.1.1.254, Advertisement Int=1 in the notification packet of R2.
2) R2 sets up the VRRP information table according to the notification packet of the R1 that receives:
{(1.1.1.1,1,2,0)}
Simultaneously, R1 also can set up the VRRP information table according to the notification packet of the R2 that receives:
{(1.1.1.2,1,0,3)}
3) R2 is according to the VRRP information table; Be informed in the same VRRP group (VRID=1); The router R1 (1.1.1.1) that the v2 version is arranged; R2 starts VRRP node overtime timer VRRP_Node_Down_Int=6 second, starts VRRPv3 and suppresses timer MASTER_Down_Int=3 second, does not send the VRRPv3 notification packet in the period at this section.
4) R1 campaigns for according to v2 notification packet and the R2 that R2 sends;
The result of election contest is MASTER for R1, the VRRPv2 notification packet that R2 sends according to R1, periodic refreshing VRRP information table.
5) R1 sent the survival probe messages and gives R2 before VRRP node overtime timer is overtime, and R2 is the multicast response message in whole VRRP groups at its place;
6) R1 is receiving response message, upgrades the VRRP information table, and restarts to calculate life cycle.
The VRRP router topology intention that Fig. 6 provides for the embodiment of the invention, as shown in Figure 6, this VRRP router comprises: judge module 601 and inhibition module 602.Wherein, judge module 601 is used for judging in the same VPPR group whether have VRRPv2 router and VRRPv3 router simultaneously according to the VRRP information that obtains, and comprises the sign of VRRP router, the sign and the VRRP version of place VRRP group in this VRRP information; If inhibition module 602 is used for the result of judge module 601 for being the transmission of inhibition VRRPv3 message in Preset Time; If the judged result of judge module 601 suppresses the transmission of VRRPv2 message for not in Preset Time.
Under a kind of execution mode, this router can also comprise: receiver module and update module.This receiver module was used in first announcement cycle that starts; Receive the notification packet that other VRRP routers send, carry its sign of sending router in this notification packet, send the sign of router place VRRP group and the VRRP version that sends router; Update module is used for upgrading VRRP information according to notification packet.
Wherein, update module comprises: judging unit and updating block.The sign of the transmission router that judging unit is used for carrying according to notification packet and send the sign of router place VRRP group judges whether there is this transmission router in the VRRP information; If it is not that updating block is used for the judged result of judging unit, the sign of transmission router, the sign that transmission router place VRRP organizes and the VRRP version that sends router are kept in the VRRP information; If the judged result of judging unit is for being, according to the VRRP version in the VRRP version updating VRRP information of the transmission router in the notification packet.
Under the another kind of execution mode,, then can also comprise if this router is the primary route device: the survival detecting module, be used for before the life cycle of VRRP router finishes, send the survival probe messages and give other routers in the same VRRP group; Receive the response message of other router feedbacks; Corresponding update module also is used for: upgrade VRRP information according to response message.
Further, this router can also comprise: synchronous update module, and be used to send notification packet and give other routers in the same VRRP group, carry the VRRP information after the renewal in this notification packet.
Under a kind of execution mode, if this router is a standby router, then can also comprise: responder module is used to receive the survival probe messages that the primary route device sent before the life cycle of VRRP router finishes; Multicast response message in whole VRRP groups at its place.
Further, this router can also comprise: synchronous update module, be used to receive the notification packet that the primary route device sends, and carry the VRRP information after the primary route device upgrades according to response message in this notification packet; Upgrade VRRP information according to notification packet.
Aforesaid router can also comprise: reseting module is used for after update module is upgraded VRRP information, recomputating the life cycle of the VRRP router of VRRP information updating.
Further, can also comprise: removing module is used for when the life cycle of VRRP router finishes, deleting the corresponding VRRP information of this VRRP router.
The embodiment of the invention provides a kind of VRRP router; Judge in the same VRRP group whether have VRRPv2 router and VRRPv3 router simultaneously according to acquired VRRP information; If exist simultaneously; Then in Preset Time, only send the VRRPv2 message,, then in Preset Time, only send the VRRPv3 message if only there is the VRRPv3 router.Efficiently solve VRRPv3 router of the prior art and must send the network bandwidth that VRRPv2 message and VRRPv3 message cause and the waste problem of device resource simultaneously; Realized the purpose of conserve network bandwidth and device resource, the many MASTER problem in the time of can also solving simultaneously VRRPv2 router and VRRPv3 router and exist jointly.
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.
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 (14)

1. method for communicating between a Virtual Router Redundacy Protocol VRRP router is characterized in that, comprising:
The VRRPv3 router judges in the same VRRP group whether have VRRPv2 router and VRRPv3 router simultaneously according to the VRRP information that obtains, and comprises the sign of VRRP router, the sign and the VRRP version of place VRRP group in the said VRRP information;
If said VRRPv3 router suppresses the transmission of VRRPv3 message in Preset Time;
If said VRRPv3 router suppresses the transmission of VRRPv2 message in Preset Time not.
2. method according to claim 1 is characterized in that, said VRRPv3 router judges whether exist simultaneously in the same VRRP group before VRRPv2 router and the VRRPv3 router, said method also comprises according to the VRRP information that obtains:
In first announcement cycle of said VRRPv3 router startup; Receive the notification packet that other VRRP routers send, carry its sign of sending router in the said notification packet, send the sign of router place VRRP group and the VRRP version that sends router;
Upgrade VRRP information according to said notification packet.
3. method according to claim 2 is characterized in that, saidly upgrades VRRP information according to said notification packet and comprises:
According to the sign of the transmission router that carries in the said notification packet and the sign of transmission router place VRRP group, judge the information that whether has said transmission router in the said VRRP information;
If, the sign of said transmission router, the sign of said transmission router place VRRP group and the VRRP version of said transmission router are not kept in the said VRRP information;
If, according to the VRRP version in the said VRRP information of the VRRP version updating of the transmission router in the said notification packet.
4. method according to claim 1 is characterized in that, said method also comprises:
Before the life cycle of VRRP router finishes, send the survival probe messages and give other routers in the same VRRP group;
Receive the response message of other router feedbacks;
Upgrade VRRP information according to said response message.
5. method according to claim 4 is characterized in that, upgrades after the said VRRP information according to said response message, and said method also comprises:
Send notification packet and give other routers in the same VRRP group, carry the VRRP information after the renewal in the said notification packet.
6. method according to claim 1 is characterized in that, said method also comprises:
Receive the survival probe messages that the primary route device sent before the life cycle of VRRP router finishes;
Multicast response message in whole VRRP groups at its place.
7. method according to claim 6 is characterized in that, after the multicast response message, said method also comprised in said whole VRRP at its place organized:
Receive the notification packet that said primary route device sends, carry the VRRP information after said primary route device upgrades according to said response message in the said notification packet;
Upgrade VRRP information according to said notification packet.
8. a Virtual Router Redundacy Protocol VRRPv3 router is characterized in that, comprising:
Judge module is used for judging in the same VRRP group whether have VRRPv2 router and VRRPv3 router simultaneously according to the VRRP information that obtains, and comprises the sign of VRRP router, the sign and the VRRP version of place VRRP group in the said VRRP information;
Suppress module, if the result who is used for said judge module is for being the transmission of inhibition VRRPv3 message in Preset Time; If the judged result of said judge module suppresses the transmission of VRRPv2 message for not in Preset Time.
9. router according to claim 8 is characterized in that, also comprises:
Receiver module; Be used in first announcement cycle of VRRPv3 router startup; Receive the notification packet that other VRRP routers send, carry its sign of sending router in the said notification packet, send the sign of router place VRRP group and the VRRP version that sends router;
Update module is used for upgrading VRRP information according to said notification packet.
10. router according to claim 9 is characterized in that, said update module comprises:
Judging unit, the sign of the transmission router that is used for carrying according to said notification packet and send the sign of router place VRRP group is judged the information that whether has said transmission router in the said VRRP information;
Updating block is if the judged result that is used for said judging unit is kept at the sign of said transmission router, the sign of said transmission router place VRRP group and the VRRP version of said transmission router in the said VRRP information for not; If the judged result of said judging unit is for being, according to the VRRP version in the said VRRP information of the VRRP version updating of the transmission router in the said notification packet.
11. router according to claim 9 is characterized in that, also comprises:
The survival detecting module was used for before the life cycle of VRRP router finishes, and sent the survival probe messages and gave other routers in the same VRRP group; Receive the response message of other router feedbacks in the same VRRP group;
Said update module also is used for: upgrade VRRP information according to said response message.
12. router according to claim 11 is characterized in that, also comprises:
The first synchronous update module is used to send notification packet and gives other routers in the same VRRP group, carries the VRRP information after the renewal in the said notification packet.
13. router according to claim 8 is characterized in that, also comprises:
Responder module is used to receive the survival probe messages that the primary route device sent before the life cycle of VRRP router finishes; Multicast response message in whole VRRP groups at its place.
14. router according to claim 13 is characterized in that, also comprises:
The second synchronous update module is used to receive the notification packet that said primary route device sends, and carries the VRRP information after said primary route device upgrades according to said response message in the said notification packet; Upgrade VRRP information according to said notification packet.
CN2010106014692A 2010-12-22 2010-12-22 Method for performing communication among virtual router redundancy protocol (VRRP) routers and routers Active CN102035744B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010106014692A CN102035744B (en) 2010-12-22 2010-12-22 Method for performing communication among virtual router redundancy protocol (VRRP) routers and routers

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010106014692A CN102035744B (en) 2010-12-22 2010-12-22 Method for performing communication among virtual router redundancy protocol (VRRP) routers and routers

Publications (2)

Publication Number Publication Date
CN102035744A CN102035744A (en) 2011-04-27
CN102035744B true CN102035744B (en) 2012-12-12

Family

ID=43888099

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010106014692A Active CN102035744B (en) 2010-12-22 2010-12-22 Method for performing communication among virtual router redundancy protocol (VRRP) routers and routers

Country Status (1)

Country Link
CN (1) CN102035744B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102244611A (en) * 2011-07-04 2011-11-16 华为技术有限公司 Method, device and system for transmitting and receiving message based on virtual router redundancy protocol
CN108696428B (en) * 2018-05-17 2020-10-27 北京大米科技有限公司 Tunnel technology-based route detection method, route node and central server

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1625153A (en) * 2003-12-01 2005-06-08 株式会社日立制作所 Vrrp technology keeping vr confidentiality
KR20070079272A (en) * 2006-02-01 2007-08-06 삼성전자주식회사 Vrrp router and switchover method between vrrp routers
CN101022328A (en) * 2007-03-26 2007-08-22 杭州华为三康技术有限公司 Method for realizing redundant gateway path overhead dynamic regulation and gate way equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1625153A (en) * 2003-12-01 2005-06-08 株式会社日立制作所 Vrrp technology keeping vr confidentiality
KR20070079272A (en) * 2006-02-01 2007-08-06 삼성전자주식회사 Vrrp router and switchover method between vrrp routers
CN101022328A (en) * 2007-03-26 2007-08-22 杭州华为三康技术有限公司 Method for realizing redundant gateway path overhead dynamic regulation and gate way equipment

Also Published As

Publication number Publication date
CN102035744A (en) 2011-04-27

Similar Documents

Publication Publication Date Title
CN102025798B (en) Address allocation processing method, device and system
CN1780298B (en) System and method for a distributed server for peer-to-peer networks
CN100334866C (en) Method for realizing dynamic gateway load sharing and backup
CN102098354B (en) Method and server for allocating dynamic host configuration protocol (DHCP) addresses
CN109376197B (en) Data synchronization method, server and computer storage medium
CN101478435A (en) Topology collecting method for stacking system and dual control board equipment
CN100514878C (en) Master-salve switching method and system for mutual backup device
CN102291465B (en) Load balancing method, device and system
CN102624635A (en) Method and device for realizing graceful restart
CN104679796A (en) Selecting method, selecting device and database mirror image cluster node
CN102136928B (en) Topology discovery method and device
CN102081540A (en) Distributed dual-master control network equipment software updating method and device
CN101483571B (en) RRPP configuring method, system and device
CN102843259A (en) Middleware self-management hot backup method and middleware self-management hot backup system in cluster
CN103152390A (en) Method and device and nodes and system for node configuration of distributed storage system
KR100825735B1 (en) Method for Address Space Management about nodes incapable of communication over ZigBee Network
CN111935314B (en) Block chain system, message transmission method and device
CN103516612A (en) Method for generating routing table items in a distributed router, and distributed router
CN101764756B (en) Method and device for pruning forwarding path of multicast data and network equipment
JP5775473B2 (en) Edge device redundancy system, switching control device, and edge device redundancy method
CN112437454A (en) Data transmission method and device, storage medium and electronic device
CN102412984B (en) Management method and equipment for forwarded table entry
CN106375211B (en) Exchange data processing method and interchanger in VRRP load-balancing scenario
CN102035744B (en) Method for performing communication among virtual router redundancy protocol (VRRP) routers and routers
CN103262470B (en) FCoE network linking management method, equipment and 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