CN102932249B - A kind of transmission method of VRRP message and device - Google Patents

A kind of transmission method of VRRP message and device Download PDF

Info

Publication number
CN102932249B
CN102932249B CN201210381589.5A CN201210381589A CN102932249B CN 102932249 B CN102932249 B CN 102932249B CN 201210381589 A CN201210381589 A CN 201210381589A CN 102932249 B CN102932249 B CN 102932249B
Authority
CN
China
Prior art keywords
equipment
vrrp
backup
message
master
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
CN201210381589.5A
Other languages
Chinese (zh)
Other versions
CN102932249A (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.)
New H3C Information Technologies Co Ltd
Original Assignee
Hangzhou H3C Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN201210381589.5A priority Critical patent/CN102932249B/en
Publication of CN102932249A publication Critical patent/CN102932249A/en
Application granted granted Critical
Publication of CN102932249B publication Critical patent/CN102932249B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of transmission method and device of VRRP message, the method comprises: intermediate equipment in default period 1 adduction to the VRRP message from Master equipment, and when not receiving the VRRP message from Backup equipment, send confirmation message to described Master equipment; Described intermediate equipment sends described VRRP message according to the VRRP cycle to described Backup equipment; Wherein, the described default period 1 is greater than the described VRRP cycle.In the present invention, the problem such as IP address conflict and service traffics interruption can not be there is, and effectively can alleviate the load of Master equipment in backup group.

Description

