Network Working Group H. Zhu Internet-Draft 25 November 2026 Intended status: Informational Expires: 29 May 2027 Cross-Device High Availability for BGP Sessions Using BFD draft-zhu-idr-bgp-ha-00 Abstract Some BGP deployments cannot rely on peers to negotiate Graceful Restart. An operator may instead want a standby routing instance on a separate device to continue an existing BGP connection and its associated Bidirectional Forwarding Detection (BFD) session after the active device fails, without changes at the peer. This document describes the deployment problem, the conditions under which takeover can be attempted, and how to verify continuity as observed by the peer. It does not specify a replication protocol, change BGP or BFD on the wire, or claim lossless forwarding. It provides operational criteria that can be applied independently of how the underlying TCP connection is preserved. Status of This Memo 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 29 May 2027. Copyright Notice Copyright (c) 2026 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. Zhu Expires 29 May 2027 [Page 1] Internet-Draft BGP HA November 2026 Please review these documents carefully, as they describe your rights and restrictions with respect to this document. Code Components extracted from this document must include Revised BSD License text as described in Section 4.e of the Trust Legal Provisions and are provided without warranty as described in the Revised BSD License. Table of Contents 1. Introduction . . . . . . . . . . . . . . . . . . . . . . . . 2 2. Deployment Model and Terminology . . . . . . . . . . . . . . 3 3. Conditions for Takeover . . . . . . . . . . . . . . . . . . . 3 3.1. Single Ownership and Peer Reachability . . . . . . . . . 3 3.2. Consistent Peer-Visible State . . . . . . . . . . . . . . 4 3.3. Timing and Failure Behavior . . . . . . . . . . . . . . . 4 4. Operational Validation . . . . . . . . . . . . . . . . . . . 5 5. Relationship to Existing Work . . . . . . . . . . . . . . . . 6 6. Security Considerations . . . . . . . . . . . . . . . . . . . 7 7. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 7 8. Operational and Working Group Discussion . . . . . . . . . . 7 Author's Address . . . . . . . . . . . . . . . . . . . . . . . . 7 1. Introduction When a BGP connection closes, a peer that is not retaining routes under Graceful Restart removes routes learned over that connection. If no usable alternate exists, traffic can be dropped until routes are learned and installed again. Some operators do not control the configuration of external peers. A peer may not implement Graceful Restart, or it may not negotiate it for the affected address family. BFD can detect loss of reachability and trigger BGP teardown even when BGP's own Hold Timer has not expired. The objective here is to preserve the existing peer-visible TCP/BGP connection and associated BFD session through a bounded failure of the active device. This is distinct from route retention across a BGP restart, and it does not replace routing convergence when reachability or valid session state cannot be preserved. No new peer capability or configuration is required for a successful takeover. The initial scope is single-hop IPv4 asynchronous BFD Control without Echo or BFD authentication. BGP sessions using TCP MD5 or TCP-AO, multi-hop BFD, mixed implementation versions, and simultaneous failure of both devices are outside the initial scope. Ordinary failure detection and routing recovery still apply in those cases. This document treats the TCP connection as a prerequisite for BGP session continuity rather than defining how a transport implementation achieves it. A companion TCP HA draft discusses that Zhu Expires 29 May 2027 [Page 2] Internet-Draft BGP HA November 2026 problem for arbitrary applications. The two drafts are independent: this document does not require any mechanism or wire change described by the companion. 2. Deployment Model and Terminology An *active* device runs the live routing sessions. A *standby* device in a separate failure domain prepares to assume the same peer- visible endpoint. Both are operated within one administrative domain. The peer establishes one TCP/BGP connection and, when configured, one associated BFD session. It is not a participant in replication or ownership coordination. One peer-visible endpoint | External peer <--- TCP/BGP and BFD ---> Active device : Private state : replication : Standby device After fenced promotion only, peer traffic reaches the same endpoint on the standby, now the active device. At any instant the endpoint has at most one device authorized and able to send peer-visible protocol traffic. *Fencing* is an enforced barrier to transmission by a previous owner, including after a partition, reboot, or delayed operation. A logical ownership record alone is not proof of fencing. The path to the standby must be usable after the chosen failure; a standby with consistent state cannot continue a session if the peer cannot reach it. A *committed recovery point* is a consistent set of state the standby can recover and apply without consulting the failed active device. Per-peer *readiness* means the protocol and transport state needed for continuation is available at such a point and is still usable. Readiness is separate from ownership and from forwarding readiness. 3. Conditions for Takeover 3.1. Single Ownership and Peer Reachability Promotion depends on exclusive ownership and demonstrated fencing of the old active endpoint. A replication-link failure cannot by itself justify promotion: it might be a partition in which the active can still transmit. The standby remains silent while ownership is uncertain. The surviving network must deliver peer traffic for the same endpoint to the new owner, preserving the addressing and session Zhu Expires 29 May 2027 [Page 3] Internet-Draft BGP HA November 2026 identity required by the peer. Any independent peer policy or link- down signal can still cause the peer to close the session. 3.2. Consistent Peer-Visible State A successful takeover continues the existing TCP byte stream and BGP session. Copying route tables, a TCP four-tuple, or BGP finite- state-machine status alone is insufficient. The recovery point needs to account for input the active acknowledged, output the peer may already have seen, negotiated transport and BGP state, and routing work that has not yet been reflected in peer-visible updates. A restored TCP acknowledgment position must not imply that BGP data is safely retained if neither the recovered application state nor the recoverable receive stream contains that data. Likewise, BGP updates the peer may already have received cannot be treated as unsent in a way that changes their stream position or ordering. BGP-specific state includes session capabilities, per-address-family route and policy state, withdrawals, and pending work that has not yet been reflected in peer-visible updates. Checkpoint/restore and event replay are possible implementation approaches; no checkpoint format or replay algorithm is specified here. The associated BFD session also needs a coherent recovery point. Peer-visible identity includes the session discriminators and the relevant endpoints. The new owner continues the negotiated timing and session state, including an in-progress Poll Sequence when applicable. It does not create a new BFD session under the guise of preserving the old one. If BFD has legitimately expired, normal BGP/ BFD coupling applies. 3.3. Timing and Failure Behavior Takeover consumes the time remaining on active timers; it does not start new Hold or detection periods or lengthen the BFD negotiation to hide the interruption. Timer mapping between devices needs to account for uncertainty rather than granting extra time. Each BFD receiver has its own negotiated detection time and last accepted Control packet, so the time left at failure can be different in each direction. For example, a negotiated 300 ms asynchronous transmit interval and multiplier of three give a nominal 900 ms detection time in that direction. That is not a 900 ms recovery budget measured from fault injection. The receiving system may already have used part of its detection interval when the fault occurs. Neither 300 ms nor 900 ms is a requirement or an availability claim. Zhu Expires 29 May 2027 [Page 4] Internet-Draft BGP HA November 2026 If fencing, peer reachability, state consistency, or valid timer state cannot be established, the standby does not claim to continue the old sessions. A deployment can fall back to ordinary BFD detection and BGP reconvergence once it can safely establish ownership. During ordinary recovery, route retention applies only when separately negotiated and applicable. 4. Operational Validation Use separate active and standby devices and an observer that survives the fault. Establish the initial state and record the relevant settings for each peer and address family. Exercise at least a planned transition, unexpected active loss with the peer link remaining up, loss of the active-facing path with an alternate path to the endpoint, and a partition in which the old owner might retain peer reachability. Test bursts of UPDATEs and withdrawals near the fault and attempted promotion of a stale or otherwise unready standby. Vary fault timing relative to the BFD receive interval. Include a baseline with ordinary recovery and at least one peer without negotiated GR. Report the following independently: 1. *TCP/BGP connection continuity.* Observe whether the original connection continues exchanging valid data after failure, without reconnecting or renegotiating BGP. A capture without a new SYN is insufficient if the session never resumes. Check route correctness after updates or withdrawals during the transition. 2. *BFD continuity.* Record the two discriminators, state changes and the largest gap between valid Control packets observed at each receiver. Compare with the negotiated directional detection time and verify no Down transition, rather than judging only elapsed time after fault injection. 3. *Routing and forwarding correctness.* Observe the peer's routes, the surviving device's installed forwarding state where applicable, and sequence-numbered traffic on affected paths. Report loss, reordering and recovery time separately from session continuity. Check for routes that incorrectly reappear after a withdrawal. 4. *Failure containment.* Verify that an unfenced or stale standby does not take over, and that path failures actually meant to be detected by BFD still cause ordinary failure handling. Verify that a previous owner returning after a fault cannot resume using the endpoint based on stale state. Zhu Expires 29 May 2027 [Page 5] Internet-Draft BGP HA November 2026 No end-to-end cross-device validation result is claimed in this draft. The public FRR prototype discussion records build and limited negative-input checks, not successful independent-device failover or packet-loss measurements. The document does not depend on that implementation or specify Linux APIs. 5. Relationship to Existing Work BGP Graceful Restart (RFC 4724 (https://www.rfc-editor.org/rfc/ rfc4724)) can retain routes temporarily across a BGP connection restart when the peer supports and negotiates it; it does not preserve the original TCP connection. Long-Lived Graceful Restart (RFC 9494 (https://www.rfc-editor.org/rfc/rfc9494)) extends route retention under its conditions. RFC 8538 (https://www.rfc- editor.org/rfc/rfc8538) addresses the treatment of BGP NOTIFICATION messages with Graceful Restart. These are complementary recovery approaches. BGP-4 (https://www.rfc-editor.org/rfc/rfc4271), TCP (https://www.rfc- editor.org/rfc/rfc9293), and BFD (https://www.rfc-editor.org/rfc/ rfc5880), including single-hop BFD (https://www.rfc-editor.org/rfc/ rfc5881), remain the peer-visible protocols. RFC 5882 (https://www.rfc-editor.org/rfc/rfc5882) discusses use of BFD by applications, including BGP. BFD Support for Redundant Control Plane Processors (https://datatracker.ietf.org/doc/draft-li-bfd-rcp/) discusses BFD continuity when a redundant control-plane processor takes over; its scope explicitly excludes forwarding-plane and link failures. Route Reflector Deployment Considerations, Section 11.6 (https://datatracker.ietf.org/doc/html/draft-smith-idr-rr-deployment- considerations-02#section-11.6) describes preserving BGP sessions on a physical route reflector with redundant processors. Both are related Internet-Drafts. Here the standby is a separate device, and continuation depends on a surviving peer-facing path as well as consistent transport and routing state. The public FRRouting design discussion (https://github.com/FRRouting/frr/issues/24434) gives one implementation example and records concerns about ongoing maintenance. It does not establish upstream support or project consensus for this document. Zhu Expires 29 May 2027 [Page 6] Internet-Draft BGP HA November 2026 6. Security Considerations Replicated transport and routing state can expose topology and session details and can influence what the new owner sends. Restrict standby membership and replication access, authenticate participants, protect replication integrity and confidentiality, and reject stale or replayed state. Apply protections to stored checkpoints as well as the replication channel. Restrict and audit promotion and fencing authority. A compromised or mistaken ownership decision can produce split-brain, false reachability, or incorrect updates and withdrawals. Do not weaken or silently disable configured peer authentication to achieve continuity. This draft does not define safe continuation of sessions protected by TCP MD5 (https://www.rfc-editor.org/rfc/ rfc2385), TCP-AO (https://www.rfc-editor.org/rfc/rfc5925), or BFD authentication. A genuine connectivity failure must remain visible to normal protocol failure detection. 7. IANA Considerations This document requests no IANA actions. 8. Operational and Working Group Discussion * Are cross-device deployments without negotiated GR common enough to justify common terminology and validation criteria? * Which failures and observations should be in the minimum test set for a claim of peer-visible continuity? * Is there an interoperable problem between implementations that warrants a separate specification, or should this work remain operational guidance? Author's Address Hengbo Zhu Email: zhuhengbo2018@gmail.com Zhu Expires 29 May 2027 [Page 7]