Back

Applications in OSI layers

How applications interact with the OSI model, real-world examples and the role of networking devices at each layer.

23 August 2025

4 min read


By now, we all know what is OSI model, it layers and all that stuff we studied about in out college lectures. Right?

7 layers!! From 1 to 7, they go like Physical, Data Link, Network, Transport, Session, Presentation and Application Layer.

But, where is my application sitting with respect to this model???

The intuitive answer would be..."duh, my application is in the Application Layer!" But in some cases it is more interesting than that.

The Layers and what they do.

The 7 layers each describe a specific networking component.

Example

Lets say you have an application that sends a POST request to an HTTPS webpage.

Sender (the Client)

But this structure is not set in stone. Few layers can inherit from other layers.

Receiver (the Server)

Visualization

This image shows how the flow goes for a HTTP request (TCP) We start with the client, and once it reaches the session layer, and sees, oh we need to create a session, it keeps the serialized data, does a 3 way handshake first with SYN and ACK, and once the connection is established, the data is sent.

3 way handshake

But what happens in real world?

Your client isn't connected to the server directly right? There's switches, routers, load balancers, proxies, VPNs, CDNs and many more things in between. Then what? What happens there?

Those things look into your data. Not literally but yes. For example:

Shortcomings of OSI model