The OSI Layers

L7: Application Layer L6: Presentation Layer L5: Session Layer L4: Transport Layer L3: Network Layer L2: Data Link Layer L1: Physical Layer
Network Architecture

The 7 Layers of the OSI Model

The Open Systems Interconnection (OSI) model is a conceptual framework that standardizes how data travels across network systems.

Dividing network operations into seven distinct layers allows systems, protocols, and hardware from different vendors to communicate seamlessly from hardware signals up to software applications.


Host Layers vs. Media Layers

The 7 layers are typically grouped into two functional categories: **Host Layers** (Layers 7–4), which handle software processing and data assembly, and **Media Layers** (Layers 3–1), which manage hardware routing, switching, and physical signal transmission across the network path.

Layer 7: Application Layer

Host Layer

Directly interacts with software applications to provide network services. It acts as the window for applications to access network resources.

Key Protocols / Data Units: HTTP, HTTPS, FTP, SMTP, DNS, SSH | Data Unit: Data

Layer 6: Presentation Layer

Host Layer

Translates, encrypts, and compresses data so the application layer can read it. It ensures data from the sending system is formatted correctly for the receiving system.

Key Functions / Data Units: SSL/TLS, JPEG, ASCII, GIF, Data Encryption & Formatting | Data Unit: Data

Layer 5: Session Layer

Host Layer

Establishes, manages, and terminates connections (sessions) between local and remote applications. It handles session checkpoints and recovery.

Key Protocols / Data Units: NetBIOS, PPTP, RPC, Sockets | Data Unit: Data

Layer 4: Transport Layer

Host Layer

Manages end-to-end communication, segmentation, flow control, and error checking. Ensures complete data transfer across host machines.

Key Protocols / Data Units: TCP (Transmission Control Protocol), UDP (User Datagram Protocol) | Data Unit: Segment / Datagram

Layer 3: Network Layer

Media Layer

Handles logical addressing and routing of data packets across different subnets and networks. Finds the best physical path for data to travel.

Key Protocols / Devices: IPv4, IPv6, ICMP, Routers, Layer 3 Switches | Data Unit: Packet

Layer 2: Data Link Layer

Media Layer

Facilitates node-to-node data transfer within the same network segment. Manages physical MAC addressing, error detection (CRC), and framing.

Key Protocols / Devices: Ethernet, Wi-Fi (802.11), MAC Addresses, Switches, Bridges | Data Unit: Frame

Layer 1: Physical Layer

Media Layer

Transmits unstructured raw binary data (bits) over a physical medium. Governs electrical signals, light pulses, radio frequencies, cables, and pinouts.

Key Hardware / Mediums: Cat6 Ethernet Cables, Fiber Optics, Network Interface Cards (NICs), Hubs | Data Unit: Bit

Easy Mnemonic to Remember

From Top to Bottom (Layer 7 → 1): “All People Seem To Need Data Processing”

From Bottom to Top (Layer 1 → 7): “Please Do Not Throw Sausage Pizza Away”