What Is Open Systems Interconnection in Networking?
Also known as: OSI model, Open Systems Interconnection, seven layers of OSI, OSI model explained, OSI model for CCNA
This page mentions older exam versions. See the Current Exam Context and Legacy Exam Context sections below for the updated mapping.
On This Page
Quick Definition
The OSI model is a way of thinking about network communication. It breaks the process into seven layers, from the physical cable all the way up to the application you use. Each layer has a specific job, like making sure data is formatted correctly or that it reaches the right device. This helps engineers design and troubleshoot networks more easily.
Must Know for Exams
The OSI model is a staple of entry-level networking certification exams. In CompTIA Network+ (N10-008 or N10-009), candidates must know the seven layers, their order, and the protocols and devices that operate at each layer. Exam objectives explicitly list the OSI model as a foundational concept.
You may be asked to map a given protocol, such as IPsec, to its correct layer. Questions often require you to identify which layer is responsible for a specific function, like routing or error checking. In Cisco CCNA (200-301), the OSI model is assumed knowledge, but it appears in questions about encapsulation, decapsulation, and troubleshooting.
CCNA scenarios might ask you to determine the layer at which a problem occurs based on symptoms. For example, if a ping from host A to host B fails but the link lights are on, a CCNA question might expect you to deduce it is a Layer 3 issue. CompTIA A+ also touches on the OSI model in its networking objectives, though it is less detailed than Network+.
In the A+ 220-1101 exam, you need to know the basic function of each layer and common devices like hubs (Layer 1), switches (Layer 2), and routers (Layer 3). The OSI model is also a common tool for troubleshooting questions. Exams ask you to describe the layers you would check first when diagnosing a connectivity problem.
Many exam questions present a scenario, such as a user unable to print over the network, and ask for the most likely layer where the issue resides. Understanding the model allows you to reason through symptoms systematically. Memorizing the mnemonic Please Do Not Throw Sausage Pizza Away (Physical, Data Link, Network, Transport, Session, Presentation, Application) is a common study tactic.
The model is also tested in the context of the TCP/IP model, where you need to know the mapping between the two. Expect to see at least two to four questions on the OSI model on Network+ and potentially up to six on CCNA.
Simple Meaning
Imagine you are mailing a letter to a friend in another country. The whole process, from writing the letter to your friend reading it, involves many steps. The OSI model is like a checklist that describes each of those steps in a standard way.
It divides the complex job of network communication into seven smaller, more manageable pieces called layers. Think of these layers as a stack of seven trays on a desk. Each tray handles a different part of the job.
The bottom tray, Layer 1, deals with the physical stuff, like the wires and the electrical signals. The top tray, Layer 7, is what you interact with, like your web browser or email program. The layers in between take care of things like addressing, making sure data is error-free, and establishing a connection.
When you send data, it moves down the stack from Layer 7 to Layer 1. At each layer, a header or trailer is added with instructions for that layer. When the data is received, it moves up the stack, and each layer strips off its instructions until the original data is delivered to the application.
This layered approach means that if a problem occurs, you can isolate it to a specific layer, which makes troubleshooting much faster. For example, a broken cable is a Layer 1 issue, while a wrong password is a Layer 7 issue. The OSI model is a theoretical model that helps us communicate about networks, but the real-world internet uses a simpler model called TCP/IP, which has four layers.
However, understanding the OSI model is still essential for many IT certification exams because it provides a detailed vocabulary for discussing network functions. It is a foundational concept that helps beginners grasp the complexity of network communication without getting lost in the details of any single technology.
Full Technical Definition
The Open Systems Interconnection (OSI) model is a seven-layer conceptual model developed by the International Organization for Standardization (ISO) in 1984. It standardizes the functions of a telecommunication or computing system into seven abstraction layers. Each layer serves the layer above it and is served by the layer below it.
The layers are: Physical (Layer 1), Data Link (Layer 2), Network (Layer 3), Transport (Layer 4), Session (Layer 5), Presentation (Layer 6), and Application (Layer 7). Layer 1, the Physical layer, defines the electrical, mechanical, and procedural specifications for activating, maintaining, and deactivating the physical link between end systems. This includes cable types, connector pinouts, voltage levels, and data rates.
Layer 2, the Data Link layer, provides node-to-node data transfer and error detection and correction. It packages raw bits from Layer 1 into frames. This layer contains two sublayers: Logical Link Control (LLC) and Media Access Control (MAC).
MAC addresses operate at this layer. Layer 3, the Network layer, handles routing and forwarding of data packets across interconnected networks. Routers operate at this layer, and logical addressing, such as IP addresses, is implemented here.
Layer 4, the Transport layer, provides transparent transfer of data between end users. It segments data from upper layers and manages flow control and error recovery. TCP and UDP are key protocols here.
Layer 5, the Session layer, establishes, manages, and terminates sessions between applications. It handles dialog control, token management, and synchronization. Layer 6, the Presentation layer, translates data between the application layer and the network format.
It handles data encryption, compression, and conversion, such as from ASCII to EBCDIC. Layer 7, the Application layer, is the closest to the end user. It provides network services to applications, such as file transfer, email, and web browsing.
HTTP, FTP, and SMTP function at this layer. In real implementation, the TCP/IP model collapses these seven layers into four: Application (combining OSI Layers 5-7), Transport (Layer 4), Internet (Layer 3), and Network Access (Layers 1 and 2). Despite this, the OSI model remains vital for certification exams like CompTIA Network+ and Cisco CCNA, as it offers a granular framework for discussing network architecture and troubleshooting methodologies.
Real-Life Example
Think of the OSI model as the process of ordering a pizza over the phone. Layer 7, the Application layer, is you deciding you want a pizza and picking up the phone to call the pizzeria. Layer 6, the Presentation layer, is like speaking the same language and agreeing on the terms, such as pepperoni and a large size.
It ensures your request is formatted in a way the pizzeria can understand. Layer 5, the Session layer, is the actual phone conversation. You say hello, the person on the other end answers, and you talk until the order is placed and you say goodbye.
Layer 4, the Transport layer, is the delivery driver. The driver ensures that your pizza arrives in one piece and at the correct address. If the pizza is dropped, the driver would go back and get a new one, like error checking and retransmission.
Layer 3, the Network layer, is the address on the box and the route the driver takes. The address includes the street number, city, and zip code. The driver uses a map to find the best path from the pizzeria to your house.
Layer 2, the Data Link layer, is the neighborhood in that city. The driver knows that within your neighborhood, each house has a specific number. It is the local delivery system that gets the pizza from the edge of the neighborhood to your specific door.
Layer 1, the Physical layer, is the actual pizza box, the road, and the driver's car. The box protects the pizza, the road provides the path, and the car moves the box. Without any of these physical elements, the pizza cannot be delivered.
This step-by-step mapping makes it easier to see how each layer contributes to the final goal of getting the pizza to your table. If the pizza is late, you can check if the car broke down (Layer 1), if the driver got lost (Layer 3), or if you gave the wrong address (Layer 6). The OSI model works the same way for network data.
Why This Term Matters
The OSI model matters because it provides a universal language for network professionals. When a network engineer says they have a Layer 2 problem, everyone knows they are talking about issues with switches, MAC addresses, or frame errors, not routing or application problems. This shared vocabulary is critical in real IT work, from help desk troubleshooting to designing enterprise networks.
In practical networking, understanding the OSI model helps technicians quickly isolate faults. For example, if a user cannot access a website, a technician can systematically test each layer. Is the cable plugged in (Layer 1)?
Is the link light on (Layer 1)? Can you ping the router (Layer 3)? Does the DNS resolve (Layer 7)? This layered approach saves time and prevents random, guesswork-based fixes. In cybersecurity, the OSI model is used to identify where attacks occur.
A MAC flooding attack targets Layer 2, a SYN flood targets Layer 4, and a phishing email targets Layer 7. Security controls, like firewalls, operate at specific layers. A packet-filtering firewall works at Layer 3 and 4, while an application firewall works at Layer 7.
Cloud infrastructure also relies on this model. Virtual LANs (VLANs) operate at Layer 2, and routing between subnets happens at Layer 3. Even software-defined networking (SDN) separates the control plane from the data plane, which directly relates to layer separation.
For system administrators, the OSI model helps when configuring network services. Setting up a web server requires ensuring that TCP port 80 (Layer 4) is open, that the server has a valid IP address (Layer 3), and that the HTTP service (Layer 7) is running. Without the OSI model, these concepts would be muddled and harder to teach or document.
It is the backbone of modern network theory and practice.
How It Appears in Exam Questions
The OSI model appears in certification exams in several distinct types of questions. The most straightforward are identification questions, where you must name a layer given a description or a function. For example: Which OSI layer is responsible for routing packets across networks?
The answer is Layer 3. Another common type is the protocol-to-layer mapping question. The question might state: At which layer of the OSI model does TCP operate? The answer is Layer 4.
Scenario-based questions are very frequent. A typical Network+ question might read: A user reports they cannot connect to the internet. The technician checks the network cable and sees that the link light is off.
Which layer of the OSI model is most likely the source of the problem? The answer is Layer 1, Physical. Troubleshooting questions often present a symptom and ask you to choose the correct layer to investigate first.
For instance: A workstation can ping its own IP address but cannot ping the default gateway. At which layer should the technician begin troubleshooting? The answer is Layer 3, Network.
Configuration questions appear in CCNA exams. For example: A network administrator is configuring a switch port and needs to ensure that frames are forwarded based on MAC addresses. This function is performed at which OSI layer?
The answer is Layer 2, Data Link. Architecture questions ask about the relationship between the OSI model and the TCP/IP model. A question might say: Which OSI layer is equivalent to the Internet layer in the TCP/IP model?
The answer is Layer 3. You may also see questions that require you to identify the protocol data unit (PDU) at a given layer, such as: What is the term for the data unit at the Transport layer? The answer is segment.
Some exams include negative questions, such as: At which OSI layer does a hub operate? Incorrect answers might include Layer 2 or Layer 3. The correct answer is Layer 1. The OSI model is also used in multi-layer troubleshooting scenarios.
A question might list multiple symptoms and ask you to identify the layer that best explains all of them. Finally, some questions test your ability to order the layers. You might be given a list of layer names and asked to put them in the correct sequence from top to bottom.
Practise Open Systems Interconnection Questions
Test your understanding with exam-style practice questions.
Example Scenario
A small company uses a central file server to store documents. One morning, an employee, Maria, reports that she cannot open a shared folder on the server. She is able to see the folder in the network list, but when she double-clicks it, the window freezes and eventually times out.
Another employee, John, in the same office, can access the shared folder without any issue. A technician arrives to troubleshoot. The technician first checks the physical connection.
Maria's link light is on, so Layer 1 looks good. Next, the technician checks the network configuration. He opens a command prompt on Maria's computer and types ipconfig. He sees that Maria has an IP address and a default gateway, so Layer 3 seems functional.
He then asks Maria to ping the file server's IP address. The ping is successful, so Layer 3 and Layer 4 are likely working, since ICMP and TCP both rely on lower layers. The technician then asks her to ping the file server by its hostname.
This fails, indicating a possible DNS issue at Layer 7. However, since John can access the file server by name, the DNS server is working. The technician then realizes that the problem might be at Layer 5, 6, or 7.
He checks the credentials Maria is using to connect to the file server. He notices that Maria is using an old password that was changed yesterday. The technician updates the saved credentials.
Maria is now able to open the shared folder. The problem was at Layer 7, the Application layer, because the authentication process failed. This scenario demonstrates how the technician used the OSI model to methodically eliminate lower layers before focusing on the application-level issue.
Common Mistakes
Memorizing the layers in the wrong order, such as reversing the Physical and Data Link layers.
The model is strictly ordered from bottom to top. Reversing them leads to confusion about which functions belong where, especially in troubleshooting.
Use a mnemonic device like Please Do Not Throw Sausage Pizza Away. Practice reciting them from bottom to top until it becomes automatic.
Thinking that the OSI model is the exact blueprint of the internet.
The OSI model is a conceptual framework, not an actual implementation. The real world uses the TCP/IP model, which has fewer layers. The OSI model is primarily used for teaching and troubleshooting.
Understand that the OSI model is a reference tool. When studying, always also learn how it maps to the TCP/IP model.
Confusing which protocol belongs to which layer, for example, saying TCP is a Network layer protocol.
TCP operates at the Transport layer (Layer 4), not the Network layer (Layer 3). The Network layer handles IP addressing and routing.
Create a flashcard for each layer with its associated protocols and devices. Review them daily. Focus on TCP and UDP for Layer 4, and IP and ICMP for Layer 3.
Assuming a switch only operates at Layer 2 without considering multilayer switches.
While a basic switch operates at Layer 2, a multilayer switch can perform routing at Layer 3 as well. The question context matters.
Learn the default functions of common devices: hub (Layer 1), switch (Layer 2), router (Layer 3), and firewall (Layers 3 and 4, sometimes Layer 7). Then learn about exceptions like multilayer switches.
Exam Trap — Don't Get Fooled
A question states: At which layer of the OSI model does a router operate? The options include Layer 1, Layer 2, Layer 3, and Layer 4. The trap is that a router can have physical and data link components, but its primary function is routing, which is a Layer 3 function.
Remember the primary networking device for each layer: Hub at Layer 1, Switch at Layer 2, Router at Layer 3. A router's main job is to make forwarding decisions based on IP addresses, which is a Layer 3 function.
Commonly Confused With
The TCP/IP model is the practical framework used on the internet. It has four layers (Application, Transport, Internet, Network Access) compared to the OSI model's seven. The OSI model is more theoretical and granular, while TCP/IP is the actual implementation standard.
When you browse a website, the data travels using the TCP/IP model. The OSI model would describe the same process in more steps, separating presentation and session functions, even though they are handled in a single application layer in TCP/IP.
Encapsulation is the process of adding headers and trailers to data as it moves down the OSI layers. It is not a layer itself but an action that happens at each layer. The OSI model describes the layers, while encapsulation describes the data's journey through them.
When you send an email, the email data is encapsulated at the Application layer, then a header is added at the Presentation layer, and so on. The OSI model is the structure, and encapsulation is the mechanism that uses that structure.
A PDU is the data unit at a specific layer, such as a frame at Layer 2 or a packet at Layer 3. The OSI model defines the layers, and the PDU is the specific form data takes at each of those layers. They are closely related but are not the same concept.
At the Network layer, the PDU is called a packet. At the Transport layer, the PDU is called a segment. The OSI model includes both layers, and each layer has its own PDU name.
Step-by-Step Breakdown
Application Layer (Layer 7)
This is where the user interacts with the network. Applications like web browsers, email clients, and file transfer programs initiate communication. The data at this layer is generic and not yet formatted for the network.
Presentation Layer (Layer 6)
This layer translates data from the application format into a network format. It handles encryption, compression, and character encoding conversion. It ensures that data from the sender can be understood by the receiver, regardless of their internal formats.
Session Layer (Layer 5)
This layer establishes, manages, and terminates a session between two communicating applications. It controls the dialog, determining who can transmit at a given time. It also inserts checkpoints to allow a session to resume from a failure, rather than starting over.
Transport Layer (Layer 4)
This layer provides end-to-end communication services. It segments the data from the upper layers into smaller units for the network. It is responsible for flow control, error checking, and reliable delivery. TCP and UDP operate here.
Network Layer (Layer 3)
This layer handles logical addressing and routing. It adds a header containing the source and destination IP addresses. Routers use this information to determine the best path through the network. The data unit at this layer is called a packet.
Data Link Layer (Layer 2)
This layer packages packets into frames and adds a header with MAC addresses for local network delivery. It also performs error detection using a trailer. Switches operate at this layer, forwarding frames based on MAC addresses.
Physical Layer (Layer 1)
This layer defines the physical and electrical specifications for transmitting raw bits over a medium. It includes cable types, connector shapes, voltage levels, and signal timing. Hubs and repeaters operate here. The data unit is a bit.
Practical Mini-Lesson
To understand the OSI model in practice, start by learning the layers in order from bottom to top: Physical, Data Link, Network, Transport, Session, Presentation, Application. A helpful memory aid is Please Do Not Throw Sausage Pizza Away. Focus on the bottom four layers first, as they are most frequently tested and used in real-world troubleshooting.
For Layer 1, know that this is all about cabling, connectors, and electrical signals. Common issues include damaged cables, incorrect pinouts, and link light indicators. Tools like cable testers and time-domain reflectometers operate at this layer.
For Layer 2, learn about MAC addresses and switches. Understand how a switch builds its MAC address table and forwards frames. Know the difference between a collision domain and broadcast domain.
Spanning Tree Protocol operates here to prevent loops. For Layer 3, focus on IP addressing, subnets, and routing. Understand how routers use routing tables to forward packets. Know the difference between static and dynamic routing.
Protocols like OSPF and BGP work at this layer. For Layer 4, understand TCP and UDP. Know that TCP provides reliable, connection-oriented communication with error checking and flow control, while UDP is connectionless and faster but less reliable.
Memorize the port numbers for common services like HTTP (80), HTTPS (443), FTP (20, 21), and SSH (22). Professional practice involves using the OSI model as a troubleshooting framework. When a user reports a problem, start at Layer 1 by checking physical connections.
Then move to Layer 2 by checking switch ports and VLAN configurations. Then Layer 3 by verifying IP addresses and routing. Then Layer 4 by checking firewall rules and port availability.
Finally, check Layers 5 through 7 by verifying application settings and credentials. In security, use the model to classify threats. A denial-of-service attack that floods a switch with MAC addresses is a Layer 2 attack.
A SYN flood is a Layer 4 attack. A SQL injection is a Layer 7 attack. Configure firewalls to filter at appropriate layers. Use access control lists at Layer 3 and 4, and use web application firewalls at Layer 7.
When studying for exams, practice mapping every new protocol you learn to its correct OSI layer. This habit deepens your understanding. The OSI model is not just an exam topic; it is a mental model that will serve you throughout your career.
It helps you communicate with peers, write documentation, and solve problems efficiently. As you advance, you will naturally start thinking in layers, making you a more effective IT professional.
Memory Tip
Use the mnemonic Please Do Not Throw Sausage Pizza Away to remember the layers from bottom to top: Physical, Data Link, Network, Transport, Session, Presentation, Application.
Covered in These Exams
Current Exam Context
Current exam versions that test this topic — use these objectives when studying.
N10-009CompTIA Network+ →200-301Cisco CCNA →220-1101CompTIA A+ Core 1 →220-1101CompTIA A+ Core 1 →PCAGoogle PCA →Legacy Exam Context
Older materials may mention these exam versions, but learners should use the current objectives for their target exam.
N10-008N10-009(current version)Related Glossary Terms
802.1Q is the networking standard that allows multiple virtual LANs (VLANs) to share a single physical network link by tagging Ethernet frames with VLAN identification information.
802.1X is a network access control standard that authenticates devices before they are allowed to connect to a wired or wireless network.
5G is the fifth generation of cellular network technology, designed to deliver faster speeds, lower latency, and support for many more connected devices than previous generations.
An A record is a DNS record that maps a domain name to the IPv4 address of the server hosting that domain.
Frequently Asked Questions
Do I need to memorize all seven layers of the OSI model for the Network+ exam?
Yes. You must know the order, names, and basic functions of all seven layers. You also need to know which protocols and devices operate at each layer.
Is the OSI model used on the internet?
Not directly. The internet uses the TCP/IP model, which has four layers. The OSI model is a conceptual tool used for teaching, troubleshooting, and documentation.
What is the most common mistake people make about the OSI model?
Confusing which protocol or device belongs to which layer. For example, thinking that routers operate at Layer 2 or that switches operate at Layer 3.
Why is the OSI model important for troubleshooting?
It provides a systematic way to isolate problems. By checking one layer at a time, you can quickly identify where the fault lies without guessing.
What is the difference between Layer 2 and Layer 3 in the OSI model?
Layer 2 (Data Link) handles local network delivery using MAC addresses. Layer 3 (Network) handles routing across networks using IP addresses.
Can a device operate at multiple layers of the OSI model?
Yes. For example, a multilayer switch can operate at both Layer 2 and Layer 3. A firewall can operate at Layers 3, 4, and sometimes Layer 7.
Summary
The Open Systems Interconnection (OSI) model is a seven-layer conceptual framework that standardizes network communication. It divides the complex process of data transmission into manageable layers: Physical, Data Link, Network, Transport, Session, Presentation, and Application. Each layer has a specific role, from the physical transmission of bits over a cable to the application interface that users interact with.
While the internet uses the more streamlined TCP/IP model, the OSI model remains indispensable for IT certification exams like CompTIA Network+, Cisco CCNA, and CompTIA A+. It provides a precise vocabulary for discussing network functions, a systematic method for troubleshooting connectivity issues, and a way to classify security threats. Beginners should focus on memorizing the layer order, their functions, and common protocols and devices associated with each.
Using mnemonics and practicing with scenario-based questions will reinforce understanding. Mastering the OSI model is a foundational step for any aspiring network professional or IT specialist, as it builds the mental framework necessary for more advanced networking, security, and cloud concepts. Remember to use it as a tool, not as a rigid blueprint, and you will find it valuable throughout your career.