A kind of transmission method of VRRP message and device
Technical field
The present invention relates to communication technical field, particularly relate to a kind of VRRP(VirtualRouterRedundancyProtocol, Virtual Router Redundancy Protocol) transmission method of message and device.
Background technology
The set of router can bearing gateway function in local area network (LAN) joins in backup group by VRRP function, backup group is by a Master(master) router and multiple stage Backup(backup) router forms, externally be equivalent to a VR(VirtualRouter, virtual router), this VR has IP address, is called virtual ip address; And the terminal in local area network (LAN) only needs the IP address knowing this VR, and be set to the IP address of gateway, the terminal in local area network (LAN) is communicated with external network by this VR.
As shown in Figure 1, be the networking schematic diagram of VRRP network, Route1(router one), Route2 and Route3 form 3 backup groups, 3 corresponding VR are respectively VR1, VR2 and VR3, and VR1 is PC1 gateway, and VR2 is PC2 gateway, and VR3 is PC3 gateway; Make Route1 be the Master router of VR1 by configuration preference level, Route2 is the Master router of VR2, and Route3 is the Master router of VR3.Based on this application scenarios, the flow of PC1 and IP network is forwarded by Route1, and the flow of PC2 and IP network is forwarded by Route2, and the flow of PC3 and IP network is forwarded by Route3.
In prior art, for any one backup group (for VR1), in order to make Route2 and Route3 always for Backup router, then the Master router (i.e. Route1) of VR1 needs timed sending VRRP message to SW1, and by SW1 by VRRP message repeating to Route2 and Route3, to make Route2 and Route3 always for Backup router.
But, when the control plane of Master router is that busy condition is (as CPU(CentralProcessingUnit, CPU) load is excessive, utilance is 100%) time, Master router cannot send VRRP message on time, Backup router cannot receive VRRP message, then cause Backup router again to campaign for one and become Master router, make in backup group, to there is multiple Master router, and cause IP address conflict in network, the problems such as service traffics interruption.
Summary of the invention
The invention provides a kind of transmission method and device of VRRP message, interrupt to avoid service traffics.
In order to achieve the above object, the embodiment of the present invention provides a kind of transmission method of Virtual Router Redundancy Protocol VRRP message, be applied in the VRRP network comprising main Master equipment and backup Backup equipment, described Master equipment and described Backup equipment are the routing devices being arranged in same backup group, and described Master equipment is connected with intermediate equipment respectively with described Backup equipment, the method comprises the following steps: described intermediate equipment in default period 1 adduction to the VRRP message from described Master equipment, and when not receiving the VRRP message from described Backup equipment, the confirmation message being used to indicate and stopping sending VRRP message is sent to described Master equipment, described intermediate equipment copies the VRRP message from described Master equipment, and according to the VRRP cycle to the VRRP message copied described in described Backup equipment transmission, wherein, the described default period 1 is greater than the described VRRP cycle.
The VRRP message copied described in described intermediate equipment to send to described Backup equipment according to the VRRP cycle, also comprise afterwards: described intermediate equipment is when detecting BFD protocol detection to link failure between self and described Master equipment by two-way converting, if the link within default second round between self and described Master equipment does not recover, then stop the VRRP message copied described in sending to described Backup equipment, again Master equipment in backup group is campaigned for make the described Backup equipment utilization VRRP message timeout mechanism each equipment triggered in described VRRP network, wherein, be not more than the described VRRP cycle described default second round.
Link within default second round between intermediate equipment and described Master equipment does not recover, when each equipment in described VRRP network campaigns for the Master equipment in backup group based on preempt-mode, described method comprises further: the VRRP message structure priority copied described in described intermediate equipment utilizes is the VRRP message of 1, and by described priority be 1 VRRP message send to described Backup equipment, with make priority described in described Backup equipment utilization be 1 the VRRP message each equipment triggered in described VRRP network again campaign for Master equipment in backup group.
The VRRP message copied described in described intermediate equipment to send to described Backup equipment according to the VRRP cycle, also comprise afterwards: described intermediate equipment is when receiving the VRRP message from described Backup equipment, stop the VRRP message copied described in sending to described Backup equipment, and the VRRP message from described Backup equipment is sent to described Master equipment, to make the Master equipment of again campaigning between described Master equipment and Backup equipment in backup group; Described intermediate equipment is when receiving the VRRP message from described Master equipment, stop the VRRP message copied described in sending to described Backup equipment, and the VRRP message from described Master equipment is sent to described Backup equipment, to make the Master equipment of again campaigning between described Master equipment and Backup equipment in backup group.
Described intermediate equipment is according to the process of VRRP cycle to the VRRP message copied described in described Backup equipment transmission, comprise further: if described intermediate equipment sends the confirmation message being used to indicate and stopping sending VRRP message to described Master equipment after, the VRRP message from described Master equipment is not received within the default period 3, and the VRRP message do not received from described Backup equipment, then described intermediate equipment to send to described Backup equipment according to the VRRP cycle described in the VRRP message that copies; Or, if described intermediate equipment sends the confirmation message being used to indicate and stopping sending VRRP message to described Master equipment after, receive the VRRP message from described Master equipment, then described intermediate equipment refusal sends according to the VRRP cycle VRRP message copied to described Backup equipment; Wherein, the described default period 1 is greater than the described default period 3, and the described default period 1 is not more than described VRRP cycle of 3 times, and the described default period 3 is greater than the described VRRP cycle.
The VRRP message copied described in described intermediate equipment to send to described Backup equipment according to the VRRP cycle, also comprise afterwards: described intermediate equipment sends free ARP message, and IP corresponding to described gratuitous ARP packet is the virtual IP address of the backup group that described Master equipment and described Backup equipment are corresponding, the medium access control MAC that described gratuitous ARP packet is corresponding is the Virtual MAC of described Master equipment, and the transmission cycle of described gratuitous ARP packet was determined based on the digestion period of ARP; Described intermediate equipment self stops to after the VRRP message copied described in described Backup equipment sends determining, described intermediate equipment stops sending described gratuitous ARP packet.
The embodiment of the present invention provides a kind of transmitting device of Virtual Router Redundancy Protocol VRRP message, be applied in the VRRP network comprising main Master equipment and backup Backup equipment, described Master equipment and described Backup equipment are the routing devices being arranged in same backup group, and described Master equipment is connected with intermediate equipment respectively with described Backup equipment, described intermediate equipment comprises described transmitting device, and this intermediate equipment comprises:
Master side communication module, for in default period 1 adduction to the VRRP message from described Master equipment, and when not receiving the VRRP message from described Backup equipment, send the confirmation message being used to indicate and stopping sending VRRP message to described Master equipment;
Backup side communication module, for copying the VRRP message from described Master equipment, and according to the VRRP cycle to the VRRP message copied described in described Backup equipment transmission;
Wherein, the described default period 1 is greater than the described VRRP cycle.
Described Backup side communication module, also for when being detected BFD protocol detection by two-way converting to link failure between this equipment and described Master equipment, if the link within default second round between this equipment and described Master equipment does not recover, then stop the VRRP message copied described in sending to described Backup equipment, again campaign for Master equipment in backup group to make the described Backup equipment utilization VRRP message timeout mechanism each equipment triggered in described VRRP network;
Wherein, be not more than the described VRRP cycle described default second round.
Link within default second round between intermediate equipment and described Master equipment does not recover, when each equipment in described VRRP network campaigns for the Master equipment in backup group based on preempt-mode; Described Backup side communication module, the VRRP message structure priority being further used for copying described in utilizing is the VRRP message of 1, and by described priority be 1 VRRP message send to described Backup equipment, with make priority described in described Backup equipment utilization be 1 the VRRP message each equipment triggered in described VRRP network again campaign for Master equipment in backup group.
Described Backup side communication module, also for when receiving the VRRP message from described Backup equipment, stops the VRRP message copied described in sending to described Backup equipment; When receiving the VRRP message from described Master equipment, stop the VRRP message copied described in sending to described Backup equipment, and the VRRP message from described Master equipment is sent to described Backup equipment, to make the Master equipment of again campaigning between described Master equipment and Backup equipment in backup group;
Described Master side communication module, also for when receiving the VRRP message from described Backup equipment, VRRP message from described Backup equipment is sent to described Master equipment, to make the Master equipment of again campaigning between described Master equipment and Backup equipment in backup group.
Described Backup side communication module, specifically for after send the confirmation message being used to indicate and stopping sending VRRP message to described Master equipment, if do not receive the VRRP message from described Master equipment within the default period 3, and the VRRP message do not received from described Backup equipment, then the VRRP message copied described in sending to described Backup equipment according to the VRRP cycle; Or,
After send the confirmation message being used to indicate and stopping sending VRRP message to described Master equipment, if receive the VRRP message from described Master equipment, then refuse to send according to the VRRP cycle VRRP message copied to described Backup equipment;
Wherein, the described default period 1 is greater than the described default period 3, and the described default period 1 is not more than described VRRP cycle of 3 times, and the described default period 3 is greater than the described VRRP cycle.
Also comprise: end side communication module, for according to the VRRP cycle to after the VRRP message copied described in described Backup equipment sends, send free ARP message, and IP corresponding to described gratuitous ARP packet is the virtual IP address of the backup group that described Master equipment and described Backup equipment are corresponding, the medium access control MAC that described gratuitous ARP packet is corresponding is the Virtual MAC of described Master equipment, and the transmission cycle of described gratuitous ARP packet was determined based on the digestion period of ARP;
Self stop, to after the VRRP message copied described in described Backup equipment sends, stopping sending described gratuitous ARP packet determining.
Compared with prior art, the embodiment of the present invention at least has the following advantages: in the embodiment of the present invention, act on behalf of Master equipment by using intermediate equipment and send VRRP message, when the control plane of Master equipment is busy condition, Backup equipment can be made can to receive VRRP message, then make in backup group, there is multiple Master equipment, the problem such as IP address conflict and service traffics interruption can not be there is, and effectively can alleviate the load of Master equipment in backup group, thus solve the data plane forwarding of Master equipment own normally, and control plane is temporarily busy, cannot processing protocol message time concussion problem that the VRRP of whole network topology and upper-layer protocol are produced.
Accompanying drawing explanation
Fig. 1 is the networking schematic diagram of VRRP network of the prior art;
Fig. 2 is the application scenarios schematic diagram of the embodiment of the present invention;
Fig. 3 is the transmission method flow chart of a kind of VRRP message that the embodiment of the present invention provides;
Fig. 4 is the transmitting device structure chart of a kind of VRRP message that the embodiment of the present invention proposes.
Embodiment
Below in conjunction with accompanying drawing, the embodiment of the present invention is described in detail.
After in backup group, each equipment campaigns for out Master equipment and Backup equipment by mutual VRRP message (it carries priority, for electing Master equipment), Master equipment needs to make Backup equipment can not become Master equipment by sending VRRP message; For in prior art, because Master equipment cannot send VRRP message in time, cause in backup group, there is the problem caused by multiple Master equipment, the embodiment of the present invention proposes a kind of transmission method of VRRP message, the method is applied in the VRRP network comprising Master equipment (as Master router) and Backup equipment (as Backup router), this Master equipment and Backup equipment are the routing devices being arranged in same backup group, and Master equipment is connected with intermediate equipment respectively with Backup equipment; Wherein, this intermediate equipment needs to be connected with Master equipment and Backup equipment simultaneously, as switching equipment or other while with the equipment of Master equipment and Backup equipment connection.
In the embodiment of the present invention, for the application scenarios shown in Fig. 2, Route1, Route2 and Route3 constitute 3 VRRP backup groups, and 3 corresponding VR are respectively VR1, VR2 and VR3, and VR1 is PC1 gateway, and VR2 is PC2 gateway, and VR3 is PC3 gateway; Route1 is made to be the Master equipment of VR1 by configuration preference level, Route2 and Route3 is the Backup equipment of VR1, Route2 is the Master equipment of VR2, Route1 and Route3 is the Backup equipment of VR2, Route3 is the Master equipment of VR3, Route1 and Route2 is the Backup equipment of VR3.
Further, for the VRRP backup group corresponding to VR1, Master equipment is all connected with SW1, SW2 and SW3 respectively with Backup equipment, and therefore can select one from SW1, SW2 and SW3 is intermediate equipment, to select SW1 for intermediate equipment; In like manner, for the VRRP backup group corresponding to VR2, SW2 can be selected to be intermediate equipment; For the VRRP backup group corresponding to VR3, SW3 can be selected to be intermediate equipment.
In the embodiment of the present invention, due to multiple different VRRP backup group can be comprised in VRRP network, Master equipment in each backup group and Backup equipment can be known to make intermediate equipment, therefore can in intermediate equipment maintenance packet storehouse, this message store is for reception/transmit port corresponding to the Master equipment of preserving each backup group, and reception/transmit port that Backup equipment is corresponding.
In addition, because the process of each VRRP backup group is identical, below in conjunction with the process (for the VRRP backup group that VR1 is corresponding) to a backup group, describe the VRRP message transmitting method that the embodiment of the present invention provides in detail, as shown in Figure 3, the method comprises the following steps:
Step 301, intermediate equipment in default period 1 adduction to the VRRP message from Master equipment, and when not receiving the VRRP message from Backup equipment, sending the confirmation message being used to indicate and stopping sending VRRP message to Master equipment, Master equipment stops sending VRRP message afterwards.
Step 302, intermediate equipment copies the VRRP message from Master equipment, and sends this VRRP message copied according to the VRRP cycle to Backup equipment.
In the embodiment of the present invention, the AdverTimer(application timer at VRRP message) information in VRRP cycle can be carried in field, and preset the period 1 and need to be greater than the VRRP cycle; In a preferred embodiment, the default period 1 can be 3 VRRP cycles, and intermediate equipment can obtain the VRRP cycle from the AdverTimer field of VRRP message.
Under the application scenarios shown in Fig. 2, for the VRRP backup group corresponding to VR1, by the mutual VRRP message of SW1 between Route1, Route2 and Route3, and the priority configured in VR1 due to Route1 is the highest, become Master equipment, Route2 and Route3, because priority is lower than Route1, becomes Backup equipment; Afterwards, Route1 sends VRRP message according to the VRRP cycle to SW1, and by SW1 by this VRRP message repeating to Route2 and Route3.
In the process, SW1 is intermediate equipment, and when SW1 receives only the VRRP message from Route1 within 3 VRRP cycles, when not receiving the VRRP message from Route2 and Route3, then SW1 determines the process of transmitting that self needs to act on behalf of VRRP message; Further, SW1 needs to send to Route1 the confirmation message being used to indicate and stopping sending VRRP message, and Route1 stops sending VRRP message afterwards; And SW1 needs the VRRP message copied from Route1, and sends to the VRRP message copied to Route2 and Route3 according to the VRRP cycle.
In the embodiment of the present invention, intermediate equipment according to the VRRP cycle to after Backup equipment sends the VRRP message copied, under normal circumstances, intermediate equipment can replace Master equipment to send the VRRP message copied to Backup equipment always, until there is following situation:
Situation one, intermediate equipment are passing through BFD(BidirectionalForwardingDetection, two-way converting detects) protocol detection to link failure between self and Master equipment time, if the link within default second round between self and Master equipment does not recover, then stop sending to Backup equipment the VRRP message copied, again campaign for Master equipment in backup group to make the Backup equipment utilization VRRP message timeout mechanism each equipment triggered in VRRP network.
Wherein, this default second round is not more than the VRRP cycle, and in a preferred embodiment, this default second round can be 1 VRRP cycle; In addition, the time-out time that VRRP agreement specifies is: 3*VRRP cycle+Skew_Time(shift time).
Concrete, for new Master equipment can be switched in time when ensureing Master equipment fault (namely cannot be connected to upper layer network by this paths of Master equipment), need to configure BFD function in intermediate equipment and Master equipment, if intermediate equipment is detecting the link failure between self and Master equipment by BFD, and when within 1 VRRP cycle, this fault is not recovered, then intermediate equipment stops sending the VRRP message that copies (before fault recovery to Backup equipment, any other event all can not trigger intermediate equipment and send the VRRP message copied to Backup equipment), again Master equipment in backup group is campaigned for make the Backup equipment utilization VRRP message timeout mechanism each equipment triggered in VRRP network, namely when Backup equipment does not receive VRRP message in the time-out time that VRRP agreement specifies, again the Master equipment in this backup group is campaigned for.
Further, Master equipment in backup group and Backup equipment have following working method: (1) non-preemption mode, as long as Master equipment does not break down under which, even if Backup equipment is configured higher priority also can not become Master equipment, non-preemption mode can be avoided frequently switching Master equipment; (2) preempt-mode, Backup equipment under which is once find that own priority is higher than the priority of current Master equipment, re-electing of Master equipment will be triggered, and replacing original Master equipment, the Master equipment that preempt-mode can guarantee to bear forwarding task is the equipment that backup group medium priority is the highest.
Based on this, when each equipment in VRRP network campaigns for the Master equipment in backup group based on preempt-mode, intermediate equipment can also utilize copy VRRP message structure priority be 1 VRRP message (by Master equipment send VRRP message in priority modification be 1), and by priority be 1 VRRP message send to Backup equipment, with make Backup equipment utilization priority be 1 the VRRP message each equipment triggered at once in VRRP network again campaign for Master equipment in backup group.
Under the application scenarios shown in Fig. 2, SW1 acts on behalf of Route1 and sends to Route2 and Route3 in the process of VRRP message, if the port down(fault that SW1 and Route1 up opposite end configuration BFD is connected), namely this paths of Route1 and upper layer network communication cannot be passed through, and SW1 waits for that 1 VRRP week after date does not still recover, then SW1 stops sending VRRP message to Route2 and Route3 immediately, make Route2 and Route3 can not receive VRRP message in the time-out time that VRRP agreement specifies, and again campaign for the Master equipment in backup group.If backup group is preempt-mode in addition, then SW1 can also construct a priority be 1 VRRP message send to Route2 and Route3, make Route2 and Route3 again campaign for Master equipment in this backup group at once.
Situation two, intermediate equipment are when receiving the VRRP message from Backup equipment, stop sending to Backup equipment the VRRP message copied, and the VRRP message from Backup equipment is sent to Master equipment and other Backup equipment, to make the Master equipment of again campaigning between Master equipment and Backup equipment in backup group; Further, Master equipment is after receiving VRRP message, need to send VRRP message to intermediate equipment, and give other Backup equipment by intermediate equipment by VRRP message repeating, thus again campaign for the Master equipment in backup group between triggering Master equipment and Backup equipment; In election contest process again, Master equipment is by comparing the priority and the priority of self of carrying in VRRP message, and degradation becomes Backup equipment or continues as Master equipment; After Master equipment degradation becomes Backup equipment, need to stop sending VRRP message to intermediate equipment; When Master equipment continues as Master equipment, need to continue to send VRRP message to intermediate equipment, until receive the confirmation message being used to indicate stopping transmission VRRP message from intermediate equipment, Master equipment can stop sending VRRP message afterwards.
Under the application scenarios shown in Fig. 2, SW1 acts on behalf of Route1 and sends to Route2 and Route3 in the process of VRRP message, if SW1 receives the VRRP message from Route2 or Route3, then stop acting on behalf of Route1 and send VRRP message to Route2 and Route3, and the VRRP message from Route2 is sent to Route1 and Route3(or the VRRP message from Route3 is sent to Route1 and Route2); Further, Route1 is current is in Master state, and do not send VRRP message (being sent by SW1), after receiving the VRRP message of Route2 or Route3, Route1 needs to send VRRP message to SW1, and by SW1 by VRRP message repeating to Route2 or Route3, thus trigger the Master equipment of again campaigning between Route1, Route2 and Route3 in backup group; In election contest process again, Route1 is downgraded to Backup equipment by comparing priority or continues as Master equipment; After Route1 degradation becomes Backup equipment, stop sending VRRP message to SW1; When Route1 continues as Master equipment, send VRRP message to SW1, until receive the confirmation message being used to indicate stopping transmission VRRP message from SW1, Route1 stops sending VRRP message afterwards.
Situation three, intermediate equipment are when receiving the VRRP message from Master equipment, stop sending to Backup equipment the VRRP message copied, and the VRRP message from Master equipment is sent to Backup equipment, to make the Master equipment of again campaigning between Master equipment and Backup equipment in backup group.Wherein, Master equipment is when configuration changes (priority as self changes), although the current VRRP of transmission message (being sent by intermediate equipment), Master equipment can revert to the state sending VRRP message immediately, and resends VRRP message to intermediate equipment; Further, if intermediate equipment receives only the VRRP message of Master equipment within 3 VRRP cycles, and configuration field does not change (namely VRRP message does not change) in VRRP message, then intermediate equipment starts to act on behalf of Master equipment to Backup equipment transmission VRRP message.
Under the application scenarios shown in Fig. 2, SW1 acts on behalf of Route1 and sends to Route2 and Route3 in the process of VRRP message, if SW1 receives the VRRP message from Route1, then stop acting on behalf of Route1 and send VRRP message to Route2 and Route3, and the VRRP message again received is sent to Route2 and Route3; Further, if SW1 receives only the VRRP message from Route1 within 3 VRRP cycles, do not receive the VRRP message from Route2 and Route3, then SW1 again acts on behalf of Route1 and sends VRRP message to Route2 and Route3.
In the said process of the embodiment of the present invention, Master equipment needs to support that self does not send the function of VRRP message, suppose that Master equipment does not support that self does not send the function of VRRP message, namely after Master equipment receives the confirmation message being used to indicate and stopping sending VRRP message, do not stop sending VRRP message, and continue to send VRRP message according to the VRRP cycle; Based on this, intermediate equipment to send the process of the VRRP message copied according to the VRRP cycle to Backup equipment, comprise further:
After sending in intermediate equipment the confirmation message being used to indicate and stopping sending VRRP message to Master equipment, if (namely Master equipment does not support that self does not send the function of VRRP message to the VRRP message still receiving from Master equipment, continue to send VRRP message according to the VRRP cycle), then intermediate equipment refusal sends according to the VRRP cycle VRRP message copied to Backup equipment, does not namely need to act on behalf of Master equipment and sends the VRRP message copied to Backup equipment.
After sending in intermediate equipment the confirmation message being used to indicate and stopping sending VRRP message to Master equipment, if (Master equipment does not support that self does not send the function of VRRP message to the VRRP message not receiving from Master equipment within the default period 3, continue to send VRRP message according to the VRRP cycle, but the control plane due to Master equipment is busy condition, VRRP message cannot be sent according to the VRRP cycle) within the default period 3, and the VRRP message do not received from Backup equipment, then intermediate equipment sends the VRRP message copied to Backup equipment according to the VRRP cycle, namely need to act on behalf of Master equipment and send the VRRP message copied to Backup equipment.
In the embodiment of the present invention, this default period 1 is greater than the default period 3, and this default period 1 is not more than VRRP cycle of 3 times, and this default period 3 is greater than the VRRP cycle; In a preferred embodiment, this default period 1 can be 3 VRRP cycles, and this default period 3 can be 2 (or 1.5) VRRP cycles.
In the embodiment of the present invention, intermediate equipment is acting on behalf of Master equipment in the process of Backup equipment transmission VRRP message, also can send gratuitous ARP (AddressResolutionProtocol, address resolution protocol) message, to ensure that the ARP request of terminal to gateway can obtain response when Master equipment is busy; The IP that this gratuitous ARP packet is corresponding is the virtual IP address of backup group, corresponding MAC(MediaAccessControl, medium access control) be the Virtual MAC of Master equipment, and the transmission cycle of gratuitous ARP packet is based on determining the digestion period of ARP (being 1/3 of the digestion period of ARP as the transmission cycle); In addition, intermediate equipment also can safeguard the MAC address entries in lower floor's switching network, and MAC is wherein the Virtual MAC of Master equipment, and outgoing interface is the port connecting Master equipment.
Further, intermediate equipment is after determining the VRRP message (namely intermediate equipment stopping acts on behalf of Master equipment to Backup equipment transmission VRRP message) self stopping sending to Backup equipment and copy, this intermediate equipment also needs to stop at once sending gratuitous ARP packet, and removes the MAC address entries in the lower floor's switching network safeguarded.
Based on the inventive concept same with said method, a kind of transmitting device of VRRP message is also proposed in the embodiment of the present invention, be applied in the VRRP network comprising main Master equipment and backup Backup equipment, described Master equipment and described Backup equipment are the routing devices being arranged in same backup group, and described Master equipment is connected with intermediate equipment respectively with described Backup equipment, described intermediate equipment comprises described transmitting device, and as shown in Figure 4, this intermediate equipment comprises:
Master side communication module 11, for in default period 1 adduction to the VRRP message from described Master equipment, and when not receiving the VRRP message from described Backup equipment, send the confirmation message being used to indicate and stopping sending VRRP message to described Master equipment;
Backup side communication module 12, for copying the VRRP message from described Master equipment, and according to the VRRP cycle to the VRRP message copied described in described Backup equipment transmission;
Wherein, the described default period 1 is greater than the described VRRP cycle.
Described Backup side communication module 12, also for when being detected BFD protocol detection by two-way converting to link failure between this equipment and described Master equipment, if the link within default second round between this equipment and described Master equipment does not recover, then stop the VRRP message copied described in sending to described Backup equipment, again campaign for Master equipment in backup group to make the described Backup equipment utilization VRRP message timeout mechanism each equipment triggered in described VRRP network;
Wherein, be not more than the described VRRP cycle described default second round.
Link within default second round between intermediate equipment and described Master equipment does not recover, when each equipment in described VRRP network campaigns for the Master equipment in backup group based on preempt-mode; Described Backup side communication module 12, the VRRP message structure priority being further used for copying described in utilizing is the VRRP message of 1, and by described priority be 1 VRRP message send to described Backup equipment, with make priority described in described Backup equipment utilization be 1 the VRRP message each equipment triggered in described VRRP network again campaign for Master equipment in backup group.
Described Backup side communication module 12, also for when receiving the VRRP message from described Backup equipment, stops the VRRP message copied described in sending to described Backup equipment; When receiving the VRRP message from described Master equipment, stop the VRRP message copied described in sending to described Backup equipment, and the VRRP message from described Master equipment is sent to described Backup equipment, to make the Master equipment of again campaigning between described Master equipment and Backup equipment in backup group;
Described Master side communication module 11, also for when receiving the VRRP message from described Backup equipment, VRRP message from described Backup equipment is sent to described Master equipment, to make the Master equipment of again campaigning between described Master equipment and Backup equipment in backup group.
Described Backup side communication module 12, specifically for after send the confirmation message being used to indicate and stopping sending VRRP message to described Master equipment, if do not receive the VRRP message from described Master equipment within the default period 3, and the VRRP message do not received from described Backup equipment, then the VRRP message copied described in sending to described Backup equipment according to the VRRP cycle; Or,
After send the confirmation message being used to indicate and stopping sending VRRP message to described Master equipment, if receive the VRRP message from described Master equipment, then refuse to send according to the VRRP cycle VRRP message copied to described Backup equipment;
Wherein, the described default period 1 is greater than the described default period 3, and the described default period 1 is not more than described VRRP cycle of 3 times, and the described default period 3 is greater than the described VRRP cycle.
This intermediate equipment also comprises: end side communication module 13, for according to the VRRP cycle to after the VRRP message copied described in described Backup equipment sends, send free ARP message, and IP corresponding to described gratuitous ARP packet is the virtual IP address of the backup group that described Master equipment and described Backup equipment are corresponding, the medium access control MAC that described gratuitous ARP packet is corresponding is the Virtual MAC of described Master equipment, and the transmission cycle of described gratuitous ARP packet was determined based on the digestion period of ARP; Self stop, to after the VRRP message copied described in described Backup equipment sends, stopping sending described gratuitous ARP packet determining.
Wherein, the modules of apparatus of the present invention can be integrated in one, and also can be separated deployment.Above-mentioned module can merge into a module, also can split into multiple submodule further.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention can by hardware implementing, and the mode that also can add necessary general hardware platform by software realizes.Based on such understanding, technical scheme of the present invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise some instructions and perform method described in each embodiment of the present invention in order to make a computer equipment (can be personal computer, server, or the network equipment etc.).
It will be appreciated by those skilled in the art that accompanying drawing is the schematic diagram of a preferred embodiment, the module in accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device in embodiment can carry out being distributed in the device of embodiment according to embodiment description, also can carry out respective change and be arranged in the one or more devices being different from the present embodiment.The module of above-described embodiment can merge into a module, also can split into multiple submodule further.
The invention described above sequence number, just to describing, does not represent the quality of embodiment.
Be only several specific embodiment of the present invention above, but the present invention is not limited thereto, the changes that any person skilled in the art can think of all should fall into protection scope of the present invention.

