← How Computers Work lessons

How a message crosses the internet

Not in one piece. It goes as numbered packets that each find their own way, then get put back in order at the other end.

Interactive 3D map: a laptop in a house in America, a home router, a provider and routers A, B and C, a cable under the Atlantic, and a phone in Ireland. Five numbered packets travel different routes, packet 4 is lost and sent again, and they are sorted back into order.

This is the text version. With JavaScript on, it’s a 3D drawing you can play, slow down and turn.

Step by step

  1. Split. Sarah’s message, “Grandma’s laptop lives!”, is chopped into five small packets of up to five characters each. The last one only has three. Every packet gets a label: where it’s from, where it’s going, and its number.
  2. Travel. Each router reads a packet’s address and sends it one step closer. Nobody plans the whole route, so the packets spread over routers A, B and C. Router B is busy and drops packet 4.
  3. Check. The packets reach Ireland out of order: 2, 3, 1, 5. That’s normal. The cousin’s phone reads the numbers and notices that 4 never came.
  4. Resend. The phone asks the laptop to send packet 4 again, and only packet 4. This time it goes by router C. With all five in, the phone sorts them by number and the message reads right.

From the lesson

Does a message travel across the internet in one piece?

No. Sarah’s message went as a handful of numbered packets, each finding its own way. When Jenny knocked out a router, they went around it and still arrived. Mark tried to break it three times and admitted the postcards idea works.

Lesson 21.1: Postcards, Not Phone Calls

Who decides which way the packets go?

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.

Lesson 21.2: Nobody Plans the Route

More 3D drawings

All How Computers Work lessons · See it in 3D