CN102143054A - Method for preventing traffic loss after restarting of provider edge and customer edge - Google Patents

Method for preventing traffic loss after restarting of provider edge and customer edge Download PDF

Info

Publication number
CN102143054A
CN102143054A CN2010105575628A CN201010557562A CN102143054A CN 102143054 A CN102143054 A CN 102143054A CN 2010105575628 A CN2010105575628 A CN 2010105575628A CN 201010557562 A CN201010557562 A CN 201010557562A CN 102143054 A CN102143054 A CN 102143054A
Authority
CN
China
Prior art keywords
route
bgp
timer
time
route selection
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.)
Pending
Application number
CN2010105575628A
Other languages
Chinese (zh)
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.)
Huawei Digital Technologies Chengdu Co Ltd
Huawei Digital Technologies Co Ltd
Original Assignee
Huawei Digital Technologies Chengdu 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 Huawei Digital Technologies Chengdu Co Ltd filed Critical Huawei Digital Technologies Chengdu Co Ltd
Priority to CN2010105575628A priority Critical patent/CN102143054A/en
Publication of CN102143054A publication Critical patent/CN102143054A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Mobile Radio Communication Systems (AREA)

Abstract

The embodiment of the invention discloses a method for preventing traffic loss after the restarting of a provider edge (PE), which comprises that: when a first PE is restarted and a border gateway protocol (BGP) neighborhood relationship between a first customer edge (CE) and the first PE is established, the first CE starts a timer; before the time out of the timer, the first CE performs routing in a way of not using a route received from the first PE; and in the time out of the timer, the first CE allows both the routes received from the first PE and a second PE to participate in the routing, and service traffic transmitted to a second CE by the first CE is switched back to the first PE for forwarding. In the method for preventing the traffic loss after the restarting the provider edge and the customer edge provided by the embodiment of the invention, the delay back-switching timer is set in the customer edge to prevent the customer edge from switching the service traffic to the restarted provider edge if the provider edge is restarted but does not finish routing convergence, thereby relatively better avoiding the loss of the service traffic in the restarting process of the provider edge.

Description

