Week 1 · Lesson 13

OSI Model — Session Layer

Communication between two applications is rarely one isolated message. It is a conversation — opened, kept in order, and closed when finished. The session layer is the OSI model’s name for that conversation management, known formally as dialog control.

CCNA 200-301 Domain 1.0 Network Fundamentals Verified 2026-10-11
Part 1

The role of the layer

The session layer is Layer 5 of the OSI model. Its job is to establish, manage, and terminate the dialogues — called sessions — between applications on two hosts. A session is a continuing exchange: a login, a remote shell, a file transfer in progress, or a database connection. The session layer keeps that exchange organised from the first request to the final goodbye.

Definition — session layer. The OSI session layer sets up, coordinates, and closes conversations between application processes. It provides dialog control (who may transmit and when) and can insert checkpoints so a long dialogue can recover without starting over.

Its functions are often described with the single phrase dialog control, because the layer decides the rules of the conversation rather than its content. The content belongs to Layer 7; the representation belongs to Layer 6; the running dialogue belongs to Layer 5.

Part 2

The session lifecycle

Every session moves through three broad phases:

Keeping these phases distinct matters: a well-behaved protocol closes sessions cleanly so that buffered data is delivered and resources are freed, instead of being abandoned when a process simply stops.

The three phases of a session · step through them
Phase 1 of 3
1. Establish open the dialogue 2. Manage / transfer dialog control + checkpoints 3. Terminate close and release resources

Part 3

Dialog control: half vs full duplex

Dialog control decides how the two endpoints take turns. There are two modes:

ModeBehaviourAnalogy
Half-duplexThe conversation flows in one direction at a time; the two sides take turns.Walkie-talkie
Full-duplexBoth sides can transmit and receive simultaneously.Telephone call

Half-duplex suits some control protocols where strict turn-taking avoids clashes. Full-duplex is the common mode for modern data sessions, where each direction flows independently and the practical performance is roughly the sum of both directions.

Dialog control · select a mode
Host A endpoint Host B endpoint A sends B sends

Part 4

Checkpoints and recovery

Some sessions transfer huge amounts of data over hours: a database backup, a large software update, a long file transfer. If the link fails near the end, restarting from zero would be wasteful. The session layer solves this by inserting checkpoints into the data stream. If the transfer is interrupted, it can resume from the last acknowledged checkpoint rather than from the beginning.

Analogy. Think of reading a long book and placing a bookmark every few chapters. If you are interrupted, you do not start the book again — you continue from your bookmark. Checkpoints are exactly that: recovery points inside a long session.
Checkpoint recovery · move the failure point
30%of the transfer saved by the last checkpoint

Part 5

Session-related protocols

OSI is a conceptual model, so it names functions rather than one universal session protocol. The classic examples of protocols or services associated with session management include:

Note. Do not memorise a long list here. The exam cares mainly that you know the function of Layer 5 — establishing, managing, and terminating dialogues — and the classic names NetBIOS and RPC.
Part 6

How real stacks handle sessions

An accurate and exam-relevant point: the TCP/IP stack does not cleanly implement an OSI session layer. The four-layer TCP/IP model folds OSI Layers 7, 6, and 5 together into a single application layer. This means session-like behaviour is provided in different places:

So while OSI describes a separate Layer 5, in a real network the session function is spread across TCP and the application protocols. That is why you will rarely hear an engineer say “the session layer did it”. You still need the OSI terminology because the exam uses it.

Mapping OSI to TCP/IP · select a TCP/IP layer

Exam tip. If asked “which OSI layer establishes, manages, and terminates dialogues?” the answer is the session layer (Layer 5). If asked how the TCP/IP model treats that function, the answer is that it is folded into the Application layer, with TCP handling the underlying connection.
Part 7 · Your turn

Review

Check what you have learned with these review questions. The key terms and sources from this lesson are listed below the quiz.

Review · 6 questions

Key termMeaning
Session layerLayer 5 of OSI; establishes, manages, and terminates dialogues between applications.
SessionA continuing exchange between two application processes.
Dialog controlThe rules governing which side may transmit and when.
Half-duplexCommunication in one direction at a time; the sides take turns.
Full-duplexSimultaneous transmission in both directions.
CheckpointA recovery point placed in a session so it can resume after an interruption.
NetBIOSLegacy LAN name and session service between applications.
RPCRemote Procedure Call; runs procedures on a remote host within a session.
Sources & references. Braden, R. RFC 1122: Requirements for Internet Hosts — Communication Layers (1989) · IANA Service Name and Transport Protocol Port Number Registry · ISO/IEC 7498-1 OSI Basic Reference Model, which describes the session layer · Cisco CCNA (200-301) Exam Topics, Network Fundamentals.
Sources

Sources & references

  1. Braden, R. RFC 1122: Requirements for Internet Hosts — Communication Layers (1989), on the layering model. rfc-editor.org/rfc/rfc1122.
  2. IANA. Service Name and Transport Protocol Port Number Registry. iana.org.
  3. ISO/IEC 7498-1. Information technology — Open Systems Interconnection — Basic Reference Model, which describes the session layer. iso.org.
  4. Cisco. CCNA (200-301) Exam Topics, Network Fundamentals. cisco.com.

Target exams: CCNA 200-301 v1.1 · CyberOps Associate 200-201. Last content verification: 2026-10-11.