CompTIA Network+ OSI Model: Free Practice Questions + Study Guide
In This Guide
What is the OSI Model?
The Open Systems Interconnection (OSI) model is a conceptual framework standardized by the International Organization for Standardization (ISO) that describes how data moves through a network. It divides network communication into seven distinct layers, each with a specific set of responsibilities, making it easier to understand, design, and troubleshoot complex network systems.
The OSI model is a reference model - it does not define specific protocols but rather provides a universal language for describing network functions. It is the foundation of the CompTIA Network+ certification and virtually every networking course and exam in existence. Whether you are configuring a switch, debugging a DNS issue, or analyzing a packet capture, the OSI model gives you a structured way to think about the problem.
A popular mnemonic for remembering the seven layers from bottom (Layer 1) to top (Layer 7) is: “Please Do Not Throw Sausage Pizza Away” - Physical, Data Link, Network, Transport, Session, Presentation, Application.
The 7 Layers Explained
Each layer of the OSI model serves a distinct purpose and communicates only with the layers directly above and below it. Here is a complete breakdown of all seven layers, including their Protocol Data Unit (PDU), common protocols, and associated devices:
| Layer | Name | PDU | Protocols / Examples | Devices |
|---|---|---|---|---|
| 7 | Application | Data | HTTP, FTP, SMTP, DNS, DHCP | Firewall (L7) |
| 6 | Presentation | Data | SSL/TLS, JPEG, ASCII, MPEG | - |
| 5 | Session | Data | NetBIOS, PPTP, RPC, SIP | - |
| 4 | Transport | Segment / Datagram | TCP, UDP | Load balancer |
| 3 | Network | Packet | IP, ICMP, OSPF, ARP | Router |
| 2 | Data Link | Frame | Ethernet, Wi-Fi, PPP | Switch, Bridge |
| 1 | Physical | Bit | Cables, connectors, hubs | Hub, Repeater |
Layer 7 - Application
The Application layer is the closest layer to the end user. It provides network services directly to user applications such as web browsers, email clients, and file transfer utilities. Protocols like HTTP, FTP, SMTP, DNS, and DHCP operate here. This layer does not refer to the applications themselves, but rather the protocols and services that applications rely on to communicate over the network.
Layer 6 - Presentation
The Presentation layer is responsible for data translation, encryption, and compression. It ensures that data sent by the Application layer of one system can be read by the Application layer of another system. SSL/TLS encryption, character encoding (ASCII, Unicode), and media formats (JPEG, MPEG) operate at this layer. Think of it as the translator that converts data into a universally understood format.
Layer 5 - Session
The Session layer manages sessions (connections) between applications. It establishes, maintains, and terminates communication sessions, handling authentication and reconnection if a session is interrupted. Protocols like NetBIOS, PPTP, RPC, and SIP manage session-level communication. This layer controls the dialog between two nodes, determining whether communication is half-duplex or full-duplex.
Layer 4 - Transport
The Transport layer provides end-to-end communication between hosts, ensuring reliable (TCP) or best-effort (UDP) data delivery. TCP provides connection-oriented communication with error checking, flow control, and sequencing. UDP provides connectionless, faster communication without guaranteed delivery. The PDU at this layer is a segment (TCP) or datagram (UDP). Port numbers are defined at this layer, enabling multiplexing of multiple applications on a single host.
Layer 3 - Network
The Network layer handles logical addressing and routing. IP addresses are assigned at this layer, and routers use them to determine the best path for forwarding packets across different networks. Protocols like IP, ICMP (used by ping and traceroute), OSPF (routing protocol), and ARP (resolving IP to MAC addresses) operate here. The PDU is a packet.
Layer 2 - Data Link
The Data Link layer provides node-to-node data transfer on the same local network segment. It handles MAC addressing, frame creation, error detection (via CRC), and media access control. Ethernet (802.3) and Wi-Fi (802.11) are the most common Layer 2 protocols. Switches and bridges operate at this layer, forwarding frames based on MAC addresses. The PDU is a frame.
Layer 1 - Physical
The Physical layer deals with the raw transmission of bits over a physical medium. This includes cables (copper, fiber optic), connectors (RJ-45, LC, SC), radio frequencies (wireless), and signaling methods. Hubs and repeaters operate at Layer 1, as they simply amplify or regenerate electrical signals without examining the data content. The PDU is a bit.
Data Encapsulation
Encapsulation is the process by which data is wrapped with protocol information as it moves down through the OSI layers from the Application layer to the Physical layer. Each layer adds its own header (and in some cases a trailer) to the data received from the layer above, creating the Protocol Data Unit (PDU) for that layer.
Here is the encapsulation process as data flows from sender to receiver:
- Application / Presentation / Session (Layers 7-5) - generate the Data
- Transport (Layer 4) - adds a TCP or UDP header to create a Segment (TCP) or Datagram (UDP)
- Network (Layer 3) - adds an IP header (source and destination IP addresses) to create a Packet
- Data Link (Layer 2) - adds a frame header (source and destination MAC addresses) and a trailer (FCS for error detection) to create a Frame
- Physical (Layer 1) - converts the frame into Bits (electrical signals, light pulses, or radio waves) for transmission
On the receiving end, the process is reversed through de-encapsulation: each layer strips its own header, extracts the payload, and passes it up to the next layer until the original application data is delivered to the receiving application.
OSI vs TCP/IP Model
While the OSI model is a 7-layer reference framework, the TCP/IP model (also called the Internet model or DoD model) is a 4-layer practical model that reflects how the internet actually works. The Network+ exam expects you to understand both models and how they map to each other.
| OSI Model (7 Layers) | TCP/IP Model (4 Layers) | Key Protocols |
|---|---|---|
| Application (L7) | Application | HTTP, FTP, SMTP, DNS, DHCP, SSH, SNMP |
| Presentation (L6) | ||
| Session (L5) | ||
| Transport (L4) | Transport | TCP, UDP |
| Network (L3) | Internet | IP, ICMP, ARP, OSPF |
| Data Link (L2) | Network Access | Ethernet, Wi-Fi, PPP, cables |
| Physical (L1) |
The key differences to understand:
- The TCP/IP model combines OSI Layers 5, 6, and 7 into a single Application layer, since most real-world protocols do not strictly separate session, presentation, and application functions
- The TCP/IP model combines OSI Layers 1 and 2 into a single Network Access (or Link) layer
- The Transport layer is functionally equivalent in both models
- The TCP/IP Internet layer maps directly to the OSI Network layer (Layer 3)
- The OSI model is primarily used for teaching and troubleshooting; the TCP/IP model describes how protocols actually operate on the internet
Troubleshooting by Layer
One of the most practical applications of the OSI model is systematic network troubleshooting. The recommended approach is the bottom-up method: start at Layer 1 and work your way up. This ensures you rule out the simplest, most common issues first before investigating more complex problems.
Layer 1 - Physical
- Check cables for damage, loose connections, or incorrect pinouts
- Verify link lights on switches, routers, and NICs are active
- Test with a cable tester or try a known-good cable
- Confirm the correct cable type (straight-through vs. crossover, Cat5e vs. Cat6)
Layer 2 - Data Link
- Verify MAC address tables on switches (
show mac address-table) - Check for VLAN misconfigurations or trunk port issues
- Verify ARP resolution (
arp -aorshow arp) - Look for duplex/speed mismatches on interfaces
Layer 3 - Network
- Verify IP addressing, subnet masks, and default gateways
- Use
pingto test Layer 3 connectivity to local and remote hosts - Use
traceroute/tracertto identify where routing fails - Check routing tables (
show ip route) for missing or incorrect routes
Layer 4 - Transport
- Verify the correct port numbers are open and listening (
netstat -an) - Check firewall rules that may be blocking specific TCP or UDP ports
- Test connectivity to specific ports using
telnetorTest-NetConnection - Review ACLs (Access Control Lists) that may filter traffic
Layer 7 - Application
- Verify application configuration settings (URLs, server addresses, credentials)
- Test DNS resolution with
nslookupordig - Check service status and logs on the application server
- Confirm the application service is running and bound to the correct port
Get the Complete CompTIA Network+ Study Guide
When you purchase a CompTIA Network+ practice exam, you get full access to our comprehensive study guides covering every exam topic in depth - not just the free samples here.
Want to go deeper?
CompTIA Network+ OSI Model Practice Questions
Test your understanding with these 5 expert-created questions. Each includes a detailed explanation to reinforce your learning.
Ready for More?
You've just covered OSI Model. Here's how to keep preparing for your CompTIA Network+:
Frequently Asked Questions
Is the OSI model heavily tested on the Network+ exam?
Yes, the OSI model is one of the most foundational topics on the CompTIA Network+ N10-009 exam. It underpins nearly every domain - from networking concepts and infrastructure to network troubleshooting and security. Expect questions that ask you to identify which layer a protocol operates at, match devices to layers, and apply the OSI model to troubleshooting scenarios. Understanding each layer's function and associated protocols is essential for passing the exam.
What's the difference between the OSI and TCP/IP models?
The OSI model has 7 layers and is primarily a theoretical reference model used for understanding and teaching network communication. The TCP/IP model has 4 layers (Application, Transport, Internet, and Network Access) and is the practical model used by the internet and modern networks. The TCP/IP Application layer combines OSI layers 5-7, the Internet layer maps to OSI layer 3, and the Network Access layer combines OSI layers 1-2. The Transport layer is functionally equivalent in both models.
Do I need to memorize all protocols for each layer?
You don't need to memorize every protocol ever created, but you should know the key protocols for each layer that appear on the Network+ exam. Focus on: Layer 7 (HTTP, HTTPS, FTP, SMTP, DNS, DHCP, SNMP), Layer 6 (SSL/TLS, JPEG, ASCII), Layer 5 (NetBIOS, RPC), Layer 4 (TCP, UDP), Layer 3 (IP, ICMP, OSPF, ARP), Layer 2 (Ethernet, Wi-Fi/802.11, PPP), and Layer 1 (cables, connectors). Understanding what each protocol does and why it belongs at that layer is more important than rote memorization.
How does understanding the OSI model help with troubleshooting?
The OSI model provides a systematic framework for network troubleshooting. Using the bottom-up approach, you start at Layer 1 (check cables, link lights, physical connections), then Layer 2 (verify MAC addresses, switch port status, ARP tables), Layer 3 (confirm IP addressing, routing, ping tests), Layer 4 (check port numbers, firewall rules, TCP connections), and up to Layer 7 (application configuration, DNS resolution). This methodical approach prevents you from guessing and ensures you isolate the exact layer where the problem occurs, saving significant time in real-world and exam scenarios.