CN102035744A - 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
CN102035744A
CN102035744A CN2010106014692A CN201010601469A CN102035744A CN 102035744 A CN102035744 A CN 102035744A CN 2010106014692 A CN2010106014692 A CN 2010106014692A CN 201010601469 A CN201010601469 A CN 201010601469A CN 102035744 A CN102035744 A CN 102035744A
Authority
CN
China
Prior art keywords
vrrp
router
notification packet
information
vrrpv3
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
CN2010106014692A
Other languages
Chinese (zh)
Other versions
CN102035744B (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
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

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

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 does not need to 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 still can keep the connectedness of route under the situation that its presently used first-hop router can not be discerned.
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 by 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 to 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 default 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 that there are the following problems at least in the prior art:
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 having VRRPv2 router and VRRPv3 router simultaneously in a VRRP group, 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, the VRRPv3 router is not received other VRRPv3 messages in the cycle of regulation, then oneself is become the primary route device of VRRPv3, like this, VRRPv2 router and VRRPv3 router all declare it oneself is the interior primary route device of 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:
Judge in the same VRRP group whether have VRRPv2 router and VRRPv3 router simultaneously according to the VRRP information that obtains, comprise the sign of VRRP router, the sign and the VRRP version of place VRRP group in the described VRRP information;
If in Preset Time, suppress the transmission of VRRPv3 message;
If not, in Preset Time, suppress the transmission of VRRPv2 message.
The embodiment of the invention also provides a kind of 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 described VRRP information;
Suppress module, if the result who is used for described judge module is for being not send the VRRPv3 message in Preset Time; If the judged result of described judge module does not send the VRRPv2 message for not in Preset Time.
Method for communicating and router between the VRRP router that the embodiment of the invention provides, by 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, if only there is the VRRPv3 router, then in Preset Time, suppress the transmission of VRRPv2 message.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, 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.
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, 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.
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 herein.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 herein.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 situations 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, finish the present invention, economize on resources and purpose that implementation method is oversimplified to reach for the content of selecting the existing definition of agreement as far as possible, 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 do not receive the VRRP notification packet that MASTER sends in 3 times notification time, 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, if only there is the VRRPv3 router, then in Preset Time, suppress the transmission of VRRPv2 message.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 distinguished as shown in Figure 3 and 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 that sends 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 VRID of sign x, place VRRP group of the router in each work in the same 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 source IP address (Source IPAddress) in the notification packet, the sign VRID of place VRRP group can but to be not limited to be VirtualRtr id field value in the notification packet.VRRP information can but be not limited to the form of expression as 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 there is no, 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, finish the present invention, economize on resources and purpose that implementation method is oversimplified to reach for the content of selecting the existing definition of agreement as far as possible, use be the life cycle that VRRP_Node_Down_Int represents 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 by the mode that starts a VRRPv3 message inhibition timer.Preset Time can not done herein and give unnecessary details as 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 by the mode that starts a VRRPv2 message inhibition timer.Preset Time can not done herein and give unnecessary details as 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, if only there is the VRRPv3 router, then in Preset Time, do not send the VRRPv2 message.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 entered stable state, so a kind of situation may appear, and a VRRP router adds suddenly in this VRRP group.Under this prerequisite, enter stable state fast in order to make the router in this VRRP group, this initiate VRRP router can send the VRRP notification packet to 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 herein 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 upgrading can be sent to whole routers in the same VRRP group with the form of notification packet or special packet, the VRRP information synchronization of preserving with the whole routers that guarantee in the same VRRP group.
After the router in the same VRRP group enters 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, enter 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 by 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 to 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 redefine a kind of message, not do qualification herein.
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 actual applications, 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 the own whole VRRP groups that participate 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 to adopt response message to announce the corresponding whole VRRP version informations of whole interfaces place VRRP group on a selected interface.
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, do not need existing protocol is done a large amount of changes.Certainly, also can redefine a kind of message or in notification packet, increase a User Defined field, in this message that redefines and comprise in the User Defined field that increases that the sign of the router that sends this message, the sign and the VRRP version of place VRRP group believe.The advantage of this response message is: once or transmission several times this machine VRRP information announcement can 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 send by 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 by 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 herein 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 herein 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 by 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, if only there is the VRRPv3 router, then in Preset Time, only send the VRRPv3 message.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, increased survival newly and surveyed mechanism, the deleted problem of contingent routing iinformation has not realized effective renewal of routing iinformation owing to do not send notification packet when steady operation to efficiently solve standby router.
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, start VRRPv3 and suppress timer MASTER_Down_Int=3 second, do 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 to 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; Be used for the result of judge module 601 for being the transmission of inhibition VRRPv3 message in Preset Time if suppress module 602; 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 that sends 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.Judging unit is used for the sign of the transmission router that carries according to notification packet and sends the sign of router place VRRP group, judges whether there is this transmission router in the VRRP information; If updating block is used for the judged result of judging unit for not, be kept in the VRRP information sending the sign of router, the sign that transmission router place VRRP organizes and the VRRP version that sends router; 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 to 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, be used to send notification packet to other routers in the same VRRP group, and 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 recomputating the life cycle of the VRRP router of VRRP information updating after update module is upgraded VRRP information.
Further, can also comprise: removing module is used for deleting the VRRP information of this VRRP router correspondence when the life cycle of VRRP router finishes.
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, if only there is the VRRPv3 router, then in Preset Time, only send the VRRPv3 message.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 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.
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 (14)

1. method for communicating between a Virtual Router Redundacy Protocol VRRP router is characterized in that, comprising:
Judge in the same VRRP group whether have VRRPv2 router and VRRPv3 router simultaneously according to the VRRP information that obtains, comprise the sign of VRRP router, the sign and the VRRP version of place VRRP group in the described VRRP information;
If in Preset Time, suppress the transmission of VRRPv3 message;
If not, in Preset Time, suppress the transmission of VRRPv2 message.
2. method according to claim 1 is characterized in that, described VRRP information according to acquisition judges in the same VRRP group whether exist simultaneously before VRRPv2 router and the VRRPv3 router, described method also comprises:
In first announcement cycle that starts, receive the notification packet that other VRRP routers send, carry its sign that sends router in the described notification packet, send the sign of router place VRRP group and the VRRP version that sends router;
Upgrade VRRP information according to described notification packet.
3. method according to claim 2 is characterized in that, describedly upgrades VRRP information according to described notification packet and comprises:
According to the sign of the transmission router that carries in the described notification packet and the sign of transmission router place VRRP group, judge whether there is described transmission router in the described VRRP information;
If not, the sign of described transmission router, the sign of described transmission router place VRRP group and the VRRP version of described transmission router are kept in the described VRRP information;
If, according to the VRRP version in the described VRRP information of the VRRP version updating of the transmission router in the described notification packet.
4. method according to claim 1 is characterized in that, described method also comprises:
Before the life cycle of VRRP router finishes, send the survival probe messages to other routers in the same VRRP group;
Receive the response message of other router feedbacks;
Upgrade VRRP information according to described response message.
5. method according to claim 4 is characterized in that, upgrades after the described VRRP information according to described response message, and described method also comprises:
Send notification packet to other routers in the same VRRP group, carry the VRRP information after the renewal in the described notification packet.
6. method according to claim 1 is characterized in that, described 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, described method also comprised in described whole VRRP at its place organized:
Receive the notification packet that described primary route device sends, carry the VRRP information after described primary route device upgrades according to described response message in the described notification packet;
Upgrade VRRP information according to described notification packet.
8. a Virtual Router Redundacy Protocol VRRP 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 described VRRP information;
Suppress module, if the result who is used for described judge module is for being the transmission of inhibition VRRPv3 message in Preset Time; If the judged result of described 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 that starts, receive the notification packet that other VRRP routers send, carry its sign that sends router in the described 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 described notification packet.
10. router according to claim 9 is characterized in that, described update module comprises:
Judging unit is used for the sign of the transmission router that carries according to described notification packet and sends the sign of router place VRRP group, judges whether there is described transmission router in the described VRRP information;
Updating block is if the judged result that is used for described judging unit is kept at the sign of described transmission router, the sign of described transmission router place VRRP group and the VRRP version of described transmission router in the described VRRP information for not; If the judged result of described judging unit is for being, according to the VRRP version in the described VRRP information of the VRRP version updating of the transmission router in the described notification packet.
11. router according to claim 8 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 to other routers in the same VRRP group; Receive the response message of other router feedbacks in the same VRRP group;
Described update module also is used for: upgrade VRRP information according to described response message.
12. router according to claim 11 is characterized in that, also comprises:
Synchronously update module is used to send notification packet to other routers in the same VRRP group, carries the VRRP information after the renewal in the described 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:
Update module is used to receive the notification packet that described primary route device sends synchronously, carries the VRRP information after described primary route device upgrades according to described response message in the described notification packet; Upgrade VRRP information according to described 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 true CN102035744A (en) 2011-04-27
CN102035744B 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)

