Internet-Draft | OSPF FRR | May 2025 |
Varigonda & Vallem | Expires 12 November 2025 | [Page] |
This document proposes an enhancement to OSPF (Open Shortest Path First) that enables routers to precompute backup loop-free alternate (LFA) paths for fast reroute (FRR) in case of primary path failures. This mechanism improves convergence time and network stability by eliminating the delay associated with on-demand SPF recalculation during failure events.¶
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 https://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 12 November 2025.¶
Copyright (c) 2025 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 (https://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.¶
SPT - Shortest Path Tree¶
FRR - Fast Reroute¶
LFA - Loop-Free Alternate¶
iSPF - Incremental SPF¶
Each OSPF router computes its primary SPT as per standard operation. In addition, the router precomputes alternate paths to selected destinations, simulating failure scenarios (e.g., primary next-hop failure). These alternate paths are validated for loop-freeness using LFA criteria and stored in a local cache for immediate use.¶
Consider a simple OSPF topology where R1 is connected to R2, R3, and R4. The destination prefix 10.0.0.0/24 is reachable via R2 under normal conditions. The enhancement involves precomputing a backup path via R3.¶
+-----+ +-----+ | R2 |--------| R5 | +-----+ +-----+ / \ / \ +-----+ +-----+ | R1 |--------------------| R3 | +-----+ +-----+ \ / \ / +-----+ +-----+ | R4 |--------| R6 | +-----+ +-----+¶
Steps:¶
1. R1 computes shortest path to 10.0.0.0/24 via R2.¶
2. R1 simulates failure of R1–R2 link and recomputes SPF excluding that link.¶
3. R3 is validated as an LFA-capable neighbor and cached as a backup next-hop.¶
4. On failure detection (e.g., via BFD), R1 switches to the cached path via R3.¶
For each destination:¶
a. Identify alternate neighbors not used in the primary path.¶
b. Simulate primary link failure.¶
c. Run SPF on the altered topology.¶
d. Validate for loop-freeness.¶
e. Store valid backup path in a local cache.¶
No OSPF LSA format changes are required. Optionally, a new Router Information LSA TLV may advertise precomputed FRR capability.¶
In implementations where it is desirable to advertise backup paths to neighbors or controllers, an Opaque LSA format may be introduced.¶
TLV Type: TBD2¶
Value: List of destinations and corresponding backup next-hops¶
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Type=TBD2 | Length | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Destination Prefix (IPv4/IPv6) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Backup Next-Hop Router ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+¶
A TLV may indicate support for precomputed backup paths.¶
TLV Type: TBD1¶
Length: 1 byte¶
Value: 0x01 indicates support¶
0 1 2 3 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Type=TBD1 | Length=1 | Value=0x01 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+¶
- OSPF LFA (RFC 5286): on-the-fly LFA, not proactive¶
- NotVia (RFC 6981): complex, encapsulation required¶
- TI-LFA (RFC 8665): segment-routing-based, not applicable to classic OSPF¶
- Proposed: simple, proactive, no encapsulation or SR dependencies¶
Bidirectional Forwarding Detection (BFD) can be used in conjunction with this proposal to detect failures quickly. Upon BFD session failure, the router can immediately switch to the precomputed alternate path.¶
The number of precomputed backup entries should be limited to avoid overwhelming memory. Incremental SPF (iSPF) techniques SHOULD be used. Alternate paths SHOULD be computed selectively, and aging mechanisms MAY be applied.¶
This mechanism does not introduce new protocol messages and inherits OSPF's security properties. However, LSAs used in precomputation MUST be validated to prevent path manipulation by attackers. Authentication and origin validation are RECOMMENDED.¶
This document makes no requests of IANA at this time.¶
The authors thank members of the IETF OSPF Working Group for their feedback and suggestions on earlier versions of this draft.¶
Srinivasa Mohan Kumar Varigonda <sri.mohan@samsung.com>¶
Veerendranatha Reddy Vallem <vallemr@tejasnetworks.com>¶
<CODE BEGINS>¶
router ospf 1 fast-reroute precompute backup-paths enable timers lfa reevaluation 300¶
<CODE ENDS>¶
- Support for SR-MPLS and SRv6 backup path precomputation.¶
- Incorporation of topology constraints in alternate path selection.¶
draft-kumarvarigonda-ospf-precomputed-frr-00¶
- Initial version including use case, diagram, and precomputation process.¶
- Added example Opaque LSA encoding and scalability discussion.¶
- Included proposed backup path advertisement format.¶
- Added comparison with existing mechanisms section.¶