← Back to Blog
Engineering2 min read

Understanding the OSI Model

Why the seven-layer OSI model exists, what each layer describes, and how encapsulation helps explain communication between devices.

By Esra Durmaz

  • Networking
  • OSI
  • Computer Networks
  • Protocols

When two devices communicate, many different tasks are involved: an application creates data, transport rules organize it, network equipment moves it between networks, and a physical medium carries signals. The OSI model gives those tasks a shared way to discuss network communication.

Why the OSI model was introduced

Different systems and vendors have used different technologies and protocols. A layered reference model helps describe where a communication function belongs and how it relates to other functions. The Open Systems Interconnection (OSI) model divides that view into seven layers.

The OSI model is a conceptual framework, not a protocol that devices must use as a complete implementation. Real network stacks do not always map neatly to one layer per technology, but the model remains useful for learning and troubleshooting.

The seven layers

From the highest layer to the lowest:

  1. Application - Network services used by applications, such as web or name-resolution services.
  2. Presentation - How data is represented, encoded, or transformed for communication.
  3. Session - How a communication session is established, maintained, and ended.
  4. Transport - End-to-end delivery between processes, including segmentation and transport behavior.
  5. Network - Logical addressing and routing between networks; IP is commonly discussed here.
  6. Data Link - Communication across a local link, including frames and link-layer addressing.
  7. Physical - The signaling and physical media that carry bits.

These responsibilities can overlap in real implementations. The important idea is that each layer provides services to the layer above and uses services from the layer below.

Encapsulation and decapsulation

When an application sends data, each lower layer adds information it needs for its part of the transfer. Transport information is added first, then network and link information. This process is called encapsulation. At the receiving device, the layers process and remove their relevant information in reverse order; this is decapsulation.

A simplified web request may begin as application data, be carried by a transport protocol, placed inside an IP packet, and then sent in a link-layer frame over a physical connection. The exact protocols and boundaries depend on the network stack, but the example shows why layered descriptions are helpful.

Using the model when troubleshooting

If a website cannot be reached, the model suggests a way to organize questions: is the device connected to the network, can it reach an IP address, is the transport connection available, and can the application exchange a valid request? The model does not diagnose the fault by itself, but it helps narrow down which kind of behavior to inspect.

What I learned

The OSI model is useful because it turns a complex exchange into smaller responsibilities. Understanding encapsulation also explains why network data carries more than the original application message: each layer adds information needed for delivery.