← Back to list

What is OSI model? Explained in a simplest way.

Imagine in 1970. IBM computers can’t talk to Honeywell computers. It’s like having and iPhone that can only call other iPhones. Chaos…

Dip Pal · 2025-08-16 13:15 · 0 claps · 3.3 min read
#networking #osi-model-in-networking #osimodel-computernetwork #devops #osi-model
Open on Medium ↗
Wiki topics: ☁️ · DevOps & Cloud

What is OSI model? Explained in a simplest way.

Imagine in 1970. IBM computers can’t talk to Honeywell computers. It’s like having and iPhone that can only call other iPhones. Chaos, right? Then in 1984, seven brilliant rules changed everything. This is the story of OSI model.

It’s called a “reference model” because it’s a THEORETICAL BLUEPRINT that everyone refers to, not something that’s actually built exactly as described.

OSI model stands for Open system Interconnection model. That explains how computer talks to each other. But why should you care about how computer talk, simply every time you send WhatsApp message, make a video call, order food online, you’re using the OSI model without knowing it, understanding it is like having X-ray vision for the internet.

Let me break this down into 7 simple layers that will change how you see technology forever.

OSI Model

OSI Model

LAYER 7 — Application Layer: The user interface where humans meet the network. This is the only layer that users directly interact with. For example: You send a mail to your friend the application layer will take your email and adds protocol information(SMTP) and identifies what service you need and passes to Presentation layer.

Protocols use in application layer are:

  1. HTTP/HTTPS — web browsing
  2. SMTP — sending emails
  3. FTP — File download
  4. DNS- converting domain name into ip address

Layer 6 — Presentation layer: It is like a translator — making data understandable and secure. It has three main jobs Encryption, Compression, Translation. Ensures that the data is in usable format. For example: Receives data from application layer encrypt sensitive data(password), compress large file(photos), convert characters (ASCII to unicode). Then passes the data to session layer.

Layer 5 Session layer: That keeps the track of who’s talking. It Establishes, manages, and terminates sessions. It does connection with receiving computer, authenticates, Synchronizes, manage dialogue(full duplex/half-duplex), and terminates when the conversation ends.

Real Examples:

  1. Login session — keeping you logged into facebook.
  2. SQL sessions — database connections.
  3. Video calls — Managing who can speak when.

Layer 4Transport layer: Ensures Perfect delivery. It breaks data into segments and ensures they all arrive correctly, Choose between reliability(TCP) or speed(UDP). It actually receives data from session layer then segments data into smaller chunks, adds sequence numbers to each segment, add port number (80 for web, 443 for secure web), tracks delivery and reassembles at destination.

Some real examples of transport layer

  1. TCP — downloading files.
  2. UDP — live streaming, socket.
  3. Port 25 → Email
  4. Port 80 → Web traffic

Layer 3 Network Layer: Determines the best path from source to destination.

  1. Receives segments from Transport layer
  2. Adds source and destination IP addresses
  3. Determines best route through routers
  4. Handles traffic congestion
  5. Forwards packets to next router
  6. Fragments large packets if needed

Layer 2 Data-link Layer: Ensures reliable data transfer between two directly connected devices.

  1. Receives packets from Network layer
  2. Adds MAC addresses (source and destination)
  3. Creates frames (packages data with headers and trailers)
  4. Adds error detection (CRC — Cyclic Redundancy Check)
  5. Controls flow (prevents fast sender from overwhelming slow receiver)
  6. Manages access to physical medium (who transmits when)

Real Examples:

  • Ethernet → Wired connections (802.3)
  • WiFi → Wireless connections (802.11)
  • Switches → Connect devices in local network
  • MAC address → 00:1B:44:11:3A:B7 (unique to each device)

Layer 1Physical Layer: Converts digital bits (1s and 0s) into physical signals.

Step-by-step process:

  1. Receives frames from Data Link layer
  2. Converts to bits (1s and 0s)
  3. Transforms bits into signals:
  • Electrical (copper cables)
  • Light (fiber optic)
  • Radio waves (wireless)
  1. Transmits signals across physical medium

  2. Defines specifications:

  • Voltage levels
  • Signal timing
  • Cable types
  • Connector types

Real Examples:

  • Ethernet cables → Cat5, Cat6
  • Fiber optic → Single-mode, Multi-mode
  • Wireless → 2.4GHz, 5GHz frequencies
  • USB, RJ45 connectors → Physical plugs
  • Hubs, Repeaters → Boost signals

Complete Journey Example: Sending “Hello” on WhatsApp

GOING DOWN (Sending):

Layer 7: You type “Hello” in WhatsApp Layer 6: Message encrypted with end-to-end encryption Layer 5: WhatsApp session established with server Layer 4: Message broken into segments, port 443 added Layer 3: Your IP (192.168.1.5) → WhatsApp server IP added Layer 2: Your MAC address → Router MAC address added, frame created Layer 1: Converted to radio waves, transmitted via WiFi

GOING UP (Receiving):

Layer 1: Friend’s phone receives radio waves Layer 2: Checks frame, confirms no errors, extracts packet Layer 3: Routes packet to WhatsApp app using IP Layer 4: Reassembles segments in correct order Layer 5: Continues existing chat session Layer 6: Decrypts message Layer 7: “Hello” appears


메타데이터
post_id
cc8dc6d1e949
slug
what-is-osi-reference-model-explained-in-a-simplest-way-cc8dc6d1e949
url
https://medium.com/@dippal/what-is-osi-reference-model-explained-in-a-simplest-way-cc8dc6d1e949
canonical_url
https://medium.com/@dippal/what-is-osi-reference-model-explained-in-a-simplest-way-cc8dc6d1e949
author_url
https://medium.com/@dippal
status
ok
fetched_at
2026-07-17 16:06:13