The OSI model splits networking into seven layers, each with one job. It is the map every network engineer uses to explain, design, and fix networks. Here are all seven layers, explained simply.
Published 28 November 2026 • SHM Soft
When something breaks on a network, the first question an engineer asks is: which layer is it? That question only makes sense because of the OSI model. It gives every networking job a place, from the cable in the wall to the website in your browser, and it gives every problem a layer to live on.
OSI stands for Open Systems Interconnection. It is a reference model created by the ISO in 1984, and it divides network communication into seven layers. In this guide, we explain what the OSI model is, what each layer does, and how to remember them all.

The OSI model is a framework that describes how data moves from one computer to another across a network. It breaks the whole job into seven layers, numbered from 1 at the bottom to 7 at the top. Each layer does one kind of work, and each layer only talks to the layers directly above and below it. The layers are: Physical, Data Link, Network, Transport, Session, Presentation, and Application.
The point of the model is not to describe a real product. No device implements the OSI model exactly. The point is to give everyone a shared language. When an engineer says a problem is at Layer 3, every other engineer knows it is about IP addresses and routing, not about cables or applications. When a vendor designs a new protocol, it knows which layer it belongs to and which layers it must work with. The model is a map, and like any good map, it makes the territory easier to understand.
Data moves down the layers on the sending device and up the layers on the receiving device. On the way down, each layer adds its own header to the data, a process called encapsulation. The Transport layer adds port numbers. The Network layer adds IP addresses. The Data Link layer adds MAC addresses. The Physical layer turns it all into signals. On the way up, each layer reads its header, removes it, and passes the rest along. This is called decapsulation. If you want to compare the OSI model with the model the internet actually runs, read our guide on TCP/IP vs the OSI model.
How to remember the seven layers
There are two classic memory tricks. From the top down, Layer 7 to Layer 1: All People Seem To Need Data Processing. Application, Presentation, Session, Transport, Network, Data Link, Physical. From the bottom up, Layer 1 to Layer 7: Please Do Not Throw Sausage Pizza Away. Physical, Data Link, Network, Transport, Session, Presentation, Application. Pick the one you like and say it a few times. It sticks fast, and it is the first thing to learn, because every other fact about the model hangs off the layer order.
Layer 1 is the Physical layer. It is about the actual signals: cables, fibre, radio waves, and the hardware that sends and receives them. A cable, a connector, a network card, and a hub all live at Layer 1. If there is no signal on the wire, the problem is Layer 1. It is the only layer that deals with real, physical things rather than data.
Layer 2 is the Data Link layer. It moves data across one link, from one device to the next, using MAC addresses. Switches live here. Ethernet and Wi-Fi live here. When a switch looks up a MAC address and forwards a frame out of the right port, that is Layer 2 work. Layer 2 also handles error detection on a link, and it is where VLANs live, because a VLAN is a Layer 2 separation.
Layer 3 is the Network layer. It is about logical addressing and routing across many networks. IP addresses live here. Routers live here. Routing protocols like OSPF and BGP live here. When a router looks at a destination IP address and picks the next hop, that is Layer 3 work. Layer 3 is also where subnetting happens, because a subnet is a Layer 3 division of an address range.
These three layers are the ones you will touch most often in real work. A loose cable is Layer 1. A switch problem is Layer 2. A routing problem is Layer 3. If you can tell those three apart, you can troubleshoot most network faults, because you know which device to look at and which tool to use.
Layer 4 is the Transport layer. It moves data between the right programs on two devices, using port numbers. TCP and UDP live here. TCP gives reliable, ordered delivery, with checks and retransmissions. UDP gives fast, simple delivery with no guarantees. When you visit a website, TCP carries the web traffic on port 443. When you watch a live video, UDP often carries the stream. The Transport layer also splits large messages into segments and puts them back together at the other end.
Layer 5 is the Session layer. It opens, manages, and closes the conversation between two devices. When you log into a server, the session starts. While you work, the session stays open. When you log out, the session closes. In practice, much of this work is done inside applications or by protocols like NetBIOS and RPC, rather than by a separate layer, which is one reason the TCP/IP model merges this layer into the Application layer.
Layer 6 is the Presentation layer. It makes sure both sides read the data the same way. It handles data formats, character encoding, compression, and encryption. When your browser and a server agree on TLS encryption, that is Presentation layer work. When a picture is encoded as JPEG, that is Presentation layer work too. Like the Session layer, it is often handled inside the application in real systems.
Layer 7 is the Application layer. It is the layer closest to the user, and it provides the network services that programs use. HTTP for websites, DNS for name lookups, SMTP for email, FTP for file transfers, and SSH for remote access all live here. Note that Layer 7 is not the application itself. Your browser is not Layer 7. The HTTP protocol your browser uses is Layer 7. That distinction trips up a lot of students, so it is worth getting right.

