Layers of OSI Model (original) (raw)

Last Updated : 23 Apr, 2026

The OSI Model is a conceptual framework created by the International Organization for Standardization (ISO) to describe how data is transmitted across a network using a structured seven-layer architecture.

Layer 1: The Physical Layer

The **Physical Layer is the foundation of the OSI model, acting as the bridge for actual physical connections between devices. Its primary mission is the transmission of raw, unstructured bitstreams over a physical medium from one node to the next.

physical-layer-in-OSI

Physical Layer

The **Data Link Layer serves as the bridge between the physical hardware and the logical network, ensuring reliable node-to-node delivery of data. Its primary goal is to ensure that data transfer is error-free across the physical medium.

**1. Data Packaging (Framing): At this layer, data packets received from the Network layer are divided into manageable units called Frames. This is done by adding specific "start" and "stop" bits so the receiver can recognize where one unit of data ends and the next begins.

**2. Addressing and Hardware: The DLL uses **MAC addresses (Physical Addressing) to identify hosts. It encapsulates the sender’s and receiver’s MAC addresses into the frame header. Common devices operating here are **Switches and Bridges.

**3. Sublayers:

**4. Error Control: It detects and retransmits damaged or lost frames to maintain data integrity.

**5. Flow Control: It synchronizes the data rate between a fast sender and a slower receiver to prevent data "bottlenecks" or loss.

**6. Access Control: When multiple devices share the same communication channel, the MAC sublayer dictates which device has the right to transmit at any given time to avoid collisions.

Layer 3: The Network Layer

The **Network Layer manages data transmission between hosts across different networks by handling logical addressing and path finding.

Layer 4: The Transport Layer

The Transport Layer ensures the end-to-end delivery of entire messages. It acts as a liaison, providing services to the Application layer while utilizing the infrastructure of the Network layer to ensure data reaches the correct application on the destination host.

Layer 5: The Session Layer

The **Session Layer acts as the "dialogue manager," governing the opening, closing, and security of communication channels between two devices.

2

Layer 6: The Presentation Layer

Often called the **Translation Layer, the Presentation Layer ensures that data is formatted, secured, and compressed so that the receiving application can correctly interpret it.

Layer 7: The Application Layer

The **Application Layer sits at the top of the OSI stack and serves as the direct interface between the software user and the network. It produces the data that will be sent and displays the information received from other layers.

application-layer-in-OSI

Application Layer

Data Flows in the OSI Model

When we transfer information from one device to another, it travels through 7 layers of OSI model. First data travels down through 7 layers from the sender's end and then climbs back 7 layers on the receiver's end. Data flows through the OSI model in a step-by-step process:

Each layer adds specific information to ensure the data reaches its destination correctly, and these steps are reversed upon arrival.

Example

We can understand how data flows through OSI Model with the help of an example mentioned below. Let us suppose, Person A sends an e-mail to his friend Person B.

After the email reaches the receiver i.e. Person B, the process will reverse and decrypt the e-mail content. At last, the email will be shown on Person B email client.

OSI-Model

OSI Layers

Protocols Used in the OSI Layers

**Layer **Working **Protocol Data Unit (PDU) **Protocols
**Physical Layer Establishes physical connection between devices and transmits raw bits over the medium. Bits USB, SONET/SDH
**Data Link Layer Provides node-to-node delivery and error detection/correction. Frames Ethernet, PPP, PPTP
**Network Layer Handles logical addressing and routing of data between different networks. Packets IP, ICMP, IGMP, OSPF
**Transport Layer Ensures end-to-end communication, segmentation, flow control, and error handling. Segments (TCP) / Datagrams (UDP) TCP, UDP, SCTP
**Session Layer Establishes, manages, and terminates communication sessions between applications. Data RPC
**Presentation Layer Translates, encrypts, and formats data for the application layer. Data TLS/SSL, MIME
**Application Layer Provides network services directly to end-user applications. Data FTP, SMTP, DNS, DHCP, NetBIOS