Multiplexing: An Intro to How it Works

Takeaway:
Ever wondered how all those emails, pictures and tweets can travel over the internet without clashing with each other? In this article we’ll take a high-level look at the technique that makes this possible.

Let’s say you send an email from your PC to a friend in another city. Your email leaves your house and joins up with other messages being transmitted in your neighborhood. The messages from your neighborhood feed into a larger transmission line and join together with other messages from your city. Eventually, your email gets dropped off at the correct destination in the correct city.

Multiplexing Basics

Multiplexing basically involves taking multiple signals and combining them into one signal for transmission over a single medium, such as a telephone line. The input signals can be either analog or digital. The purpose of multiplexing is to enable signals to be transmitted more efficiently over a given communication channel, thereby decreasing transmission costs.

Email Newsletter

A device called a multiplexer (often shortened to "mux") combines the input signals into one signal. When the multiplexed signal needs to be separated into its component signals (for example, when your email is to be delivered to its destination), a device called a demultiplexer (or "demux") is used.

Multiplexing was originally developed in the 1800s for telegraphy. Today, multiplexing is widely used in many telecommunications applications, including telephony, internet communications, digital broadcasting and wireless telephony.

Time Division Multiplexing

In time division multiplexing (TDM), each input signal (or data stream) is assigned a fixed-length time slot on a communication channel. Each sender transmits a block of data during its assigned time slot.

For example, let’s say that input streams from three sending devices are being multiplexed into one signal for transmission over a single physical channel. Device 1 transmits a block of data during time slot 1, device 2 transmits a block of data during time slot 2, and device 3 transmits a block of data during time slot 3. After device 3 transmits, the cycle begins again with each device transmitting in turn in its assigned time slot.

A drawback to standard TDM is that each sending device has a reserved time slot in each cycle, regardless of whether it is ready to transmit. This can result in empty slots and underutilization of the multiplexed communication channel.

Statistical TDM (STDM) represents an improvement over standard TDM. In STDM, if a sender is not ready to transmit in a cycle, the next sender that is ready can transmit. This reduces the number of wasted slots and increases the utilization of the communication channel. STDM data blocks are known as packets and must contain header information to identify the receiving destination.

How to Optimize Use of the Hybrid Cloud

This webinar looks at the history of hybrid cloud and why its adoption is skyrocketing, the challenges that come with adopting public cloud, and the what, when and where to run your workloads.

Frequency Division Multiplexing

In frequency division multiplexing (FDM), each signal is assigned its own frequency range (or channel) within a larger frequency band. Frequency ranges for channels cannot overlap. Frequency bands are often separated by an unused block of the frequency spectrum to reduce interference.

FDM is used mainly for analog transmissions. It can be used over both wired and wireless mediums.

An example of an application that uses FDM is FM radio. FM is a band that occupies the frequency range from 88 MHz to 108 MHz within the larger radio frequency spectrum. Each radio station transmits at the frequency assigned to its channel (for example, 95.7 MHz, 98.3 MHz, and so on).

Another application that uses FDM is cable TV. The TV transmission cable carries all available channels at their assigned frequencies. When you choose a cable channel with your remote control, the set-top box processes the signal at the frequency assigned to that channel.

Code Division Multiplexing

In code division multiplexing (CDM), signals from multiple senders are transmitted in an assigned frequency band. CDM uses a principle known as spread spectrum, in which transmitted signals are spread out over all frequency channels in the assigned band.

In simplest terms, each signal in a CDM system is multiplexed by means of a spreading code assigned to the sender. This spreading code modulation increases the bandwidth required for the signal. The receiver is aware of the spreading code and uses it to demultiplex the signal.

Although it increases the bandwidth needed for transmission, CDM has the advantage of being more secure than other types of multiplexing. In CDM transmissions, an individual user’s signal is mixed in with the signals of other users in the frequency band. Without the spreading code required for demultiplexing an individual signal, CDM transmissions appear merely to be noise to a receiving device.

CDM is used in cellular telephone systems.

Just One Layer of the OSI

As you can see, transmitting an email from your PC or a picture from your phone is a complicated affair. We’ve only scratched the surface of the complexities of multiplexing; there are other types of multiplexing and there are multiple variations of the types we’ve discussed. And multiplexing is only one task in one layer of the Open Systems Interconnection (OSI) model, which describes the architecture for enabling data communications between systems. (Get some background information in An Introduction to the OSI Model.)

At Techopedia, we aim to provide insight and inspiration to IT professionals, technology decision-makers and anyone else who is proud to be called a geek. From defining complex tech jargon in our dictionary, to exploring the latest trend in our articles or providing in-depth coverage of a topic in our tutorials, our goal is to help you better understand technology - and, we hope, make better decisions as a result.