Online, level 9
📦 How the Internet Moves Data
How does a photo travel from one computer to another across the world?
- How does a photo travel from one computer to another across the world? It does not travel in one piece. Code.org explains that every message sent through the internet gets chopped up, and each piece is wrapped in its own kind of envelope. These pieces are called packets, which are small chunks of information formed from a larger chunk. Each packet is labeled with the address of the computer it came from and the address of the computer it is going to, a little like the sender and the receiver written on a letter. Those addresses are called IP addresses. An IP address is a number given to every device that is connected to the internet, so each packet always carries the information it needs to find its way.
- Along the way, packets pass through routers, which are devices that read the address on each packet and send it on toward its destination, one hop at a time. The internet has no single fixed path between two computers. Its early designers planned it so that a message could be broken into packets, each packet could follow whatever route was available, and the pieces could be put back together at the end into the complete message. This means two packets from the same photo might take different paths and even arrive out of order. If one route is busy or broken, packets can simply go around it, which helps keep the whole network working even when part of it fails.
- Two sets of rules, called protocols, make all of this work. The Internet Protocol, or IP, handles the addresses and moves packets from one network to the next. The Transmission Control Protocol, or TCP, sets up a connection between two computers, and according to NIST, it guarantees that the data is delivered and that packets arrive in the same order in which they were sent. If a packet goes missing, it is sent again. Together these rules are known as TCP/IP. Vint Cerf and Bob Kahn created these protocols in the 1970s, and in 1983 the ARPANET, an early network that helped lead to today's internet, switched over to TCP/IP. The same basic rules still carry your messages today.
Try it at home: Write a short message on four cards, number them, shuffle them and hand them over one at a time, then rebuild the message in order like TCP.
Questions and answers
How the Internet Moves Data
- Small chunks of information formed from a larger chunk, sent across the internet, are called… packets (Every message is chopped into small chunks called packets before it travels.)
- 🏷️ A number given to every device connected to the internet is called an… IP address (An IP address is a number given to every device connected to the internet.)
- Each packet is labeled with the address it came from and the address it is going to. That is a bit like… a letter's sender and receiver
- 🔀 What does a router do with a packet? Reads its address and sends it on (Routers read each packet's address and pass it toward its destination, hop by hop.)
- Must every packet of a message take the same path? No, packets can take different routes (Each packet can follow whatever route is available.)
- 🛣️ Why does it help that the internet has no single fixed path? Packets can go around a broken route