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 wordEveryday pictureExample
PacketA letter in an envelopeOne small piece of a web page
MAC addressThe name tag on a person inside one building. Every network card has one, fixed at the factory.08:00:27:4e:66:a1
IP addressA street address: where the device is, so letters can reach it from anywhere10.10.10.5
PortA door or room number inside the building: which program gets the letter443 = secure web
SwitchThe mail room inside one buildingThe box your office cables plug into
RouterThe post office that sends letters to other townsYour 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.

5 steps
Press Play and the tutor will talk you through it while writing on the board. Pause any time to write on the board yourself.

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.

Send something:
Your local network💻Your laptop10.10.10.20🖨️Printer10.10.10.30🔀Switchmail room📮Routerpost office☁️The internetmany routers🗄️Web server93.184.215.14to website
Building label (MAC)to router 00:1a:2b:3c:4d:01
Street address (IP)to 93.184.215.14
Door number (port)443 (secure web)
Step 1 of 6You open a website. Its server is at 93.184.215.14, which is NOT on your local network. So your laptop does what you do with a letter to another city: it hands it to the post office. On a network, the post office is the router, called the default gateway.

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

💻 Wrapping on your laptop
📮 Relabelled at a router
🗄️ Unwrapping at the server
Step 1 of 7Your browser writes the message: 'please send me the menu page'. This is the application layer: the actual conversation.

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:

LayerIn plain wordsWhat it doesAddress it usesDevice or tool
Link (Layer 2)Courier labelMoves frames between devices on the same local networkMAC address, like 08:00:27:4e:66:a1Switch, Wi-Fi access point
Network (Layer 3)Street addressMoves packets between networksIP address, like 10.10.10.5Router, Layer 3 switch
Transport (Layer 4)Door numberDelivers data to the right program, reliably (TCP) or quickly (UDP)Port, like 443Firewall rules usually match here
Application (Layers 5–7)The letterThe conversation itself: web pages, name lookups, loginsNames, URLsDNS, 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.

🔀 Switch (the mail room)socket 1💻Amina's laptop08:00:27:aa:01:0asocket 2🖥️Ben's PC08:00:27:bb:02:0bsocket 3🖨️Printer3c:52:82:cc:03:0csocket 4💻Dawit's laptop08:00:27:dd:04:0d
From
To

The switch's notebook (MAC table)

empty: it hasn't seen anyone yet

Pick who sends and who receives, then press Send. Watch the switch's notebook: it learns where each device lives by reading the sender's name tag on every message.

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.

💻You10.10.10.20🗄️ Server 10.10.10.5: one address, many doors22🧑‍💻SSHlistening53🚪DNSnobody home80🧑‍💻HTTPlistening443🧑‍💻HTTPSlistening3389🚪RDPnobody home
Knock on a door:
Programs running on the server:
A server is like an office building: one street address (its IP), with numbered doors (ports). Each program that offers a service waits behind its own door. Knock on a few doors, then switch programs off and add the guard to see the three different answers.

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

Question 1

1.Your laptop (10.10.10.20/24) wants to reach a server at 10.10.20.5. Where does it send the packet first?

Question 2

2.Which statement about ports is TRUE?

Question 3

3.What does a switch use to forward traffic inside one local network?

Quiz score: 0 of 3

Tip: answer every quiz question correctly first.

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.