Networking

The OSI model's 7 layers explained

The OSI model's seven layers explained: what each does, how encapsulation moves data down and up the stack, how OSI maps to TCP/IP, and why it helps debugging.

  • 8 min read
  • 5 questions
  • +35 XP
Transcript

OSI Model, explained by cats. Kitty wants to send a message. ‘Bring tuna.’ From one computer to another. But that message doesn’t travel all at once. It goes through layers. Seven of them. Like a cat delivery system. It starts with Layer 7 Application layer.

This is where Kitty lives. Browser. App. Email. where Kitty says, ‘I want to send a message.’ Layer 6 Presentation layer. The message gets dressed up. Formatted. Encrypted. Compressed. Readable for the other cat. Layer 5 Session layer. Keeps the conversation open.

Starts it. Ends it. Makes sure cats don’t talk over each other. Layer 4 Transport layer. It Delivers the message. Careful cat? TCP. Fast cat? UDP. It Decides how reliable it should be. Layer 3 Network layer. It Finds the route.

it finds the IP addresses. and Which path to take through the cat or net. Layer 2 Data Link layer. It handles the Local delivery. using MAC addresses. Gets the message to the next cat nearby. Layer 1 Physical layer, The actual movement.

Cables. Wi-Fi. Electric signals flying through the wires. Each layer does one job. Together, they deliver tuna. That’s the OSI Model seven layers of cats making sure your message arrives from bowl to bowl.