Multiplexing: How Several Conversations Share One Path
A single optical fiber can carry several channels using different wavelengths of light. Equipment combines the channels at one end and separates them at the other. They share a path without having to become one indistinguishable signal.
This is multiplexing: combining separate signals or streams of data so they can travel over a shared communications path. The receiving end performs demultiplexing, separating what belongs to each channel again.
Both ends need a rule they understand. With light, that rule can be wavelength. With other signals, it might be a turn on a schedule. Software can use labels to keep several conversations straight.
Why the Internet Doesn't Work Like a Phone Call
Sharing can mean taking turns
In time-division multiplexing, each channel gets recurring intervals in which to send. Consider a simplified system carrying three conversations: a piece of the first travels, then a piece of the second, then a piece of the third. The pattern repeats, and the receiver uses those assigned intervals to separate the conversations.
All three conversations can remain in progress even though their individual bits—the ones and zeros carrying digital information—aren't traveling at precisely the same instant.
Frequency-division multiplexing makes room differently. Frequency is how often a wave repeats. This method assigns different frequency ranges to the channels, so they can use the shared path at the same time. The International Telecommunication Union's terminology describes both methods.
The fiber example uses wavelength-division multiplexing, or WDM. Light channels with different wavelengths travel through the same fiber. An optical multiplexer brings them together; a demultiplexer separates them at the destination. Cisco's optical networking guide explains the arrangement.
A browser uses numbers instead
Software has a similar need. A web page can require several things from a server, and keeping their contents separate matters as much as getting them across the connection.
Suppose a browser requests an image and a stylesheet, the file that controls a page's appearance. With HTTP/2, a version of the web's request-and-response protocol, the two exchanges can share one connection.
HTTP/2 gives each exchange a stream. It divides communication into pieces called frames, and each stream's frames carry a number identifying where they belong.
The server can therefore send a piece of the image, a piece of the stylesheet and another piece of the image. The browser follows the stream numbers to keep the two exchanges apart. Mixing their frames in transit doesn't mean mixing an image's contents into the stylesheet.
This happens in software, as described in the HTTP/2 specification. The browser isn't assigning a different color of light to each file. Stream numbers organize the web traffic; the network beneath carries it.
- Keep work, guest and smart-home gear apart with up to 32 VLANs on one small switch.
- Copy any port's traffic to your laptop with port mirroring and see what is on the wire.
- Set it up from a web page instead of learning a command line.
The shared path still has limits
Several streams sharing a connection also share its available bandwidth. Multiplexing can organize use of that capacity, but it doesn't make the capacity unlimited.
The receiver needs room to hold incoming data, too. HTTP/2 uses flow control, rules that limit how much data a sender can send before the receiving side is ready for more.
A further limit comes from the connection underneath. HTTP/2 streams share a Transmission Control Protocol (TCP) connection, which delivers data in order. If TCP is waiting for a missing piece, later data can be held up—even when it belongs to another HTTP/2 stream. Stream labels solve the sorting problem without removing that wait.
Circuit Switching: Why a Silent Phone Call Still Takes Up Space

Packet-Switched Networks: How Many Conversations Share a Link

What Is a T1 Line? The 1.544-Mbps Limit Explained

QUOTE:
"Amateurs hack systems, professionals hack people."
