Follow a packet

Step 1 of 8

Same network?

What the mask says

Why this matters. Every message you send — a web page, a video call, this lab — is chopped into packets, and each one is passed from machine to machine until it arrives. The first decision is made before it even leaves your laptop: is the destination right here, or somewhere else?

An IPv4 address is four numbers. The mask (written /24) says how many of its bits name the network; the rest name one machine on it. With /24, the first three numbers are the network.

If the destination is on the same network, your laptop sends the packet straight to it. If not, it hands the packet to the gateway — the router — and lets it worry about the rest.

Your task: For each destination, decide whether your laptop sends the packet straight there or to the gateway.

Your laptop

192.168.1.37 /24

Mask 255.255.255.0: the first 3 numbers (blue) are the network, the rest picks the machine on it. Gateway: 192.168.1.1

A packet for 192.168.1.200 goes…

A packet for 192.168.2.37 goes…

A packet for 203.0.113.10 goes…

A packet for 192.168.1.9 goes…

Sign in to save your progress.