Networking · 6 min read · 30 November 2026
The OSI Model Explained: 7 Layers With Real Network Examples
The seven OSI layers in plain words, with the devices and protocols that work at each one, how they map to TCP/IP, and how to use the model to troubleshoot.
The OSI (Open Systems Interconnection) model splits network communication into seven layers, from the physical cable at layer 1 up to the application at layer 7. Each layer has one job and serves the layer above it. Engineers use the layer numbers every day: a "layer 2 switch", a "layer 3 problem", a "layer 7 firewall".
The seven layers
| Layer | Job | Examples |
|---|---|---|
| 7 Application | Services that applications use | HTTP, DNS, SIP, SMTP |
| 6 Presentation | Data format, encryption, compression | TLS, character sets, H.265 video |
| 5 Session | Opening, keeping and closing sessions | Session set-up in RPC and some streaming protocols |
| 4 Transport | End-to-end delivery between applications, ports | TCP and UDP |
| 3 Network | Logical addressing and routing between networks | IP, routers, layer 3 switches, OSPF |
| 2 Data link | Delivery inside one network, MAC addresses | Ethernet, switches, VLANs, Wi-Fi frames |
| 1 Physical | Bits as electrical, light or radio signals | Copper cable, fibre, SFP modules, radio |
A common memory aid from layer 1 up is "Please Do Not Throw Sausage Pizza Away".
How data moves through the layers
When you open a web page, the browser's request is passed down the stack. Each layer adds its own header: TCP adds ports (layer 4), IP adds source and destination addresses (layer 3), and Ethernet adds MAC addresses (layer 2) before the bits go onto the cable. The receiving side removes the headers in reverse order. Switches only look as far as layer 2, routers read layer 3, and application firewalls inspect up to layer 7.
OSI and the TCP/IP model
Real networks run the TCP/IP suite, which uses four layers: link (OSI 1 and 2), internet (OSI 3), transport (OSI 4) and application (OSI 5 to 7). OSI stays popular because its finer split is useful for teaching and troubleshooting.
Where network devices sit
- Layer 1: cables, fibre, transceivers, media converters, PoE power.
- Layer 2: switches forward frames by MAC address and separate traffic with VLANs.
- Layer 3: routers and layer 3 switches route between subnets. See layer 2 vs layer 3 switch.
- Layers 4 to 7: firewalls filter by port and protocol, and next-generation firewalls identify applications.
Troubleshooting with the OSI model
Work from the bottom up and stop at the first layer that fails:
- Physical: is the link light on, is the cable or fibre good, is the device powered?
- Data link: is the port in the right VLAN, does the switch learn the device's MAC address?
- Network: does the device have the right IP address, subnet and gateway? Can it ping the gateway? Use ping and traceroute.
- Transport: is a firewall blocking the port?
- Application: does DNS resolve the name, is the service running, is the login correct?
FAQ
Frequently asked questions
What are the 7 layers of the OSI model?
From the bottom: 1 Physical, 2 Data link, 3 Network, 4 Transport, 5 Session, 6 Presentation and 7 Application.
What layer is a switch and what layer is a router?
A standard switch works at layer 2 and forwards frames by MAC address. A router works at layer 3 and forwards packets by IP address. A layer 3 switch does both.
What is the difference between the OSI model and TCP/IP?
OSI is a seven-layer reference model. TCP/IP is the protocol suite networks actually run, described with four layers: link, internet, transport and application.
Why is the OSI model useful?
It gives engineers a shared language and a step-by-step way to troubleshoot: check the cable, then switching, then IP addressing, then ports and finally the application.
Related
Keep reading
ARP explained: how devices map IP addresses to MAC addresses on a LAN, ARP tables and caches, gratuitous ARP, ARP spoofing attacks and how dynamic ARP inspection protects you.
Read more →Latency, Jitter and Packet Loss: What They Mean and Why They MatterThe three measures of network quality explained simply: what latency, jitter and packet loss are, typical good values for voice, video and gaming, causes and how to measure them.
Read more →What Is a MAC Address? How It Differs From an IP AddressMAC addresses explained: what they are, how switches use them, how they differ from IP addresses, MAC randomisation on phones, and why it matters for Wi-Fi and security.
Read more →Ideal Network Architecture for Small and Medium BusinessesRead more →Need help designing your network?
Navijin engineers provide free design consultations, bills of materials and quotations for business projects.