
OSI 7 Layers Explained: Each Layer and How It Compares to TCP/IP
Today, networks are part of everyday life: we use them for work, for watching movies and listening to music, and for staying in touch. Because networks are used so widely, they need a common reference standard, called the OSI 7 Layers, or Open System Interconnection 7 Layers. It makes networks easier to manage and develop, and helps solve problems quickly and efficiently.
This standard was created by ISO, the International Organization for Standard, as a standard for communication between computers.
What Are the OSI 7 Layers?
Here we explain each layer of the OSI Model so you can picture how they fit together.
Layer 1: Physical Layer
The Physical Layer defines standards for electrical signals, for connectors and cabling, and for cable types such as Coaxial, LAN and Fiber Optic, as well as electrical voltage. Its unit of data is bits.

These standards are set by the following organizations:
Layer 2: Data Link Layer
The Data Link Layer is the layer that handles data transfer across the physical medium. Data coming from the Physical Layer may contain noise or errors mixed in with the signal, so the Data Link Layer must detect and correct these errors. Data at this layer is organized into frames. Each frame has a header and a trailer attached. The header contains the information needed for delivery, such as the recipient's address and the frame type. The trailer contains information used to check that the data is correct.

This layer has standard rules for transferring data, called protocols. Its unit of data is the frame.
Its functions are divided into:
- Logical Link Control (LLC) or Data Link Control (DLC) manages communication between Layer 1 and Layer 3
- Flow control: when data is sent, the sending and receiving speeds may not match. For example, if the sender transmits data continuously but the receiver cannot keep up because its buffer memory is limited, the receiver will overflow with data.
- Media Access Control (MAC) uses the hardware address assigned to the Network Interface Card (NIC), the circuit board that connects a computer to a network, to identify a specific computer or device as the source and destination of data. It communicates directly with Layer 1.
- Framing: divides the data received from the Network Layer into frames.
- Physical addressing: to deliver a frame, the network needs to know where the frame came from and where it is going. So a header is added to the frame to identify the sender's address (Source Address) and the recipient's address (Destination Address), such as the network card number (MAC Address), which is the address of a node on the network. This number is assigned to the device in advance and cannot be changed.
- Access control: when two or more devices are connected to a network and share a single cable to communicate, the protocols at this layer must decide which single device has the right to use the shared medium to send data at any given moment.
- Error control: if data is lost along the way, the system must detect the error and resend the data. It must also prevent duplicate data: if data arrives late, the system may assume it was lost and send it again, so it needs a way to remove duplicate frames. Error control is usually done by adding a code to the end of the frame, called the Trailer, which the receiver uses to check for errors.
Example protocols:
Ethernet, Token Ring, IEEE 802.3/202.2, Frame Relay, FDDI, HDLC, ATM, MPLS
Layer 3: Network Layer
The Network Layer handles communication across networks: sending data from one host to another host on a different network. It passes data between Layer 2 and Layer 4. Its unit of data is packets.
Its functions are divided into:
- Logical addressing: an address used to identify the location of a device. It is not tied to any particular device or machine and can be used with any computer. An example is the IP Address.
- Routing: when a network is connected to larger networks, sending data from source to destination requires choosing the best and most suitable path, so that data arrives quickly, and choosing a new working path if some routes are cut. Internet networks need routers, which are devices that decide the path data takes across the network. When data is sent, the logical address is used to identify the source and destination computers.
Example protocols: IP, Novell IPX, ARP, ICMP
Layer 4: Transport Layer
The Transport Layer delivers data process-to-process. Data must be delivered correctly from a process at the source to a process at the destination. A process is any application running on a host computer.
Its functions are divided into:
- Port addressing: a computer can run many programs at the same time, so it needs different ports to handle communication. The Transport Layer adds a header containing a special address called a Service-Point Address or Port Address. This lets the Network Layer deliver packets to the correct destination computer, lets the Transport Layer receive the complete message, and ensures the message reaches the correct process on that computer.
- Segmentation and reassembly: when the Transport Layer receives a message from the Session Layer, it divides the message into smaller segments. Each segment carries a sequence number so the receiving process can put the segments back together (reassembly) and pass the data on to the layer above.
- Connection control: communication between processes at the Transport Layer can be connectionless (UDP) or connection-oriented (TCP).
- Flow control: controls the flow of data between the sender and the receiver, process-to-process.
- Error control: controls errors in data transfer between the sender and the receiver, process-to-process. It makes sure that messages reach the destination without errors such as corrupted, lost or duplicated data. If an error is found, the data is sent again.
Example protocols:
TCP, UDP, SPX
Layer 5: Session Layer
The Session Layer controls communication and manages the exchange of messages between hosts, which may interact in Simplex, Half-duplex or Full-Duplex mode. A communication in progress at any given time is called a Session. Multiple sessions may come from one person or from many people, as in a conversation.
Its functions are divided into:
- Dialog control: the Session Layer allows two systems to exchange messages from the start to the end of a communication. It begins by opening a session so messages can be exchanged continuously, and ends communication by closing that session. Processes can interact in Half-Duplex mode (taking turns to send and receive) or Full-Duplex mode (sending and receiving at the same time).
- Synchronization: communication within a session can fail, and when it does, a new session must be opened to communicate again. So the Session Layer lets processes add checkpoints to the data they send, for example inserting a checkpoint every 100 pages when sending a 2,000-page file.
Layer 6: Presentation Layer
The Presentation Layer handles data translation, encryption and compression so that data has the same format and meaning on both sides. Different types of computers may use different codes to represent data. For example, PCs use ASCII or Unicode, while mainframe computers use EBCDIC. Without a process to handle these different codes, data presented between the two systems would contain errors.
Its functions are divided into:
- Translation: processes or programs running on two systems may run on different types of computers that use different codes to represent data. When they need to exchange data, the Presentation Layer converts the different codes into a common format, so the data is presented consistently on both sides.
- Encryption: sending data over a network requires good data security. Converting the original data into encrypted form, which cannot be read, helps protect it from being intercepted and misused by malicious people. When the data reaches its destination, it is decrypted back into the original data.
- Compression: compressing data to make it smaller speeds up communication and reduces the bandwidth used. This is an important technique for transmitting multimedia data, which includes text, audio and video.
This layer focuses on interaction with users and allows users to access the network. It provides a User Interface that supports services such as electronic mail, data access and file transfer, and other services.
Layer 7: Application Layer
The Application Layer is the layer closest to users. It consists of the protocols used to communicate with users, such as HTTP, FTP and HTTPS. These protocols are usually used through software, which makes them easy for users to access. For example, if users want to use the HTTP protocol to browse the Internet, they use a browser such as Firefox or Chrome, which calls on that protocol for them.
Example services at the Application Layer
In short, the OSI 7 Layers is a common standard that makes networks easier to manage and develop, and helps solve problems quickly and efficiently, as described above. Here is a simple illustration of how it works:



OSI 7 Layers Compared with TCP/IP
TCP/IP, or Transmission Control Protocol / Internet Protocol, is a suite of communication protocols used by network devices that connect to the Internet. It was developed by ARPANET. It is arranged in 4 layers, which makes it easy to compare with the OSI Model.

Application Layer
The TCP/IP Application layer effectively combines the OSI Application, Presentation and Session layers into a single layer. It acts as the interface between users and services, such as file transfer (FTP), electronic mail (SMTP) or remote control of computers (Telnet).
Example protocols
- FTP (File Transfer Protocol) provides file transfer over a network
- Telnet provides remote access to computers on a network
- SMTP (Simple Mail Transfer Protocol) is used for email
- HTTP (Hyper Text Transfer Protocol) is used to display web pages
- DNS (Domain Name System) converts website names into IP Addresses
- SNMP (Simple Network Management Protocol) is used to monitor and manage networks
- DHCP (Dynamic Host Configuration Protocol) automatically assigns IP Addresses to client devices
Transport Layer
The TCP/IP Transport layer does the same job as the Transport layer of the OSI Model: it prepares data for sending and receiving, keeps data transfer stable and reliable, and splits data into smaller pieces.
Example protocols
- TCP (Transmission Control Protocol) is a connection-oriented protocol. It splits data into smaller pieces, sends them to the destination, and reassembles them into the original data. If some data goes missing, the destination reports back so it can be sent again. This guarantees that the destination always receives complete and correct data.
- UDP (User Datagram Protocol) is a connectionless protocol. It sends data without checking back whether the destination received it completely and correctly. So data sent with UDP is less reliable than data sent with TCP, but UDP is faster and uses less channel bandwidth.
Internet Layer
The Internet layer does the same job as the Network layer of the OSI Model: it chooses the path for data, and also establishes and terminates connections.
Example protocols
- IP (Internet Protocol) is the routing protocol and the main protocol for sending data across networks
- ICMP (Internet Control Message Protocol) is used to report problems with sending and receiving data
- ARP (Address Resolution Protocol) converts an IP address into a MAC Address, the hardware identification number of a network device
Network Interface Layer
The Network Interface layer converts IP Addresses into the hardware identification numbers of network devices, for sending and receiving data at the physical level. It also generates the electrical signals for data transfer according to the hardware standard in use, such as Ethernet or Token Ring. It is similar to combining the Data Link and Physical layers of the OSI Model.
Explore Our Blog Posts
Stay updated with our latest blog posts.

Wi-Fi 7 in the Real World with HPE Aruba Networking

Computer Rental for Government Agencies: 4 Benefits and How to Procure It

Renting All-in-One PCs and Laptops for Business: Leasing vs DaaS
Join our newsletter for updates
Stay informed with our latest news and promotions

