Routing Area Working Group | S. Litkowski |
Internet-Draft | B. Decraene |
Intended status: Standards Track | Orange |
Expires: June 2, 2017 | C. Filsfils |
P. Francois | |
Cisco Systems | |
November 29, 2016 |
Micro-loop prevention by introducing a local convergence delay
draft-ietf-rtgwg-uloop-delay-03
This document describes a mechanism for link-state routing protocols to prevent local transient forwarding loops in case of link failure. This mechanism proposes a two-steps convergence by introducing a delay between the convergence of the node adjacent to the topology change and the network wide convergence.
As this mechanism delays the IGP convergence it may only be used for planned maintenance or when fast reroute protects the traffic between the link failure time and the IGP convergence.
The proposed mechanism will be limited to the link down event in order to keep simplicity.
Simulations using real network topologies have been performed and show that local loops are a significant portion (>50%) of the total forwarding loops.
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 [RFC2119].
This Internet-Draft is submitted in full conformance with the provisions of BCP 78 and BCP 79.
Internet-Drafts are working documents of the Internet Engineering Task Force (IETF). Note that other groups may also distribute working documents as Internet-Drafts. The list of current Internet-Drafts is at http://datatracker.ietf.org/drafts/current/.
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."
This Internet-Draft will expire on June 2, 2017.
Copyright (c) 2016 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 this document. Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code 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 Simplified BSD License.
Micro-forwarding loops and some potential solutions are well described in [RFC5715]. This document describes a simple targeted mechanism that solves micro-loops that are local to the failure; based on network analysis, these are a significant portion of the micro-forwarding loops. A simple and easily deployable solution for these local micro-loops is critical because these local loops cause some traffic loss after a fast-reroute alternate has been used (see Section 2.1).
Consider the case in Figure 1 where S does not have an LFA to protect its traffic to D. That means that all non-D neighbors of S on the topology will send to S any traffic destined to D if a neighbor did not, then that neighbor would be loop-free. Regardless of the advanced fast-reroute (FRR) technique used, when S converges to the new topology, it will send its traffic to a neighbor that was not loop-free and thus cause a local micro-loop. The deployment of advanced fast-reroute techniques motivates this simple router-local mechanism to solve this targeted problem. This solution can be work with the various techniques described in [RFC5715].
1 D ------ C | | 1 | | 5 | | S ------ B 1 Figure 1
When S-D fails, a transient forwarding loop may appear between S and B if S updates its forwarding entry to D before B.
Even if they are very limited in duration, transient forwarding loops may cause high damage for the network.
D 1 | | 1 A ------ B | | ^ 10 | | 5 | T | | | E--------C | 1 1 | S Figure 2 - RSVP-TE FRR case
If C updates its forwarding entry to D before router E, there would be a transient forwarding loop between C and E until E has converged.
Network condition | Time | Router C events | Router E events |
---|---|---|---|
S->D Traffic OK | |||
S->D Traffic lost | t0 | Link B-C fails | Link B-C fails |
t0+20msec | C detects the failure | ||
S->D Traffic OK | t0+40msec | C activates FRR | |
t0+50msec | C updates its local LSP/LSA | ||
t0+60msec | C schedules SPF (100ms) | ||
t0+70msec | C floods its local updated LSP/LSA | ||
t0+87msec | E receives LSP/LSA from C and schedules SPF (100ms) | ||
t0+117msec | E floods LSP/LSA from C | ||
t0+160msec | C computes SPF | ||
t0+165msec | C starts updating its RIB/FIB | ||
t0+193msec | E computes SPF | ||
t0+199msec | E starts updating its RIB/FIB | ||
S->D Traffic lost | t0+255msec | C updates its RIB/FIB for D | |
t0+340msec | C convergence ends | ||
S->D Traffic OK | t0+443msec | E updates its RIB/FIB for D | |
t0+470msec | E convergence ends |
The issue described here is completely independent of the fast-reroute mechanism involved (TE FRR, LFA/rLFA, MRT ...). The protection enabled by fast-reroute is working perfectly, but ensures protection, by definition, only until the PLR has converged. When implementing FRR, a service provider wants to guarantee a very limited loss of connectivity time. The previous example shows that the benefit of FRR may be completely lost due to a transient forwarding loop appearing when PLR has converged. Delaying FIB updates after IGP convergence may allow to keep fast-reroute path until the neighbors have converged and preserves the customer traffic.
1 D ------ C | | 1 | | 5 | | A -- S ------ B / | 1 F E
Section 1, when the link S-D fails, a transient forwarding loop may appear between S and B for destination D. The traffic on the S-B link will constantly increase due to the looping traffic to D. Depending on the TTL of the packets, the traffic rate destinated to D and the bandwidth of the link, the S-B link may be congested in few hundreds of milliseconds and will stay overloaded until the loop is solved.
The congestion introduced by transient forwarding loops is problematic as it is impacting traffic that is not directly concerned by the failing network component. In our example, the congestion of the S-B link will impact some customer traffic that is not directly concerned by the failure: e.g. A to B, F to B, E to B. Some class of services may be implemented to mitigate the congestion, but some traffic not directly concerned by the failure would still be dropped as a router is not able to identify the looping traffic from the normally forwarded traffic.
This document defines a two-step convergence initiated by the router detecting the failure and advertising the topological changes in the IGP. This introduces a delay between the convergence of the local router and the network wide convergence.
The proposed solution is kept limited to local link down events for simplicity reason.
This ordered convergence, is similar to the ordered FIB proposed defined in [RFC6976], but limited to only a "one hop" distance. As a consequence, it is simpler and becomes a local only feature not requiring interoperability; at the cost of only covering the transient forwarding loops involving this local router. The proposed mechanism also reuses some concept described in [I-D.ietf-rtgwg-microloop-analysis] with some limitations.
This document will refer to the following existing IGP timers:
This document introduces the following new timer:
Upon a change of the status of an adjacency/link, the existing behavior of the router advertising the event is the following:
The mechanism described in this document assumes that there has been a single link failure as seen by the IGP area/level. If this assumption is violated (e.g. multiple links or nodes failed), then standard IP convergence MUST be applied (as described in Section 4.2).
To determine if the mechanism can be applicable or not, an implementation SHOULD implement a logic to correlate the protocol messages (LSP/LSA) received during the SPF scheduling period in order to determine the topology changes that occured. This is necessary as multiple protocol messages may describe the same topology change and a single protocol message may describe multiple topology changes. As a consequence, determining a particular topology change MUST be independent of the order of reception of those protocol messages. How the logic works is let to implementation details.
Using this logic, if an implementation determines that the associated topology change is a single local link failure, then the router MAY use the mechanism described in this document, otherwise the standard IP convergence MUST be used.
+--- E ----+--------+ | | | A ---- B -------- C ------ D
Example:
Let router B be the computing router when the link B-C fails. B updates its local LSP/LSA describing the link B->C as down, C does the same, and both start flooding their updated LSP/LSAs. During the SPF_TIMER period, B and C learn all the LSPs/LSAs to consider. B sees that C is flooding as down a link where B is the other end and that B and C are describing the same single event. Since B receives no other changes, B can determine that this is a local link failure and may decide to activate the mechanism described in this document.
Upon an adjacency/link down event, this document introduces a change in step 5 (Section 4.2) in order to delay the local convergence compared to the network wide convergence: the node SHOULD delay the forwarding entry updates by ULOOP_DELAY_DOWN_TIMER. Such delay SHOULD only be introduced if all the LSDB modifications processed are only reporting a single local link down event (Section 4.3). If a subsequent LSP/LSA is received/updated and a new SPF computation is triggered before the expiration of ULOOP_DELAY_DOWN_TIMER, then the same evaluation SHOULD be performed.
As a result of this addition, routers local to the failure will converge slower than remote routers. Hence it SHOULD only be done for a non-urgent convergence, such as for administrative de-activation (maintenance) or when the traffic is protected by fast-reroute.
As previously stated, the mechanism only avoids the forwarding loops on the links between the node local to the failure and its neighbor. Forwarding loops may still occur on other links.
A ------ B ----- E | / | | / | G---D------------C F All the links have a metric of 1 Figure 2
Let us consider the traffic from G to F. The primary path is G->D->C->E->F. When link C-E fails, if C updates its forwarding entry for F before D, a transient loop occurs. This is sub-optimal as C has FRR enabled and it breaks the FRR forwarding while all upstream routers are still forwarding the traffic to itself.
By implementing the mechanism defined in this document on C, when the C-E link fails, C delays the update of its forwarding entry to F, in order to let some time for D to converge. FRR keeps protecting the traffic during this period. When the timer expires on C, its forwarding entry to F is updated. There is no transient forwarding loop on the link C-D.
A ------ B ----- E --- H | | | | G---D--------C ------F --- J ---- K All the links have a metric of 1 except BE=15 Figure 3
Let us consider the traffic from G to K. The primary path is G->D->C->F->J->K. When the C-F link fails, if C updates its forwarding entry to K before D, a transient loop occurs between C and D.
By implementing the mechanism defined in this document on C, when the link C-F fails, C delays the update of its forwarding entry to K, letting time for D to converge. When the timer expires on C, its forwarding entry to F is updated. There is no transient forwarding loop between C and D. However, a transient forwarding loop may still occur between D and A. In this scenario, this mechanism is not enough to address all the possible forwarding loops. However, it does not create additional traffic loss. Besides, in some cases -such as when the nodes update their FIB in the following order C, A, D, for example because the router A is quicker than D to converge- the mechanism may still avoid the forwarding loop that was occurring.
Simulations have been run on multiple service provider topologies.
Topology | Gain |
---|---|
T1 | 71% |
T2 | 81% |
T3 | 62% |
T4 | 50% |
T5 | 70% |
T6 | 70% |
T7 | 59% |
T8 | 77% |
We evaluated the efficiency of the mechanism on eight different service provider topologies (different network size, design). The benefit is displayed in the table above. The benefit is evaluated as follows:
On topology 1, 71% of the transient forwarding loops created by the failure of any link are prevented by implementing the local delay. The analysis shows that all local loops are obviously solved and only remote loops are remaining.
Transient forwarding loops have the following drawbacks:
This local delay proposal is a transient forwarding loop avoidance mechanism (like OFIB). Even if it only addresses local transient loops, the efficiency versus complexity comparison of the mechanism makes it a good solution. It is also incrementally deployable with incremental benefits, which makes it an attractive option for both vendors to implement and Service Providers to deploy. Delaying the convergence time is not an issue if we consider that the traffic is protected during the convergence.
We will consider the following figure for the associated examples :
D 1 | F----X | 1 | A ------ B | | ^ 10 | | 5 | T | | | E--------C | 1 1 | S
The network above is considered to have a convergence time about 1 second, so ULOOP_DELAY_DOWN_TIMER will be adjusted to this value. We also consider that FRR is running on each node.
The table below describes the events and associating timing that happens on router C and E when link B-C goes down. As C detects a single local event corresponding to a link down (its LSP + LSP from B received), it decides to apply the local delay down behavior and no microloop is formed.
Network condition | Time | Router C events | Router E events |
---|---|---|---|
S->D Traffic OK | |||
S->D Traffic lost | t0 | Link B-C fails | Link B-C fails |
t0+20msec | C detects the failure | ||
S->D Traffic OK | t0+40msec | C activates FRR | |
t0+50msec | C updates its local LSP/LSA | ||
t0+60msec | C schedules SPF (100ms) | ||
t0+67msec | C receives LSP/LSA from B | ||
t0+70msec | C floods its local updated LSP/LSA | ||
t0+87msec | E receives LSP/LSA from C and schedules SPF (100ms) | ||
t0+117msec | E floods LSP/LSA from C | ||
t0+160msec | C computes SPF | ||
t0+165msec | C delays its RIB/FIB update (1 sec) | ||
t0+193msec | E computes SPF | ||
t0+199msec | E starts updating its RIB/FIB | ||
t0+443msec | E updates its RIB/FIB for D | ||
t0+470msec | E convergence ends | ||
t0+1165msec | C starts updating its RIB/FIB | ||
t0+1255msec | C updates its RIB/FIB for D | ||
t0+1340msec | C convergence ends |
Similarly, upon B-C link down event, if LSP/LSA from B is received before C detects the link failure, C will apply the route update delay if the local detection is part of the same SPF run.
Network condition | Time | Router C events | Router E events |
---|---|---|---|
S->D Traffic OK | |||
S->D Traffic lost | t0 | Link B-C fails | Link B-C fails |
t0+32msec | C receives LSP/LSA from B | ||
t0+33msec | C schedules SPF (100ms) | ||
t0+50msec | C detects the failure | ||
S->D Traffic OK | t0+55msec | C activates FRR | |
t0+55msec | C updates its local LSP/LSA | ||
t0+70msec | C floods its local updated LSP/LSA | ||
t0+87msec | E receives LSP/LSA from C and schedules SPF (100ms) | ||
t0+117msec | E floods LSP/LSA from C | ||
t0+160msec | C computes SPF | ||
t0+165msec | C delays its RIB/FIB update (1 sec) | ||
t0+193msec | E computes SPF | ||
t0+199msec | E starts updating its RIB/FIB | ||
t0+443msec | E updates its RIB/FIB for D | ||
t0+470msec | E convergence ends | ||
t0+1165msec | C starts updating its RIB/FIB | ||
t0+1255msec | C updates its RIB/FIB for D | ||
t0+1340msec | C convergence ends |
The table below describes the events and associating timing that happens on router C and E when link B-C goes down, in addition F-X link will fail in the same time window. C will not apply the local delay because a non local topology change is also received.
Network condition | Time | Router C events | Router E events |
---|---|---|---|
S->D Traffic OK | |||
S->D Traffic lost | t0 | Link B-C fails | Link B-C fails |
t0+20msec | C detects the failure | ||
t0+36msec | Link F-X fails | Link F-X fails | |
S->D Traffic OK | t0+40msec | C activates FRR | |
t0+50msec | C updates its local LSP/LSA | ||
t0+54msec | C receives LSP/LSA from F and floods it | ||
t0+60msec | C schedules SPF (100ms) | ||
t0+67msec | C receives LSP/LSA from B | ||
t0+69msec | E receives LSP/LSA from F, floods it and schedules SPF (100ms) | ||
t0+70msec | C floods its local updated LSP/LSA | ||
t0+87msec | E receives LSP/LSA from C | ||
t0+117msec | E floods LSP/LSA from C | ||
t0+160msec | C computes SPF | ||
t0+165msec | C starts updating its RIB/FIB (NO DELAY) | ||
t0+170msec | E computes SPF | ||
t0+173msec | E starts updating its RIB/FIB | ||
S->D Traffic lost | t0+365msec | C updates its RIB/FIB for D | |
S->D Traffic OK | t0+443msec | E updates its RIB/FIB for D | |
t0+450msec | C convergence ends | ||
t0+470msec | E convergence ends | ||
The table below describes the events and associating timing that happens on router C and E when link B-C goes down, in addition F-X link will fail during local delay run. C will first apply local delay, but when the new event happens, it will fall back to the standard convergence mechanism without delaying route insertion anymore. In this example, we consider a ULOOP_DELAY_DOWN_TIMER configured to 2 seconds.
Network condition | Time | Router C events | Router E events |
---|---|---|---|
S->D Traffic OK | |||
S->D Traffic lost | t0 | Link B-C fails | Link B-C fails |
t0+20msec | C detects the failure | ||
S->D Traffic OK | t0+40msec | C activates FRR | |
t0+50msec | C updates its local LSP/LSA | ||
t0+60msec | C schedules SPF (100ms) | ||
t0+67msec | C receives LSP/LSA from B | ||
t0+70msec | C floods its local updated LSP/LSA | ||
t0+87msec | E receives LSP/LSA from C and schedules SPF (100ms) | ||
t0+117msec | E floods LSP/LSA from C | ||
t0+160msec | C computes SPF | ||
t0+165msec | C delays its RIB/FIB update (2 sec) | ||
t0+193msec | E computes SPF | ||
t0+199msec | E starts updating its RIB/FIB | ||
t0+254msec | Link F-X fails | Link F-X fails | |
t0+300msec | C receives LSP/LSA from F and floods it | ||
t0+303msec | C schedules SPF (200ms) | ||
t0+312msec | E receives LSP/LSA from F and floods it | ||
t0+313msec | E schedules SPF (200ms) | ||
t0+502msec | C computes SPF | ||
t0+505msec | C starts updating its RIB/FIB (NO DELAY) | ||
t0+514msec | E computes SPF | ||
t0+519msec | E starts updating its RIB/FIB | ||
S->D Traffic lost | t0+659msec | C updates its RIB/FIB for D | |
S->D Traffic OK | t0+778msec | E updates its RIB/FIB for D | |
t0+781msec | C convergence ends | ||
t0+810msec | E convergence ends |
As stated in Section 3, our solution reuses some concepts already introduced by other IETF proposals but tries to find a tradeoff between efficiency and simplicity. This section tries to compare behaviors of the solutions.
PLSN ([I-D.ietf-rtgwg-microloop-analysis]) describes a mechanism where each node in the network tries to avoid transient forwarding loops upon a topology change by always keeping traffic on a loop-free path for a defined duration (locked path to a safe neighbor). The locked path may be the new primary nexthop, another neighbor, or the old primary nexthop depending how the safety condition is satisfied.
PLSN does not solve all transient forwarding loops (see [I-D.ietf-rtgwg-microloop-analysis] Section 4 for more details).
Our solution reuses some concept of PLSN but in a more simple fashion:
OFIB ([RFC6976]) describes a mechanism where the convergence of the network upon a topology change is made ordered to prevent transient forwarding loops. Each router in the network must deduce the failure type from the LSA/LSP received and computes/applies a specific FIB update timer based on the failure type and its rank in the network considering the failure point as root.
This mechanism allows to solve all the transient forwarding loop in a network at the price of introducing complexity in the convergence process that may require a strong monitoring by the service provider.
Our solution reuses the OFIB concept but limits it to the first hop that experiences the topology change. As demonstrated, our proposal allows to solve all the local transient forwarding loops that represents an high percentage of all the loops. Moreover limiting the mechanism to one hop allows to keep the network-wide convergence behavior.
At this time, there are three different implementations of this mechanism: CISCO IOS-XR, CISCO IOS-XE and Juniper JUNOS. The three implementations have been tested in labs and demonstrated a good behavior in term of local micro-loop avoidance. The feature has also been deployed in some live networks. No side effects have been found.
This document does not introduce any change in term of IGP security. The operation is internal to the router. The local delay does not increase the attack vector as an attacker could only trigger this mechanism if he already has be ability to disable or enable an IGP link. The local delay does not increase the negative consequences as if an attacker has the ability to disable or enable an IGP link, it can already harm the network by creating instability and harm the traffic by creating forwarding packet loss and forwarding loss for the traffic crossing that link.
We would like to thanks the authors of [RFC6976] for introducing the concept of ordered convergence: Mike Shand, Stewart Bryant, Stefano Previdi, and Olivier Bonaventure.
This document has no actions for IANA.
[RFC2119] | Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997. |
[RFC5715] | Shand, M. and S. Bryant, "A Framework for Loop-Free Convergence", RFC 5715, DOI 10.17487/RFC5715, January 2010. |