LFA
acronymKept in this browser · My desk
Stands for: Loop-free alternate
Loop-free alternate (LFA): a backup next hop, computed by a link-state router before any failure, to which it can switch the moment its primary next hop fails, because that neighbour's own shortest path to the destination does not lead back through the router.
Specified in RFC 5286 (2008) as the basic form of IP fast reroute. A neighbour N is loop-free for destination D if Distance_opt(N, D) is less than Distance_opt(N, S) plus Distance_opt(S, D); a stricter condition makes it node-protecting against the primary next hop itself. The router switches locally in tens of milliseconds while the network converges in hundreds. Coverage depends on topology: RFC 6571 found 67% to 99% of prefixes protected across eleven provider cores, Juniper suggests 40% to 60% in a typical network, and an even ring with equal costs has none.
Worked from RFC 5286's figure. S reaches D through E at 5 + 4 = 9; neighbour N1 is at cost 8 from S and 3 from D. 3 is less than 8 + 9, so N1 is loop-free; 3 is less than 9, so it is also downstream; 3 is less than 7 + 4, N1's distance to E plus E's distance to D, so it protects against E failing too. Extensions fill the gaps: remote LFA (RFC 7490) tunnels the packet to a router a few hops away from which it will not return, the remedy Nokia's guide shows for a ring, and TI-LFA (RFC 9855) uses segment routing to guarantee coverage in any two-connected network. An LFA repairs only at the point of failure; routers further away can still form transient microloops until they converge.
Also known as: loop-free alternate, loop-free alternates, ip fast reroute, ipfrr, ip frr, remote lfa, rlfa
Sources
- RFC 5286, Basic Specification for IP Fast Reroute: Loop-Free Alternates, September 2008, updated by RFC 8518, sections 1 and 3.2 and figure 1 (read 2026-11-16): a precomputed alternate next hop used until reconvergence; the loop-free, downstream and node-protecting inequalities; convergence of hundreds of milliseconds against applications sensitive to tens
- RFC 5714, IP Fast Reroute Framework, January 2010, section 4 (read 2026-11-16): the five steps of a routed failover and the goal of a repair path unaffected by subsequent reconvergence
- RFC 6571, Loop-Free Alternate (LFA) Applicability in Service Provider (SP) Networks, June 2012, sections 4.2 and 4.3 (read 2026-11-16): eleven core topologies of 16 to 600 nodes, per-link coverage 16% to 98%, per-prefix 67% to 99%, median 94%
- RFC 7490, Remote Loop-Free Alternate (LFA) Fast Reroute (FRR), April 2015 (read 2026-11-16): tunnelling to a remote node from which the packet will not return
- Nokia, SR Linux R26.7 Segment Routing Guide, Loop-free alternates (read 2026-11-16): no LFA for prefixes behind link C-B in a ring, remote LFA per RFC 7490 as the remedy
- Juniper Networks, Topology-Independent Loop-Free Alternate with Segment Routing for IS-IS and OSPF (read 2026-11-16): approximately 40 to 60 percent of destinations protected by LFA in a typical topology