BGP
Border Gateway ProtocolApplication layer · OSI 7How autonomous networks advertise and choose internet routes
| No. | Time | Source | Destination | Protocol | Info | Size |
|---|---|---|---|---|---|---|
| Play the first step to capture packets. | ||||||
Overview
The internet links tens of thousands of independent networks called Autonomous Systems (). lets border routers share which IP address blocks each network can reach so packets find a path anywhere.
Border Gateway Protocol 4 (RFC 4271) runs over TCP port 179 while controlling Layer 3 forwarding tables. Border routers exchange OPEN, KEEPALIVE, and UPDATE messages carrying IP prefixes and AS_PATH attributes.
Key facts
- Layer
- TCP 179; controls Layer 3 routing
- Peers
- Configured neighbors across ASNs
- Global table
- Over 950,000 IPv4 routes
- Path choice
- Local policy, then shortest AS path
- Defined in
- RFC 4271, RFC 6811
Decentralized map built from peers
Origin AS 64511 advertised its block, transit AS 64510 prepended its number and passed it on, and AS 64500 routed packets there without any central authority.
Demonstrated BGP-4 port 179 peering, UPDATE propagation (`AS_PATH`), packet forwarding, route withdrawal, and RFC 6811 RPKI validation.
- Protocol messages
- OPEN, KEEPALIVE, UPDATE
- Learned path
- 64510 64511
- Architecture
- No central routing directory
- Security
- RPKI validation + peer filters
Try it yourself
Inspect public BGP routing tables (looking glass)
Use `whois` against RADb or Team Cymru to inspect which AS number originates any public IP prefix.
nslookup -type=txt 10.113.0.203.origin.asn.cymru.com