Skip to the workspace
Pebellslearn by building
Network Devices and Services  ›  Lesson

Routers and Modems

Routers 14 minA router forwards packets between different IP networks using a routing table, while a modem converts signals so a provider's line can carry the traffic.

network engineer / Routers and Modems

Explore each scene at your own pace.

01 · The rule

The rule

Routers and Modems

When Kite Studio's internet went down last month, the office manager restarted "the router". The box she restarted was actually the ISP's fibre terminal, a kind of modem, and the real router sat one shelf above it. At home one plastic box often does both jobs, which is why the words get blurred. In an office they are separate, and knowing which is which saves hours of troubleshooting.

The rule

A switch joins devices; a router joins networks; a modem joins the line.

Router — connects different IP networks and moves packets between them. It reads the destination IP address of each packet and checks its routing table, a list of known networks and where to send traffic for each. Kite Studio's router has two sides: its LAN port, with the address 192.168.10.1, and its internet port, with the public address 203.0.113.10.

Destination network Send to
192.168.10.0/24 (the office) directly out of the LAN port
0.0.0.0/0 (everything else) the ISP, next hop 203.0.113.1

The last line is the default route: "if nothing more specific matches, send it here". From the laptops' point of view, the router's LAN address 192.168.10.1 is their default gateway, the door they use for anything off the local network. Routers also stop broadcasts, so an ARP shout on the office LAN never escapes to the internet.

Modem — short for modulator-demodulator. It converts the computer world's digital frames into the kind of signal the provider's line carries, and back: electrical tones on a phone line (DSL), signals on a coaxial TV cable, or light on fibre (where the box is usually called an ONT, optical network terminal). A modem does not choose paths; it just makes the line usable.

The ISP's home "router" is typically a bundle: modem + router + switch ports + Wi-Fi access point + DHCP + NAT in one case.

Scene 1 of 5
Hover to wake the cannons. Drag to move, or use arrow keys when focused. Press Enter to fire a shot.