Routing: how a packet finds any house on earth
Vertical version.
Chapters
Narration
You type an address and hit enter. Your data has to cross the planet to a machine you have never heard of. And here is the strange part: nobody involved knows the route. There is no map of the internet. Not anywhere. What each router has instead is a short list. For that neighbourhood, hand it that way. That is the entire decision. It does not know where the parcel ends up. It only knows who is one step closer. Here is a real parcel, tracked from one laptop to example dot com. Eleven handoffs. The first seven never leave your internet provider's private corridors. Two depots refuse to sign the register at all. Only at hop ten does it touch the public internet. Fifteen milliseconds, door to door. But local decisions can go wrong. If two routers each think the other is closer, a parcel bounces between them forever, and the network slowly fills with immortal junk. So every parcel carries a handoff counter. Each depot knocks one off. Reach zero and the parcel is destroyed on the spot. No loop can outlive its own counter. And that counter is the trick behind traceroute. Send a parcel allowed exactly one handoff. It dies at the first depot, and that depot mails you back an apology signed with its own address. Then send one allowed two handoffs. Then three. The route draws itself, one confession at a time. Nobody has the map. Every depot knows one thing: who is one step closer. Millions of tiny local decisions, and your data crosses the planet in fifteen milliseconds.
Based on the board The Parcel's Journey.
Related papers: End-to-End Arguments in System Design.
Covered in How a parcel finds any house on earth, One click, every layer (what happens when you load a page), It won't load: the ladder (network debugging), Inside one postal company (distance-vector, link-state, and ICMP), Build it: ping, and the parcel that dies on purpose (ICMP and traceroute), The stack on one page, A private road through a public street: VPNs and tunnels, From the wire to your accept(): sockets and the receive path, Who you trust to tell you the way: BGP policy and RPKI, Too big to pass: MTU, fragmentation and black holes, Programs inside the kernel: eBPF and XDP.
Saved in this browser, and to your account when you sign in.