System Design
2. Networking FundamentalsAnimated
Network Routing
Choosing the path packets take across networks.
The idea
Routers keep tables of where to send each destination prefix and forward packets hop by hop, learning routes through protocols such as BGP and OSPF.
Watch it work
Press play, pause, or step through. Some animations have settings you can change.
- client
- gateway / proxy
- service
- cache
- data store
- queue / stream
Users are routed to the nearest region for low latency.
- step:
- 1/4
- at:
- Users EU
1/10
The green dot is a request moving through the system.
Step by step
- 1Packet arrives at a router
- 2Router finds the longest matching prefix
- 3It forwards to the next hop
- 4Repeat until delivery
Where it is used
Internet and data-centre networks.
Watch out for
Misconfigured routes can take whole services offline.