Skip to content
PlayOwl
Computers & communication · #51

How does the internet send a message?

The internet splits every message into numbered packets, passes them from router to router, and puts them back together at the other end.

The big idea: The internet doesn't send a message in one piece. It cuts it into small numbered packets with an address on each. Routers pass the packets along, choosing a way that works. If a cable breaks, they go another way, and the numbers let the other computer put the message back in order.

Start exploring
0 of 5 parts done
Numbered packets racing through a network of routers from a laptop to a tablet, How Things Work poster
1Watch it

The journey of a message

  1. You type a message to Grandma, who lives far away, and press send. In less than a second it's on her screen. How does it travel so far, so fast?
  2. First the computer cuts the message into small pieces called packets. Each packet gets a label: where it's going, where it came from, and its number.
  3. Packets travel along cables to routers. A router is like a post office: it reads the address on each packet and sends it one step closer to Grandma.
  4. Packets from the same message don't always take the same road. When one cable is busy, a router can send a packet another way. So they may arrive out of order.
  5. Uh oh, a digger cut a cable! The routers notice and send packets another way. A packet that was on the cable is lost, so the computer sends a copy again.
  6. Grandma's tablet uses the numbers to put the packets back in order. When every piece is there, the message appears. It even sends back a note: got it!
2Look inside

The road from your home to the world

Your message passes through all of these. Tap each one to find out what it does.

  • Your device. Your computer, tablet or phone cuts your message into packets and puts an address on each one.
  • Home Wi-Fi router. Your home router talks to your devices with radio waves (Wi-Fi) and sends their packets out to the internet.
  • Internet provider. Your internet provider connects your home to the rest of the internet and passes your packets on to other networks.
  • Routers. Big routers sit where many cables meet. They read each packet's address and send it out along the best cable, millions of times a second.
  • Fiber-optic cable. Long-distance cables are made of glass threads thinner than a hair. Your packets travel through them as super-fast flashes of light.
  • Undersea cable. Cables on the ocean floor connect the continents. Most internet traffic between countries goes through them, not through space.
  • Data center. Data centers are buildings full of powerful computers called servers. They store websites, videos and messages and send them out when asked.
  • A packet. A packet is a small piece of your message. Its label says where it's going, where it came from and its number, so it can be put back in order.
3Try it

Packets on the move

Send a message and watch the numbered packets. Then cut a cable while they're traveling. Do they still arrive? In what order?

Experiment: If a cable breaks while the packets are traveling, will the whole message still arrive?

  1. Press Send and watch the packets arrive.
  2. Press Send again, and press Cut a cable while they're traveling (or tap a cable).
  3. Look at the order the packets arrive in. Is the message complete?

What we found: The message still arrives! Routers send the packets around the broken cable. A packet that was on the cable when it broke is lost, so the computer sends it again. The numbers on the packets let Grandma's tablet put them back in the right order, even when they arrive mixed up.

Turn on JavaScript to try it yourself.

4Solve a challenge

After the storm

A storm broke many cables and Grandma's message can't get through. You can fix only one cable. Fix the right one, then send the message.

5Go deeper

Packets, routers and cables

When you send a message, a photo or a video call, your device cuts it into small pieces called packets. Each packet gets a label with the address it's going to, the address it came from and a number that says which piece it is.

Packets travel through cables, radio waves and even beams of light inside glass threads. Wherever cables meet, a router reads each packet's address and sends it one step closer to where it's going, a bit like a post office passing letters along.

The internet has lots of different routes between places. If one cable is busy, a router can send a packet another way. If a cable breaks, the routers find out and send everything around it. That's why the internet keeps working even when parts of it go wrong.

At the other end, the computer collects the packets and uses their numbers to put them back in order. It sends back a note to say which ones arrived. If a packet goes missing, the sender notices that no note came back and sends it again.

Key words

Packet
A small, labeled piece of a message.
Router
A device that reads packet addresses and sends them the right way.
IP address
A number that identifies a device on a network, like a street address.
Route
The path a packet takes through the network.
Acknowledgment
A note sent back to say a packet arrived.
Fiber-optic cable
A cable that carries data as pulses of light through thin glass fibers.

Check your thinking

  1. Why does each packet have a number?

    Show the answer

    So the pieces can be put back in the right order. Packets can arrive mixed up. The numbers show the right order.

  2. What happens when a cable on the route breaks?

    Show the answer

    Routers send the packets around it on another route. The internet has many routes, so routers pick one that still works.

  3. What does a router do?

    Show the answer

    Reads a packet's address and sends it the right way. Routers pass packets one step closer to where they're going.

  4. How does the sender know a packet got lost?

    Show the answer

    No note comes back to say it arrived. The receiver sends back notes for the packets it gets. A missing note means: send it again.

  5. How do most messages travel between continents?

    Show the answer

    Through cables on the ocean floor. Undersea fiber-optic cables carry most intercontinental traffic. Satellites are used too, but they carry much less.