What a network really is
Devices following shared rules to move data in small, addressed pieces, and a way to think about it that survives any ticket.
A network is two or more devices that exchange data by following the same rules. That is the whole idea. A laptop, a badge reader, a printer and a cloud server can all talk because each one implements the same protocols: agreements about how data is formatted, addressed, sent, acknowledged and checked.
Why start here if you are going into technical support? Because "the internet is down" is never the real problem. It is a symptom. The people who fix tickets quickly have a mental model of the pieces involved, so they can ask "which piece is failing?" instead of rebooting things at random. This module builds that model.
Core ideas
Protocols are layered agreements
No single protocol does everything. Opening a web page uses several at once, each solving one problem:
- HTTP decides what the browser asks for and what the server sends back.
- TCP makes sure those bytes arrive complete and in order.
- IP gets each piece from your network to the server's network, across many routers.
- Ethernet or Wi-Fi moves the piece across the one local link it is on right now.
Each protocol trusts the one below it to do its job and ignores the details. HTTP has no idea whether you are on Wi-Fi or a cable. That separation is why you can troubleshoot one layer at a time.
Packets, not streams
Data is cut into packets. On a normal Ethernet or Wi-Fi network a packet carries at most about 1,500 bytes, so a 3 MB photo becomes roughly two thousand packets. Each packet carries its own addressing, travels independently, and is reassembled at the far end.
This is called packet switching. Many conversations share the same links, taking turns packet by packet. If one packet is lost, only that packet is resent. The old telephone network did the opposite (a dedicated circuit for each call), which is why it wasted capacity whenever nobody was speaking.
Encapsulation: envelopes inside envelopes
As data goes down the stack on the sender, each layer adds its own header in front of what it received:
[ Ethernet hdr | IP hdr | TCP hdr | HTTP data ........ | FCS ] MAC → MAC IP → IP port → port "GET /index.html" checksum
The receiver peels the layers off in reverse. One detail worth remembering for interviews: at every router along the way, the outer Ethernet header is removed and a new one is written for the next link. The MAC addresses change at every hop; the IP addresses stay the same end to end (unless NAT rewrites them, covered in module 2).
Two models: OSI vocabulary, TCP/IP reality
The OSI model has seven layers: 1 Physical, 2 Data Link, 3 Network, 4 Transport, 5 Session, 6 Presentation, 7 Application. Hardly any software is built in those exact seven pieces, but the numbers are used as shorthand everywhere: "layer 2 issue" means switching/VLANs, "layer 3" means IP and routing, "layer 7 load balancer" means it understands HTTP.
The TCP/IP model is what actually runs: Link, Internet, Transport, Application. Layers 5–7 of OSI are folded into "application". Know the OSI numbers so you can speak the language; reason with the four TCP/IP layers.
The building blocks you will touch
- Endpoints / hosts: laptops, phones, servers, printers, IP phones, cameras.
- Switch: connects devices inside one local network (layer 2).
- Router: connects different networks together and picks paths between them (layer 3). A home "router" is usually a router, switch, Wi-Fi access point, firewall and DHCP server in one box.
- Access point: bridges Wi-Fi clients onto the wired network.
- Firewall: allows or blocks traffic based on rules.
- Servers and services: DHCP, DNS, web, file, identity.
Bits versus bytes
Network speeds are quoted in bits per second (Mbps). File sizes and download meters use bytes (MB/s). There are 8 bits in a byte, so a 100 Mbps connection tops out around 12 MB/s, and a bit lower after protocol overhead. A user who says "I pay for 100 and only get 11" is usually getting exactly what they pay for.
What happens when you open https://intranet.example.com
- Link + address: the laptop is already on Wi-Fi and got
10.10.20.57/24, a gateway and DNS servers from DHCP. - DNS: it asks its DNS server for
intranet.example.comand gets10.20.0.15. - Local or remote?
10.20.0.15is not in10.10.20.0/24, so the packet must go to the gateway. ARP finds the gateway's MAC address. - TCP: a three-way handshake to port 443 opens a connection.
- TLS: the server presents a certificate; the browser checks it and both sides agree on keys.
- HTTP: the browser sends
GET /; the server answers200 OKwith HTML, and the browser repeats the process for images, scripts and styles.
Every step is a place where things break. The later modules take them one at a time.
How it breaks, and what to check
| Symptom | Likely cause | What to check |
|---|---|---|
| No link light, Wi-Fi says "no networks" | physical layer: cable, port, radio off, airplane mode | Try a known-good cable and port; check the Wi-Fi switch/toggle |
| Address starts with 169.254 | device never got a DHCP lease | Module 2: DHCP, VLAN, Wi-Fi authentication |
| Can ping 1.1.1.1 but no website loads by name | DNS | Module 6: nslookup against a second resolver |
| Every site works except one | that service, its DNS, a proxy rule, or a certificate | Try it from another network; read the exact error |
| Everything works, just slowly | performance: Wi-Fi, saturation, VPN path | Module 12: measure latency, loss and throughput |
Commands
| Task | Windows | macOS | Linux |
|---|---|---|---|
| Show my IP setup | ipconfig /all | ifconfig or System Settings → Network | ip addr |
| Can I reach it? | ping 1.1.1.1 | ping 1.1.1.1 | ping 1.1.1.1 |
| Which path does it take? | tracert 1.1.1.1 | traceroute 1.1.1.1 | traceroute 1.1.1.1 |
| Does the name resolve? | nslookup example.com | nslookup example.com | dig example.com |
Check yourself
Answer out loud first, then open the card.
At a router hop, which addresses change: MAC or IP?
The MAC addresses (the outer Ethernet header is rewritten for each link). The source and destination IP stay the same, unless a NAT device rewrites them.
A user on a 200 Mbps plan sees downloads at 23 MB/s. Problem?
No. 200 Mbps ÷ 8 = 25 MB/s, minus protocol overhead. That is normal.
Name the protocols involved in loading an HTTPS page, bottom to top.
Ethernet or Wi-Fi, IP (with ARP to find the gateway), TCP, TLS, HTTP, plus DNS beforehand to find the address.