Computer Networks
Lesson 1 of 3 9 min +50 XP

Packets & Addresses

How data crosses the internet.

What you'll learn

  • Explain packet switching
  • Describe IP addresses
  • Contrast circuit and packet switching
The letter cut into postcards

Send a big message online and it's chopped into small 'packets,' each stamped with a destination address, sent separately, and reassembled at the end. The internet moves everything as addressed postcards, not one long letter.

Cut it up, ship it, reassemble

The internet does not send your message as one long stream. It chops it into small packets, each stamped with a destination address, and sends them independently. Different packets may take different routes and arrive out of order; the receiver reassembles them. This packet switching is what makes the internet robust — if one path fails, packets simply route around it.

The IP address

Every device on a network has an IP address — a numeric label like a postal address. Routers read the destination address on each packet and forward it one hop closer, again and again, until it arrives. No single machine knows the whole route.

Simulation · Binary counter
1286432168421

binary 00001010 = 10

Addresses and data are ultimately binary. Each part of an IPv4 address is one byte — a number from 0 to 255, exactly what 8 bits can hold.

Lab · Route a packet by hand
  1. Draw 5 routers as dots and connect them with a few links (not every pair).
  2. Pick a source and destination. Send a packet: at each router, forward it along a link that gets closer to the destination.
  3. Now cut one link on your chosen path. Re-route the packet — can it still arrive?
  4. Explain why packet switching survives a broken link better than a single fixed line would.

What you should see: You forwarded a packet hop by hop and saw why decentralized routing makes the internet fault-tolerant.

Knowledge Check

+15 XP / correct

1. Packet switching means a message is…

2. A router decides where to send a packet by reading its…