Skip to content
  • Layer 5 — Session · Computer Networks

Layer 5 — Session

LearnViaNotes @learnvianotes· 2 min read

The connection manager, coordinating and keeping conversations in sync.

PDU: Data / Session

Focus: Dialogue & Checkpoints

Hardware: CPU / Auth Servers

Core Purpose & Function

While the lower layers manage the delivery of raw packets or segments, the Session Layer is the high-level manager that understands the *lifetime* of the conversation. It handles user authentication, session token mapping, and coordinates which party is allowed to talk (dialogue control).

Key Responsibilities

  • Session Creation & Teardown: Gracefully opening a communication channel, authenticating users, assigning session IDs, and tearing down the channel when done.

  • Synchronization & Checkpointing: Injecting checkpoints (recovery markers) into a data stream. If a 100MB download is interrupted at 80MB, session checkpoints allow the transfer to resume from the last marker instead of restarting from scratch.

  • Dialogue Control: Coordinating half-duplex (alternating sender/receiver) or full-duplex (simultaneous) transmission streams so packets don't overlap in confusing sequences.

Common Technologies & Protocols

Protocol / StandardDescriptionRole in Session Management
SOCKSSocket Secure ProtocolRoutes packets through proxy servers, establishing authenticated sessions.
RPC / gRPC SessionsRemote Procedure CallMakes remote servers look like local functions, managing transaction states.
NetBIOSNetwork Basic Input/Output SystemSets up sessions and connections between local Windows computers.
PPTP / L2TP SessionsPoint-to-Point Tunneling ProtocolsEstablishes persistent, encrypted tunnels for VPN sessions.

Analogy: The Courier Clerk & Order Authorization

Dialogue Modes & Session Lifecycle

Free for students and teachers

Write notes like this one

Cards for every idea, quizzes and flashcards, read aloud — on the web and your phone.

Something wrong with this note? Open it to report