OSNEC.011: How OSPF Fast Reroute Uses Loop-Free Alternates

Photorealistic Black network technician testing redundant optical links in a data center, with exactly one copied BitcoinVersus.tech neon-green-on-black watermark at the lower-left.

OSNEC.011 explores why redundant cables do not always deliver fast network recovery. Ordinary Open Shortest Path First (OSPF) routers recalculate paths after a failure, potentially interrupting traffic during reconvergence. IP Fast Reroute (IP FRR) reduces disruption by preparing a forwarding alternative in advance. A loop-free alternate (LFA) is a neighboring router whose existing route can carry packets toward a destination without returning them to the repairing router. Begin with OSNEC.005 on link-state databases and SPF.

Key Learning Objectives

  • Define OSPF reconvergence, IP FRR, alternate next hop, and forwarding loops.
  • Calculate the RFC 5286 loop-free condition using actual path costs.
  • Distinguish link protection, node protection, and cases without a local LFA.
  • Describe failure detection, backup forwarding, validation, and operational limits.

Prerequisites

Understand OSPF neighbor relationships, link costs, and shortest-path routing. Review OSNEC.006 on adjacency. Examples are simulated reasoning, not commands tested on a production switch.

thinQtank Learning, “CCIE Enterprise Infrastructure Lesson 65 – EIGRP IP FRR and OSPF LFA” (2021), teaches fast reroute and precomputed backup next hops. Watch directly on YouTube if embedded playback is restricted.

What happens before and after a broken link

Reconvergence means routers detect changed topology, update link-state information, rerun shortest-path calculations, and install routes. Forwarding loops occur when routers send packets back toward one another instead of progressing to the destination. LFA seeks a safe neighbor before failure. When a protected interface fails, the local router can use its preinstalled backup in the forwarding information base while OSPF computes the lasting replacement route. RFC 5286 defines the LFA selection rules; Cisco documents OSPFv2 operational behavior.

Calculate whether a neighbor is loop-free

Call the repairing router S, candidate neighbor N, and destination D. Let d(X,Y) mean the shortest OSPF cost from X to Y. A candidate satisfies the basic loop-free test when d(N,D) < d(N,S) + d(S,D). The strict inequality matters: equality may leave N with a shortest path through S, causing packets to bounce back.

Illustrative example: S reaches D through its primary neighbor for cost 5. Another neighbor N reaches D for cost 4; N returns to S for cost 2. Since 4 < 2 + 5 = 7, N passes the basic test. If S-to-N costs 2, the backup’s total cost is 6, longer than the primary’s 5, but usable for repair. If N’s best cost to D instead equals 7, 7 < 7 is false: basic LFA protection is not established. All figures are classroom assumptions.

Independent Cisco LFA concept and GNS3 lab walkthrough (2021). Demonstrates fast-reroute principles and platform-specific examples; verify syntax against current equipment documentation. Watch directly on YouTube if embedded playback is restricted.

Link protection is not identical to node protection

Link-protecting means the detour avoids the failed primary link. Node-protecting means it also avoids the primary next-hop router itself. An LFA can satisfy the basic inequality yet fail the stronger node-protection requirement. Shared-risk link groups, such as cables routed through one conduit, may defeat apparently redundant paths. Broadcast segments need extra checks. Neither an extra physical port nor a green neighbor-state indicator proves a valid backup.

Some topologies supply no suitable directly connected LFA. Remote LFA can reach a more distant repair point using an appropriate tunnel, while TI-LFA uses segment-routing techniques; neither is automatically enabled or supported everywhere. See the IETF’s LFA operational guidance for limitations.

How to validate without disrupting production

  1. Record the OSPF area, destination prefix, primary next hop, alternate next hop, and configured repair protection type.
  2. Read the platform’s LFA coverage and forwarding-table telemetry; compare route costs against the inequality.
  3. Check how loss is detected. OSNTC.050 explains BFD, which may accelerate failure detection, but detection alone does not provide a backup.
  4. Validate restoration, loss, and convergence in an authorized isolated lab; document results without disabling live links.

Practice and answer key

Q1: If d(N,D)=8, d(N,S)=3, and d(S,D)=5, is N an LFA? Answer: No. The test requires 8 < 8, which is false.

Q2: Does a link-protecting LFA necessarily survive failure of the primary router? Answer: No. Node protection requires additional path analysis.

Q3: Does BFD itself calculate an alternate route? Answer: No. BFD detects loss; the routing and forwarding implementation selects a repair path. Review OSNEC.010 for a separate OSPF area behavior.

We volunteer daily to ensure the credibility of the information on this platform is Verifiably True. If you would like to support to help further secure the integrity of our research initiative, please scan the QR code below.

BitcoinVersus.Tech voluntary research support QR code

Leave a Reply