What is the OSI Model? The 7 Layers Explained

Understanding the OSI Model

The Open Systems Interconnection (OSI) model is a conceptual framework that divides network communication into seven abstract layers, providing a standardized approach for different computer systems, applications and network devices to communicate across networks.

Developed by the International Organization for Standardization (ISO), the OSI model emerged as a solution to communication incompatibilities between diverse networking protocols. It gives developers and engineers a categorical approach to building interoperable hardware and software for computer networking.
At each layer of the stack, the model provides guidelines for network components and their computing functions, defining how data flows from physical transmission to application interfaces.

The seven layers of the OSI model

The OSI model provides tasks for engineers to complete in building each layer of network architecture. This theoretical approach enables developers to visualize and build complex networks even without prior knowledge of networking systems. Although not the direct basis for modern networking technologies, it profoundly impacted computing standards development and shaped contemporary understanding of how networks function.

Why ISO developed the OSI model

In the late 1970s, computer systems were increasingly interconnected, but manufacturers developed proprietary networking solutions, creating non-interoperable systems that locked organizations into single-vendor ecosystems.

Early efforts like ARPANET and the TCP/IP protocol suite made progress but highlighted the need for a universal framework. In 1984, ISO published the OSI model. Its layered configuration enables disparate systems to communicate despite differences in underlying architectures and protocols.

The OSI model remains integral to understanding network architecture. Whether designing a local area network (LAN) or managing complex global networks, it provides a clear, structured approach.

The three categories of OSI layers

Data moves bidirectionally through these layers, with each layer communicating with the layers above and below it.

Data flow example

Email transmission example: When you send an email, data traverses all seven layers: 

At the receiving end, the process reverses: the physical layer receives bits, layers process them upward, and the email arrives in the recipient's inbox.

The seven layers of the OSI model

Layer 7: The application layer

The application layer is the OSI layer closest to end users. It provides network services directly to user applications and facilitates communication between software and lower layers. The application layer enables applications like web browsers, email clients and file transfer programs to initiate network communication.

Applications themselves aren't part of this layer. Rather, the application layer provides the protocols that enable software to send and receive data.

Key protocols:

Key functions

Layer 6: The Presentation Layer

The presentation layer transforms data into formats the application layer can process, acting as the data translator between systems with different data representation methods. It's sometimes called the "syntax layer" for converting data and graphics into displayable formats.

Key functions

The presentation layer ensures seamless data transfer across systems with different architectures by handling all format conversions transparently.

Layer 5: The Session Layer

The session layer manages communication sessions between nodes, handling establishment, maintenance and termination of connections. The session layer keeps connections open long enough to transmit necessary data, then closes them to preserve network resources.

Key functions

The session layer is explicitly implemented in network environments utilizing remote procedure calls and is critical for applications requiring persistent connections like web conferencing, where it establishes protocols for connecting audio and video streams. 

Common protocols

Layer 4: The transport layer

The transport layer ensures reliable end-to-end data delivery between hosts across networks. As the heart of the OSI Model, it receives data from the session layer, breaks it into segments or datagrams, and manages reliable delivery to destination nodes. 

Key functions

The transport layer provides two types of service: 

Layer 3: The network layer

The network layer manages data transmission between multiple networks, enabling internetworking. It uses routers and layer 3 switches with IPv4 (32-bit addresses) and IPv6 (128-bit addresses) protocols to route data across different networks. 

The network layer allows nodes with unique IP addresses to send messages to nodes on different networks, determining the best path through intermediate networks and nodes. 

Key functions:

The network layer uses IP addresses to route data between nodes on different networks. Supporting protocols include ICMP (Internet Control Message Protocol) for error reporting and network diagnostics, and IGMP (Internet Group Management Protocol) for multicast communication. 

Reliability isn't guaranteed at the network layer—while many protocols offer reliable message delivery, error reporting isn't mandatory, so senders may not receive delivery confirmation.

Layer 2: The data link layer

The data link layer manages error-free data transfer between devices on the same local network segment. This layer receives packets from the network layer and organizes them into frames for transmission across the physical medium. 

Two sublayers

Key functions

The data link layer ensures reliable frame delivery between directly connected nodes on the same network segment. Technologies include Ethernet (IEEE 802.3), Wi-Fi (IEEE 802.11), Point-to-Point Protocol (PPP), HDLC (High-Level Data Link Control), and ARP (Address Resolution Protocol) for mapping IP addresses to MAC addresses.

Layer 1: The physical layer

The physical layer comprises the physical network components that transmit raw data as bits between devices across physical media—using electrical signals, optical signals or electromagnetic signals through physical infrastructure. 

This is where troubleshooting often begins. The physical layer includes hardware for data transmission: copper cables (twisted pair, coaxial), fiber optic cables, radio frequencies for wireless, network interface cards, routers, repeaters and hubs. 

Key functions

The physical layer handles all network communications at the bit level. When troubleshooting connectivity issues, network technicians start here: check cables for damage, verify link lights on network devices, test signal strength, and verify power to equipment. 

OSI model vs. TCP/IP model

The OSI Model provides theoretical underpinning for understanding network communication, while the TCP/IP (Transmission Control Protocol/Internet Protocol) model offers practical implementation with four layers instead of seven. 

The TCP/IP model's practical focus made it the backbone of modern networking, accommodating billions of devices and massive data traffic. However, the OSI Model's layered approach enables modular protocol development where each layer can be developed independently, making it invaluable for understanding network architecture and troubleshooting network problems. 

Why the OSI Model matters

Systematic troubleshooting

The OSI Model provides a methodical framework for diagnosing network problems. Network technicians check each layer—physical layer for connectivity, data link layer for frame errors, network layer for routing problems, transport layer for segment delivery, and upper layers for application errors—quickly identifying whether issues stem from hardware, configuration or software. 

Modular protocol development

The layered network architecture enables engineers to create protocols for one layer without modifying others. Application developers don't need to understand physical transmission details; hardware engineers don't need to modify application protocols. 

Standardized communication

The model provides common terminology across organizations. When engineers discuss "Layer 3 routing issues" or "Layer 7 application problems," everyone understands which networking stack component is involved. 

Enhanced network security

OSI layers enable defense-in-depth security strategies. Firewalls filter at Layer 3 (packet filtering), Layer 4 (stateful inspection), and Layer 7 (application-aware filtering). Security teams map different threats to specific layers, applying targeted countermeasures—Layer 2 ARP spoofing attacks require different responses than Layer 7 SQL injection attacks. 

Educational foundation

The OSI Model remains the cornerstone of networking education, taught in certifications like CompTIA Network+ and Cisco CCNA because its structure helps learners grasp complex networking concepts. 

The OSI Model in modern network management

While the TCP/IP model dominates practical implementation, the OSI model's layered framework remains essential for designing, troubleshooting and securing modern networks. Understanding how data flows through each layer—from physical transmission to application delivery—enables network professionals to build more reliable, efficient and secure network infrastructure. 

Optimize your network infrastructure with BMC

Ready to transform your network operations? Explore how BMC's IT operations management solutions apply OSI Model principles to improve network reliability, performance and efficiency across all seven layers of your infrastructure. 

Learn more about BMC network management solutions →