OSI Model
Please Do Not Throw Sausage Pizza Away π₯
Imagine I just sent you a message. Behind the scenes, how does this message actually travel from my device all the way to your phone screen β starting from raw bits to finally appearing in front of you?
This entire journey is exactly what the OSI Model helps us understand.
What is the OSI Model?
OSI stands for Open Systems Interconnection Model. It was developed in 1984 by the International Organization for Standardization (ISO). The main goal was to create a standard framework so that devices and networks from different manufacturers could communicate with each other seamlessly. It divides the whole networking process into 7 logical layers.
Hereβs how my message travels through these layers:
Physical Layer β This is the pure hardware layer. It deals with cables, fiber optics, wireless signals, and raw bit streams. Everything starts here β how data physically moves from one point to another.
Data Link Layer β Responsible for node-to-node delivery. It handles MAC addresses, switches, Ethernet frames, and error checking (CRC). This layer makes sure data is transferred safely within your local network. ARP protocol works here too.
Network Layer β The kingdom of routers! It manages IP addresses, routing, and packet forwarding. This layer decides the best path for my message to travel across the world to reach your device.
Transport Layer β Ensures end-to-end communication. This is where TCP (reliable, with handshake, sequencing, and flow control) and UDP (fast but less reliable) come in. Port numbers are also handled at this layer.
Session Layer β Manages the session between devices. It establishes, maintains, and terminates connections. It can also add checkpoints so that if a connection drops midway, it can resume without starting over.
Presentation Layer β Takes care of data format, encryption, and compression. Things like SSL/TLS encryption, ASCII/Unicode conversion, and JPEG compression happen here. It prepares the data so the application layer can understand it properly.
Application Layer β The layer we interact with directly. This includes protocols like HTTP, HTTPS, FTP, SMTP, and DNS. Itβs the starting point when I send the message and the final point when it reaches you.
In real life, the TCP/IP model is used more often, but the OSI model gives us a clear, structured way to understand how networking actually works under the hood. If you can explain this well during system design interviews or troubleshooting discussions, you instantly come across as someone who really knows their stuff!