π The OSI Model
The OSI (Open Systems Interconnection) model is a conceptual framework that describes how data travels across a network in 7 layers.
π OSI Layers Explained
Q1What is the OSI model?IntermediateβΌ
The OSI model is a 7-layer conceptual framework that standardises how different network systems communicate. Each layer has a specific role and communicates with the layers directly above and below it.
The 7 layers (top to bottom):
- Layer 7 β Application: User-facing protocols (HTTP, FTP, DNS, SMTP)
- Layer 6 β Presentation: Data formatting, encryption/decryption (TLS, JPEG)
- Layer 5 β Session: Manages sessions between applications
- Layer 4 β Transport: End-to-end communication, reliability (TCP, UDP)
- Layer 3 β Network: Routing and IP addressing (IP, routers)
- Layer 2 β Data Link: MAC addresses, switches, frames (Ethernet)
- Layer 1 β Physical: Raw bits over cables/wireless (cables, hubs, NICs)
π‘ Memory trick: "All People Seem To Need Data Processing" (Application, Presentation, Session, Transport, Network, Data Link, Physical)
Q2What happens at Layer 3 of the OSI model?IntermediateβΌ
Layer 3 β the Network layer β handles logical addressing (IP addresses) and routing. It determines the best path for data to travel from source to destination across multiple networks.
Key components at Layer 3:
- Routers β operate at Layer 3, route packets between networks using IP addresses
- IP protocol β assigns logical addresses to devices
- ICMP β used by
pingandtracerouteto diagnose networks
β οΈ Layer 3 deals with logical addresses (IP). Layer 2 deals with physical addresses (MAC). A switch is Layer 2; a router is Layer 3.