GROW N. Geng Internet-Draft S. Zhuang Intended status: Standards Track H. Wang Expires: 4 June 2027 Huawei Technologies 1 December 2026 Mechanisms for Diagnosing Pre-Established BGP Session Failures Using the BGP Monitoring Protocol draft-geng-grow-bmp-pre-established-diag-00 Abstract 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. Requirements Language 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. 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." Geng, et al. Expires 4 June 2027 [Page 1] Internet-Draft BMP Pre-Established Session Diagnostics December 2026 This Internet-Draft will expire on 4 June 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. 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 . . . . . . . . . . . . . . . . . . . . . . . . 3 2. Definitions and Acronyms . . . . . . . . . . . . . . . . . . 3 2.1. Terminology . . . . . . . . . . . . . . . . . . . . . . . 3 2.2. Acronyms . . . . . . . . . . . . . . . . . . . . . . . . 4 3. Architectural Options for Pre-Established Diagnostics . . . . 4 3.1. Option 1: Dedicated FSM State Tracking Message . . . . . 4 3.1.1. Operational Overview and Scene . . . . . . . . . . . 4 3.1.2. New BMP Message Type Definition . . . . . . . . . . . 4 3.1.3. FSM State Tracking Message Payload Structure . . . . 4 3.1.4. Mandatory Sub-TLV Designs . . . . . . . . . . . . . . 5 3.1.5. Detailed Implementation Workflow . . . . . . . . . . 6 3.2. Option 2: Active Transient Event Reporting via BMP REL Extensions . . . . . . . . . . . . . . . . . . . . . . . 7 3.2.1. Operational Overview and Scene . . . . . . . . . . . 7 3.2.2. Extension of REL Event Types . . . . . . . . . . . . 7 3.2.3. Informational TLV Definitions . . . . . . . . . . . . 8 3.2.4. Workflow Example: Peer AS Mismatch Scenario . . . . . 9 3.3. Option 3: "Virtual Peer Down" Extension Mechanism . . . . 10 3.3.1. Operational Overview and Scene . . . . . . . . . . . 10 3.3.2. RFC 7854 Extensions and Reason Code . . . . . . . . . 10 3.3.3. Diagnostic Sub-TLVs in Data Area . . . . . . . . . . 10 3.3.4. Detailed Workflow and Execution Steps . . . . . . . . 12 4. Security Considerations . . . . . . . . . . . . . . . . . . . 14 5. IANA Considerations . . . . . . . . . . . . . . . . . . . . . 14 6. Acknowledgements . . . . . . . . . . . . . . . . . . . . . . 14 7. References . . . . . . . . . . . . . . . . . . . . . . . . . 14 7.1. Normative References . . . . . . . . . . . . . . . . . . 14 7.2. Informative References . . . . . . . . . . . . . . . . . 15 Authors' Addresses . . . . . . . . . . . . . . . . . . . . . . . 15 Geng, et al. Expires 4 June 2027 [Page 2] Internet-Draft BMP Pre-Established Session Diagnostics December 2026 1. Introduction 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. 2. Definitions and Acronyms 2.1. Terminology 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. Geng, et al. Expires 4 June 2027 [Page 3] Internet-Draft BMP Pre-Established Session Diagnostics December 2026 2.2. Acronyms * FSM: Finite State Machine * REL: Route Event Logging 3. Architectural Options for Pre-Established Diagnostics 3.1. Option 1: Dedicated FSM State Tracking Message 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. 3.1.1. Operational Overview and Scene 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. 3.1.2. New BMP Message Type Definition A new BMP Message Type is defined: * BMP Message Type: TBD_FSM (e.g., 7, defined as FSM State Tracking Message). 3.1.3. FSM State Tracking Message Payload Structure The message follows the standard Per-Peer Header defined in RFC 7854, immediately followed by the FSM State Information Block and associated TLVs: Geng, et al. Expires 4 June 2027 [Page 4] Internet-Draft BMP Pre-Established Session Diagnostics December 2026 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | 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). 3.1.4. Mandatory Sub-TLV Designs 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): Geng, et al. Expires 4 June 2027 [Page 5] Internet-Draft BMP Pre-Established Session Diagnostics December 2026 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 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ 3.1.5. Detailed Implementation Workflow +-----------+ +----------------+ | 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." Geng, et al. Expires 4 June 2027 [Page 6] Internet-Draft BMP Pre-Established Session Diagnostics December 2026 3.2. Option 2: Active Transient Event Reporting via BMP REL Extensions 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. 3.2.1. Operational Overview and Scene 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. 3.2.2. Extension of REL Event Types 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. Geng, et al. Expires 4 June 2027 [Page 7] Internet-Draft BMP Pre-Established Session Diagnostics December 2026 3.2.3. Informational TLV Definitions 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: - 0x01: Remote-AS-Mismatch (Mismatched peer AS in OPEN message). - 0x02: TCP-SYN-ACL-Blocked (TCP handshake dropped by local security/ACL policy). - 0x03: RPKI-Security-Check-Failed (Origin/ASPA security check failed). * 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 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ Geng, et al. Expires 4 June 2027 [Page 8] Internet-Draft BMP Pre-Established Session Diagnostics December 2026 * Requested-TCP-Seq-Num (4 Octets): Sequence number of the intercepted TCP SYN packet. * TCP-Flags (1 Octet): TCP header flags. * Security-Policy-ID (3 Octets): Rule ID of the local ACL or security policy triggering the drop. 3.2.4. Workflow Example: Peer AS Mismatch Scenario +----------+ +----------------+ | 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. Geng, et al. Expires 4 June 2027 [Page 9] Internet-Draft BMP Pre-Established Session Diagnostics December 2026 * 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)." 3.3. Option 3: "Virtual Peer Down" Extension Mechanism 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. 3.3.1. Operational Overview and Scene 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. 3.3.2. RFC 7854 Extensions and Reason Code Per RFC 7854 Section 4.9, a standard Peer Down Notification includes a 1-octet Reason field followed by a variable-length Data field. * Reason Code Extension: - Reason = 6: Peer FSM Failed to Establish (Session initialization aborted prior to reaching Established). 3.3.3. Diagnostic Sub-TLVs in Data Area 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): Geng, et al. Expires 4 June 2027 [Page 10] Internet-Draft BMP Pre-Established Session Diagnostics December 2026 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: - 0x006E (110): ETIMEDOUT (Connection timed out, e.g., SYN packet dropped). - 0x006F (111): ECONNREFUSED (Connection refused, port 179 closed or unconfigured). - 0x0065 (101): ENETUNREACH (Network unreachable, missing route/ ARP). * TCP-Handshake-Fail-Count (2 Octets): Cumulative handshake failures in the current cycle. Sub-TLV Type = 0x03 (Parameter Mismatch Context TLV): Geng, et al. Expires 4 June 2027 [Page 11] Internet-Draft BMP Pre-Established Session Diagnostics December 2026 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 | +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ * Security-Reason (1 Octet): 0x01: TCP-MD5-Mismatch, 0x02: TCP-AO- Key-Error, 0x03: ASPA-Validation-Invalid. * Security-Policy-ID (3 Octets): Rule ID of local security/ACL policy causing the abortion. 3.3.4. Detailed Workflow and Execution Steps Geng, et al. Expires 4 June 2027 [Page 12] Internet-Draft BMP Pre-Established Session Diagnostics December 2026 +----------+ +----------------+ | 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: - Sets Reason = 6. - Attaches Sub-TLV 0x01 (Aborted-FSM-State = 3: Active for Case A; 4: OpenSent for Case B). - Attaches Sub-TLV 0x02 for Case A (TCP-Error-Code = 0x006E ETIMEDOUT). - Attaches Sub-TLV 0x03 for Case B (Mismatch-Type = 0x01, Expected-AS = 65001, Received-AS = 65002). Geng, et al. Expires 4 June 2027 [Page 13] Internet-Draft BMP Pre-Established Session Diagnostics December 2026 * 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"). 4. Security Considerations 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. 5. IANA Considerations 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. 6. Acknowledgements TBD 7. References 7.1. Normative References [I-D.ietf-grow-bmp-rel] Lucente, P. and C. Cardona, "Logging of routing events in BGP Monitoring Protocol (BMP)", Work in Progress, Internet-Draft, draft-ietf-grow-bmp-rel-06, 21 July 2026, . [RFC2119] Bradner, S., "Key words for use in RFCs to Indicate Requirement Levels", BCP 14, RFC 2119, DOI 10.17487/RFC2119, March 1997, . [RFC4271] Rekhter, Y., Ed., Li, T., Ed., and S. Hares, Ed., "A Border Gateway Protocol 4 (BGP-4)", RFC 4271, DOI 10.17487/RFC4271, January 2006, . Geng, et al. Expires 4 June 2027 [Page 14] Internet-Draft BMP Pre-Established Session Diagnostics December 2026 [RFC7854] Scudder, J., Ed., Fernando, R., and S. Stuart, "BGP Monitoring Protocol (BMP)", RFC 7854, DOI 10.17487/RFC7854, June 2016, . [RFC8174] Leiba, B., "Ambiguity of Uppercase vs Lowercase in RFC 2119 Key Words", BCP 14, RFC 8174, DOI 10.17487/RFC8174, May 2017, . 7.2. Informative References Authors' Addresses Nan Geng Huawei Technologies Huawei Campus, No. 156 Beiqing Road Beijing 100095 China Email: gengnan@huawei.com Shunwan Zhuang Huawei Technologies Huawei Campus, No. 156 Beiqing Road Beijing 100095 China Email: zhuangshunwan@huawei.com Haibo Wang Huawei Technologies Huawei Campus, No. 156 Beiqing Road Beijing 100095 China Email: rainsword.wang@huawei.com Geng, et al. Expires 4 June 2027 [Page 15]