Claims (12)

1. a kind of transmission method of Virtual Router Redundancy Protocol VRRP message, be applied in the VRRP network comprising main Master equipment and backup Backup equipment, described Master equipment and described Backup equipment are the routing devices being arranged in same backup group, and described Master equipment is connected with intermediate equipment respectively with described Backup equipment, it is characterized in that, the method comprises the following steps:
described intermediate equipment to the VRRP message from described Master equipment, and when not receiving the VRRP message from described Backup equipment, sends the confirmation message being used to indicate and stopping sending VRRP message in default period 1 adduction to described Master equipment;
described intermediate equipment copies the VRRP message from described Master equipment, and according to the VRRP cycle to the VRRP message copied described in described Backup equipment transmission;
wherein, the described default period 1 is greater than the described VRRP cycle.
2. the method of claim 1, is characterized in that, described intermediate equipment, also comprised to the VRRP message copied described in described Backup equipment transmission afterwards according to the VRRP cycle:
described intermediate equipment is when detecting BFD protocol detection to link failure between self and described Master equipment by two-way converting, if the link within default second round between self and described Master equipment does not recover, then stop the VRRP message copied described in sending to described Backup equipment, again campaign for Master equipment in backup group to make the described Backup equipment utilization VRRP message timeout mechanism each equipment triggered in described VRRP network;
wherein, be not more than the described VRRP cycle described default second round.
3. method as claimed in claim 2, it is characterized in that, link within default second round between intermediate equipment and described Master equipment does not recover, when each equipment in described VRRP network campaigns for the Master equipment in backup group based on preempt-mode, described method comprises further:
the VRRP message structure priority copied described in described intermediate equipment utilizes is the VRRP message of 1, and by described priority be 1 VRRP message send to described Backup equipment, with make priority described in described Backup equipment utilization be 1 the VRRP message each equipment triggered in described VRRP network again campaign for Master equipment in backup group.
4. the method of claim 1, is characterized in that, described intermediate equipment, also comprised to the VRRP message copied described in described Backup equipment transmission afterwards according to the VRRP cycle:
described intermediate equipment is when receiving the VRRP message from described Backup equipment, stop the VRRP message copied described in sending to described Backup equipment, and the VRRP message from described Backup equipment is sent to described Master equipment, to make the Master equipment of again campaigning between described Master equipment and Backup equipment in backup group;
described intermediate equipment is when receiving the VRRP message from described Master equipment, stop the VRRP message copied described in sending to described Backup equipment, and the VRRP message from described Master equipment is sent to described Backup equipment, to make the Master equipment of again campaigning between described Master equipment and Backup equipment in backup group.
5. the method of claim 1, is characterized in that, described intermediate equipment, according to the process of VRRP cycle to the VRRP message copied described in described Backup equipment transmission, comprises further:
if described intermediate equipment sends the confirmation message being used to indicate and stopping sending VRRP message to described Master equipment after, the VRRP message from described Master equipment is not received within the default period 3, and the VRRP message do not received from described Backup equipment, then described intermediate equipment to send to described Backup equipment according to the VRRP cycle described in the VRRP message that copies; Or,
if described intermediate equipment sends the confirmation message being used to indicate and stopping sending VRRP message to described Master equipment after, receive the VRRP message from described Master equipment, then described intermediate equipment refusal sends according to the VRRP cycle VRRP message copied to described Backup equipment;
wherein, the described default period 1 is greater than the described default period 3, and the described default period 1 is not more than described VRRP cycle of 3 times, and the described default period 3 is greater than the described VRRP cycle.
6. the method of claim 1, is characterized in that, described intermediate equipment, also comprised to the VRRP message copied described in described Backup equipment transmission afterwards according to the VRRP cycle:
described intermediate equipment sends free ARP message, and IP corresponding to described gratuitous ARP packet is the virtual IP address of the backup group that described Master equipment and described Backup equipment are corresponding, the medium access control MAC that described gratuitous ARP packet is corresponding is the Virtual MAC of described Master equipment, and the transmission cycle of described gratuitous ARP packet was determined based on the digestion period of ARP;
described intermediate equipment self stops to after the VRRP message copied described in described Backup equipment sends determining, described intermediate equipment stops sending described gratuitous ARP packet.
7. a kind of transmitting device of Virtual Router Redundancy Protocol VRRP message, be applied in the VRRP network comprising main Master equipment and backup Backup equipment, described Master equipment and described Backup equipment are the routing devices being arranged in same backup group, and described Master equipment is connected with intermediate equipment respectively with described Backup equipment, described intermediate equipment comprises described transmitting device, it is characterized in that, this intermediate equipment comprises:
master side communication module, for in default period 1 adduction to the VRRP message from described Master equipment, and when not receiving the VRRP message from described Backup equipment, send the confirmation message being used to indicate and stopping sending VRRP message to described Master equipment;
backup side communication module, for copying the VRRP message from described Master equipment, and according to the VRRP cycle to the VRRP message copied described in described Backup equipment transmission;
wherein, the described default period 1 is greater than the described VRRP cycle.
8. device as claimed in claim 7, is characterized in that,
described Backup side communication module, also for when being detected BFD protocol detection by two-way converting to link failure between this equipment and described Master equipment, if the link within default second round between this equipment and described Master equipment does not recover, then stop the VRRP message copied described in sending to described Backup equipment, again campaign for Master equipment in backup group to make the described Backup equipment utilization VRRP message timeout mechanism each equipment triggered in described VRRP network;
wherein, be not more than the described VRRP cycle described default second round.
9. device as claimed in claim 8, it is characterized in that, link within default second round between intermediate equipment and described Master equipment does not recover, when each equipment in described VRRP network campaigns for the Master equipment in backup group based on preempt-mode;
described Backup side communication module, the VRRP message structure priority being further used for copying described in utilizing is the VRRP message of 1, and by described priority be 1 VRRP message send to described Backup equipment, with make priority described in described Backup equipment utilization be 1 the VRRP message each equipment triggered in described VRRP network again campaign for Master equipment in backup group.
10. device as claimed in claim 7, is characterized in that,
described Backup side communication module, also for when receiving the VRRP message from described Backup equipment, stops the VRRP message copied described in sending to described Backup equipment; When receiving the VRRP message from described Master equipment, stop the VRRP message copied described in sending to described Backup equipment, and the VRRP message from described Master equipment is sent to described Backup equipment, to make the Master equipment of again campaigning between described Master equipment and Backup equipment in backup group;
described Master side communication module, also for when receiving the VRRP message from described Backup equipment, VRRP message from described Backup equipment is sent to described Master equipment, to make the Master equipment of again campaigning between described Master equipment and Backup equipment in backup group.
11. device as claimed in claim 7, is characterized in that,
described Backup side communication module, specifically for after send the confirmation message being used to indicate and stopping sending VRRP message to described Master equipment, if do not receive the VRRP message from described Master equipment within the default period 3, and the VRRP message do not received from described Backup equipment, then the VRRP message copied described in sending to described Backup equipment according to the VRRP cycle; Or,
after send the confirmation message being used to indicate and stopping sending VRRP message to described Master equipment, if receive the VRRP message from described Master equipment, then refuse to send according to the VRRP cycle VRRP message copied to described Backup equipment;
wherein, the described default period 1 is greater than the described default period 3, and the described default period 1 is not more than described VRRP cycle of 3 times, and the described default period 3 is greater than the described VRRP cycle.
12. device as claimed in claim 7, is characterized in that, also comprises:
end side communication module, for according to the VRRP cycle to after the VRRP message copied described in described Backup equipment sends, send free ARP message, and IP corresponding to described gratuitous ARP packet is the virtual IP address of the backup group that described Master equipment and described Backup equipment are corresponding, the medium access control MAC that described gratuitous ARP packet is corresponding is the Virtual MAC of described Master equipment, and the transmission cycle of described gratuitous ARP packet was determined based on the digestion period of ARP;
self stop, to after the VRRP message copied described in described Backup equipment sends, stopping sending described gratuitous ARP packet determining.
CN201210381589.5A 2012-10-10 2012-10-10 A kind of transmission method of VRRP message and device Active CN102932249B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210381589.5A CN102932249B (en) 2012-10-10 2012-10-10 A kind of transmission method of VRRP message and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210381589.5A CN102932249B (en) 2012-10-10 2012-10-10 A kind of transmission method of VRRP message and device

