liveBook · Manning

Session multiplexing

As explained in Acing the CCNA Exam: Volume 1 Fundamentals and Protocols

Session multiplexing is the process of tracking multiple communication sessions concurrently by distinguishing them with transport-layer identifiers such as port numbers.

Session multiplexing tracks multiple communication sessions at the same time by assigning each client connection a distinct transport-layer source port. A browser selects an ephemeral port for each session, allowing responses to return to the correct application. section 22.1.2

A session is identified by two sockets: the client socket and server socket. Together, their client and server IP addresses, port numbers, and TCP or UDP protocol form a five-tuple. For example, a client using 192.168.1.1:50000 can connect to a server at 203.0.113.1:443. section 22.1.2

Port-number behavior supports multiplexing across transport protocols:

  • TCP and UDP both provide Layer 4 addressing and session multiplexing through port numbers. section 22.2.2
  • Ephemeral ports 49152–65535 commonly serve as client source ports, while HTTPS commonly listens on TCP port 443. section 22.1.2 section 22.3
Figure 22.3 Session multiplexing is achieved through port numbers. PC1 selects a unique source port for each communication session with SRV1, which addresses each response to the same port from which the corresponding request originated.

Shows how a client selects a unique source port for each session and how the server addresses each response to that port. section 22.1.2

How Acing the CCNA Exam: Volume 1 Fundamentals and Protocols covers it

How deep it goes
Defines port-based tracking, sockets, and five-tuples, but stops short of implementation commands or operating-system internals.
Examples
Uses multiple browser sessions, ephemeral client ports, HTTPS port 443, and a 192.168.1.1-to-203.0.113.1 connection.
What it assumes
Assumes basic IP addressing and transport-layer context while defining ports, sockets, and five-tuples explicitly.
What you can do after
Understand how port numbers distinguish concurrent TCP or UDP sessions and identify a session using its five-tuple.
How it connects
Connects transport layer, port numbers, sockets, five-tuples, TCP, UDP, and ephemeral ports.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Acing the CCNA Exam: Volume 1 Fundamentals and Protocols. The section links point to the parts of the book it draws on.