CN102571598B - VRRP group flow synchronous switching method and route equipment - Google Patents

VRRP group flow synchronous switching method and route equipment Download PDF

Info

Publication number
CN102571598B
CN102571598B CN201210025069.0A CN201210025069A CN102571598B CN 102571598 B CN102571598 B CN 102571598B CN 201210025069 A CN201210025069 A CN 201210025069A CN 102571598 B CN102571598 B CN 102571598B
Authority
CN
China
Prior art keywords
arp
host apparatus
equipment
backup
normal work
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
CN201210025069.0A
Other languages
Chinese (zh)
Other versions
CN102571598A (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 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 CN201210025069.0A priority Critical patent/CN102571598B/en
Publication of CN102571598A publication Critical patent/CN102571598A/en
Application granted granted Critical
Publication of CN102571598B publication Critical patent/CN102571598B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a VRRP group flow synchronous switching method. The method comprises the following steps that: a port connecting with each second layer equipment on main equipment is bound; the main equipment recovers normal work, simultaneous UP of the bound port is carried out after waiting for reservation time, a free address resolution protocol ARP message is sent to each of the connected second layer equipment through the bound port, thus each second layer equipment synchronously switches flow to the main equipment which recovers the normal work. The invention discloses route equipment simultaneously. Through applying the VRRP group flow synchronous switching method and the route equipment of the invention, after the main equipment of a VRRP network recovers the normal work, it is ensured that the VRRP flow is synchronously switched to the main equipment which recovers the normal work and the quantity of message loss in switching can be reduced too.

Description

VRRP group flow method for synchronously switching and routing device
Technical field
The present invention relates to Virtual Router Redundancy Protocol (VRRP) networking technology field, particularly VRRP group flow method for synchronously switching and routing device.
Background technology
Fig. 1 is the structural representation of existing VRRP networking, and as shown in Figure 1, CE1, CE2 up VRRP, CE1 are host apparatus, and CE2 is stand-by equipment.
When CE1 breaks down, message is switched to reserve link, and the link namely between LSW1 and CE2 and LSW2 and CE2 forward; Now, if CE1 recovers normal work, then CE1 will send gratuitous ARP packet to LSW1 and LSW2, and notice LSW1 and LSW2 is by message by active link, and the link namely between LSW1 and CE1 and the link between LSW2 and CE1, forward.
Summary of the invention
In view of this, the invention provides a kind of VRRP group flow method for synchronously switching, after host apparatus in VRRP networking recovers normal work, can not only ensure that VRRP group flow synchronism switching is on the host apparatus recovering normally to work, but also the quantity of message dropping when can reduce switching.
Present invention also offers a kind of routing device, after host apparatus in VRRP networking recovers normal work, can not only ensure that VRRP group flow synchronism switching is on the host apparatus recovering normally to work, but also the quantity of message dropping when can reduce switching.
In order to achieve the above object, the technical scheme that the present invention proposes is:
A kind of Virtual Router Redundancy Protocol VRRP group flow method for synchronously switching, the method comprises:
Port host apparatus connecting each two-layer equipment is bound;
Host apparatus recovers normal work, by the described port of binding UP simultaneously after waiting for the ticket reserving time, send free ARP message by the described port of binding to each described two-layer equipment connected, make each described two-layer equipment by flow synchronism switching to the host apparatus recovering normal work.
When host apparatus recovers normally to work, the method also comprises: the ARP backup that the equipment that the host apparatus recovering normal work receives work at present sends, to make the ARP recovered in the synchronous VRRP networking of host apparatus of normal work.
The ARP backup that the equipment that the host apparatus that described recovery normally works receives work at present by heartbeat message sends.
The described scheduled time is not less than the time that the host apparatus recovering normal work completes the ARP in synchronous VRRP networking.
A kind of routing device, this routing device is the host apparatus in Virtual Router Redundancy Protocol VRRP group, and this routing device comprises port binding unit and synchronism switching unit, wherein,
Described port binding unit, binds for the port self being connected each two-layer equipment;
Described synchronism switching unit, for when self-recovery normally works, by the described port of binding UP simultaneously after waiting for the ticket reserving time, send free ARP message by the described port of described port binding unit binding to each described two-layer equipment connected, make each described two-layer equipment by flow synchronism switching to self.
This routing device also comprises backup lock unit, the ARP backup that the equipment for receiving work at present sends, to make the ARP in self synchronous VRRP networking, then,
Described synchronism switching unit, backs up flow synchronism switching to self for the ARP received according to backup lock unit.
The ARP backup that the equipment that described backup lock unit receives work at present by heartbeat message sends.
The scheduled time in described synchronism switching unit is not less than the time that backup lock unit synchronously completes the ARP in VRRP networking.
A kind of routing device, this routing device is the stand-by equipment in Virtual Router Redundancy Protocol VRRP group.This routing device comprises backup lock unit, for sending ARP backup to the host apparatus recovering normal work, to make the ARP recovered in the synchronous VRRP networking of host apparatus of normal work.
Described backup lock unit sends ARP backup by heartbeat message to the host apparatus recovering normal work
In sum, VRRP group flow method for synchronously switching of the present invention, by binding port host apparatus in VRRP networking connecting each two-layer equipment, make the described port bound can simultaneously UP, thus when host apparatus recovers normally to work, simultaneously the port of UP can send gratuitous ARP packet to each described two-layer equipment simultaneously, also just make flow can synchronism switching on the host apparatus recovering normal work.Because the inventive method is by binding port host apparatus connecting each two-layer equipment, make the state of each port can be synchronous, therefore, after host apparatus in VRRP networking recovers normal work, ensure that flow synchronism switching is to the host apparatus recovering normal work, but also the quantity of message dropping when can reduce switching.
Accompanying drawing explanation
Fig. 1 is the structural representation of existing VRRP networking;
Fig. 2 is the workflow diagram of VRRP group flow method for synchronously switching of the present invention;
Fig. 3 is the structural representation that routing device of the present invention implements;
Fig. 4 is the structural representation that routing device of the present invention implements two.
Embodiment
In order to solve the technical problem that the present invention proposes, the specific implementation of scheme of the present invention comprises:
Port host apparatus connecting each two-layer equipment is bound; Host apparatus recovers normal work, by the described port of binding UP simultaneously after waiting for the ticket reserving time, send gratuitous ARP packet by the described port of binding to each described two-layer equipment connected, make each described two-layer equipment by flow synchronism switching to the host apparatus recovering normal work.
For making the object, technical solutions and advantages of the present invention clearly, the present invention is described in further detail below in conjunction with the accompanying drawings and the specific embodiments.
Fig. 2 is the workflow diagram of VRRP group flow method for synchronously switching of the present invention.The method is applied in VRRP networking as described in Figure 1.As shown in Figure 2, this flow process comprises:
Step 201: port host apparatus connecting each two-layer equipment is bound.
In this step, port host apparatus connecting each two-layer equipment is bound, also with regard to avoid for UP port accepts to message also may be in the state of DOWN because of other ports, and cause the loss of message.Specifically how prior art is bound to port, repeat no more here.
Step 202: the ARP backup that the equipment that host apparatus receives work at present sends, to make the ARP recovered in the synchronous VRRP networking of host apparatus of normal work.
In this step, when host apparatus fault, also need to receive the ARP backup sent by the equipment of current normal work, thus make when host apparatus recovers normally to work, equipment can be determined according to ARP backup, also just avoid when host apparatus receives message, the loss of the message brought owing to carrying out ARP.
It should be noted that, in this step, the ARP backup that the host apparatus recovering normal work is sent by the equipment that heartbeat message receives work at present.
Step 203: host apparatus recovers normal work, by the described port of binding UP simultaneously after waiting for the ticket reserving time, send free ARP message by the described port of binding to each described two-layer equipment connected, make each described two-layer equipment by flow synchronism switching to the host apparatus recovering normal work.
It should be noted that, the described scheduled time is not less than the time that the host apparatus recovering normal work completes the ARP in synchronous VRRP networking.
So far, the whole workflow of the method for synchronously switching in VRRP networking of the present invention is namely completed.
Based on said method, Fig. 3 gives the structural representation of routing device embodiment one of the present invention, and this routing device is the host apparatus in VRRP group.As shown in Figure 3, this routing device comprises port binding unit 31 and synchronism switching unit 32, wherein,
Described port binding unit 31, binds for the port self being connected each two-layer equipment;
Described synchronism switching unit 32, for when self-recovery normally works, by the described port of binding UP simultaneously after waiting for the ticket reserving time, the described port bound by described port binding unit 31 sends free ARP message to each described two-layer equipment connected, and makes each described two-layer equipment by flow synchronism switching to self.
Further, this routing device also comprises backup lock unit 33, and the ARP backup that the equipment for receiving work at present sends, to make the ARP in self synchronous VRRP networking;
Then, described synchronism switching unit 32, backs up flow synchronism switching to self for the ARP received according to backup lock unit 33.
Wherein, the ARP that described backup lock unit 33 is sent by the equipment that heartbeat message receives work at present backs up.
The scheduled time in described synchronism switching unit 32 is not less than the time that backup lock unit 33 synchronously completes the ARP in VRRP networking.
Similarly, Fig. 4 gives the structural representation of routing device embodiment two of the present invention.This routing device is the stand-by equipment in VRRP group.This routing device comprises backup lock unit 41, for sending ARP backup to the host apparatus recovering normal work, to make the ARP recovered in the synchronous VRRP networking of host apparatus of normal work.
Wherein, described backup lock unit 41 sends ARP backup by heartbeat message to the host apparatus recovering normal work.
So far, namely obtain routing device of the present invention, same Fig. 2 of specific works flow process of routing device described in Fig. 3 and Fig. 4, repeats no more here.
In a word, method for synchronously switching in VRRP networking of the present invention, by binding port host apparatus in VRRP networking connecting each two-layer equipment, make the described port bound can simultaneously UP, thus when host apparatus recovers normally to work, simultaneously the port of UP can send gratuitous ARP packet to each described two-layer equipment simultaneously, also just make flow can synchronism switching on the host apparatus recovering normal work.Because the inventive method is by binding port host apparatus connecting each two-layer equipment, make the state of each port can be synchronous, therefore, after host apparatus in VRRP networking recovers normal work, ensure that flow synchronism switching is to the host apparatus recovering normal work, but also the quantity of message dropping when can reduce switching.
Further, flow method for synchronously switching in VRRP networking of the present invention, the ARP backup that the equipment that the host apparatus recovering normal work can also receive work at present sends, thus the host apparatus making to recover normal work can ARP in synchronously VRRP networking, also just avoid the host apparatus time delay that triggering ARP brings when carrying out three layers and forwarding, also just further avoid the loss of message.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment made, equivalent replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (8)

1. a Virtual Router Redundancy Protocol VRRP group flow method for synchronously switching, it is characterized in that, the method comprises:
Port host apparatus connecting each two-layer equipment is bound;
Host apparatus recovers normal work, by the described port of binding UP simultaneously after waiting for the ticket reserving time, send free ARP message by the described port of binding to each described two-layer equipment connected, make each described two-layer equipment by flow synchronism switching to the host apparatus recovering normal work;
When host apparatus recovers normally to work, the method also comprises: the ARP backup that the equipment that the host apparatus recovering normal work receives work at present sends, to make the ARP recovered in the synchronous VRRP networking of host apparatus of normal work.
2. method according to claim 1, is characterized in that, the ARP backup that the equipment that the host apparatus that described recovery normally works receives work at present by heartbeat message sends.
3. method according to claim 1, is characterized in that, the described ticket reserving time is not less than the time that the host apparatus recovering normal work completes the ARP in synchronous VRRP networking.
4. a routing device, is characterized in that, this routing device is the host apparatus in Virtual Router Redundancy Protocol VRRP group, and this routing device comprises port binding unit and synchronism switching unit, wherein,
Described port binding unit, binds for the port self being connected each two-layer equipment;
Described synchronism switching unit, for when self-recovery normally works, by the described port of binding UP simultaneously after waiting for the ticket reserving time, send free ARP message by the described port of described port binding unit binding to each described two-layer equipment connected, make each described two-layer equipment by flow synchronism switching to self;
This routing device also comprises backup lock unit, the ARP backup that the equipment for receiving work at present sends, to make the ARP in self synchronous VRRP networking, then,
Described synchronism switching unit, backs up flow synchronism switching to self for the ARP received according to backup lock unit.
5. routing device according to claim 4, is characterized in that, the ARP backup that the equipment that described backup lock unit receives work at present by heartbeat message sends.
6. routing device according to claim 4, is characterized in that, the scheduled time in described synchronism switching unit is not less than the time that backup lock unit synchronously completes the ARP in VRRP networking.
7. a routing device, it is characterized in that, this routing device is the stand-by equipment in Virtual Router Redundancy Protocol VRRP group, this routing device comprises backup lock unit, for sending ARP backup to the host apparatus recovering normal work, to make the ARP recovered in the synchronous VRRP networking of host apparatus of normal work.
8. routing device according to claim 7, is characterized in that, described backup lock unit sends ARP backup by heartbeat message to the host apparatus recovering normal work.
CN201210025069.0A 2012-02-06 2012-02-06 VRRP group flow synchronous switching method and route equipment Active CN102571598B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210025069.0A CN102571598B (en) 2012-02-06 2012-02-06 VRRP group flow synchronous switching method and route equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210025069.0A CN102571598B (en) 2012-02-06 2012-02-06 VRRP group flow synchronous switching method and route equipment

Publications (2)

Publication Number Publication Date
CN102571598A CN102571598A (en) 2012-07-11
CN102571598B true CN102571598B (en) 2015-02-11

Family

ID=46416099

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210025069.0A Active CN102571598B (en) 2012-02-06 2012-02-06 VRRP group flow synchronous switching method and route equipment

Country Status (1)

Country Link
CN (1) CN102571598B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104935507A (en) * 2015-06-03 2015-09-23 瑞斯康达科技发展股份有限公司 Linear protection switching method, PE (Provider Edge) device and system

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105141520A (en) * 2014-05-28 2015-12-09 中兴通讯股份有限公司 Protection switching method, device and system
CN105554175A (en) * 2015-12-23 2016-05-04 烽火通信科技股份有限公司 ARP backup method in PW (Pseudo-wires) redundancy scene
CN108432157B (en) * 2016-04-26 2020-04-14 华为技术有限公司 Main/standby switching control method and related device
CN106776155A (en) * 2016-12-08 2017-05-31 西安交大捷普网络科技有限公司 One kind application state connection synchronous method
CN111404730B (en) * 2020-03-04 2022-12-27 华云数据控股集团有限公司 State synchronization method and device of virtual router, electronic equipment and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582745A (en) * 2009-03-31 2009-11-18 中兴通讯股份有限公司 Method and router for preventing data packet loss
CN101860492A (en) * 2010-06-28 2010-10-13 中兴通讯股份有限公司 Quick switching method, device and system
CN102118290A (en) * 2011-02-24 2011-07-06 杭州华三通信技术有限公司 Method and device for reducing service flow interruption time

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101582745A (en) * 2009-03-31 2009-11-18 中兴通讯股份有限公司 Method and router for preventing data packet loss
CN101860492A (en) * 2010-06-28 2010-10-13 中兴通讯股份有限公司 Quick switching method, device and system
CN102118290A (en) * 2011-02-24 2011-07-06 杭州华三通信技术有限公司 Method and device for reducing service flow interruption time

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104935507A (en) * 2015-06-03 2015-09-23 瑞斯康达科技发展股份有限公司 Linear protection switching method, PE (Provider Edge) device and system
CN104935507B (en) * 2015-06-03 2018-05-08 瑞斯康达科技发展股份有限公司 A kind of method of linear protection switching, PE equipment and system

Also Published As

Publication number Publication date
CN102571598A (en) 2012-07-11

Similar Documents

Publication Publication Date Title
CN102571598B (en) VRRP group flow synchronous switching method and route equipment
CN102098201B (en) Method for realizing L2TP user access backup and network system
CN102025646B (en) Link switching method and device thereof
CN101330424B (en) Method, system and apparatus for processing service fault of virtual special network
CN102480423B (en) A kind of guard method of L2TP network and system
CN106685818A (en) Message feedback method and device
CN104270231B (en) A kind of system and method for realizing binode interconnection pseudo-wire
CN105472049B (en) CGN backup protection method and device for carrier-grade network address conversion
WO2007048319A1 (en) A disaster recovery system and method of service controlling device in intelligent network
CN101364927A (en) Method, apparatus and system realizing fault recovery of virtual private network
CN102710520B (en) Method and device for backing up lonworks network service (LNS)
CN104580215A (en) TCP connection warm backup achieving method
CN102201999A (en) Multicast service load sharing method and system
CN101577719A (en) Double hot standby method, device and system
CN104468151A (en) System and method for keeping TCP (Transmission Control Protocol) session during cluster switching
CN100512220C (en) Method for realizing service protection on elastic group ring
CN102647304A (en) Synchronizing method of address resolution protocols and device
CN102088400A (en) Provider edge (PE) equipment in virtual special network and switching method
CN108574626A (en) A kind of distribution NAT two-node cluster hot backup flow switching systems and method
CN105471610A (en) HQoS protection method and HQoS protection device through multiple board cards
CN101242254B (en) Virtual redundant router system and method for transmitting virtual redundant routing protocol packet
CN103297279B (en) The active and standby single-deck reverse method of software control in a kind of many software process system
EP2426855B1 (en) Address refresh method and system
CN103441940A (en) Method and device for switching network device from stand-by state to main state and network device
CN102255759B (en) Method and device for transmitting data message based on PW (Packet Writing) redundant backup

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: Xinhua three Technology 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: Huasan Communication Technology Co., Ltd.