Session and Presentation
Lesson 21 of 32 in Coddy's The OSI Model course.
Layers 5 and 6 are the strangest part of the OSI model, because modern software rarely implements them as separate pieces. In OSI theory:
- Layer 5, Session: opens, manages and closes dialogs, so a long conversation can resume instead of restart.
- Layer 6, Presentation: translates formats so both sides understand the bytes: character encodings, compression, and encryption.
In practice, TLS handles encryption and applications manage their own sessions. But interview questions and certification exams still ask for the theory placement, so learn it: dialogs at 5, encryption at 6.
Challenge
BeginnerPrint the OSI layer number responsible for each job, one per line:
- Encrypting data (in OSI theory)
- Managing dialogs between machines
Expected output:
6
5Try it yourself
All lessons in The OSI Model
6The Upper Layers
Session and PresentationThe Application LayerWatching the LayersRecap - Top of the StackPractice on your own: Terminal playground