How does a message cross the internet?
When you send a photo or a message, it doesn't travel in one piece. It's chopped into small packets that each find their own way across a web of routers, and they're put back together at the other end. Even if part of the network breaks.
Controls
Watch it work
A short film of this machine in action. Watch it, then try the challenges yourself.
What you're seeing
The sender cuts the message into packets, numbers them, and sends each one off on its own. Every router looks at where the packet is going and sends it down the tube that's quickest from there. Packets from the same message can take different routes, so they often arrive in the wrong order. The receiver's rack sorts them by number and prints the message once every slot is full.
Routes the packets took: send a message to see them
Try this
0 of 4 solved- Send a message and watch the rack: at least one packet must arrive out of order and still end up in the right slot.Smaller packets mean more of them, and more mixing.
- Send a message, then break a tube the packets are using while they're still travelling. The message must still arrive complete.Pick tube J or K and set it to Broken mid-delivery.
- Find a way to cut the receiver off completely by breaking only 2 tubes.Look for two tubes that every route must use one of.
- Make a tube leaky so capsules get lost. The sender should notice and send them again.Make both tubes out of the sender leaky (A and B), then Send.
Why it works
Packet switching means no single path has to work. Each router only needs to know which neighbour is closest to the destination. When a tube breaks, routers soon learn about it and pass the packets a different way. The internet was designed in the 1960s and 70s to keep working even if parts of it were destroyed.
Because every packet carries its number, the receiver can always put the message back in order, and spot gaps. If a packet goes missing, the receiver doesn't confirm it, and the sender sends it again. That's what the TCP part of TCP/IP does for your browser every day.
Go deeper AGES 14–16
Each router keeps a routing table: for every destination, which neighbour to send to. It works out the quickest route with an algorithm like Dijkstra's shortest path: start from the destination, and repeatedly mark the nearest unvisited router, adding up tube delays.
Your network has 11 tubes and every router has at least two ways out, so no single broken tube can cut anyone off. The smallest set of tubes whose loss splits a network is called a minimum cut; network engineers design so it's never just 1.
A real packet carries a header (where from, where to, its number, a checksum to spot damage) and up to about 1,500 bytes of data. A photo becomes thousands of packets.