OSI Model Explained: 7 Layers with Real-World Examples (Beginner Guide)
The OSI model is the map every network engineer carries in their head. It splits network communication into seven layers so you can understand, design, and troubleshoot networks one piece at a time. If you are preparing for CCNA or working with firewalls like FortiGate, this model is essential.
What Is the OSI Model?
OSI stands for Open Systems Interconnection. It is a conceptual framework, not a protocol, that describes how data travels from an application on one computer to an application on another.
The 7 Layers
| # | Layer | Data unit | Examples |
|---|---|---|---|
| 7 | Application | Data | HTTP, DNS, SMTP |
| 6 | Presentation | Data | TLS encryption, JPEG, compression |
| 5 | Session | Data | Session setup and teardown |
| 4 | Transport | Segment | TCP, UDP, port numbers |
| 3 | Network | Packet | IP addresses, routers |
| 2 | Data Link | Frame | MAC addresses, switches |
| 1 | Physical | Bits | Cables, Wi-Fi signals, ports |
Memory trick (Layer 1 to 7): Please Do Not Throw Sausage Pizza Away.
Each Layer in Plain English
Layer 7: Application
The layer your software talks to. When your browser requests a web page, it uses HTTP or HTTPS here.
Layer 6: Presentation
Formats, encrypts, and compresses data so both sides understand it.
Layer 5: Session
Opens, manages, and closes conversations between two systems.
Layer 4: Transport
Splits data into segments and delivers it. TCP is reliable and ordered (web, email), while UDP is fast with no guarantees (video calls, DNS queries). Port numbers live here.
Layer 3: Network
Handles logical addressing and routing. Routers read IP addresses to decide where a packet goes next.
Layer 2: Data Link
Moves frames between devices on the same local network using MAC addresses. Switches operate here.
Layer 1: Physical
The actual cables, fiber, and radio signals that carry bits.
Which Devices Work at Which Layer?
- Hub, cable, repeater: Layer 1
- Switch: Layer 2 (Layer 3 switches also route)
- Router: Layer 3
- Firewall: Layers 3 to 4 for basic filtering, up to Layer 7 for next-generation firewalls. See our guide: What Is a Firewall?
Using OSI to Troubleshoot
Work from the bottom up:
- Layer 1: Is the cable plugged in? Is the link light on?
- Layer 2: Is the port up? Is the VLAN correct?
- Layer 3: Do you have a valid IP, and can you
pingthe gateway? - Layer 4: Is the required port open on the firewall?
- Layer 7: Is the application or DNS itself working?
This simple routine solves a large share of everyday network issues. For example, if devices get no IP address, read DHCP Not Working? 7 Fixes.
OSI vs TCP/IP
The real internet runs on the TCP/IP model, which has four layers (Network Access, Internet, Transport, Application). OSI is mostly used as a teaching and troubleshooting reference, which is why exams and job interviews still ask about it.
Frequently Asked Questions
Is the OSI model still relevant? Yes. It gives engineers a shared vocabulary, such as "this is a Layer 2 issue".
At which layer does encryption happen? In the OSI model it is placed at Layer 6, though in practice TLS spans several layers.
Conclusion
Learn the seven layers, the data unit at each one, and the devices that live there, and networking concepts will start to connect. Next up: the TCP/IP model and how it compares.

Join the conversation