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 LayerDirectly interacts with software applications to provide network services. It acts as the window for applications to access network resources.
Layer 6: Presentation Layer
Host LayerTranslates, 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.
Layer 5: Session Layer
Host LayerEstablishes, manages, and terminates connections (sessions) between local and remote applications. It handles session checkpoints and recovery.
Layer 4: Transport Layer
Host LayerManages end-to-end communication, segmentation, flow control, and error checking. Ensures complete data transfer across host machines.
Layer 3: Network Layer
Media LayerHandles logical addressing and routing of data packets across different subnets and networks. Finds the best physical path for data to travel.
Layer 2: Data Link Layer
Media LayerFacilitates node-to-node data transfer within the same network segment. Manages physical MAC addressing, error detection (CRC), and framing.
Layer 1: Physical Layer
Media LayerTransmits unstructured raw binary data (bits) over a physical medium. Governs electrical signals, light pulses, radio frequencies, cables, and pinouts.
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”