OSI Model — Clean, Confusion-Free Explanation (For When You’re Stuck)
Source: Dev.to

These notes are written for moments when the OSI model feels confusing. They intentionally avoid jargon overload and focus on clear mental models.
1️⃣ What Is a PDU (Protocol Data Unit)?
A PDU is simply the form data takes at a given OSI layer. The PDU name changes at each layer:
| OSI Layer | PDU Name |
|---|---|
| Application / Presentation / Session | Data |
| Transport (TCP) | Segment |
| Transport (UDP) | Datagram |
| Network | Packet |
| Data Link | Frame |
| Physical | Bits (signals) |
Example
"Hello"
2️⃣ Is Application Data Already 0s and 1s?
Logically: ❌ No – it’s strings, bytes, JSON, text, objects.
Physically (later): ✅ Yes – it will eventually become signals.
Higher layers think in structure and meaning; lower layers think in signals. Both views are correct, just at different layers.
3️⃣ Transport Layer (TCP / UDP)
What the Transport Layer Adds
- Source Port
- Destination Port
- Transport control information
These fields are part of the TCP header or UDP header.
TCP vs UDP (Quick Comparison)
| Feature | TCP | UDP |
|---|---|---|
| Reliability | ✅ Reliable | ❌ Unreliable |
| Ordering | ✅ Ordered | ❌ Unordered |
| Speed | ⏳ Slower | ⚡ Faster |
| Retransmission | ✅ Retransmits lost data | ❌ No retransmission |
4️⃣ Network Layer
What the Network Layer Adds
- Source IP address
- Destination IP address
These fields form the IP header.
After this step:
Segment → Packet
IP answers: “Where should this data go globally?”
5️⃣ Data Link Layer
What the Data Link Layer Adds
- Source MAC address
- Destination MAC address
- Error‑checking trailer (CRC)
These fields make up the MAC header + trailer.
After this step:
Packet → Frame
MAC answers: “Which exact device on this local network should receive this?”
Critical Rule
- IP stays the same end‑to‑end
- MAC changes at every hop
6️⃣ Physical Layer
The physical layer:
- ❌ Does not understand headers or addresses
- ✅ Converts frames into physical signals
Examples
- Wi‑Fi → Radio waves
- Ethernet → Electrical signals
- Fiber → Light pulses
So:
- Wi‑Fi = radio
- Ethernet = electricity
7️⃣ Encapsulation Flow (One Line)
Data → Segment → Packet → Frame → Signals
Each layer adds only its own information.
8️⃣ Header Mapping (Common Doubt)
| Header | Contains |
|---|---|
| TCP / UDP Header | Source Port, Destination Port, control info |
| IP Header | Source IP, Destination IP |
| MAC Header | Source MAC, Destination MAC |
If this matches your doubt, your understanding is correct.
9️⃣ One‑Sentence Mental Model
Application creates meaning → Transport manages conversation → Network finds destination → Data Link finds device → Physical moves signals
Final Note
These notes are:
- Lightweight
- Mental‑model focused
- Safe to revisit anytime you’re confused
Happy networking 🚀