Module 21 · Postcards, Not Phone Calls

Who decides which way the packets go?

Lesson 21.2 · Nobody Plans the Route

Jenny · Sarah

Seven stops. Nobody planned them.

Jenny runs a command on the laptop that lists every stop a packet makes on the way to a website.

Seven lines appear, each a router somewhere: the house, the provider, a big city hub, another big city hub, the website’s own network.

Sarah asks who planned that route. Jenny says nobody. Every router just picks the next step.

The short answer

Nobody, and everybody. Each router picks the next hop toward the address, and TCP checks that everything arrived and puts it back in order. Grandma Ruth’s packet made seven stops in 36 thousandths of a second without a single person planning the route.

Try it yourself

Step through the route a packet takes from Grandma Ruth’s laptop to a website.

StopWhereTime so far
1Home router1 ms

The laptop sends the packet to the home router. It knows one thing: anything not for the house goes to the provider.

Step 1 of 4
See it in 3DHow a message crosses the internet

What you just did has a name

Routing and TCP/IP

Routing is how packets find their way: every router reads a packet’s destination IP address and sends it one step closer, based on its own table of which neighbor leads where.

TCP/IP is the pair of core protocols that makes it work. IP handles addresses and moving packets hop by hop.

TCP handles numbering packets, checking they all arrived, resending lost ones and putting them back in order.

A few more things

No boss

No central computer runs the internet. Thousands of separate networks agree to pass each other’s packets, and their routers share information about which routes work.

Milliseconds add up

Each hop adds a tiny delay. A website far away takes longer to answer than one nearby, which is why big sites put copies of themselves around the world.

Not all traffic uses TCP

Video calls and games often use a quicker protocol that doesn’t wait for lost packets, because a late packet is useless anyway.

Go deeper

The longer version, if you want it.

How routers learn the way

Routers constantly tell their neighbors which addresses they can reach and how well. Over time, every router builds a table of the best next step for every destination. When a link goes down, the news spreads and routes shift around it, often within seconds.

The big networks that make up the internet agree to carry each other’s traffic through deals and shared exchange points in major cities. The internet is less a single thing than a giant handshake between networks.

Quick check

What does each router know about a packet’s trip?

Let’s take it slower

Imagine getting directions to a faraway town by asking at each gas station: “Which way to Springfield?” Each one only knows “take the highway north to the next town.” You never get a full map, but every stop gets you closer, and you arrive. That’s routing. Each router is a gas station that knows the next turn.

More examples

1

A website on another continent

A page from a server across the ocean might take ten or fifteen hops and a tenth of a second.

2

A video service nearby

Streaming services keep copies of popular shows in data centers near you, so the packets only travel a few hops.

Back to the question

So who decides which way the packets go?

Show the answer

Nobody, and everybody. Each router picks the next hop toward the address, and TCP checks that everything arrived and puts it back in order. Grandma Ruth’s packet made seven stops in 36 thousandths of a second without a single person planning the route.

One last question

Put a message’s trip in order, from sending to arriving.

Tap the pieces in order. Tap one again to take it back.

…
Talk Card

Talk Card · 21.2

Routers pass packets hop by hop toward their address; nobody plans the whole route. IP handles the addressing, TCP checks everything arrived in order.

How Computers Work · pettigrewlab.com/learn

Next lesson