Computer Science · CSTA 2-NI-04 · 信息科技 · Networks

How the Internet works: a packet’s trip around the world

You tap a video stored on a server about 11,000 km (7,000 miles) away — and it starts playing in under a second. Nobody “drives” it. The video is chopped into thousands of small pieces, and each piece finds its own way through routers, undersea cables and your home Wi-Fi, then gets glued back together on your screen. How do they not get lost?

Your mission: start as a network intern. Send a message from Atlanta to Beijing and cut cables on purpose to watch packets reroute; look up the IP address behind a name; race copper, fiber and Wi-Fi; then fix five broken networks to become Chief Network Engineer.

Sim 1: chop a message into packets and send it across the Pacific

Press “Send”. Each packet carries a number and a destination address, and routers pass it on hop by hop, each time picking the fastest way available right now. Click a line to “cut” it, or click a router to “power it off” — watch packets find another way, and lost ones get sent again.

Advanced: packet loss & resending, packet size, the fastest route in numbers
🎯 Challenge
0packets sent
0arrived
0lost & resent
—average hops
📥 The receiving computer puts them back in order by number:
⚠️ Don’t mix up:The Internet is the “network of networks” — routers, cables and rules (protocols) linking the whole world. The Web is just one service that runs on it: pages and links. Email, video calls and online games also run on the Internet, but they are not “the Web”.

Sim 2: DNS — the Internet’s contacts list

Routers only understand number addresses (IP addresses), but people remember names. Type a domain name and watch your computer ask, step by step, for its IP address. Then look the same name up again — it is much faster the second time. Why?

—this lookup (simulated)
—IP address (example address)

🔢 An IP address is really binary

An IPv4 address is four numbers from 0–255. Each one is 8 bits, so 32 bits in all.

4.3 billionIPv4 addresses (2³²)
8.2 billionpeople on Earth (≈2025)
So what happens when addresses run out?

One person often has a phone, a laptop and a tablet… IPv4 ran short years ago. The answer is IPv6: 128 bits, about 3.4×10³⁸ addresses — enough to give every grain of sand on Earth many of its own. China is rolling out IPv6 fast.

Why is the second lookup so fast?

The resolver remembers the answer in its cache for a while. Next time anyone asks for that name, it answers at once instead of starting again from the root servers.

Sim 3: how bits travel — electricity, light and radio

All data ends up as 0s and 1s. Copper wire sends them as high or low voltage, fiber as flashes of light, Wi-Fi as changes in a radio wave. Type a letter, pick a “road” and a distance.

—one-way signal time
—boosters needed

🚚 Speed ≠ bandwidth: how long to download a 5 GB game?

Signals race through copper and fiber at about the same speed (roughly two-thirds the speed of light). The real difference is bandwidth: how many bits per second fit — like the number of lanes on a highway.

Bandwidths are typical round numbers; real speeds vary. 5 GB = 40 billion bits (1 byte = 8 bits).

Main mission: network engineer — find the fastest route

Five networks, each with trouble (✖ routers are down, red dashed cables are cut). Start at A and click neighbouring routers one by one until you reach B. Numbers on the lines are delays in milliseconds (ms). The route with the smallest total delay earns 3 stars.

0total stars
1/5level
0 msyour route delay
—rank

📊 Data: number of internet users in China (1997–2024)

Drag the slider to read the values. In 1997 China had only 620,000 internet users — about as many people as live in Boston. By the end of 2024 there were 1.108 billion — more than three times the whole US population.

—internet users
—share of population

Data: China Internet Network Information Center (CNNIC), Statistical Reports on Internet Development in China, December of each year (1997: October). 1997 and 2024 checked against the 55th report; other years from earlier reports, rounded.

Go further

Test yourself

🧠 Quiz

Pick the best answer and read the explanation.

🗂️ Sort it: what is it?

Drag each item (or tap it, then tap a box) into the right group.

👩‍🏫 Teacher notes

US standards: CSTA K-12 CS Standards (2017), grades 6–8 — 2-NI-04 (model the role of protocols in transmitting data across networks and the Internet), 2-NI-05 (explain how physical and digital security measures protect electronic information). Georgia K-12 Computer Science Standards (6–8), e.g. CSS.DC.6-8.8.5 (network vocabulary: LAN, WAN, packets, bandwidth, firewall, encryption), 9.1–9.3 (topologies, coverage areas, media: Wi-Fi, wired, satellite, microwave), 10.2 (layers data passes through between nodes), 12.3 (IP packets, ports and transmission). Codes as listed in GaDOE’s 6–8 CS framework (via CodeHS); check wording against the GaDOE document.

China’s curriculum: Compulsory Education Information Technology Curriculum Standards (2022), Stage 4 (grades 7–9), Grade 7 module “Internet applications and innovation” (互联网应用与创新: how the internet is built and works, data transmission and exchange, IP addresses and domain names) — logic strand “Networks” (网络), linked to “Information security”. The chart uses official CNNIC statistics, matching the Grade 7 textbook’s section on China’s internet growth.

Notes: the network map is schematic — city positions and delays are teaching approximations; real routing between networks is decided by protocols such as BGP. IP addresses in the DNS sim come from ranges reserved for examples (192.0.2.x, 198.51.100.x, 203.0.113.x), not the sites’ real addresses; lookup times are simulated. Light in fiber ≈ 200,000 km/s, repeater spacing ≈ 50–100 km, ≈ 200 Tbit/s for a large modern undersea cable and the bandwidth table are typical values written from the author’s knowledge. CNNIC values for 1997 (620,000) and 2024 (1.108 billion, 78.6%) were checked against the 55th report; other years come from earlier reports — teachers may wish to verify.

Suggested use: have students cut every trans-Pacific line in Sim 1 and discuss why networks need many paths; ask them to explain speed vs bandwidth (a highway’s speed limit vs its number of lanes); finish with a CS Unplugged “human router” game.