OSI Model Explained: 7 Layers with Real-World Examples (Beginner Guide)

Understand the OSI model's 7 layers with simple examples, devices at each layer, and how it helps you troubleshoot real network problems

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

#LayerData unitExamples
7ApplicationDataHTTP, DNS, SMTP
6PresentationDataTLS encryption, JPEG, compression
5SessionDataSession setup and teardown
4TransportSegmentTCP, UDP, port numbers
3NetworkPacketIP addresses, routers
2Data LinkFrameMAC addresses, switches
1PhysicalBitsCables, 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:

  1. Layer 1: Is the cable plugged in? Is the link light on?
  2. Layer 2: Is the port up? Is the VLAN correct?
  3. Layer 3: Do you have a valid IP, and can you ping the gateway?
  4. Layer 4: Is the required port open on the firewall?
  5. 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.

NextGen Digital... Welcome to WhatsApp chat
Howdy! How can we help you today?
Type here...