RFC 9815: BGP Link State (BGP-LS) Shortest Path First (SPF) Routing
IETF / RFC Editor · K. Patel, A. Lindem et al.
An IETF Standards Track RFC (July 2025) defining BGP extensions that combine BGP-LS link-state distribution with SPF computation so BGP can serve as both underlay and overlay protocol in massively scaled data centres.
On this page
Overview
Many massively scaled data centres have converged on simplified L3 routing and, for operational simplicity, on BGP as the single protocol for fabric routing and data-centre interconnect (DCI). RFC 7938 already describes BGP as the sole protocol. RFC 9815 defines an alternative model that overcomes the limits of path-vector BGP: node, link and prefix information is distributed in BGP-LS NLRI format and an OSPF-like SPF algorithm replaces BGP best-path computation.
The RFC lists the main benefits: all BGP speakers hold a complete topology view, so ECMP, IP fast reroute (LFA) and SRLG are supported without advertising additional paths. On a link failure, path-vector BGP may withdraw hundreds or thousands of prefixes, whereas in BGP SPF only the speaker originating the Link NLRI withdraws it, and the change is advertised immediately without waiting for best-path selection. This brings dissemination efficiency close to that of link-state protocols.
The document defines the new BGP-LS-SPF SAFI, use of BGP-LS Node, Link and Prefix NLRI, the SPF Status TLV, the Attribute Sequence Number TLV and an End of RIB marker. Three peering models are given: single-hop eBGP between network nodes, peering between directly connected nodes, and a route-reflector or controller topology; the last two need far fewer BGP sessions. IPv4 and IPv6 are supported with the same Link NLRI.
For failure convergence, local link failures are advertised ahead of other changes, with a newer NLRI carrying an SPF Status TLV that marks the link down for BGP SPF; the suggested default for the LinkStatusDownAdvertise timer is 2 seconds. The document also covers error handling, security, management (metric configuration, unnumbered links, session isolation) and IANA considerations. Deployment guidance is in the companion RFC 9816.
Key points
- Published in July 2025 on the Standards Track; aims to let BGP serve as underlay and overlay in massively scaled data centres.
- An OSPF-like SPF algorithm replaces BGP best-path computation; node, link and prefix information travels as BGP-LS NLRI.
- All speakers have a complete topology view; ECMP, IP fast reroute and SRLG are supported without extra path advertisement.
- On a link failure only the speaker originating the Link NLRI withdraws it and the change is advertised immediately, avoiding the withdrawal of hundreds or thousands of prefixes seen in path-vector BGP.
- Three peering models: single-hop eBGP, peering between directly connected nodes, route-reflector or controller topology; the last two need fewer sessions.
- IPv4 and IPv6 are supported with the same BGP-LS-SPF Link NLRI.
- Local link failures are advertised with priority; the suggested default for LinkStatusDownAdvertise is 2 seconds.
- The BGP-LS-SPF topology can act as underlay for other BGP SAFIs.
Using it in design
- If a single-protocol (BGP) fabric is the goal, compare classic eBGP path-vector with BGP-LS SPF on convergence time and session count.
- List BGP-LS-SPF SAFI support as a switch selection requirement and avoid mixed fabrics with devices that lack it.
- If the route-reflector or controller peering model is chosen, record the number and redundancy of reflectors in the design.
- Define link-metric configuration policy and the use of unnumbered links in advance.
- In failure tests, measure link-down and node-down convergence times and compare them with the LinkStatusDownAdvertise setting.
Who should read it
Network architects and BGP engineers designing underlay and overlay routing for large data-centre fabrics.
Document contents
- Introduction: terminology, requirements language, BGP SPF motivation, document overview
- Base BGP Protocol and BGP-LS Relationship
- BGP SPF Peering Models: single-hop eBGP, directly connected nodes, route-reflector or controller topology
- BGP SPF Routing Protocol Extensions: BGP-LS-SPF SAFI, extensions to BGP-LS, End of RIB marker, next-hop information
- Decision Process with the SPF Algorithm: NLRI selection, dual-stack, SPF calculation, advertisement, link and node failure convergence
- Error Handling
- IANA and Security Considerations
- Management Considerations: configuration, link metric, unnumbered links, readvertisement delay, session isolation
Related standards
- RFC 9815
Publication details
- Authors
- K. Patel; A. Lindem; S. Zandi; W. Henderickx
- Publisher
- IETF / RFC Editor
- Year
- 2025
- Document number
- RFC 9815
- Document language
- English
- Source type
- Industry body
- Access
- Free to read
- Licence
- Copyright retained; citation only: the publisher’s terms apply to the original document
Original licence note
The document copyright notice identifies IETF Trust Legal Provisions (BCP 78). Full-text redistribution and adaptation conditions were not separately audited; this deliverable is metadata and original summary only.
Citation
K. Patel; A. Lindem; S. Zandi; W. Henderickx (2025). RFC 9815: BGP Link State (BGP-LS) Shortest Path First (SPF) Routing. IETF / RFC Editor. RFC 9815. https://doi.org/10.17487/RFC9815
All content and rights belong to the respective authors and publishers. SoSo CAD provides only the citation, its own summary and a link to the source, and is not responsible for the sources' content.
