Network Working Group Pierre Francois Internet-Draft Universite catholique de Louvain Intended status: Informational Bruno Decraene Expires: April29, 201028, 2011 France Telecom Cristel Pelsser Internet Initiative Japan Keyur Patel Clarence Filsfils Cisco Systems October26, 200925, 2010 Graceful BGP session shutdowndraft-ietf-grow-bgp-gshut-01draft-ietf-grow-bgp-gshut-02 Abstract This draft describes operational procedures aimed at reducing the amount of traffic lost during planned maintenances of routers, involving the shutdown of BGP peering sessions. Status of this Memo This Internet-Draft is submitted to IETF in full conformance with the provisions of BCP 78 and BCP 79.This document may contain material from IETF Documents or IETF Contributions published or made publicly available before November 10, 2008. The person(s) controlling the copyright in some of this material may not have granted the IETF Trust the right to allow modifications of such material outside the IETF Standards Process. Without obtaining an adequate license from the person(s) controlling the copyright in such materials, this document may not be modified outside the IETF Standards Process, and derivative works of it may not be created outside the IETF Standards Process, except to format it for publication as an RFC or to translate it into languages other than English.Internet-Drafts are working documents of the Internet Engineering Task Force (IETF), its areas, and its working groups. Note that other groups may also distribute working documents as Internet- Drafts. Internet-Drafts are draft documents valid for a maximum of six months and may be updated, replaced, or obsoleted by other documents at any time. It is inappropriate to use Internet-Drafts as reference material or to cite them other than as "work in progress." The list of current Internet-Drafts can be accessed at http://www.ietf.org/ietf/1id-abstracts.txt. The list of Internet-Draft Shadow Directories can be accessed at http://www.ietf.org/shadow.html. This Internet-Draft will expire on April29, 2010.28, 2011. Copyright Notice Copyright (c)20092010 IETF Trust and the persons identified as the document authors. All rights reserved. This document is subject to BCP 78 and the IETF Trust's Legal Provisions Relating to IETF Documents (http://trustee.ietf.org/license-info) in effect on the date of publication of thisdocument (http://trustee.ietf.org/license-info).document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document.AbstractCode Components extracted from this document must include Simplified BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the BSD License. Thisdraft describes operational procedures aimed at reducingdocument may contain material from IETF Documents or IETF Contributions published or made publicly available before November 10, 2008. The person(s) controlling theamount of traffic lost during planned maintenancescopyright in some ofrouters, involvingthis material may not have granted theshutdownIETF Trust the right to allow modifications ofBGP peering sessions. Tablesuch material outside the IETF Standards Process. Without obtaining an adequate license from the person(s) controlling the copyright in such materials, this document may not be modified outside the IETF Standards Process, and derivative works ofContents 1.it may not be created outside the IETF Standards Process, except to format it for publication as an RFC or to translate it into languages other than English. Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . .43 2. Terminology . . . . . . . . . . . . . . . . . . . . . . . . .43 3. Packet loss upon manual eBGP session shutdown . . . . . . . .54 4. Practices to avoid packet losses . . . . . . . . . . . . . . .54 4.1. Improving availability of alternate paths . . . . . . . .65 4.2. Graceful shutdown procedures for eBGP sessions . . . . . .65 4.2.1. Outbound traffic . . . . . . . . . . . . . . . . . . .65 4.2.2. Inbound traffic . . . . . . . . . . . . . . . . . . .76 4.2.3. Summary of operations . . . . . . . . . . . . . . . . 8 4.2.4. BGP implementation support for G-Shut . . . . . . . . 9 4.3. Graceful shutdown procedures for iBGP sessions . . . . . . 9 5. Forwarding modes and forwarding loops . . . . . . . . . . . . 10 6. Dealing with Internet policies . . . . . . . . . . . . . . . . 10 7. Link Up cases . . . . . . . . . . . . . . . . . . . . . . . . 11 7.1. Unreachability local to the ASBR . . . . . . . . . . . . . 11 7.2. iBGP convergence . . . . . . . . . . . . . . . . . . . . . 11 8. IANA considerations . . . . . . . . . . . . . . . . . . . . . 12 9. Security Considerations . . . . . . . . . . . . . . . . . . . 12 10. Acknowledgments . . . . . . . . . . . . . . . . . . . . . . . 13 11. References . . . . . . . . . . . . . . . . . . . . . . . . . . 13 Appendix A.Summary of operations . . . . . . . . . . . . . . . . 13 A.1. Pre-configuration . . . . . . . . . . . . . . . . . . . . 13 A.2. Operations at maintenance time . . . . . . . . . . . . . . 14 Appendix B.Alternative techniques with limited applicability . . 14B.1.A.1. In-filter reconfiguration . . . . . . . . . . . . . . . . 14B.2.A.2. Multi Exit Discriminator tweaking . . . . . . . . . . . . 15B.3.A.3. IGP distance Poisoning . . . . . . . . . . . . . . . . . .16 Appendix C. Effect of the g-shut procedure on the convergence . . 16 C.1. Maintenance of an eBGP session . . . . . . . . .15 Authors' Addresses . . . . .16 C.1.1. Propagation on the other eBGP sessions of the g-shut initiator. . . . . . . . . . . . . . . . . . .16 C.1.2. Propagation on15 1. Introduction Routing changes in BGP can be caused by planned, manual, maintenance operations. This document discusses operational procedures to be applied in order to reduce or eliminate losses of packets during theother iBGP sessionsmaintenance. These losses come from the transient lack of reachability during theg-shut initiator . . . . . . . . . . . . . . . . . . . 16 C.1.3. Propagation of updates in an iBGP full-mesh . . . . . 17 C.1.4. Propagation of updates from iBGP to iBGP in a RR hierarchy . . . . . . . . . . . . . . . . . . . . . . 17 C.2. Maintenance of an iBGP session . . . . . . . . . . . . . . 18 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . . 18 1. Introduction Routing changes in BGP can be caused by planned, manual, maintenance operations. This document discusses operational procedures to be applied in order to reduce or eliminate losses of packets during the maintenance. These losses come from the transient lack of reachability during the BGP convergence following the shutdownBGP convergence following the shutdown of an eBGP peering session between two Autonomous System Border Routers (ASBR). This document presents procedures for the cases where the forwarding plane is impacted by the maintenance, hence when the use of Graceful Restart does not apply. The procedures described in this document can be applied to reduce or avoid packet loss for outbound and inbound traffic flows initially forwarded along the peering link to be shut down. These procedures allow routers to keep using old paths until alternate ones are learned, ensuring that routers always have a valid route available during the convergence process. The goal of the document is to meet the requirements described in [REQS] at best, without changing the BGP protocol or BGP implementations. Still, it explains why reserving a community value for the purpose of BGP session graceful shutdown would reduce the management overhead bound with the solution. It would also allow vendors to provide an automatic graceful shutdown mechanism that does not require any router reconfiguration at maintenance time. The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in RFC 2119 [RFC2119]. 2. Terminology g-shut initiator : a router on which the session shutdown is performed for the maintenance. g-shut neighbor : a router that peers with the g-shut initiator via (one of) the session(s) to be shut down. Note that for the link-up case, we will refer to these nodes as g-no- shut initiator, and g-no-shut neighbor. Initiator AS : the Autonomous System of the g-shut initiator. Neighbor AS : the Autonomous System of the g-shut neighbor. Affected path / Nominal / pre-convergence path : a BGP path via the peering link(s) undergoing the maintenance. This path will no longer exist after the shutdown. Affected prefix : a prefix initially reached via an affected path. Affected router : a router having an affected prefix. Backup / alternate / post-convergence path : a path towards an affected prefix that will be selected as the best path by an affected router, when the link is shut down and the BGP convergence is completed. Transient alternate path : a path towards an affected prefix that may be transiently selected as best by an affected router during the convergence process but that is not a post-convergence path. Loss of Connectivity (LoC) : the state when a router has no path towards an affected prefix. 3. Packet loss upon manual eBGP session shutdown Packets can be lost during a manual shutdown of an eBGP session for two reasons. First, routers involved in the convergence process can transiently lack of paths towards an affected prefix, and drop traffic destined to this prefix. This is because alternate paths can be hidden by nodes of an AS. This happens when the paths are not selected as best by the ASBR that receive them on an eBGP session, or by Route Reflectors that do not propagate them further in the iBGP topology because they do not select them as best. Second, within the AS,routers'the FIB of routers can be transiently inconsistent during the BGP convergence and packets towards affected prefixes can loop and be dropped. Note that these loops only happen whenASBR-to- ASBRASBR-to-ASBR encapsulation is not used within the AS. This document only addresses the first reason. 4. Practices to avoid packet losses This section describes means for an ISP to reduce the transient loss of packets upon a manual shutdown of a BGP session. 4.1. Improving availability of alternate paths All solutions that increase the availability of alternate BGP pathsinat routers performing packet lookups in BGP tables [BestExternal] [AddPath] help in reducing the LoC bound with manual shutdown of eBGP sessions. One of such solutions increasing diversity in such a way that, at any single step of the convergence process following the eBGP session shutdown, a BGP router does not receive a message withdrawing the only path it currently knows for a given NLRI, allows for a simplified g-shut procedure.This simplified procedure would only tackle potential LoC forIncreasing diversity with [AddPath] might lead to theinbound traffic.respect of this property, depending on the path propagation decision process that add-path compliant routers would use. Using advertise-best-external [BestExternal] on ASBRs and RRs helps in avoiding lack of alternate paths in route reflectors upon a convergence. Hence it reduces the LoC duration for the outbound traffic of the ISP upon an eBGP Session shutdown by reducing the iBGP path hunting.Still it does not ensure that BGP routers will always have at least one path towards affected prefixes during the convergence following the event. This property may be verified in future revisions of [BestExternal], notably of its Section 3, hence the current proposal will be updated accordingly. Increasing diversity with [AddPath] might lead to the respect of this property, depending on the path propagation decision process that add-path compliant routers would use.Note that the LoC for the inbound traffic of the maintained router, induced by a lack of alternate path propagation within the iBGP topology of a neighboring AS is not under the control of the operator performing themaintenance, hence themaintenance. The procedure described in Section 4.2.2 should thus be applied upon the maintenance, even ifnot required fortheoutbound traffic.procedure described in Section 4.2.1 is not applied. 4.2. Graceful shutdown procedures for eBGP sessions This section aims at describing a procedure to be applied to reduce the LoC with readily available BGP features, and without assuming a particular iBGP design in the Initiator and Neighbor ASes. 4.2.1. Outbound traffic This section discusses a mean to render the affected paths less desirable by the BGP decision process of affected routers, still allowing these to be used during theconvergenceconvergence, while alternate paths are propagated to the affected routers. A decrease of the local-pref value of the affected paths can be issued in order to render the affected paths less preferable, at the highest possible level of the BGP Decision Process. This operation can be performed by reconfiguring the out-filters associated with the iBGP sessions established by the g-shut initiator. The modification of the filters MUST supplant any other rule affecting the local-pref value of the old paths. Compared to using an in-filter of the eBGP session to be shut down, the modification of the out-filters will not let the g-shut initiator switch to another path, as the input to the BGP decision process of that router does not change. As a consequence, the g-shut initiator will notsend a withdraw message over its iBGPmodify the state of its dataplane, and will not withdraw the affected paths over its iBGP sessions when it receivesanalternatepath over an iBGP session.paths. It will however modify the local-pref of the affected paths so that upstream routers will switch to alternate ones. When the actual shutdown of the session is performed, the g-shut initiator will itself switch to the alternate paths. In cases some BGP speakers in the AS override the local-pref attribute of paths received over iBGP sessions, the procedure described above will not work. In such cases, the recommended procedure is to tag the paths sent over the iBGP sessions of the g-shut initiator with an AS specific community. This AS specific community should lead to the setting ofa lowthe lowest local-pref value. To be effective, the configuration related to this community MUST supplant or be applied after the already configured local-pref overriding. An operator may decide to follow a simplified procedure and directly apply an in-filter reducing the local preference of the paths received over the eBGP session being brought down. While this procedure will be effective in many cases, corner cases as described in Appendix A.1 may happen, which may lead to some LoC for some affected destinations. The use of this simplified procedure does not lead to LoC when used in conjunction with [BestExternal]. 4.2.2. Inbound traffic The solution described for the outbound traffic can be applied at the neighbor AS. This can be done either "manually" or by using a community value dedicated to this task. 4.2.2.1. Phone call The operator performing the maintenance of the eBGP session can contact the operator at the other side of the peering link, and let him apply the procedure described above for its own outbound traffic. 4.2.2.2. Community tagging A community value (referred to as GSHUT community in this document) can be agreed upon by neighboringASes. A path tagged with this community must be considered as soonASes and used tobe affected by a maintenance operation.trigger the g-shut behavior at the g-shut neighbor. 4.2.2.2.1. Pre-Configuration A g-shut neighbor is pre-configured to set a low local-pref value for the paths received over eBGP sessions which are tagged with the GSHUT community. This rule must supplant any other rule affecting the local-pref value of the paths. This local-pref reconfiguration SHOULD be performed at the out- filters of the iBGP sessions of the g-shut neighbor. That is, the g-shut neighbor does not take into account this low local-pref in its own BGP best path selection. As described in Section 4.2.1 this approach avoids sendingthewithdraw messages that can lead toLoC.LoC in some cases. 4.2.2.2.2. Operational action upon maintenance Upon the manual shutdown, the output filter associated with the maintained eBGP session will be modified on the g-shut initiator so as to tag all the paths advertised over the session with the GSHUT community. 4.2.2.2.3. Transitivity of the community If the GSHUT community is an extended community, it SHOULD be chosen non-transitive.In that case, the clarification described in [Clarification4360] is required.If a regular community is used, this community SHOULD be removed from the path when the path is propagated over eBGP sessions. Not propagating the community further in the Internet reduces the amount of BGP churn and avoids rerouting in distant ASes that would also recognize this community value. In other words, from a routing stability perspective, it helps concealing the convergence at the maintenance location. From asecuritypolicy perspective, it prevents malignant ASes from using the community over paths propagated through intermediate ASes that do not support the feature, in order to perform inbound traffic engineering at the first AS recognizing the community. ASes which support the g-shut procedure SHOULD remove the community value(s) that they use for g-shut from the paths received from neighboring ASes that do not support the procedure or to whom the service is not provided. There are cases where an interdomain exploration is to be performed to recover the reachability, e.g., in the case of a shutdown in confederations where the alternate paths will be found in another AS of the confederation. In such scenarios, the community value SHOULD be allowed to transit through the confederation but SHOULD be removed from the paths advertised outside of the confederation. When the local-pref value of a path is conserved upon its propagation from one AS of the confederation to the other, there is no need to have the GSHUT community be propagated throughout that confederation. 4.2.2.2.4. Easing the configuration for G-SHUT From a configuration burden viewpoint, it is much easier to use a single dedicated value for the GSHUT community. First, on the g-shut initiator, an operator would have a single configuration rule to be applied at the maintenance time, which would not depend on the identity of its peer. This would make the maintenance operations less error prone. Second, on the g-shut neighbor, a simple filter related to g-shut can be applied to all iBGP sessions. Additionnaly, this filter does not need to be updated each time neighboring ASes are added or removed. The FCFS community value 0xFFFF0000 has been reserved for this purpose [BGPWKC].4.3. Graceful shutdown procedures for iBGP sessions If the iBGP topology is viable after the maintenance4.2.3. Summary of operations This section summarizes thesession, i.e, if all BGP speakers ofconfigurations and actions to be performed to support theAS have an iBGP signaling path for all prefixes advertised on thisg-shutiBGP session, thenprocedure for eBGP peering links. 4.2.3.1. Pre-configuration On each ASBR supporting theshutdown ofg-shut procedure, set-up an out-filter applied on all iBGPsession does not lead to transient unreachability. However, in the case of a shutdown of a router, a reconfigurationsessions of theout-filtersASBR, that : o sets the local-pref of the paths tagged with the g-shutinitiator MAY be performedcommunity toseta lowlocal-prefvaluefor the paths originated byo removes the g-shutinitiator (e.g, BGP aggregates redistributedcommunity fromother protocols, including static routes). This behavior is equivalent totherecommended behavior forpaths. o optionally, adds an AS specific g-shut community on these paths"redistributed" from eBGP sessionstoiBGP sessions in the case of the shutdown of an ASBR. 5. Forwarding modes and forwarding loopsindicate that these are to be withdrawn soon. If some ingress ASBRs reset the local preference attribute, this ASapplyingspecific g-shut community will be used to override other local preference changes. 4.2.3.2. Operations at maintenance time On thesolution does not relyg-shut initiator : o Apply an out-filter onencapsulation to forward packets fromtheIngress Border Routermaintained eBGP session to tag theEgress Border Router, then transient forwarding loops and consequent packet losses can occur during the convergence process, even ifpaths propagated over theprocedure described above is applied. Hence if zero LoC is required, encapsulation is required between ASBRs ofsession with theAS. Usingg-shut community. o Apply an in-filter on theout-filter reconfiguration avoidsmaintained eBGP session to tag theforwarding loops betweenpaths received over theg-shut initiator and its directly connected upstream neighboring routers. Indeed, when this reconfiguration is applied,session with the g-shutinitiator keeps using its own external path and lets the upstream routers convergecommunity. o Wait for convergence to happen. o Perform a BGP session shutdown. 4.2.4. BGP implementation support for G-Shut A BGP router implementation MAY provide features aimed at automating thealternate ones. During this phase, no forwarding loops can occur betweenapplication of theg-shut initiator and its upstream neighborsgraceful shutdown procedures described above. Upon a session shutdown specified as to be graceful by the operator, a BGP implementation supporting a g-shutinitiator keeps usingfeature would 1. Update all theaffectedpathsvia itspropagated over the corresponding eBGPpeering links. When allsession, tagging theupstream routers have switchedGSHUT community to them. Any subsequent update sent toalternate paths,thetransition performed bysession being gracefully shut down would be tagged with theg-shut initiator whenGSHUT community. 2. Lower the local preference value of the paths received over the eBGP sessionis actuallybeing shut down,will be loopfree. Transient forwarding loops between other routers will not be avoided with this procedure. 6. Dealingupon their propagation over iBGP sessions. Optionally, also tag these paths withInternet policies A side gainan AS specific g-shut community. Note that alternatively, the local preference of themaintenance solution is that itpaths received over the eBGP session canalso reducebe lowered on thechurn implied by a shutdowng-shut initiator itself, instead ofan eBGP session. For this, it is recommendedonly when propagating over its iBGP sessions. This simplified behavior can lead toapply the filters modifyingsome LoC, as described in Appendix A.1, if not used in conjunction with [BestExternal]. 3. Optionally shut down thelocal- pref value ofsession after a configured time. 4. Prevent the GSHUT community from being inherited by a path that would aggregate some paths tagged with the GSHUT community. This behavior avoids the GSHUT procedure tovalues strictly lower but as close as possiblebe applied to thelocal-pref values ofaggregate upon thepost-convergence paths. For example, if an eBGP link is shut down between a provider andgraceful shutdown of one of itscustomers, and another link with this customer remains active, thencovered prefixes. 4.3. Graceful shutdown procedures for iBGP sessions If thevalue ofiBGP topology is viable after thelocal-prefmaintenance of theold paths SHOULD be decreased tosession, i.e, if all BGP speakers of thesmallest possible value ofAS have an iBGP signaling path for all prefixes advertised on this g-shut iBGP session, then the'customer' local_pref range, minus 1. Thus, routers willshutdown of an iBGP session does nottransiently switchlead to transient unreachability. However, in the case of a shutdown of a router, a reconfiguration of the out-filters of the g-shut initiator MAY be performed to set a low local-pref value for the pathsreceivedoriginated by the g-shut initiator (e.g, BGP aggregates redistributed fromshared-cost peers or providers, which could leadother protocols, including static routes). This behavior is equivalent to thepropagation of withdraw messages overrecommended behavior for paths "redistributed" from eBGP sessionswith shared-cost peers and providers. Proceeding like this reduces both BGP churn and traffic shifting as routers will less likely switchtotransient paths. In the above example, it also prevents transient unreachabilitiesiBGP sessions in theneighboringcase of the shutdown of an ASBR. 5. Forwarding modes and forwarding loops If the ASthat are dueapplying the solution does not rely on encapsulation to forward packets from thesending of "abrupt" withdraw messagesIngress Border Router toshared-cost peers and providers. 7. Link Up cases We identify two potential causes forthe Egress Border Router, then transient forwarding loops and consequent packet lossesupon an eBGP link up event. The first one is local tocan occur during theg-no-shut initiator,convergence process, even if thesecond oneprocedure described above isdue toapplied. Hence if zero LoC is required, encapsulation is required between ASBRs of theBGP convergence followingAS. Using theinjection of new best paths withinout-filter reconfiguration avoids theiBGP topology. 7.1. Unreachability local toforwarding loops between theASBR An ASBR that selects as best a path received over a newly brought up eBGP session may transiently drop traffic. This can typically happeng-shut initiator and its directly connected upstream neighboring routers. Indeed, when this reconfiguration is applied, thenexthop attribute differs fromg-shut initiator keeps using its own external path and lets theIP address ofupstream routers converge to theeBGP peer,alternate ones. During this phase, no forwarding loops can occur between the g-shut initiator and its upstream neighbors as thereceiving ASBR has not yet resolvedg-shut initiator keeps using theMAC address associated withaffected paths via its eBGP peering links. When all theIP address of that "third party" nexthop. A BGP speaker implementation could avoid such lossesupstream routers have switched to alternate paths, the transition performed byensuring that "third party" nexthops are resolved before installing paths using these intheRIB. Ifg-shut initiator when thelink up event corresponds to an eBGPsessionthatisbeing manually brought up, over an already up multi-access link, thenactually shut down, will be loopfree. Transient forwarding loops between other routers will not be avoided with this procedure. 6. Dealing with Internet policies A side gain of theoperator can ping third party nexthopsmaintenance solution is thatare expectedit can also reduce the churn implied by a shutdown of an eBGP session. For this, it is recommended tobe used before actually bringingapply thesession up, or ping directed broadcastfilters modifying thesubnet IP addresslocal- pref value of thelink. By proceeding like this, the MAC addresses associated with these third party nexthops will be resolved by the g-no-shut initiator. 7.2. iBGP convergence Similar corner casespaths to values strictly lower but asdescribed in Appendix C.1.4 forclose as possible to thelink down case, can occur duringlocal-pref values of the post-convergence paths. For example, if an eBGP linkup event. A typical example for such transient unreachability for a given prefix is the following : 1. A Route Reflector, RR1,isinitially advertising the current best path to the members of its iBGP RR full-mesh. It propagated that path within its RR full-mesh. Another route reflector of the full-mesh, RR2, knows only that path towards the prefix. 2. A third Route Reflector of the RR full-mesh, RR3 receivesshut down between anew best path orginated by the "g-no-shut" initiator, beingprovider and one of itsRR clients. RR3 selects it as best, and propagates an UPDATE within its RR full-mesh, i.e., to RR1 and RR2. 3. RR1 receives that path, reruns its decision process,customers, andpicksanother link with thisnew path as best. As a result, RR1 withdraws its previously announced best-path oncustomer remains active, then theiBGP sessionsvalue ofits RR full-mesh. 4. If, for any reason, RR3 processesthewithdraw generated in step 3, before processinglocal-pref of theupdate generated in step 2, RR3old paths SHOULD be decreased to the smallest possible value of the 'customer' local_pref range, minus 1. Thus, routers will not transientlysuffersswitch to paths received fromunreachability forshared-cost peers or providers, which could lead to theaffected prefix. The usepropagation of[BestExternal] amongwithdraw messages over eBGP sessions with shared-cost peers and providers. Proceeding like this reduces both BGP churn and traffic shifting as routers will less likely switch to transient paths. In theRR ofabove example, it also prevents transient unreachabilities in theiBGP full-mesh can solve these corner cases by ensuringneighboring AS thatwithin an AS,are due to theadvertisementsending ofa new route"abrupt" withdraw messages to shared-cost peers and providers. 7. Link Up cases We identify two potential causes for transient packet losses upon an eBGP link up event. The first one isnot translated intolocal to thewithdrawg-no-shut initiator, the second one is due to the BGP convergence following the injection ofa former route. Indeed, "best-external" ensures that an ASBR does not withdraw a previously advertised (eBGP) path when it receives an additional, preferred path over annew best paths within the iBGPsession. Also, "best-intra-cluster" ensurestopology. 7.1. Unreachability local to the ASBR An ASBR that selects as best aRR does not withdraw a previously advertised (iBGP)pathto its non clients (e.g. other RRs inreceived over amesh of RR)newly brought up eBGP session may transiently drop traffic. This can typically happen whenit receives a new, preferred path over an iBGP session. 8. IANA considerations Applyingtheg-shut procedure is rendered much easier with a reserved g-shut community value. The community value 0xFFFF0000 has been reservednexthop attribute differs from theFCFS community pool for this purpose. 9. Security Considerations By providingIP address of theg-shut service to a neighboring AS, an ISP provides means to this neighbor to lowereBGP peer, and thelocal-pref value assigned toreceiving ASBR has not yet resolved thepaths received from this neighbor. The neighbor could abuseMAC address associated with thetechnique and do inbound traffic engineeringIP address of that "third party" nexthop. A BGP speaker implementation could avoid such losses bydeclaring some prefixes as undergoing a maintenance so as to switch traffic to another peering link.ensuring that "third party" nexthops are resolved before installing paths using these in the RIB. Ifthis behaviorthe link up event corresponds to an eBGP session that isnot tolerated bybeing manually brought up, over an already up multi-access link, then theISP, it SHOULD monitoroperator can ping third party nexthops that are expected to be used before actually bringing theusesession up, or ping directed broadcast the subnet IP address of theg-shut communitylink. By proceeding like this, the MAC addresses associated with these third party nexthops will be resolved bythis neighbor. ASes which supporttheg-shut procedure SHOULD removeg-no-shut initiator. 7.2. iBGP convergence Similar corner cases as described in Appendix A.1 for thecommunity value(s) that they uselink down case, can occur during an eBGP link up event. A typical example forg-shut fromsuch transient unreachability for a given prefix is thepaths received from neighboring ASes that do not supportfollowing : 1. A Route Reflector, RR1, is initially advertising theprocedure orcurrent best path towhom the service is not provided. Doing so prevents malignant ASes from usingthecommunity through intermediate ASesmembers of its iBGP RR full-mesh. It propagated thatdo not support the feature, in order to perform inbound traffic engineering. 10. Acknowledgments The authors wish to thank Olivier Bonaventure and Pradosh Mohapatra for their useful comments on this work. 11. References [AddPath] D. Walton, A. Retana, and E. Chen, "Advertisement of Multiple Paths in BGP", draft-walton-bgp-add-paths-06.txt (work in progress). [BestExternal] Marques, P., Fernando, R., Chen, E., and P. Mohapatra, "Advertisement of the best-external route to IBGP", draft-ietf-idr-best-external-00.txt, May 2009. [REQS] Decraene, B., Francois, P., Pelsser, C., Ahmad, Z., and T. Takeda, "Requirements for the graceful shutdown of BGP sessions", draft-ietf-grow-bgp-graceful-shutdown-requirements- 01.txt, October 2009. [RFC4360] Sangli, S., Tappan, D., and Y. Rekhter, "BGP Extended Communities Attribute", RFC 4360, February 2006. [Clarification4360] Decraene, B., Vanbever, L., and P. Francois, "RFC 4360 Clarification Request", draft-decraene-idr-rfc4360-clarification-00, October 2009. [BGPWKC] "http://www.iana.org/assignments/ bgp-well-known-communities". [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997. Appendix A. Summary of operations This section summarizes the configurations and actions to be performed to support the g-shut procedure for eBGP peering links. A.1. Pre-configuration On each ASBR supporting the g-shut procedure, set-up an out-filter applied on all iBGP sessions of the ASBR, that : . sets the local-pref of the paths tagged with the g-shut community to a low value . removes the g-shut community from the path. Optionally, add an AS specific g-shut community on the path to indicate that this path is to be shutdown. If some ingress ASBRs reset the local preference attribute, this AS specific g-shut community will be used to override other local preference changes. A.2. Operations at maintenance time On the g-shut initiator : . Apply an in-filter on the maintained eBGP session to tag the paths received over the session with the g-shut community. . Apply an out-filter on the maintained eBGP session to tag the paths propagated over the session with the g-shut community. . Wait for convergence to happen. . Perform a BGP session shutdown. Appendix B. Alternative techniques with limited applicability A few alternative techniques have been considered to provide g-shut capabilities but have been rejected due to their limited applicability. This section describe them for possible reference. B.1. In-filter reconfiguration An In-filter reconfiguration on the eBGP session undergoing the maintenance could be performed instead of out-filter reconfigurations on the iBGP sessions of the g-shut initiator. Upon the application of the maintenance procedure, if the g-shut initiator has an alternate path in its Adj-Rib-In, it will switch to it directly. If this new path was advertised by an eBGP neighbor of the g-shut initiator, the g-shut initiator will send a BGP Path Update message advertising the new path over its iBGP and eBGP sessions. If this new path was received over an iBGP session, the g-shut initiator will select that path and withdraw the previously advertisedpathover its non-client iBGP sessions. There can be iBGP topologies where the iBGP peers of the g-shut initiator do not know an alternate path, and hence may drop traffic. Also, applying an In-filter reconfiguration on the eBGP session undergoing the maintenance may lead to transient LoC, in full-mesh iBGP topologies if a. An ASBR of the initiator AS, ASBR1 did not initially selectwithin itsown external path as best, and b. An ASBRRR full-mesh. Another route reflector of theinitiator AS, ASBR2 advertises a newfull-mesh, RR2, knows only that pathalong its iBGP sessions upontowards thereceptionprefix. 2. A third Route Reflector ofASBR1's update followingthein-filter reconfiguration onRR full-mesh, RR3 receives a new best path orginated by theg-shut"g-no-shut" initiator, being one of its RR clients. RR3 selects it as best, andc. ASBR1 receives the update message, runspropagates an UPDATE within itsDecision ProcessRR full-mesh, i.e., to RR1 andhence withdrawsRR2. 3. RR1 receives that path, reruns itsexternal path after having selected ASBR2'sdecision process, and picks this new path asbest, and d. An impacted router ofbest. As a result, RR1 withdraws its previously announced best-path on theASiBGP sessions of its RR full-mesh. 4. If, for any reason, RR3 processes the withdrawof ASBR1generated in step 3, before processing the update generated in step 2, RR3 transiently suffers fromASBR2. Applying a reconfigurationunreachability for the affected prefix. The use of [BestExternal] among theout-filters prevents such transient unreachabilities. Indeed, whenRR of theg-shut initiator propagatesiBGP full-mesh can solve these corner cases by ensuring that within anupdate ofAS, theold path first,advertisement of a new route is not translated into the withdrawfrom ASBR2of a former route. Indeed, "best-external" ensures that an ASBR does nottrigger unreachability in other nodes, as the oldwithdraw a previously advertised (eBGP) pathis still available. Indeed, even thoughwhen it receives an additional, preferred path over an iBGP session. Also, "best-intra-cluster" ensures that a RR does not withdraw a previously advertised (iBGP) path to its non clients (e.g. other RRs in a mesh of RR) when it receivesalternate paths, the g-shut initiator keeps using its olda new, preferred pathas best as the in-filter of the maintained eBGP session has not been modified yet.over an iBGP session. 8. IANA considerations Applying theout-filter reconfiguration also prevents packet loops between theg-shutinitiator and its direct neighbors when encapsulationprocedure isnot used between the ASBRs of the AS. B.2. Multi Exit Discriminator tweakingrendered much easier with a reserved g-shut community value. TheMED attribute ofcommunity value 0xFFFF0000 has been reserved from thepathsFCFS community pool for this purpose. 9. Security Considerations By providing the g-shut service tobe avoided can be increased so asa neighboring AS, an ISP provides means toforce the routers inthis neighbor to lower theneighboring ASlocal-pref value assigned toselect other paths. The solution only works ifthealternatepathsarereceived from this neighbor. The neighbor could abuse the technique and do inbound traffic engineering by declaring some prefixes asgoodundergoing a maintenance so asthe initial ones with respecttothe Local-Pref value and the AS Path Length value. In the other cases, increasing the MED value willswitch traffic to another peering link. If this behavior is nothave an impact ontolerated by thedecision process ofISP, it SHOULD monitor therouters inuse of theneighboring AS. B.3. IGP distance Poisoning The distance tog-shut community by this neighbor. ASes which support theBGP nexthop corresponding tog-shut procedure SHOULD remove themaintained session can be increased incommunity value(s) that they use for g-shut from theIGP sopaths received from neighboring ASes that do not support theold paths will be less preferred during the application ofprocedure or to whom theIGP distance tie-break rule. However, this solution only works forservice is not provided. Doing so prevents malignant ASes from using thepaths whose alternates are as good ascommunity through intermediate ASes that do not support theold paths with respectfeature, in order totheir Local- Pref value, their AS Path length,perform inbound traffic engineering. 10. Acknowledgments The authors wish to thank Olivier Bonaventure and Pradosh Mohapatra for theirMED value. Also,useful comments on thispoisoning cannot be applied when nexthop self is used as there is no nexthop specific to the maintained session to poisonwork. 11. References [AddPath] D. Walton, A. Retana, and E. Chen, "Advertisement of Multiple Paths inthe IGP. Appendix C. EffectBGP", draft-walton-bgp-add-paths-06.txt (work in progress). [BestExternal] Marques, P., Fernando, R., Chen, E., and P. Mohapatra, "Advertisement of theg-shut procedure on the convergence This section describes the effect of applyingbest-external route to IBGP", draft-ietf-idr-best-external-00.txt, May 2009. [REQS] Decraene, B., Francois, P., Pelsser, C., Ahmad, Z., Armengol, A., and T. Takeda, "Requirements for thesolution. C.1. Maintenancegraceful shutdown ofan eBGP sessionBGP sessions", draft-ietf-grow-bgp-graceful-shutdown-requirements- 06.txt, October 2010. [RFC4360] Sangli, S., Tappan, D., and Y. Rekhter, "BGP Extended Communities Attribute", RFC 4360, February 2006. [Clarification4360] Decraene, B., Vanbever, L., and P. Francois, "RFC 4360 Clarification Request", draft-decraene-idr-rfc4360-clarification-00, October 2009. [BGPWKC] "http://www.iana.org/assignments/ bgp-well-known-communities". [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, March 1997. Appendix A. Alternative techniques with limited applicability A few alternative techniques have been considered to provide g-shut capabilities but have been rejected due to their limited applicability. This sectiondescribes the effect of applying the solutiondescribe them forthe shutdown of an eBGP session. C.1.1. Propagation on the other eBGP sessions of the g-shut initiator Nothing is propagated on the other eBGP sessions when the out-filters reconfiguration step is applied. Thepossible reference. A.1. In-filter reconfigurationis indeed only defined for its iBGP sessions. TheAn In-filter reconfigurationof the iBGP out-filters will trigger the reception of alternate paths at the g-shut initiator. Ason the eBGPin-filters have not been modified at that step, the old paths are still preferred by the g-shut initiator. C.1.2. Propagation onsession undergoing theother iBGP sessionsmaintenance could be performed instead ofthe g-shut initiator During theout-filterreconfiguration, path updates are propagated with a reduced local-pref value for the affected paths. As a consequence, Route Reflectors and distant ASBRs select and propagate alternate paths through the iBGP topology as they no longer select the old paths as best. When the shut-down is performed, for each affected prefix, the g-shut initiator propagatesreconfigurations onits iBGP sessions: . The alternate path, if the best path was received over an eBGP sessions. . A withdraw, ifthebest path was received over an iBGP sessions. C.1.3. Propagation of updates in aniBGPfull-mesh No transient LoC can occur if a reconfigurationsessions of theiBGP out- filters on theg-shutinitiator is performed. C.1.4. Propagation of updates from iBGP to iBGP in a RR hierarchyinitiator. Upon thereceptionapplication of theupdate of a primary path with a lower local-pref value from a client, a Route Reflector RR1 will either propagatemaintenance procedure, if theupdate, or selectg-shut initiator has an alternatepath, depending on the fact that the updated primarypathis stillin its Adj-Rib-In, it will switch to it directly. If this new path was advertised by an eBGP neighbor of thebest one w.r.t.g-shut initiator, thestate ofg-shut initiator will send a BGP Path Update message advertising theAdj-Rib-In of RR1.new path over its iBGP and eBGP sessions. Ifthe updated primarythis new pathis still the best, thenwas received over an iBGP session, theRRg-shut initiator willpropagate an update for thisselect that pathtoand withdraw theiBGP neighbors to which itpreviously advertisedthe path. Hence it cannot cause transient lack ofpathin the Adj-Rib-In ofover its non-client iBGPneighbors. Ifsessions. There can be iBGP topologies where the iBGP peers of the g-shut initiator do not know an alternatepath is picked,path, andthis path was also originated by a client of RR1,hence may drop traffic. Also, applying anupdate will also be propagated toIn-filter reconfiguration on thesame neighbors aseBGP session undergoing theonemaintenance may lead towhich the primary path was initially propagated. Hence it cannot causetransientlack of pathLoC, inthe Adj- Rib-Infull-mesh iBGP topologies if a. An ASBR of the initiator AS, ASBR1 did not initially select itsiBGP neighbors. If an alternateown external pathis picked,as best, andthis path was received from a memberb. An ASBR of the initiator AS, ASBR2 advertises a new path along itsRoute-ReflectoriBGPfull-mesh, then a withdraw message is sent. Assessions upon thealternatereception of ASBR1's update following the in-filter reconfiguration on the g-shut initiator, and c. ASBR1 receives the update message, runs its Decision Process and hence withdraws its external pathhas been sent over each sessionafter having selected ASBR2's path as best, and d. An impacted router of theiBGP full-mesh,AS processes thepropagation of awithdrawfor the primary pathofRR1 is done to routers that are expected to knowASBR1 before processing thealternate path picked by RR1. The following example describes a situation where some corner case timings could lead to transient unreachabilityupdate fromsome membersASBR2. Applying a reconfiguration of theiBGP full-mesh. 1. A Route Reflector RR1 only knew about the primary path uponout-filters prevents such transient unreachabilities. Indeed, when theshutdown. 2. A member of its RR full-mesh, RR2,g-shut initiator propagates an update of the old pathwith a lower local-pref. 3. Another member of its RR full-mesh, RR3 processesfirst, theupdate, selects an alternate path, and propagates an updatewithdraw from ASBR2 does not trigger unreachability in other nodes, as themesh. 4. RR2old path is still available. Indeed, even though it receivesthealternatepath, selects it as best, and hence withdrawspaths, theupdatedg-shut initiator keeps using its old pathonas best as theiBGP sessionsin-filter of themesh. 5. If for any reason, RR1 receivesmaintained eBGP session has not been modified yet. Applying the out-filter reconfiguration also prevents packet loops between the g-shut initiator andprocessesits direct neighbors when encapsulation is not used between thewithdraw generatedASBRs of the AS. Note that applying this simplified procedure instep 4 before processingconjunction with [BestExternal] does not lead to LoC. A.2. Multi Exit Discriminator tweaking The MED attribute of theupdate generatedpaths to be avoided can be increased so as to force the routers instep 3, RR1 transiently suffers from unreachability fortheaffected prefix.neighboring AS to select other paths. The solution only works if the alternate paths are as good as the initial ones with respect to the Local-Pref value and the AS Path Length value. Insuch corner cases,thesolution improvesother cases, increasing theiBGP convergence behavior/LoC but doesMED value will notensure 0 packet loss, as we cannot define a simple solution relying onlyhave an impact ona reconfiguration ofthefiltersdecision process of theg-shut initiator. Improving the availability of alternate pathsrouters inRoute Reflectors, using [BestExternal], or [AddPath], seemsthe neighboring AS. A.3. IGP distance Poisoning The distance tobethemost pragmatic solutionBGP nexthop corresponding tothese corner cases. The use of [BestExternal] intheiBGP full-mesh between RRsmaintained session cansolve these corner cases by ensuring that within an AS, the advertisement of a new path is not translated intobe increased in thewithdraw of a former path. Indeed, "best-external" ensures that an ASBR does not withdraw a previously advertised (eBGP) path when it receives an additional, preferred path over an iBGP session. Also, "best-intra-cluster" ensuresIGP so thata RR does not withdraw a previously advertised (iBGP) path to its non clients (e.g. other RRs in a mesh of RR) when it receives a new, preferred path over an iBGP session. C.2. Maintenance of an iBGP session Iftheshutdown does not temper withold paths will be less preferred during theviabilityapplication of theiBGP topology,IGP distance tie-break rule. However, this solution only works for thedescribed procedurepaths whose alternates are as good as the old paths with respect to their Local- Pref value, their AS Path length, and their MED value. Also, this poisoning cannot be applied when nexthop self is used as there issufficientno nexthop specific toavoid LoC.the maintained session to poison in the IGP. Authors' Addresses Pierre Francois Universite catholique de Louvain Place Ste Barbe, 2 Louvain-la-Neuve 1348 BE Email: pierre.francois@uclouvain.be URI: http://inl.info.ucl.ac.be/pfr Bruno Decraene France Telecom 38-40 rue du General Leclerc 92794 Issi Moulineaux cedex 9 FR Email: bruno.decraene@orange-ftgroup.com Cristel Pelsser Internet Initiative Japan Jinbocho Mitsui Bldg. 1-105 Kanda Jinbo-cho Tokyo 101-0051 JP Email: pelsser.cristel@iij.ad.jp Keyur Patel Cisco Systems 170 West Tasman Dr San Jose, CA 95134 US Email: keyupate@cisco.com Clarence Filsfils Cisco Systems De kleetlaan 6a Diegem 1831 BE Email: cfilsfil@cisco.com