Visual RFC.
ALL RFCs / RFC 4271
Read the RFC ↗
RFC 4271 / PROTOCOL MECHANISMS

Establish a BGP session

01

BGP runs over TCP and exchanges OPEN and KEEPALIVE messages before routing updates.

Related RFCs and changes

“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.

DIAGRAM§ 4.2 ↗
RFC 4271 · § 4.2EXAMPLE
3 / 3
Establish a BGP sessionBGP runs over TCP and exchanges OPEN and KEEPALIVE messages before routing updates.speaker Aspeaker B :179TCPOPENOPENKEEPALIVEESTABLISHED → UPDATE processingBGP routing state begins after transport and session negotiation
03
KEEPALIVE completes establishment before UPDATE processing.

KEEPALIVE completes establishment before UPDATE processing.

Protocol participantThreat or exceptionProtocol controlSimplified drawings · precise section references
KEY POINT

The server TCP port is 179.

  • The server TCP port is 179.
  • OPEN negotiates BGP version, AS information, hold time, identifier, and optional parameters.
DETAILS

The drawing is a simplified worked example. Follow the linked RFC and its updates for implementation requirements.

Read the RFC section ↗

Diagrams simplify the RFC. Read the linked sections for complete requirements.

Privacy
All chapters in this RFC
  1. Establish a BGP session
  2. Advertise and withdraw prefixes
  3. Use AS paths to detect loops
  4. Select routes using policy and reachability
  5. Handle failures without assuming route truth
RFC 9700 / CHAPTERS

Chapters

For full details, tables, algorithms, and exceptions, read the original RFC.

RFC status and corrections ↗