What Is the OSI Model? The 7 Layers Explained for A+, Network+, and CCNA
Every networking exam asks about it, every networking job uses it as a shared language, and almost no working network actually runs it. The OSI model — the Open Systems Interconnection model — is a seven-layer framework that describes how data moves from one computer to another. It was published by the International Organization for Standardization (ISO) in 1984 as a standard way to think about networking, and CompTIA, Cisco, and Microsoft have built their exams around it ever since. If you can picture the seven layers and say what each one does, a whole class of exam questions — about protocols, devices, and troubleshooting — starts to answer itself.
The 7 layers at a glance
The layers are numbered from the bottom up, starting with the physical hardware and ending with the applications you actually use:
| Layer | Name | What it does, in one line | Examples |
|---|---|---|---|
| 7 | Application | The services you use | HTTP, DNS, SMTP, FTP, SSH, SIP |
| 6 | Presentation | Formats, encrypts, compresses data | TLS/SSL, JPEG, ASCII |
| 5 | Session | Starts, manages, and ends conversations | NetBIOS, RPC, PPTP |
| 4 | Transport | End-to-end delivery between hosts | TCP, UDP |
| 3 | Network | Addressing and routing between networks | IP, ICMP, OSPF, BGP |
| 2 | Data Link | Moving frames across one local link | Ethernet, Wi-Fi, MAC addresses |
| 1 | Physical | The actual bits on the wire | Cables, fiber, radio, hubs |
Two mnemonics students use to remember the order. Bottom-up: "Please Do Not Throw Sausage Pizza Away" (Physical, Data Link, Network, Transport, Session, Presentation, Application). Top-down: "All People Seem To Need Data Processing." Pick one, say it ten times, and it sticks.
Layers 1–2: getting bits across one link
Layer 1, the Physical layer, is the world of electricity, light, and radio: the cable in the wall, the fiber in the ceiling, the Wi-Fi signal in the air. Its only job is to turn bits into signals and back again. A hub lives here — it simply repeats every signal out of every port, with no decisions at all.
Layer 2, the Data Link layer, organizes those bits into frames and delivers them across a single local network. This is the layer of MAC addresses — the hardware address burned into every network card — and of switches, which read the destination MAC address in each frame and forward it only to the right port. Ethernet and Wi-Fi both live at Layer 2. When two devices on the same network need to find each other, ARP (Address Resolution Protocol) does the translation — it works at the boundary between Layers 2 and 3, using a Layer 2 broadcast to resolve a Layer 3 IP address into a Layer 2 MAC address.
Layers 3–4: getting data across networks, reliably
Layer 3, the Network layer, is where logical addressing and routing happen. Every device gets an IP address, and routers use those addresses to choose a path across networks — your home router sending a packet out to the internet is a Layer 3 job. The protocols you meet here are IP itself, ICMP (the protocol behind the ping command), and routing protocols like OSPF and BGP. If the destination is on a different network, Layer 3 is what gets the packet there.
Layer 4, the Transport layer, handles delivery between the two endpoints. It chops data into segments and offers two very different services. TCP is the careful one: it numbers segments, checks they all arrive, and resends anything that goes missing — which is why file downloads and web pages use it. UDP is the fast one: it sends datagrams with no delivery guarantee and no retransmission — which is why live video and voice calls use it, where speed matters more than perfection. DNS lookups usually travel over UDP too, although TCP handles zone transfers and replies too large for UDP. Port numbers live at this layer, too: port 443 for HTTPS, port 53 for DNS, port 25 for SMTP. A port number is how the receiving computer knows which application a segment belongs to.
Layers 5–7: the conversation, the format, and the app
The top three layers are where data becomes something a person can use. Layer 5, the Session layer, sets up, manages, and tears down the conversation between two applications — including checkpoints, so a long transfer can resume where it stopped instead of starting over. Protocols like NetBIOS, RPC, and PPTP operate here. Watch out for SIP: despite the word "Session" in its name, the Session Initiation Protocol is an application-layer protocol (RFC 3261), so it belongs at Layer 7.
Layer 6, the Presentation layer, worries about how data is represented: translating character encodings, compressing data, and encrypting it. When a browser negotiates TLS to turn HTTP into HTTPS, that encryption work is the Presentation layer's job in the OSI model — which is why exam materials place TLS/SSL at Layer 6. (In the TCP/IP model the same TLS session sits inside the Application layer, so you will see it described both ways; for CompTIA and Cisco exams, answer Layer 6.)
Layer 7, the Application layer, is the layer you actually touch: the protocols that applications speak, like HTTP for web pages, DNS for name lookups, SMTP for sending email, FTP for file transfers, and SIP for setting up voice and video calls. Note the trap here: Layer 7 is not the application itself — your browser is software, not a layer. Layer 7 is the set of rules the browser uses to talk to a web server.
Encapsulation: how data travels down the stack
When you send a message, it travels down the layers on your computer and back up them on the other side. At each layer, a header is added — a process called encapsulation. The piece of data gets a new name at each step: at Layers 5–7 it is just data; Layer 4 turns it into a segment (TCP) or datagram (UDP); Layer 3 wraps it into a packet with source and destination IP addresses; Layer 2 wraps that into a frame with MAC addresses; and Layer 1 sends it as bits. On the receiving side, each layer strips off its own header and passes the rest up. Exam questions love this vocabulary: if a question says "packet," it means Layer 3; "frame" means Layer 2; "segment" means Layer 4.
OSI vs TCP/IP: why two models?
Real networks run on TCP/IP, not OSI. The TCP/IP model has only four layers: Application (covering OSI's 5, 6, and 7), Transport, Internet (OSI's Network layer), and Link (OSI's Data Link and Physical layers). OSI survives because it is a better teaching and troubleshooting tool — seven small jobs are easier to reason about than four big ones — and because it gives every vendor and every exam a common vocabulary. You need to know both models and how they map to each other.
Troubleshooting by layer
The OSI model earns its keep when something breaks. Work through the layers from the bottom up:
- Layer 1: Is the cable plugged in? Is the link light on? Is the Wi-Fi radio turned on? No link light means a physical problem.
- Layer 2: Is the device getting a MAC address on the switch? Is the switch port up? A wrong VLAN or a bad cable that links but corrupts frames lives here.
- Layer 3: Can you ping the default gateway? A wrong IP address or subnet mask, or a missing route, is a Layer 3 problem.
- Layer 4: Does the service answer on its port? A blocked port or a service that is not listening is a Layer 4 problem.
- Layer 7: Can you reach the site by IP address but not by name? That points at DNS — a Layer 7 problem — not at the network itself.
This bottom-up habit is exactly what exam troubleshooting questions test: a symptom that fits one layer and rules out the others.
Exam connection
The OSI model appears on nearly every networking exam CertCrack covers. CompTIA A+ Core 1 (220-1201) tests the layers and which devices and protocols sit on each. CompTIA Network+ N10-009 puts it in Domain 1, Networking Concepts, and builds troubleshooting questions on it. Cisco's CCNA 200-301 asks you to map protocols and devices to layers and to compare OSI with TCP/IP. Security+ SY0-701 uses the model to place security controls — a firewall can filter at Layers 3 and 4, and a next-generation firewall inspects traffic up at Layer 7. The favorite exam traps are device placement (hub = Layer 1, switch = Layer 2, router = Layer 3), the PDU names (segment, packet, frame), and that TLS/SSL is the classic Layer 6 example, while the HTTP traffic it protects is Layer 7.
Takeaway
You do not need to love the OSI model, and you do not need to believe any network literally implements it. You need to be able to list the seven layers in order, name one protocol and one device per layer, and use the layers to narrow down a fault. Learn the mnemonic, learn the PDU names, and practice sorting protocols — HTTP, TCP, IP, Ethernet, TLS — into their layers until it is automatic. That one skill pays off on A+, Network+, CCNA, and Security+ alike.
FAQ
Do I need to memorize all seven layers for the exam? Yes — in order, both directions. Exam questions routinely ask which layer a protocol or device belongs to, and you cannot reason your way there without the list. A mnemonic gets you there in minutes.
Is the OSI model actually used in real networks? Not as a protocol stack — real networks run TCP/IP. But engineers, vendors, and exam writers all use OSI as a shared map of the problem. When someone says "that's a Layer 3 issue," everyone in the room knows what that means.
Which layer does a firewall work at? It depends on the firewall. A basic packet-filtering firewall works at Layers 3 and 4, filtering on IP addresses and port numbers. A next-generation firewall also inspects traffic at Layer 7, looking inside the application data. A web application firewall (WAF) is a Layer 7 device.
Ready to prove it?
Reading about IT is a start. CertCrack practice exams for A+, Network+, CCNA, and Security+ test you the way the real exam does — with explanations for every answer.
Try a Free Sample Quiz