Cited By (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
CN108696428A (en) * 2018-05-17 2018-10-23 北京大米科技有限公司 Routing detection method, routing node based on tunneling technique 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

Cited By (3)

* 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
EP2547054A1 (en) * 2011-07-04 2013-01-16 Huawei Technologies Co., Ltd. Virtual router redundancy protocol based message sending and receiving method, apparatus and system
CN108696428A (en) * 2018-05-17 2018-10-23 北京大米科技有限公司 Routing detection method, routing node based on tunneling technique and central server

Also Published As

Publication number Publication date
CN102035744B (en) 2012-12-12

Similar Documents

Publication Publication Date Title
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
CN101056270B (en) A route convergence method and routing device
MX2007011277A (en) Power-save control for network master device.
CN102136928B (en) Topology discovery method and device
CN102098354A (en) Method and server for allocating dynamic host configuration protocol (DHCP) addresses
CN107493191A (en) A kind of clustered node and self scheduling container group system
CN104679796A (en) Selecting method, selecting device and database mirror image cluster node
CN104426728A (en) Communications device utilizing a central discovery mechanism, and respective method
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
CN102291465A (en) Load balancing method, device and system
KR100825735B1 (en) Method for Address Space Management about nodes incapable of communication over ZigBee Network
CN103546315A (en) System, method and equipment for backing up DHCP (dynamic host configuration protocol) server
CN102843441A (en) Method and device for controlling address configuration way
CN103516612A (en) Method for generating routing table items in a distributed router, and distributed router
CN111935314A (en) Block chain system, message transmission method and device
CN112437454A (en) Data transmission method and device, storage medium and electronic device
JP5775473B2 (en) Edge device redundancy system, switching control device, and edge device redundancy method
CN111971984A (en) Low power consumption Bluetooth communication method, electronic device, network and storage medium
CN114448866B (en) Network domain management and control method, network system, device and storage medium
CN111629059A (en) Cluster communication method, system, equipment and computer readable storage medium
CN102035744B (en) Method for performing communication among virtual router redundancy protocol (VRRP) routers and routers
JP5974911B2 (en) Communication system and network relay device
CN102984739A (en) Breakdown information processing method and processing device

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