| Internet-Draft | BMP Pre-Established Session Diagnostics | December 2026 |
| Geng, et al. | Expires 4 June 2027 | [Page] |
The BGP Monitoring Protocol (BMP), defined in RFC 7854, is widely used to monitor BGP session states and routing information. However, standard BMP implementations restrict reporting to sessions that have reached the "Established" state, leaving a complete visibility blind spot when BGP sessions encounter initialization failures (such as TCP handshake timeouts, ACL drops, or configuration mismatches) while lingering in pre-Established states (Connect, Active, OpenSent, or OpenConfirm). This document defines three alternative architectural options to stream pre-established session failures and transient diagnostic contexts via BMP.¶
The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in BCP 14 [RFC2119][RFC8174] when, and only when, they appear in all capitals, as shown here.¶
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 4 June 2027.¶
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. 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.¶
In large-scale data center and carrier backbone networks, the BGP [RFC4271] Monitoring Protocol (BMP) [RFC7854] serves as the primary telemetry mechanism for monitoring control plane dynamics. Per current standards, routers report peer lifecycle events via Peer Down and Peer Up notifications, where routing data exchange only occurs after the session achieves the Established state.¶
Consequently, if a BGP session is trapped or oscillating in pre- Established states (e.g., Connect, Active, OpenSent, OpenConfirm) due to transport-layer blocks, mismatched AS numbers, or security policy failures, the monitoring station remains blind. This document outlines three distinct implementation options to bridge this operational gap.¶
This document defines and uses the following terms:¶
Pre-Established BGP Session: A BGP session instance that has not yet reached the "Established" state per [RFC4271]. It encompasses all transient Finite State Machine (FSM) states prior to full session establishment, specifically including the Connect, Active, OpenSent, and OpenConfirm states. A session in this phase is undergoing transport-layer connection establishment (e.g., TCP 179 handshake) or BGP control plane parameter negotiation, and is susceptible to pre-establishment failures such as transport timeouts, ACL blocks, parameter mismatches, or security validation rejections.¶
Monitored Router: A router implementing BMP that monitors its local BGP sessions and exports telemetry to a BMP Monitoring Station.¶
BMP Monitoring Station: A central telemetry station or collector that receives BMP messages from Monitored Routers per [RFC7854].¶
Session Abortion: The premature termination or reset of a BGP session while lingering in a pre-Established state, prior to reaching the Established state.¶
This option introduces a dedicated BMP message type to stream BGP Finite State Machine (FSM) transitions, in-band transport context, and timer states prior to session establishment.¶
In ultra-scale financial WAN backbones or AI Data Center (AIDC) networks, a Monitored Router attempts to establish a BGP session with a peer. If intermediate security appliances drop traffic (e.g., due to sudden ACL blocks) causing TCP handshakes to fail repeatedly, the BGP session oscillates between the Connect and Active states.¶
Under standard RFC 7854 implementations, the monitoring station remains blind to these pre-established state transitions. By activating this option, the Monitored Router leverages the existing active BMP TCP session to stream real-time FSM transitions and in-band transport telemetry to the BMP Monitoring Station.¶
A new BMP Message Type is defined:¶
BMP Message Type: TBD_FSM (e.g., 7, defined as FSM State Tracking Message).¶
The message follows the standard Per-Peer Header defined in RFC 7854, immediately followed by the FSM State Information Block and associated TLVs:¶
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Old-FSM-State (1 Octet) | New-FSM-State (1 Octet) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Transition-Reason-Code | Reserved (1 Octet) | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | | TLVs (Variable) | | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+¶
Old-FSM-State / New-FSM-State (1 Octet each): Standard states encoded per RFC 4271 (1: Idle, 2: Connect, 3: Active, 4: OpenSent, 5: OpenConfirm, 6: Established).¶
Transition-Reason-Code (1 Octet): Trigger code (e.g., 1: ConnectRetryTimer_Expired, 2: TCP_Connection_Open_Failed, 3: BGP_Header_Error, 4: HoldTimer_Expired).¶
TLV Type = 0x0001 (TCP Connection Diagnostic Context TLV):¶
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 = 0x0001 | Length = 12 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TCP-Attempt-Source-IP | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TCP-Attempt-Dest-IP | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TCP-Handshake-Fail-Count | Current-TCP-State | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+¶
TCP-Handshake-Fail-Count (2 Octets): Cumulative count of TCP handshake timeouts or RST receipts within the current BGP peer lifecycle.¶
Current-TCP-State (1 Octet): Kernel-level TCP state (e.g., SYN_SENT, CLOSED).¶
TLV Type = 0x0002 (FSM Timer Status TLV):¶
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 = 0x0002 | Length = 4 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | ConnectRetryTimer-Value | HoldTime-Remaining | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+¶
+-----------+ +----------------+
| Monitored | | BMP Monitoring |
| Router | | Station |
+-----+-----+ +-----------+----+
| |
| -- 1. ConnectRetryTimer Expired -->|
| |
| -- 2. FSM Jump: Connect -> Idle -->|
| Sends BMP Msg Type 7 |
| Sub-TLV: SYN_SENT, Fail-Count=14|
| |
| | 3. Analyze Event
| | 4. Root Cause
| | Flagged
¶
Step 1 (Timer Expiry): The Monitored Router attempts connection while in the Connect state. Upon ConnectRetryTimer expiration, the BGP FSM forces a state transition from Connect back to Idle.¶
Step 2 (Snapshot Generation): Upon state transition, the router queries the network stack: TCP-Handshake-Fail-Count is recorded as 14, and the socket is stalled in SYN_SENT. The router constructs a BMP message (Type = 7) with Old-State=2, New-State=1, Reason=1, and the diagnostic Sub-TLVs, transmitting it over the existing BMP session.¶
Step 3 & 4 (Analysis & Alerting): The BMP Monitoring Station receives the message, processes the in-band TCP context without packet sniffing, and flags the precise root cause: "TCP SYN packets are not acknowledged, indicating path ACL blocking rather than a BGP configuration error."¶
This option leverages the highly scalable, event-driven framework defined in Route Event Logging (REL) [I-D.ietf-grow-bmp-rel] to proactively report transient session abortion triggers (such as security policy drops or configuration rejections) before or during BGP session establishment.¶
Consider a Monitored Router attempting or receiving a BGP connection with a peer, monitored by a BMP Monitoring Station over an independent out-of-band management connection.¶
Transient pre-established failures typically stem from two categories:¶
Scenario A (Parameter/Configuration Mismatch): The peer initiates a TCP session and sends a BGP OPEN message. The Monitored Router detects a mismatched Autonomous System number (My Autonomous System vs. locally configured Expected-Remote-AS) and triggers a session abortion before or upon issuing a BGP Notification.¶
Scenario B (Security/Access Interception): The Monitored Router receives a TCP SYN request from a peer, but local access control lists (ACLs) or RPKI/ASPA validation policies reject the packet, silently dropping the handshake or tearing down TCP.¶
Standard BMP mechanisms lack transient event signaling for such aborted attempts. Option 2 addresses this by utilizing BMP REL messages to output precise diagnostic telemetry.¶
Per Section 3.2 of [I-D.ietf-grow-bmp-rel], the REL message header includes a 1-octet Event Type Header:¶
Code = 1: The event is related to Routing.¶
Code = 2: The event is related to the health of the BGP or the BMP protocols.¶
This option categorizes BGP Session Abortion (BSA) under BGP protocol health events (Code = 2) or a newly allocated sub-code.¶
TLV Type = 0x0110 (BSA Core Diagnosis TLV): Encapsulates core diagnosis metadata when a session abortion is triggered:¶
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 = 0x0110 | Length = 12 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Abortion-Code | Reserved | Target-Local-Port | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Expected-Remote-AS-Number | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Received-Remote-AS-Number | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+¶
Abortion-Code (1 Octet): Root cause classification code for session termination:¶
Target-Local-Port (2 Octets): Local socket destination port (e.g., 179).¶
Expected-Remote-AS-Number / Received-Remote-AS-Number (4 Octets each): The locally configured expected AS and the actual AS declared in the received OPEN message.¶
TLV Type = 0x0111 (Rejected TCP SYN Meta TLV): Captures transport metadata when local security policies silently drop incoming SYN requests:¶
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 = 0x0111 | Length = 8 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Requested-TCP-Seq-Num | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TCP-Flags | Security-Policy-ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+¶
+----------+ +----------------+
| Monitored| | BMP Monitoring |
| Router | | Station |
+----+-----+ +-----------+----+
| |
| - 1. TCP 179 Established & Receives OPEN ----->|
| |
| - 2. Detect AS Mismatch (Local:65001, Peer:65002)
| |
| - 3. Send BMP REL Msg (Type 6, Event Code 2) ->|
| BSA Core Diagnosis TLV 0x0110 |
| |
| - 4. Send BGP Notification & Tear Down ------->|
| |
| | 5. Parse REL
| | TLVs
| | 6. Root Cause
| | Output¶
Step 1 & 2 (Event Trigger): The peer successfully completes the TCP 179 handshake and sends a BGP OPEN message with AS 65002. The Monitored Router (configured with remote-as 65001) detects the mismatch. Standard procedure dictates sending a BGP Notification (OPEN Message Error / Bad Peer AS) and closing the TCP session.¶
Step 3 (REL Event Emission): Prior to tearing down the session, the Monitored Router constructs a BMP REL Message (Type = 6, Event Type Code = 2) containing the BSA Core Diagnosis TLV (0x0110) with Abortion-Code = 0x01, Expected-AS = 65001, and Received-AS = 65002, then sends it to the Monitoring Station.¶
Step 4 (Session Reset): The Monitored Router transmits the standard BGP Notification error to the peer and tears down the TCP connection.¶
Step 5 & 6 (Diagnosis): Upon receiving the REL message, the BMP Monitoring Station parses TLV 0x0110 and immediately flags the exact root cause: "BGP Session Abortion: Neighbor 192.0.2.1 failed due to Peer AS mismatch (Expected: 65001, Received: 65002)."¶
While RFC 7854 specifies that a Peer Down Notification is emitted when a BGP session drops from an Established state, this option extends the Peer Down Reason Code semantics. When a BGP session aborts or resets while lingering in a pre-Established state (Connect, Active, OpenSent, or OpenConfirm), the router triggers a synthetic "Virtual Peer Down" message containing structured diagnostic context in its Data field.¶
In large-scale AI Data Center (AIDC) or provider backbone networks, BGP neighbors are configured but may fail to reach the Established state due to physical, transport, parameter, or security issues.¶
Under Option 3, the Monitored Router attaches a Pre-Established FSM Tracker to the BGP control plane. When the BGP FSM aborts during initialization, the tracker captures the in-band error context and synthesizes a BMP Peer Down message before resetting the local peer instance.¶
Per RFC 7854 Section 4.9, a standard Peer Down Notification includes a 1-octet Reason field followed by a variable-length Data field.¶
When Reason = 6, the Data field does not encapsulate standard BGP Notification messages; instead, it carries structured diagnostic Sub-TLVs capturing the failure snapshot:¶
Sub-TLV Type = 0x01 (FSM Phase and Timing Context TLV):¶
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 = 0x01 | Length = 4 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Aborted-FSM- | Current-FSM-Duration(2 Octets)| Reserved | | State(1 Octet)| | | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+¶
Aborted-FSM-State (1 Octet): FSM state at abortion (2: Connect, 3: Active, 4: OpenSent, 5: OpenConfirm).¶
Current-FSM-Duration (2 Octets): Time elapsed (in seconds) in non-Established states during the current cycle.¶
Sub-TLV Type = 0x02 (Socket Error Context TLV):¶
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 = 0x02 | Length = 6 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Internal-TCP-State | TCP-Error-Code | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | TCP-Handshake-Fail-Count | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+¶
Internal-TCP-State (2 Octets): Kernel-level TCP state (0x0002: SYN_SENT, 0x0001: CLOSED).¶
TCP-Error-Code (2 Octets): Standard socket error codes:¶
TCP-Handshake-Fail-Count (2 Octets): Cumulative handshake failures in the current cycle.¶
Sub-TLV Type = 0x03 (Parameter Mismatch Context TLV):¶
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 = 0x03 | Length = 12 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Mismatch-Type | Reserved | Target-Local-Port | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Expected-Remote-AS-Number | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Received-Remote-AS-Number | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+¶
Mismatch-Type (1 Octet): 0x01: Remote-AS-Mismatch, 0x02: BGP-Version-Not-Supported, 0x03: Bad-BGP-Identifier.¶
Expected-Remote-AS-Number / Received-Remote-AS-Number (4 Octets each): Expected vs. actual received AS numbers.¶
Sub-TLV Type = 0x04 (Security and Verification Context TLV):¶
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 = 0x04 | Length = 4 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | Security-Reason| Security-Policy-ID | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+¶
+----------+ +----------------+
| Monitored| | BMP Monitoring |
| Router | | Station |
+---+------+ +-----------+----+
| |
| - 1. Local BGP Neighbor Configured --->| (FSM Starts)
| |
| - 2. Case A (Active): Timeout ---------|
| -- Case B (OpenSent): AS Mismatch -->|
| |
| - 3. Generate Virtual Peer Down ------>|
| Reason=6, Sub-TLV 0x01 & (0x02/0x03)|
| |
| | 4. Parse Sub-TLVs
| | 5. Output Root
| | Cause¶
Step 1 (Tracker Attachment): When neighbor configuration is applied, the Monitored Router starts the BGP FSM and attaches a Pre-Established FSM Tracker to independently track non-Established state durations.¶
Step 2 (Event Capture):¶
Case A (Active State Timeout): The local router issues TCP SYN, but intermediate firewalls drop traffic. Upon ConnectRetryTimer expiration, the FSM drops back to Active. The tracker logs TCP-Error-Code = ETIMEDOUT.¶
Case B (OpenSent AS Mismatch): The peer sends a BGP OPEN message containing AS 65002 while 65001 is expected. Before sending a BGP Notification and closing the TCP session, the tracker captures the causal mismatch context.¶
Step 3 (Virtual Peer Down Synthesis): The router preserves standard Per-Peer Header fields and encodes the Data payload:¶
Step 4 & 5 (Telemetry Transmission & Analysis): The Monitored Router transmits the synthetic Peer Down message via BMP before peer state reset. The Monitoring Station detects Reason = 6, decodes the Sub-TLVs, and flags the exact root cause directly to operators (e.g., "Case A: SYN traffic dropped by firewall" or "Case B: AS configuration mismatch").¶
This document introduces telemetry mechanisms for pre-established BGP sessions. Implementations MUST ensure that diagnostic streaming does not expose sensitive router internals or exacerbate denial-of-service (DoS) vulnerabilities on the monitoring channel.¶
This document requests IANA to assign new codepoints for BMP Message Types, REL Event Types, and associated TLV/Sub-TLV namespaces as specified in Sections 3.1, 3.2, and 3.3.¶
TBD¶