Skip to content

bgp: ADD-PATH support for IPv4/IPv6 unicast (RFC 7911) - #146

Open
gusbourg wants to merge 4 commits into
holo-routing:masterfrom
gusbourg:bgp-add-path-pr
Open

bgp: ADD-PATH support for IPv4/IPv6 unicast (RFC 7911)#146
gusbourg wants to merge 4 commits into
holo-routing:masterfrom
gusbourg:bgp-add-path-pr

Conversation

@gusbourg

@gusbourg gusbourg commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

BGP Additional Paths / ADD-PATH (RFC 7911) for IPv4 and IPv6 unicast.

  • Per-neighbor / peer-group ADD-PATH capability with receive / send modes, negotiated per (AFI, SAFI). The NLRI path-id codec is driven by the per-direction negotiated capability (via encode/decode contexts): decode reads a path-id only when receive is negotiated, encode writes one only when send is negotiated.
  • RX: the Adj-RIB-In is keyed by (neighbour, path-id), so multiple paths per prefix from one peer coexist; update/withdraw match a specific path-id.
  • TX: advertises the additional paths (send-all) with stable path-ids.
  • Fail-safe: a session that does not negotiate ADD-PATH is byte-for-byte unchanged (path-id 0, no path-id on the wire).

Tests: packet round-trip with path-ids, and path-ids-omitted-without-negotiation (the wire-format guard).

Scope: IPv4/IPv6 unicast. Deferred: VPN/EVPN/labeled AFs; best-per-AS TX mode; paths-limit (RFC 9184). Behavioral conformance tests for RX multi-path storage and TX all-paths advertisement are a recommended follow-up.

🤖 Generated with Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants