Four big ideas, four pictures you'll never forget: ๐ IP = house addresses ยท ๐๏ธ Subnets = gated estates ยท ๐ TCP/UDP = careful courier vs shouting town-crier ยท ๐ณ DNS = the name book. Draw them once in your mind and they stay forever!
Every device on a network needs an address so knocks can find it. An IP address looks like 192.168.1.7 โ four numbers, dots between them. But WHY four? And why does each one stop at 255? The drawing below answers both:
๐ One street, four houses. Notice they all start 192.168.1. โ that's the street name. Only the last number changes โ that's the house number. And 192.168.1.1 is almost always the router: the gate of the whole street!
๐ฌ The IP Dissector โ see the switches inside
8๏ธโฃWhy max 255?
Each number is ONE byte = 8 switches. All off = 0. All on = 255. That's why 256 is impossible in an IP address!
3๏ธโฃ2๏ธโฃ4 ร 8 = 32 switches
32 switches = about 4.3 billion addresses. In 1981 that felt endless...
๐ฑ...then we RAN OUT!
Every phone, laptop, fridge and TV joined. So engineers built IPv6 โ so many addresses you could label every grain of sand on Earth, many times over. ๐๏ธ
2 Public vs Private โ The Compound Gate
Your flat number vs the compound's street address ๐ข
Here's the idea that confuses everyone โ until they see the compound. Inside a compound, flats are "Flat 3", "Flat 7". Those numbers repeat in every compound in Nigeria! The postman doesn't care โ he only needs the compound's address on the main road. Same with IPs:
๐ Spot a private address instantly โ they ALWAYS start with one of these three: 10.anything ยท 192.168.anything ยท 172.16-31.anything. See 192.168. anywhere? That's somebody's home or office network, never the open internet!
๐ NAT โ the gate's notebook. When Flat 7 sends a knock out, the router swaps the private number for the compound's public one and writes: "Flat 7 asked for this." When the reply comes back, it looks in the book and delivers it to Flat 7. That's also why nobody outside can knock directly on your laptop โ the gate protects you by default! ๐ก๏ธ
3 Subnets โ Which Estate Do You Live In?
The mask decides: street name vs house number ๐๏ธ
A subnet is one estate with its own gate. Devices in the SAME estate talk directly, like neighbours shouting over a fence. Devices in DIFFERENT estates must go through the gate (the router). The subnet mask is just a rule saying "how much of this address is the estate name?"
๐ญ The mask is just a highlighter pen./24 (or 255.255.255.0) says: "highlight the first three numbers โ that's the estate." Same highlight = neighbours. Different highlight = strangers who need the gate. That's ALL a subnet mask does!
๐งฎ Same estate or not? Test two addresses:
Using mask /24 โ the first three numbers must match!
๐Why split into estates? 1) Less noise
Shouting stays inside your own estate instead of disturbing the whole company.
๐๏ธ2) Tidiness
Accounts in one estate, cameras in another, guests in a third. Easy to manage.
๐ก๏ธ3) SECURITY (our favourite!)
If a thief breaks into ONE estate, good fences stop him strolling into all the others. Security people call this segmentation โ one of the strongest defences that exists.
4 TCP vs UDP โ Two Delivery Styles
The careful courier ๐ vs the shouting town-crier ๐ฃ
Both carry your message. But they behave completely differently โ and choosing wrong makes things break in ways that confuse people for years. Watch them race, then lose a packet on purpose!
๐ค UDP does NONE of this. No greeting, no permission โ it just shouts. That's why UDP is faster, and why TCP is safer. Same road, two personalities!
๐ Race them โ and lose a parcel on purpose!
๐ TCP โ the careful courier
Waiting to send 5 pieces...
๐ฃ UDP โ the shouting town-crier
Waiting to shout 5 pieces...
๐Use TCP when losing a piece RUINS it
Web pages ๐ ยท files ๐ ยท email โ๏ธ ยท messages ๐ฌ ยท logging into your bank ๐ฆ. A web page with missing letters is useless!
๐ฃUse UDP when WAITING is worse than losing
Video calls ๐น ยท live audio ๐ค ยท games ๐ฎ ยท live streams ๐บ ยท DNS lookups ๐ณ. Better a half-second glitch than a frozen call!
๐ง The one-line rule
Would a missing piece ruin everything? โ TCP. Would waiting be worse than a small gap? โ UDP. That's the whole decision.
5 DNS โ The Name Book
Humans remember names. Computers need numbers. ๐ณ
You type kodi.koinder.biz; the machine needs 102.89.44.10. DNS is the translator between the two โ and it answers in four hops, in less time than a blink:
6 All Together โ One Click, One Journey
Watch all four ideas work as ONE team ๐ฌ
Press play and follow a single click from Ada's laptop to a website and back โ every stage naming which idea is doing the work:
7 Drills โ Lock It In
Ten questions. Repeat until they're boring ๐ฏ
๐ Four pictures, forever: ๐ an IP is a house address (4 boxes of 8 switches, max 255) ยท ๐ข private numbers repeat inside every compound, the gate holds the one public address ยท ๐๏ธ a subnet is an estate and the mask is the highlighter pen ยท ๐ TCP re-delivers, ๐ฃ UDP shouts and runs ยท ๐ณ DNS turns names into numbers in four hops. See the pictures and the words explain themselves! ๐