Pcornel
Browse topics
Options
Recent
Favorites
Networking · Technical reference

BGP OPEN & Capability Field Reference

Direct answer

The BGP OPEN message carries the version, the sender's AS number, hold time, BGP identifier (router ID) and optional capabilities such as multiprotocol, route refresh and 4-byte ASN. A mismatch here causes a NOTIFICATION and the session closes.

When to use this

Use it when a BGP session never reaches Established and OPEN parameters or capabilities may be wrong.

First 30 seconds

1. OPEN carries version 4, My AS (or AS_TRANS with 4-byte capability), hold time, BGP identifier, optional capabilities.

2. Hold time = lower of both.

3. Capabilities: multiprotocol, route refresh, 4-byte AS, graceful restart, add-path.

4. Mismatch triggers NOTIFICATION code 2.

5. Router IDs must differ.

Operational verification

TCP 179 → OPEN exchanged → capabilities negotiated → KEEPALIVE → Established

Context & applicabilityCommon mistakes · platform/version boundaries
Platform / version applicability
Protocol standard + deployed implementation
applies
Structured applicability is explicit Topic metadata; it does not infer compatibility beyond the stored rows.
At a glance

Operational reference

Fast context before you go deeper.

PlatformProtocol standard
Key commandshow ip bgp neighbors 192.0.2.2
Scope / prerequisiteUse it when a BGP session never reaches Established and OPEN parameters or capabilities may be wrong.
What next?3 suggested next steps
Evidence1
On this pageJump to a specific section
Operational workflow

Verification & Troubleshooting

Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.

3 steps Observe → verify → isolate → change minimally → repeat the original test.
ObservedRecord what the original test actually shows

Capture the concrete output, symptom, packet, log or counter before changing anything.

Step 1 Packet capture verification and known-good sequence Verify boundary
show ip bgp neighbors 192.0.2.2
show ip bgp neighbors 192.0.2.2 | include state|hold|router ID
show ip bgp neighbors 192.0.2.2 | section capabilities

The neighbour output shows the remote AS, the remote router ID, the negotiated hold time and keepalive interval, and under "Neighbor capabilities" each capability as advertised, received, or both. An address family listed as advertised only is not in use.

Known-good: the state is Established, and every address family the session should carry is shown as advertised and received.

Step 2 Failure signatures and packet-level troubleshooting Narrow the fault
  • The session resets right after the TCP connection. The neighbour's AS is not the configured remote-as; the log shows a NOTIFICATION "peer in wrong AS".
  • OPEN rejected for a bad BGP identifier. Both routers have the same router ID.
  • Established, but no routes for one address family. The family is activated on one side only.
  • The session comes up with a very short hold time. One side is configured with low timers; the lower value wins.
  • Hold time rejected. One side requires a minimum the other does not meet.
  • clear ip bgp … soft in has no effect. Route refresh was not received from the neighbour.
Step 3 When the problem is really fixed Narrow the fault
  • The session is Established and stays up.
  • Each required address family is listed as advertised and received.
  • The negotiated hold time is the intended one.
  • Prefixes are received in every family.
Evidence references

Evidence · 1 on this Topic

Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.

observation · 1
Command lookup Jump straight to Cisco syntax
Key checks
  • show ip bgp neighbors <peer> — negotiated capabilities, hold time, router ID
ReferenceWhat it is1 section · depth on demand

Mechanics & mental model

The OPEN message is the first thing two BGP routers send each other once the TCP connection is up. Each side introduces itself — AS number, router ID, hold time — and lists the optional features it supports, called capabilities.

ReferenceWhy it matters1 section · depth on demand

Why it matters operationally

A BGP session that gets a TCP connection but never reaches Established is failing here. And a session that is Established but carries no IPv6 or VPN routes is often explained here too: the address family was never agreed in the OPEN.

ReferenceImportant terms & boundaries2 sections · depth on demand

In depth

OPEN parameters and capability negotiation

The OPEN message is where two BGP speakers agree on what the session can do. RFC 4271 gives OPEN fixed fields followed by optional parameters as type, length and value triplets. RFC 5492 defines optional parameter type 2, Capabilities, which holds capability code, length and value triples. A speaker that receives Unsupported Optional Parameter in response to capabilities should retry without them. A speaker that requires a capability the peer lacks sends OPEN Message Error subcode 7, Unsupported Capability, listing the missing capabilities.

OPEN fields (RFC 4271)

FieldSizeNotes
Version1 byte4
My Autonomous System2 bytesAS_TRANS (23456) when the real AS is a 4-byte number
Hold Time2 bytes0, or 3 seconds or more
BGP Identifier4 bytesRouter ID; must differ between the peers
Optional Parameters Length1 byteTotal length of the parameters
Optional ParametersVariableCapabilities (type 2)

Capabilities and when they matter

CodeCapabilityIf missing on one side
1Multiprotocol, one per AFI/SAFIThat address family isn't exchanged
2Route refreshSoft inbound changes need stored copies or hard resets
64Graceful restartNo helper or restarting behaviour
654-byte AS4-byte ASes are carried as AS_TRANS with AS4_PATH
69Add-pathOnly one path per prefix is sent

