Multiplexing

Imagine a highway with cars on them. Many cars can drive independently, while sharing the same highway. The rules of traffic (ideally) avoid crashes or traffic jams.

This is basically an example of multiplexing: multiple streams (of information, of activities) share the same resource. At the end of the trips, each "package" is still distinguishable.

Tmux

Tmux is a terminal multiplexer for connecting to an SSH server. Whereas traditionally you required one SSH connection to run an application, another SSH connection to monitor logs, another SSH connection to run diagnostic commands (etc. etc.), you now have a single SSH connection (the "multilane highway") that supports the traffic of multiple terminal sessions.

IP multiplexing

You can extend this idea to networking, where "IP multiplexing" may mean several things (which are not technically the same):

  1. TCP/UDP port multiplexing

Your computer has a single IP address, but multiple apps use that same IP address for outgoing traffic. However, different applications use different ports (and a protocol, destination IP etc.) that can be used to identify the source process. When response traffic arrives, the OS can "demultiplex" and relate the traffic back to the relevant process.

  1. Combining packets

Multiple IP packets can be combined into a larger packet.

  1. Multiple workloads sharing a smaller pool of outbound IP addresses

You see this in Flex Consumption App networking. The "highway" in the metaphor here is a shared pool of available IP addresses, which are dynamically allocated in a smart way so that you don't have to statically reserve a single IP per app instance, so that you can effectively run a lot instances with a relatively limited set of IP addresses. Unless, of course, all these apps constantly run at full load... :-)

History Β· 1 change since 2026-12-01

Full changelog