The OSI model is most useful when something is broken. Instead of guessing, you work through the layers from the bottom up. Is there a signal? That is Layer 1. Check the cable, the port, and the link light. Is the device getting an address? That is Layer 2 and 3. Check the switch, the VLAN, and the DHCP server. Can it reach the gateway? That is Layer 3. Check the routing table. Can it reach the server? That is Layer 3 and 4. Check the firewall and the port. Does the application work? That is Layer 7. Check the service itself.
Working bottom-up saves time, because most faults are in the lower layers. A surprising number of network problems turn out to be a loose cable, a wrong VLAN, or a wrong gateway. The model stops you from reinstalling an application when the problem is a cable, and it stops you from replacing a cable when the problem is a firewall rule. It is a checklist, and it works.
The model also helps you talk to other engineers. Saying the problem is at Layer 2 tells the other person exactly where to look. Saying the network is broken tells them nothing. That shared language is the real value of the OSI model, and it is why it is still taught forty years after it was written.
For the CCNA exam, the OSI model is fundamental. You need to know all seven layers by name and number, what each one does, and which protocols and devices live at each layer. You also need to know the encapsulation process and the name of the data unit at each layer: bits at Layer 1, frames at Layer 2, packets at Layer 3, and segments at Layer 4. Learn the memory trick, learn the devices, and the rest follows. Our guide on how to pass the CCNA puts the OSI model in the first week of study, because everything else builds on it.
Watch on YouTube: Understanding the OSI Model - N10-008 CompTIA Network+ : 1.1
OSI vs TCP/IP: why learn both?
Students often ask why they must learn the OSI model when the internet runs on TCP/IP. The answer is that the two models do different jobs. TCP/IP describes what is actually running. OSI describes how to think about it. The TCP/IP model has four layers, and it merges the top three OSI layers into one. It is simpler, and it matches reality. But it is less useful for troubleshooting, because it lumps too much together at the top and too much at the bottom.
Think of it this way. TCP/IP is the engine in the car. OSI is the workshop manual. You drive with the engine, but you fix the car with the manual. A network engineer uses TCP/IP all day, and reaches for the OSI model whenever something needs explaining or fixing. Learn both, and you will have both the engine and the manual.
What is the OSI model in simple terms?
The OSI model is a framework that splits network communication into seven layers, each with one job, from the physical cable at the bottom to the application at the top. It gives engineers a shared map for designing, explaining, and troubleshooting networks.
What are the 7 layers of the OSI model?
From bottom to top: Layer 1 Physical, Layer 2 Data Link, Layer 3 Network, Layer 4 Transport, Layer 5 Session, Layer 6 Presentation, and Layer 7 Application. A common memory trick is Please Do Not Throw Sausage Pizza Away.
What is the difference between Layer 2 and Layer 3?
Layer 2 moves data across one link using MAC addresses, and switches work here. Layer 3 moves data across many networks using IP addresses, and routers work here. A switch forwards frames, and a router forwards packets.
Is the OSI model still relevant?
Yes. No device implements the OSI protocols, but every network engineer uses the model to describe problems, to teach concepts, and to troubleshoot. It is also a core topic on the CCNA and Network+ exams.
What layer is a router?
A router works at Layer 3, the Network layer, because it forwards packets based on IP addresses. A switch works at Layer 2, because it forwards frames based on MAC addresses.
Conclusion
The OSI model is seven layers, each with one job. Physical moves signals. Data Link moves frames across one link. Network routes packets across many networks. Transport delivers data to the right program. Session manages conversations. Presentation handles formats and encryption. Application provides the services programs use.
Learn the layers, learn the memory trick, and learn which devices and protocols live at each layer. Then use the model every time something breaks, working from the bottom up. That habit alone will make you a better troubleshooter than most people in the room.
Related articles:
TCP/IP vs OSI Model: A Layer-by-Layer Comparison
How the two models map to each other, and when to use which one.
Telnet vs SSH: Remote Access Protocols Compared
Two Application layer protocols, one plain text and one encrypted, compared.
What Is DHCP? How Dynamic IP Assignment Works
How devices get their IP address automatically, and the DORA process behind it.
Want a clear price for your project?
Tell us what you need and we will send a free quote with no hidden charges.