From phone numbers to binary switches to the seven layers that make the internet work — the complete foundation every network engineer must own.
Today we bridged a critical gap: how IP addressing works in the real world.
| Engineer | Network | Hosts |
|---|---|---|
| Irene | 192.168.3.0/24 | 254 |
| Ibrahim | 192.168.7.0/24 | 254 |
| Msabi | 192.168.6.0/24 | 254 |
| Dennis | 192.168.5.0/24 | 254 |
Each of you manages 254 usable IPs (256 minus network and broadcast).
Binary is painful for humans. A MAC address in binary:
Same address in hexadecimal:
Hex is shorthand for binary — every hex digit maps to exactly 4 binary bits.
We use 0–9, then letters A–F for values 10–15:
| Dec | Hex | Binary | Dec | Hex | Binary |
|---|---|---|---|---|---|
| 0 | 0 | 0000 | 8 | 8 | 1000 |
| 1 | 1 | 0001 | 9 | 9 | 1001 |
| 2 | 2 | 0010 | 10 | A | 1010 |
| 3 | 3 | 0011 | 11 | B | 1011 |
| 4 | 4 | 0100 | 12 | C | 1100 |
| 5 | 5 | 0101 | 13 | D | 1101 |
| 6 | 6 | 0110 | 14 | E | 1110 |
| 7 | 7 | 0111 | 15 | F | 1111 |
| Context | Example | Why Hex? |
|---|---|---|
| MAC | 66:D6:9A:1C:70:41 | 6 bytes → 12 hex digits |
| IPv6 | 2001:0db8::8a2e | 128 bits as hex groups |
| CSS Colours | #2980B9 | RGB as 3 bytes |
| Memory | 0x7FFE42A0 | RAM locations |
| CAN Bus | 0x7E8 | ECU identifiers |
Dennis's MAC Address — 48 bits, 6 bytes in hex:
| Layer | ID | Purpose |
|---|---|---|
| L3 Network | 192.168.5.41 | Route across networks |
| L2 Data Link | 66:D6:9A:1C:70:41 | Deliver on local segment |
Everything today fits into one framework: Open Systems Interconnection. Seven layers — data starts at the top, travels down picking up packaging at each level, hits the wire, then unwraps in reverse at the far end.
Shipping a vase from Dar es Salaam to Kampala: write a letter (L7), put it in an addressed envelope (L3), wrap in bubble wrap (L4), put in a labelled box (L2), hand to the courier (L1). At each step, packaging is added. On arrival, unwrapped in reverse.
Network services directly to applications — web browsing, email, file transfer, DNS. Not the app itself (Chrome isn't L7), but the network protocols the app uses.
Your reality: Typing google.com triggers a DNS query (L7). SSH into a router = L7. SNMP polling = L7.
The translator. Three jobs: format conversion (EBCDIC→ASCII), encryption (TLS/SSL), and compression.
Your reality: The padlock icon = TLS at this layer. JPEG encoding, UTF-8 character sets — all L6.
Opens, manages, and closes conversations. Handles authentication, authorisation, and session restoration.
Your reality: Website login sessions staying active for 30 min. RPC calls. NetBIOS in Windows networking.
Quality control. Breaks data into segments, numbers them, ensures correct delivery.
TCP — reliable. Three-way handshake (SYN→SYN-ACK→ACK), numbering, acknowledgements, retransmission. Web, email, file transfer.
UDP — fast. No connection, no acks. Video calls, VoIP, DNS queries, live streaming.
Port numbers identify which application receives data:
Everything we learned about IP today. Logical addressing (IP) and routing (best path across networks). Devices: routers — your Juniper MX80, MikroTik CCR2116.
Everything about MAC addresses today. Framing, error detection (CRC), media access control. Devices: switches. Two sub-layers:
Your reality: VLANs (802.1Q), STP, the MAC table exercise — all L2.
Raw bits. Voltage on copper, light in fibre, radio waves for wireless. Doesn't understand addresses — only 1s and 0s.
Your reality: Crimping RJ45 = L1. SFP modules in the MX80 = L1. Link light green = L1 confirmed.
| Lesson | Layer | Why |
|---|---|---|
| IP Addresses | L3 Network | Logical routing |
| Subnets (/24) | L3 Network | Network boundaries |
| Binary | L1–3 | Foundation of all addressing |
| Hexadecimal | L2–3 | Compact binary for MACs, IPv6 |
| MAC Addresses | L2 Data Link | Physical local delivery |
| ARP + MAC Table | L2–3 | Logical → physical mapping |
| Cables, ports | L1 Physical | Bits on the wire |
| # | Pillar | Lesson |
|---|---|---|
| 1 | Binary Thinking | The native language of machines |
| 2 | Hex Shorthand | Compact notation humans can manage |
| 3 | Address Hierarchies | Organising thousands of devices |
| 4 | Uniqueness at Scale | 281 trillion MACs — global order |
| 5 | Separation of Concerns | L2 and L3 solve different problems |
| 6 | Layered Architecture | OSI = universal troubleshooting |
IP addresses are ZIP codes. MAC addresses are house numbers. Hex is the shorthand. Binary is the truth. The OSI model is the checklist. You've got this.