Menu
Coddy logo textTech

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 icon

Challenge

Beginner

Print the OSI layer number responsible for each job, one per line:

  1. Encrypting data (in OSI theory)
  2. Managing dialogs between machines

Expected output:

6
5

Try it yourself

Terminal

All lessons in The OSI Model

Practice on your own: Terminal playground