Module 1 · Addresses, Subnets and Packets · Lesson 1 of 9
How networks move data
How a message travels from your laptop to a website, told with letters, post offices and doors, then the proper names: layers, MAC and IP addresses, ports, switching and routing.
In this lesson · about 30 minutes
- Explain in everyday words how a message gets from one computer to another
- Describe what happens at the link, network, transport and application layers
- Tell a MAC address, an IP address and a port apart
- Explain the difference between switching and routing
The big idea in plain words
When you open a website, send a message or print a page, your device chops the data into small pieces called packets. Each packet is like a letter in an envelope: it carries a bit of the message and the addresses it needs to get where it's going. Every security skill in networking comes back to one question: how does a packet get from one program to another? If you can answer that, you can find where it breaks and where to put a lock.
| Networking word | Everyday picture | Example |
|---|---|---|
| Packet | A letter in an envelope | One small piece of a web page |
| MAC address | The name tag on a person inside one building. Every network card has one, fixed at the factory. | 08:00:27:4e:66:a1 |
| IP address | A street address: where the device is, so letters can reach it from anywhere | 10.10.10.5 |
| Port | A door or room number inside the building: which program gets the letter | 443 = secure web |
| Switch | The mail room inside one building | The box your office cables plug into |
| Router | The post office that sends letters to other towns | Your home internet box |
Whiteboard · watch and try
The internet is a postal service
Press Play. The tutor draws how a message leaves your laptop and reaches a website, using letters and post offices.
Tip: press Pause, then use the pen to work along on the board. Space plays and pauses; Ctrl+Z undoes your last mark.
Try it · watch it move
Follow a packet's trip
Pick what to send, then press Play (or Next step). Watch which boxes the packet passes through, and how the labels on it change.
Wrapping, like a parcel
A packet isn't one label: it's a letter inside an envelope inside a box, and each layer of wrapping has its own job. The inside layers are for the far end; the outer layer is just for the next short hop. Engineers call each wrapping a layer.
Try it · watch it move
Wrap a message like a parcel
Step through. Notice that only the outer courier label changes at the router; the street address inside never does.
The letter itself · Application
Please send me the menu page
The same four layers, with their proper names
The famous OSI model has seven layers, but in practice most troubleshooting uses four (the TCP/IP model). Here they are, from the outside of the parcel inwards:
| Layer | In plain words | What it does | Address it uses | Device or tool |
|---|---|---|---|---|
| Link (Layer 2) | Courier label | Moves frames between devices on the same local network | MAC address, like 08:00:27:4e:66:a1 | Switch, Wi-Fi access point |
| Network (Layer 3) | Street address | Moves packets between networks | IP address, like 10.10.10.5 | Router, Layer 3 switch |
| Transport (Layer 4) | Door number | Delivers data to the right program, reliably (TCP) or quickly (UDP) | Port, like 443 | Firewall rules usually match here |
| Application (Layers 5–7) | The letter | The conversation itself: web pages, name lookups, logins | Names, URLs | DNS, HTTP, SSH |
Switching versus routing
Switching (the mail room) forwards frames inside one local network, using MAC addresses. Routing (the post office) forwards packets between networks, using IP addresses and a route table. When your laptop talks to a printer on the same network, a switch does the work. When it talks to a server on another network or the internet, it sends the packet to its default gateway (a router), which decides where it goes next.
A switch isn't born knowing where everyone is. It learns, by reading the sender's name tag on every frame that passes through. Try it:
Try it · watch it move
Watch a switch learn who lives where
Send a few messages between the four devices. The first time, the switch has to ask everyone; after that it goes straight to the right socket. Then restart the switch and watch it forget.
The switch's notebook (MAC table)
empty: it hasn't seen anyone yet
Ports are doors, and a door number is not proof
A port number tells the receiving computer which program should get the data. Well-known services use well-known doors: SSH (remote control) on 22/TCP, DNS (name lookups) on 53, HTTP on 80/TCP, HTTPS on 443/TCP. But anyone can run any program behind any door, so "port 443 is open" does not prove a web server is there. You confirm the service by talking to it. Security people care about doors because every open door is a way in.
Try it · watch it move
Knock on the server's doors (ports)
Knock on each door. Then turn some programs off, add the firewall guard, and knock again. Learn the three answers: hello, go away, and silence.
Key terms
Say the meaning to yourself, then tap a card to check.
Sorting drill
Which layer?
Sort each item into the layer it belongs to.
- 08:00:27:4e:66:a1
- A switch learning which port a laptop is plugged into
- 10.10.20.15/24
- A router choosing the next hop from its route table
- TCP port 22
- The SYN, SYN-ACK, ACK handshake
- A query asking for the address of example.com
- GET /index.html HTTP/1.1
0 of 8 sorted
Check your understanding0 of 3 correct
Quiz score: 0 of 3
Noviq Academy is free and for learning. Every lab here is simulated with synthetic data and private lab addresses. Only capture traffic and test networks that you own or have written permission to test. Wireshark and pfSense are trademarks of their owners; this course is independent of them.