| 7. Application |
Closest to the user; where apps interact with the network. Defines protocols/services (HTTP, DNS, SMTP). |
Web browsing, email, file transfers. |
If your browser can’t reach a website, check if DNS or HTTP service is available. |
| 6. Presentation |
Ensures data is in a usable format. Handles encryption, compression, and translation between systems. |
SSL/TLS for secure browsing, file compression, converting character sets. |
Encrypted data sent via HTTPS is decrypted here before the user sees it. |
| 5. Session |
Establishes, manages, and ends connections between applications. Keeps sessions alive. |
Logging into a server, video conferencing sessions, maintaining state between two endpoints. |
You log into Zoom → the session layer manages the continuous communication until you end the call. |
| 4. Transport |
Ensures complete, accurate delivery. Uses TCP (reliable, connection-oriented) or UDP (fast, connectionless). Adds port numbers. |
TCP for email/web; UDP for streaming/gaming. |
Downloading a file (TCP) vs. live streaming a soccer match (UDP). |
| 3. Network |
Handles logical addressing and routing. Moves packets across different networks. Devices: routers. Protocols: IPv4, IPv6. |
IP addressing, routing tables, path selection. |
Your packet leaves your home LAN → router finds the path to Google’s server. |
| 2. Data Link |
Transfers data between devices on the same network. Uses MAC addresses to identify devices. Divides packets into frames. |
Ethernet, Wi-Fi. Switches operate here. |
Your laptop sends a frame addressed to your printer’s MAC address. |
| 1. Physical |
The hardware layer. Deals with raw bits, voltages, cables, fiber, radio frequencies. Defines specs like bandwidth. |
NICs, cables, hubs, wireless signals. |
Damaged Ethernet cable = Physical Layer issue. |