Skip to content

The seven layers of the OSI model and their tasks

The long uniform series while people take the complex and crooked work

When you troubleshoot a network connection you need a systematic way to think. The OSI model (Open Systems Interconnection) divides communication into seven layers where each layer has its own task and communicates with the layer below and above it. This makes it possible to pinpoint where a problem occurs instead of guessing.

§The seven layers in the OSI model

The layers are numbered from bottom to top. The rule of thumb is that the lower layers are about moving bits physically, while the upper layers are about what data means to the user and programs.

LayerNameAssignment
7ApplicationThe service the user encounters — e.g. web mail file sharing
6PresentationFormatting, encoding and encryption of data
5SessionCreates and manages the dialog between two parties
4TransportSafe or fast delivery — TCP and UDP
3NetworkLogical addressing and routing — IP addresses
2Data linkFrames and physical addresses – MAC, switching
1PhysicalThe signal itself — cables plugs radio waves

§The TCP/IP model in practice

In reality, the Internet is built on the TCP/IP model, which combines the OSI layers into fewer layers. The application, presentation and session layers become one application layer, and the physical and data link layers become one network access layer. The transport and network layers correspond to each other in the two models.

The difference between the two transport protocols is central: TCP establishes a connection acknowledges each packet and resends what is lost — it is used for web and file sharing where everything must arrive correctly. UDP sends without acknowledging and is faster — it is used for e.g. video calls and games where it is more important to be fast than to get every single packet.

§Encapsulation — why the layers are smart

When an application sends data they're packed layer by layer on the way down. The transport layer adds port numbers the network layer adds IP addresses and the data link layer adds MAC addresses. At the recipient it's unpacked in reverse order. The advantage is each layer can be exchanged independently — you can switch from copper to fiber without touching the web server.

A good technician knows not just the layers but can translate a user problem to the right layer to investigate.

Professional basic rule in network work.