Publications (2)

Publication Number Publication Date
CN102932249A CN102932249A (en) 2013-02-13
CN102932249B true CN102932249B (en) 2016-01-20

Family

ID=47646956

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210381589.5A Active CN102932249B (en) 2012-10-10 2012-10-10 A kind of transmission method of VRRP message and device

Country Status (1)

Country Link
CN (1) CN102932249B (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103746856B (en) * 2014-01-28 2017-09-19 华为技术有限公司 Prevent the method and the network equipment of service disconnection
CN109600273B (en) * 2018-11-26 2020-04-21 武汉思普崚技术有限公司 Optimization method and system for UDP message transmission performance
CN110601972A (en) * 2019-09-18 2019-12-20 新华三信息安全技术有限公司 Message transmission method and device and intelligent elastic architecture system
CN111835608B (en) * 2020-05-21 2022-01-18 中国第一汽车股份有限公司 Vehicle control system and vehicle
CN115225708B (en) * 2022-07-28 2023-08-08 天翼云科技有限公司 Message forwarding method computer equipment and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242254A (en) * 2008-02-26 2008-08-13 中兴通讯股份有限公司 Virtual redundant router system and method for transmitting virtual redundant routing protocol packet

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101242254A (en) * 2008-02-26 2008-08-13 中兴通讯股份有限公司 Virtual redundant router system and method for transmitting virtual redundant routing protocol packet

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
VRRP协议应用和改进研究;郑艳涛;《硕士学位论文》;20070513;正文第3章至第四章 *

Also Published As

Publication number Publication date
CN102932249A (en) 2013-02-13

Similar Documents

Publication Publication Date Title
CN110912780B (en) High-availability cluster detection method, system and controlled terminal
CN101588304B (en) Implementation method of VRRP and device
CN102315975B (en) Fault processing method based on intelligent resilient framework (IRF) system and equipment thereof
CN110417569B (en) Network link fault processing method and tunnel endpoint equipment
CN102006184B (en) Management method, device and network device of stack link
WO2012000234A1 (en) Method, apparatus and system for fast switching between links
CN101951345B (en) Message transmitting method and equipment
CN102932249B (en) A kind of transmission method of VRRP message and device
JP2004032758A (en) Router interface backup execution method by vrrp (virtual router redundancy protocol)
JP6287518B2 (en) OpenFlow switch and OpenFlow network failure recovery method
WO2004082222A1 (en) Communication method having the function of partaking the network load
CN104104570A (en) Aggregation processing method in IRF (Intelligent Resilient Framework) system and device
CN102364900B (en) Based on the data transmission method of FRR and equipment in a kind of IRF system
CN101729426B (en) Method and system for quickly switching between master device and standby device of virtual router redundancy protocol (VRRP)
CN101060533B (en) A method, system and device for improving the reliability of VGMP protocol
WO2014059844A1 (en) Method and device for dynamically switching gateway of distributed resilient network interconnect
CN102035676A (en) ARP (Address Resolution Protocol) interaction based method and equipment for detecting and recovering link fault
WO2014079088A1 (en) Method and node for implementing redundancy on basis of chain network
CN102006189A (en) Primary access server determination method and device for dual-machine redundancy backup
CN103490914A (en) Switching system and switching method for multi-machine hot standby of network application equipment
CN102209035B (en) Traffic forwarding method and devices
CN103036701A (en) Network segment crossing N+1 backup method and network segment crossing N+1 backup device
CN101741740B (en) Method, system and equipment for balancing loads
WO2011110134A2 (en) Method, device and broadband access server system for load share
CN110677339A (en) Method and device for protecting redundancy between gateway nodes, gateway equipment and storage medium

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
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: 310052 Binjiang District Changhe Road, Zhejiang, China, No. 466, No.

Patentee after: NEW H3C TECHNOLOGIES Co.,Ltd.

Address before: 310053 Hangzhou hi tech Industrial Development Zone, Zhejiang province science and Technology Industrial Park, No. 310 and No. six road, HUAWEI, Hangzhou production base

Patentee before: HANGZHOU H3C TECHNOLOGIES Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230612

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.