1

Could someone provide some real world scenerios to understand the role played by session layer in OSI model.

Example:
Presentation Layer handles zip&unzip etc. Similarly what does session layer handle?

samshers
  • 139
  • 1
  • 5
  • 1
    Sad that this is closed, because the referred question is more general and doesn't answer this one. – Jeff Learman Dec 18 '20 at 03:08
  • 1
    Real world scenario using the session layer: file transfer with a temporary network outage, or the application restarts during transfer. More generally, how to pick up where you left off. The thing is, it turns out that it's best not to let the "communications stack" do that, but rather to use libraries/objects/application-elements to do it, so modern solutions exist but aren't organized into a "layer." – Jeff Learman Dec 18 '20 at 03:12

1 Answers1

3

The session layer isn't (really) used in the real world. You can regard it as a conceptual model or as a sublayer in the real-world application layer but it simply doesn't exist.

Sessions are present in many web applications, but most often the session handling is woven into the application, without any distinct sublayer.

The presentation layer is very similar. Some application-layer protocols have a somewhat well-defined presentation sublayer (e.g. HTML, or RFC 5322 for SMTP/RFC 5321), but there really isn't any standard in practice.

Zac67
  • 84,333
  • 4
  • 69
  • 133