Skip to content
IT glossary
BackendUpdated December 3, 2026

OSI model

Модель OSI

A seven-layer reference model for network communication. It separates tasks such as sending signals, routing packets, and understanding application messages so they can be discussed independently.

What the model is for

The OSI (Open Systems Interconnection) model gives engineers a shared vocabulary for talking about networks. If a backend service is unreachable, “the network is broken” is too broad to be useful. A missing route, a failed TCP connection, and an HTTP error are different observations. The model helps you say what worked and where to investigate next. It is a reference model, not a requirement that software be built as seven separate modules.

The seven layers, from top to bottom

Layer Responsibility
7. Application Defines the messages applications exchange and what they mean. HTTP methods and status codes are examples.
6. Presentation Defines how information is represented, including data format or character encoding.
5. Session Coordinates a dialogue between peers, for example by providing synchronization points in a long exchange.
4. Transport Moves data between application endpoints. TCP provides a reliable, ordered byte stream; UDP sends datagrams without delivery or ordering guarantees.
3. Network Addresses and forwards packets across networks. IP operates here.
2. Data link Transfers frames across a local link or segment. Ethernet switching based on MAC addresses is a familiar example.
1. Physical Carries bits as electrical, optical, or radio signals.

Follow a request down the stack

Suppose a client sends a plain HTTP/1.1 request over TCP. HTTP defines the request line and headers. TCP carries the resulting bytes in one or more segments and adds transport information such as port and sequence numbers. Each segment is carried in an IP packet, which on an Ethernet link is carried in a frame. This nesting is called encapsulation. The receiver processes the headers and TCP reassembles the byte stream. TCP does not preserve HTTP message boundaries: a request can span multiple segments.

Practical use and interview traps

Job interviews often use load balancing to test the difference between L4 and L7. A TCP load balancer can choose an upstream server for a connection without parsing its contents. An HTTP load balancer can make a decision per request, such as sending /api and /static to different backends.

Don’t force every Internet protocol into exactly one OSI layer. The common four-layer TCP/IP model roughly groups OSI layers 1–2 into the link layer and 5–7 into the application layer, with network and transport still distinct. For example, calling TLS “layer 6” highlights its role in protecting and representing exchanged data, but it is not a precise description of the stack: with HTTP/1.1 over TLS, TLS sits between HTTP and TCP.