A kind of provider edge equipment that prevents is restarted the method and the customer edge of back traffic loss
Technical field
The present invention relates to network communications technology field, relate in particular to a kind of provider edge equipment that prevents and restart the method and the customer edge of back traffic loss.
Background technology
In the current network,, can do redundancy protecting usually for preventing service disconnection.When the equipment on the primary link was restarted because of reasons such as upgradings, flow will switch to backup link from primary link to be continued to transmit.When the equipment on the primary link finish restart after, flow returns and switches on the primary link.
Fig. 1 has described the topological diagram of a Layer3 Virtual Private Network, wherein customer edge CE2 is published to customer edge CE101 by last lower plane with route, and the service traffics that CE101 mails to CE2 will preferably go up plane road by (CE101->PE102->PE104-CE106) send.When the master control borad of provider edge equipment PE102 is restarted or after interface board restarts, the service traffics that CE101 mails to CE106 will switch to lower plane route (CE101->PE103->PE105-CE106) send.When PE102 equipment finish restart after, set up bgp neighbor relation with PE104 that links to each other and CE101.After the bgp neighbor relation was set up successfully, PE102 began to receive each neighbour's BGP route, and carries out the routing of BGP route.Here consider that PE104 issues the BGP route of PE102, after PE102 received the BGP route from PE104, the beginning routing was issued preferred BGP route simultaneously to self interface board and CE101.In order to prevent endless loop, PE102 initiation task is respectively issued the BGP route to its own interfaces plate and CE101.This scheme can cause following problems to take place: PE102 is published to the BGP route on the CE101, CE101 is because learnt the BGP route of PE102 issue, CE101 attracted on the PE102 to the service traffics of CE106, and at this moment the interface board of PE102 does not also receive the route that master control borad issues, cause to finish the route that CE101 is mail to the data on flows of CE106, thereby cause flow interrupt.Route quantity on the PE102 is many more, and the outage probability time big more, that interrupt is also long more.Not only in Layer3 Virtual Private Network, for also there being the problems referred to above between the bgp neighbor in other networks.
Summary of the invention
The embodiment of the invention provides a kind of provider edge equipment PE that prevents to restart the method for back traffic loss, and described method comprises:
When a PE was restarted, the service traffics that the first customer edge CE will arrive the 2nd CE switched to the 2nd PE and transmit, and a wherein said CE dual homed inserts a described PE and described the 2nd PE;
A described PE is restarted and is finished and the Border Gateway Protocol (BGP) neighborhood of a described CE and a described PE when setting up, and a described CE starts timer;
Before the described timer expiry, a described CE does not use the BGP route of receiving from a described PE to carry out route selection;
When described timer expiry, a described CE allows BGP route of receiving from a described PE and the BGP route fellowship routing of receiving from described the 2nd PE, the BGP route that a described CE preferably receives from a described PE is carried out flow and is transmitted, and the service traffics that a described CE mails to described the 2nd CE are switched back to a described PE and transmit.
The embodiment of the invention provides a kind of first customer edge CE, and a described CE comprises:
The flow handover module is used for when the PE that a described CE inserts is restarted, and the service traffics of a described CE to the two CE is switched to the 2nd PE transmit, and a wherein said CE dual homed inserts a described PE and described the 2nd PE; Described flow handover module is further used for transmitting when the service traffics that a described CE mail to described the 2nd CE when the route selection module is received switching command switch to a described PE;
Timer module is used for restarting as a described PE and finishes and the bgp neighbor of a described CE and described PE relation starts timer when setting up;
The route selection module is used for a described CE and carries out route selection, and before described timer expiry, described route selection module does not use the BGP route of receiving from a described PE to carry out routing; When described timer expiry, described route selection module is used the BGP route received from a described PE and is carried out routing jointly from the BGP route that described the 2nd PE receives, the BGP route that described route selection module is preferably received from a described PE carries out the forwarding of described CE service traffics and send switching command to described flow handover module indicating service traffics that described flow handover module mails to described the 2nd CE with a described CE to switch back to a described PE to transmit.
The provider edge equipment that prevents that the embodiment of the invention provides is restarted the method and the customer edge of back traffic loss and cut timer by being provided with to delay time back in customer edge, can prevent that customer edge from restarting the back at provider edge equipment but do not finish under the situation of routing convergence the provider edge equipment that service traffics is switched to after restarting, thereby can avoid the service traffics in the provider edge equipment restarting process to lose preferably.
Description of drawings
Fig. 1 is the topological structure schematic diagram of Layer3 Virtual Private Network in the prior art.
The structural representation of a kind of customer edge that Fig. 2 provides for the embodiment of the invention.
The structural representation of the another kind of customer edge that Fig. 3 provides for the embodiment of the invention.
Embodiment
Referring to Fig. 1, be that example is described in detail the embodiment of the invention with the Layer3 Virtual Private Network scene.CE101 and CE106 dual homed insert PE among Fig. 1, under the normal condition, CE101 uses PE102 to transmit to the service traffics of CE106, and promptly the CE101 service traffics that mail to CE106 will preferably go up plane road by (CE101->PE102->PE104->CE106) send.The embodiment of the invention provides a kind of provider edge equipment PE that prevents to restart the method for back traffic loss: when PE102 is restarted, it is no longer active that CE101 perceives the route of PE102, then CE101 is switched to lower plane to the service traffics of CE106, promptly switch to path CE101->PE103->PE105->CE106; PE102 restart finish, after the bgp neighbor relation of CE101 and PE102 sets up, CE101 starts a timer, the time-out time of this timer can be gone up all BGP routes according to PE102 and finish and restrain the needed time and be provided with.Last all the BGP routes of PE102 are finished the needed time of convergence and can be estimated according to the quantity of the last BGP route of PE102.For instance, can restrain 10,000 routes 1 second such as system, if 300,000 routes are arranged on the PE102, the time-out time value of timer can be set to 30*1S=30S so.Again for instance, can finish convergence, can also increase certain amount of redundancy, for example can be set to 30+30*10%=33S in order to ensure all BGP routes on PE102 before the timer expiry.Before described timer expiry, CE101 adds all BGP routes of receiving from PE102 and becomes bad sign, and this sign indication does not allow to use these routes received and the route fellowship routing to identical destination address of receiving from PE103 from PE102.At this moment, CE101 selects to carry out the forwarding of service traffics from the BGP route that PE103 receives, so CE101 transmits from lower plane route CE101->PE103->PE105->CE106 to the service traffics continuation of CE106.During timer expiry, the bad sign deletion of the change of the BGP route that CE101 will receive from PE102, expression CE101 can participate in route selection with the BGP route of receiving from PE103 from these BGP routes that PE102 receives.CE101 carries out routing again according to the BGP route of receiving from PE102 and PE103, plan according to networking, the preferred BGP route that goes up plane P E102, CE101 returns again to the service traffics of CE106 and switches to plane road by CE101->PE102->PE104->CE106, thereby finishes the time-delay routing.Like this, switch to PE102 because CE101 delays time to the service traffics process of CE106, thereby the BGP route on the assurance PE102 can be finished convergence, solution PE102 equipment is restarted the back service traffics and is returned the packet loss problem that incisal guide causes.
The embodiment of the invention provides a kind of CE, with the CE101 among Fig. 2 is example, under the normal condition, CE101 uses PE102 to transmit to the service traffics of CE106, and promptly the CE101 service traffics that mail to CE106 will preferably go up plane road by (CE101->PE102->PE104->CE106) send.Wherein, described CE101 comprises flow handover module 201, timer module 202 and route selection module 203.When the PE102 of described CE101 access is restarted, it is no longer active that described flow handover module 201 perceives the route of PE102, described CE101 is switched to PE103 to the service traffics of CE106 to be transmitted, promptly switch to path CE101->PE103->PE105->CE106, wherein said CE101 dual homed inserts described PE102 and described PE103.Described timer module 202 be used for restarting as PE102 finish, the bgp neighbor relation of described CE101 and described PE102 sets up timer of back startup.Described route selection module 203 is used for carrying out when CE101 sends service traffics route selection, before described timer expiry, described route selection module 203 does not use the BGP route of receiving from described PE102 to carry out routing, at this moment, because CE101 has only two routes to the service traffics of CE106, i.e. route by PE102 and the route by PE103, so CE101 selects to transmit the service traffics of described CE101 to CE106 by PE103; Behind described timer expiry, described route selection module 203 uses the BGP route of receiving from described PE102 and PE103 to carry out routing again, plan according to networking, the BGP routes that described route selection module 203 is preferably received from described PE102 are carried out the forwarding of described CE101 service traffics and to described flow handover module 201 transmitted traffic switching commands, and the service traffics that when described flow handover module 201 is received described flow switching command described CE101 mail to described CE106 switch back to described PE102 and transmit; CE101 returns again to the service traffics of CE106 and switches to plane road by CE101->PE102->PE104->CE106, thereby finishes the time-delay routing.Like this, switch to PE102 because CE101 delays time to the service traffics process of CE106, thereby the BGP route on the assurance PE102 can be finished convergence, solution PE102 equipment is restarted the back service traffics and is returned the packet loss problem that incisal guide causes.
For instance, the method that the time-out time of described timer module 202 timers is set please refer to said method embodiment, repeats no more herein.
Participate in Fig. 3, described CE101 may further include: become bad sign module 204 is set, be used for before described timer expiry, the BGP route that described route selection module 203 is received from described PE102 is added and is become bad sign, and the bad sign of described change indicates described route selection module 203 not use the BGP route of receiving from described PE102 to carry out route selection;
When the bad sign of described change is provided with module 204 and also is used for timer expiry that described timer module 202 starts, the bad sign deletion of change of the BGP route that described route selection module 203 is received from described PE102 indicates described route selection module 203 can use the BGP route of receiving from described PE102 to carry out route selection route selection module 203.
One of ordinary skill in the art will appreciate that the module that CE101 comprised among this embodiment can make up, split, merge according to function; therefore the foregoing description just provides of customer edge CE that the present invention asks for protection and may realize, is not used for limiting the present invention.
One of ordinary skill in the art will appreciate that all or part of step in the whole bag of tricks of the foregoing description is to instruct relevant hardware to finish by program, this program can be stored in the computer-readable recording medium, storage medium can comprise: read-only memory (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being done, is equal to replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (8)

  1. One kind prevent provider edge equipment PE restart the back traffic loss method, it is characterized in that described method comprises:
    When a PE was restarted, the service traffics that the first customer edge CE will arrive the 2nd CE switched to the 2nd PE and transmit, and a wherein said CE dual homed inserts a described PE and described the 2nd PE;
    A described PE is restarted and is finished and the Border Gateway Protocol (BGP) neighborhood of a described CE and a described PE when setting up, and a described CE starts timer;
    Before the described timer expiry, a described CE does not use the BGP route of receiving from a described PE to carry out route selection;
    When described timer expiry, a described CE allows BGP route of receiving from a described PE and the BGP route fellowship routing of receiving from described the 2nd PE, the BGP route that a described CE preferably receives from a described PE is carried out flow and is transmitted, and the service traffics that a described CE mails to described the 2nd CE are switched back to a described PE and transmit.
  2. 2. method according to claim 1 is characterized in that, this method further comprises:
    Before described timer expiry, a described CE adds the BGP route received from a described PE and becomes bad sign, and the bad sign of described change indicates a described CE not use the BGP route of receiving from a described PE to carry out route selection;
    When described timer expiry, the bad sign deletion of the change of the BGP route that a described CE will receive from a described PE indicates a described CE to allow BGP route of receiving from a described PE and the BGP route fellowship routing of receiving from described the 2nd PE.
  3. 3. method according to claim 1 and 2 is characterized in that:
    The time-out time of described timer is provided with a described PE according to estimation and goes up all routes and finish the needed time of convergence and be provided with.
  4. 4. method according to claim 3 is characterized in that, the time-out time of described timer is provided with a described PE according to estimation and goes up all routes and finish the needed time of convergence and be provided with, and comprising:
    The time-out time of described timer is set to last all routes of a described PE and finishes the time that convergence needs.
  5. 5. method according to claim 3 is characterized in that, the time-out time of described timer is provided with a described PE according to estimation and goes up all routes and finish the needed time of convergence and be provided with, and comprising:
    The time-out time of described timer is set to a described PE and goes up the time that all routes finish convergence and need and add the regular hour amount of redundancy.
  6. 6. a customer edge CE is characterized in that, a described CE comprises:
    The flow handover module is used for when the PE that a described CE inserts is restarted, and the service traffics of a described CE to the two CE is switched to the 2nd PE transmit, and a wherein said CE dual homed inserts a described PE and described the 2nd PE; Described flow handover module is further used for transmitting when the service traffics that a described CE mail to described the 2nd CE when the route selection module is received switching command switch to a described PE;
    Timer module is used for restarting as a described PE and finishes and the bgp neighbor of a described CE and described PE relation starts timer when setting up;
    The route selection module is used for a described CE and carries out route selection, and before described timer expiry, described route selection module does not use the BGP route of receiving from a described PE to carry out routing; When described timer expiry, described route selection module is used the BGP route received from a described PE and is carried out routing jointly from the BGP route that described the 2nd PE receives, the BGP route that described route selection module is preferably received from a described PE carries out the forwarding of described CE service traffics and send switching command to described flow handover module indicating service traffics that described flow handover module mails to described the 2nd CE with a described CE to switch back to a described PE to transmit.
  7. 7. a CE as claimed in claim 6 is characterized in that, a described CE further comprises:
    Become bad sign module is set, be used for before described timer expiry, the BGP route that described route selection module is received from a described PE is added and is become bad sign, and the bad sign of described change indicates described route selection module not use the BGP route of receiving from a described PE to carry out route selection;
    When the bad sign of described change is provided with module and also is used for described timer expiry, the bad sign deletion of change of the BGP route that described route selection module is received from a described PE is indicated described route selection module to use and is carried out route selection from a described PE with from the BGP route that described the 2nd PE receives.
  8. 8. as claim 6 or 7 described CE, it is characterized in that:
    The time-out time of described timer is provided with a described PE according to estimation and goes up all routes and finish the needed time of convergence and be provided with.
CN2010105575628A 2010-11-23 2010-11-23 Method for preventing traffic loss after restarting of provider edge and customer edge Pending CN102143054A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2010105575628A CN102143054A (en) 2010-11-23 2010-11-23 Method for preventing traffic loss after restarting of provider edge and customer edge

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2010105575628A CN102143054A (en) 2010-11-23 2010-11-23 Method for preventing traffic loss after restarting of provider edge and customer edge

Publications (1)

Publication Number Publication Date
CN102143054A true CN102143054A (en) 2011-08-03

Family

ID=44410291

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2010105575628A Pending CN102143054A (en) 2010-11-23 2010-11-23 Method for preventing traffic loss after restarting of provider edge and customer edge

Country Status (1)

Country Link
CN (1) CN102143054A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102299825A (en) * 2011-09-23 2011-12-28 杭州华三通信技术有限公司 Method and device for smoothly recovering network failure
CN116170367A (en) * 2023-02-09 2023-05-26 浪潮思科网络科技有限公司 BGP link route convergence method, device, equipment and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101018183A (en) * 2007-03-12 2007-08-15 杭州华为三康技术有限公司 A topology notification method, system and device based on L2VPN
CN101150587A (en) * 2007-10-24 2008-03-26 华为技术有限公司 A method, device and system for traffic switching of multi-protocol label switching traffic engineering
CN101494614A (en) * 2009-03-09 2009-07-29 华为技术有限公司 Method, apparatus and system for rapid rerouting
CN101515891A (en) * 2009-04-02 2009-08-26 杭州华三通信技术有限公司 Method for processing border gateway protocol routing and router
US7773596B1 (en) * 2004-02-19 2010-08-10 Juniper Networks, Inc. Distribution of traffic flow criteria
CN101820395A (en) * 2010-05-19 2010-09-01 杭州华三通信技术有限公司 Routing information configuration and private network label addition method and device based on MPLS (Multiple Protocol Label Switching)

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7773596B1 (en) * 2004-02-19 2010-08-10 Juniper Networks, Inc. Distribution of traffic flow criteria
CN101018183A (en) * 2007-03-12 2007-08-15 杭州华为三康技术有限公司 A topology notification method, system and device based on L2VPN
CN101150587A (en) * 2007-10-24 2008-03-26 华为技术有限公司 A method, device and system for traffic switching of multi-protocol label switching traffic engineering
CN101494614A (en) * 2009-03-09 2009-07-29 华为技术有限公司 Method, apparatus and system for rapid rerouting
CN101515891A (en) * 2009-04-02 2009-08-26 杭州华三通信技术有限公司 Method for processing border gateway protocol routing and router
CN101820395A (en) * 2010-05-19 2010-09-01 杭州华三通信技术有限公司 Routing information configuration and private network label addition method and device based on MPLS (Multiple Protocol Label Switching)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102299825A (en) * 2011-09-23 2011-12-28 杭州华三通信技术有限公司 Method and device for smoothly recovering network failure
CN102299825B (en) * 2011-09-23 2014-04-16 杭州华三通信技术有限公司 Method and device for smoothly recovering network failure
CN116170367A (en) * 2023-02-09 2023-05-26 浪潮思科网络科技有限公司 BGP link route convergence method, device, equipment and medium
CN116170367B (en) * 2023-02-09 2024-04-16 浪潮思科网络科技有限公司 BGP link route convergence method, device, equipment and medium

Similar Documents

Publication Publication Date Title
CN104205748B (en) Has redundancy between the frame of coordinated traffic direction
CN107911291B (en) VRRP router switching method, router, VRRP active-standby switch system and storage medium
US20020141429A1 (en) High availability packet forwarding apparatus and method
CN103534982A (en) Method, equipment and network virtualization system for protecting business reliability
US20040078619A1 (en) Method and system for implementing IS-IS protocol redundancy
CN103460647A (en) Technique for operating network node
CN103583063A (en) System and method for failover recovery at geo-redundant gateways
WO2012000234A1 (en) Method, apparatus and system for fast switching between links
CN102325037A (en) Method and system for switching pseudo-wire dual-homing network and dual-homing operator equipment
CN101164307A (en) Method and gateway equipment for resuming service after switching status of main/standby gateway device
US20140169154A1 (en) Method, routing device, and system for network device redundancy backup
CN111262665B (en) Data communication method, device, controller and system
CN103607293B (en) A kind of flow rate protecting method and equipment
CN108696417A (en) Business switch method in backup network and device
CN101984600A (en) Graceful restart method, equipment and system of routing protocol
CN102970231A (en) Multicast flow forwarding implementation method and routing bridge (RB)
CN112583708B (en) Connection relation control method and device and electronic equipment
CN106789521B (en) A kind of ring network fault reverse method and link point
CN113328916A (en) BFD detection mode switching method, device and equipment
CN102611566B (en) Method and device for recovering customer service
CN102239670A (en) Loading distribution method and device
CN100461764C (en) Method and system for implementing consistency of message forwarding routes
CN101984596A (en) Method, device and routing equipment for avoiding black holes
CN110011912A (en) Case type switching equipment uplink switching method and device
CN102143054A (en) Method for preventing traffic loss after restarting of provider edge and customer edge

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: 100085 Beijing, Haidian District on the road, No. 3

Applicant after: Beijing Huawei Digital Technology Co.,Ltd.

Address before: 100085 Beijing, Haidian District on the road, No. 3

Applicant before: Huawei Digit Technology Co., Ltd.

COR Change of bibliographic data

Free format text: CORRECT: APPLICANT; FROM: HUAWEI DIGIT TECHNOLOGY CO., LTD. TO: BEIJING HUAWEI DIGITAL TECHNOLOGY CO., LTD.

C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110803