How do two route-sharing neighbors start talking?
01An open connection is only the beginning. The neighbors still exchange opening messages and confirm the session.
BGP uses an underlying TCP connection.
What happens if you change this?
Make one change, then watch again. Restart restores the original example.
KEEPALIVE completes establishment before UPDATE processing.
Key idea: Connection, opening checks, and route information are separate steps.
Terms
- Router
- A device that chooses where to send network packets next.
- Route
- Information describing how to reach a block of destinations. It is different from the packets using it.
- BGP
- Border Gateway Protocol: exchanges reachability and policy information.
- OPEN / KEEPALIVE / UPDATE
- Opening note / session-liveness note / route-information change. Their full protocol handling is specified separately.
- AS_PATH / NEXT_HOP
- The advertised autonomous-system path / the next hop that must be resolved.
- OPEN
- The BGP opening message, sent after TCP setup.
Rules & examples
Connection, opening checks, and route information are separate steps.
- The server TCP port is 179.
- OPEN negotiates BGP version, AS information, hold time, identifier, and optional parameters.
The drawing is a simplified worked example. Follow the linked RFC and its updates for implementation requirements.
TCP server port 179. This selected successful path omits Connect/Active/OpenSent/OpenConfirm transitions and assumes all other OPEN checks pass (version, router ID, hold-time validity, policy). Bad peer AS is OPEN error 2/2. The model is not the complete BGP FSM.
Sources
New to this? Start hereA quick picture + helpful background
A message needs an address.
Think of a packet as a small addressed envelope. Devices pass it onward; transport protocols decide what delivery promises an application gets.
Helpful first, if these ideas are unfamiliar
These pictures are analogies to help you learn. The linked RFC explains the actual rules.
Related RFCs and changes
“Updates” changes part of an earlier RFC. “Obsoletes” replaces it. This list shows selected related documents.