Functions of Session Layer (original) (raw)

Last Updated : 11 Feb, 2026

The Session Layer (OSI Layer 5) establishes, manages, and terminates communication sessions between applications, providing dialog control and synchronization so data exchange stays organized and recoverable.

1. Session Establishment

The most important role of the Session Layer is to establish and manage communication sessions between devices. These sessions can be connection-oriented or connectionless. Sessions can be mapped to transport connections in three ways:

**Note: Once a session is released, the associated transport connection is also released.

2. Communication Synchronization

The Session Layer ensures proper synchronization during data transfer. To achieve this, it uses synchronization bits and checkpoints:

**Note: This functionality is crucial in long and complex communications, as the Transport Layer can only handle communication errors, not application-level synchronization.

3. Activity Management

The Session Layer divides a continuous stream of communication into logical units called activities.

4. Dialog Management

The Session Layer manages dialogues (conversations) between communicating devices. This involves deciding who will send data and when. Two modes of communication are supported:

**Note: This ensures efficiency and prevents data collisions during communication.

5. Data Transfer

Data transfer is a fundamental function of the Session Layer. It manages the exchange of information between two systems by maintaining the mode of communication:

**Note: By organizing data flow, the Session Layer ensures reliable and orderly communication.

6. Resynchronization

Resynchronization (or backward synchronization) allows a session to be restored to a previously defined state after an error or failure. There are three options for resynchronization:

**Note: This process ensures that sessions can recover from disruptions without restarting entirely.