How BGP works
BGP is how separate networks (autonomous systems) tell each other which addresses they can reach. Each AS announces its prefixes; neighbours pass them on with the AS path, and every router picks the best route by policy and path length.
Layer: Application (OSI layer 7) · Port: 179 · Transport: TCP · Format: OPEN / UPDATE / KEEPALIVE messages · Standard: RFC 4271
BGP packet flow
- BGP Hosting Router → Transit Router: OPEN AS 64511, hold time 90
- BGP Transit Router → Hosting Router: OPEN AS 64510 + KEEPALIVE
- BGP Hosting Router → Transit Router: UPDATE 203.0.113.0/24 path 64511
- BGP Transit Router → ISP Router: UPDATE 203.0.113.0/24 path 64510 64511
- BGP ISP Router → Transit Router: KEEPALIVE (every 30 s)
Other protocols: Ethernet · IP · IPv6 · TCP · UDP · ICMP · ARP · DHCP · DNS · NTP · IGMP