OSI Model – Session Layer vs Transport Layer

osi

It seems both do the same thing (or establishing a session between two hosts differs from establishing a connection between two?) So what exactly is the difference here that make us consider them as two separate layers?!

Best Answer

The way I usually explain it is to consider a concrete example of two browsers on a single computer, connected to the same website and logged in as different users.

  • There are any number of transport connections as the web pages load pages and images.
  • There are two sessions, normally identified with cookies or whatever.

As Zac says, the sessions are pretty much in the web browser and server, not anywhere else. The OSI model is to help describe things, not mandate how they're implemented.

Related Topic