Recognising capability problems

SymptomLikely cause
Session up but no IPv6 routesIPv6 unicast not activated on one side (no capability 1 for AFI 2)
NOTIFICATION 2/7A required capability isn't supported by the peer
NOTIFICATION 2/2 with 4-byte ASesOne side doesn't support 4-byte AS, or remote-as is wrong
R1# show bgp ipv6 unicast summary | include 2001:db8:0:1::2
R1# show bgp ipv4 unicast neighbors 2001:db8:0:1::2 | include Address family|capabilit
    Address family IPv4 Unicast: advertised
    Address family IPv6 Unicast: advertised and received
R1(config)# router bgp 65010
R1(config-router)# address-family ipv6 unicast
R1(config-router-af)# neighbor 2001:db8:0:1::2 activate
host$ tshark -r bgp.pcap -Y "bgp.type == 1" -O bgp | grep -E "My AS|Hold time|BGP identifier|Capability:|AFI|SAFI"

"Advertised" without "received" for a family means the peer didn't offer it. Routes for that family won't be exchanged, even though the session is Established.

Documented example, not captured output.

Source basisSource attribution states what this section is based on; it is not independent proof that the current environment matches it.

Wire format, fields and state ownership

FieldSizeMeaning
Version1 byteAlways 4
My Autonomous System2 bytesThe sender's AS number; 23456 when the real number does not fit in two bytes
Hold Time2 bytesSeconds the sender proposes to wait for a keepalive before dropping the session
BGP Identifier4 bytesThe sender's router ID
Optional parametersvariableThe capabilities

Each router checks the neighbour's OPEN. The AS number must be the one configured as remote-as. The BGP identifier must differ from the router's own. The hold time used is the lower of the two proposals; keepalives are sent at a third of it.

Capabilities are announced, not negotiated: each side lists what it supports, and a feature is used when both list it.

CodeCapability
1Multiprotocol — one entry per address family, such as IPv4 unicast or IPv6 unicast
2Route refresh — the neighbour may ask for all routes to be sent again
64Graceful restart
65Four-byte AS numbers; carries the real AS number
69Additional paths

An address family is active on a session only if both routers announced it. On Cisco IOS that requires neighbor <ip> activate under the address family on both sides.

If the OPEN is acceptable the router answers with a keepalive; otherwise it sends a NOTIFICATION naming the reason and closes the connection.

Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Technical verification history

Verification history & basis

When and against what this Topic was checked. Later text edits do not count as a new check.

2026-09-14 · vendor docProtocol standard + deployed implementation RFC 4271

Authoritative/upstream documentation reviewed for bounded claims in Network & Protocols → BGP OPEN & Capability Field Reference. Documentation verification only; this is not observed lab or production Evidence.

Basis: https://www.rfc-editor.org/rfc/rfc4271.html · confidence 94%
Technical changelog & impact

What changed and what may be affected

Recent technical edits are separated from ordinary page timestamps. Relationship impact is advisory: it identifies nearby canonical references to review, not automatic breakage.

Related reference impactReview these references after material technical changes when their shared boundary is affected.
Terminology layer

Terms & aliases

Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.

Aliases that resolve here
bgp open fieldsbgp capability codes
Embedded reference data

Quick lookup tables

BGP OPEN & Capability Field Reference packet-level operational reference

Direction-aware field interpretation, suspicious signatures and the next protocol/forwarding proof boundary.

Wire boundaryKnown-good for BGP OPEN & Capability Field ReferenceSuspicious signatureNext proof
Message identityCorrect peer/direction/type and coherent lengthsWrong sender, type, length or packet phasePacket sequence + peer state
Field semanticsVersion, My AS, Hold Time, BGP Identifier, Optional Parameters Length, Optional Parameter type/length and nested Capability code/length/value match intended protocol statewrong expected ASN, invalid or duplicate identity assumptions, unacceptable timer/OPEN parameter, malformed capability TLV, missing multiprotocol capability for an intended address family, four-octet ASN interpretation mismatch, or a session that reaches OpenConfirm but repeatedly resets before stable EstablishedDecode exact fields on both sides
State consequencePacket produces expected protocol/route transitionWire looks healthy but local state disagreesFSM/LSDB/BGP table → RIB/FIB
ClosureOriginal workload succeeds for the explained reasonSession/adjacency recovered only transientlyRepeat capture + regression/failover test
Embedded quick reference

Operational notes

Former standalone Cheat Sheet content now lives directly inside the Topic where it belongs.

BGP OPEN Capabilities

OPEN and capability quick lookup.

30-second lookup

  • Open Packet Field Explorer for field-level metadata.
  • Use Packet Decoders for bit/flag values where relevant.
  • Use Paste Output / Structured Parser for CLI evidence.
  • Use Packet Filters to prove the wire boundary.

Evidence rule

A decoded field proves what is present in that packet/output at that moment. Continue through the verification chain before concluding end-to-end behavior.

Confirmation

Confirm action

Continue?