Sub topic 5
Sharing a link: FDM, TDM and statistical multiplexing
This chapter assumes you know what a bit, a byte and a rate in bits per second are, and that you can convert between kilo, mega and giga. It also assumes you know that a network link connects two devices. The chapter explains how many conversations can share one physical link. It also explains why that choice decides how much delay and wasted capacity a user sees.
What multiplexing means
Multiplexing is a way for several senders to share one link. A multiplexer sits at the sending end and merges the streams. A demultiplexer sits at the receiving end and separates them again. The demultiplexer must be able to tell which piece of the combined signal belongs to which conversation. The three techniques below differ in how they make that possible.
| Technique | What is divided | How the receiver identifies a stream | Typical use |
|---|---|---|---|
| FDM (frequency-division) | Frequency range of the link | The frequency band | Radio, cable TV, analog telephone trunks |
| Synchronous TDM (time-division) | Time, in fixed repeating slots | The position of the slot in the frame | Digital telephone trunks (T1/E1) |
| Statistical multiplexing | Nothing is reserved; units are sent on demand | A header (address or label) on each unit | Packet networks, including the Internet |
Frequency-division multiplexing (FDM)
FDM splits the link's bandwidth, measured in hertz, into separate frequency bands. Each conversation owns one band for the whole time it is connected. All bands carry signals at the same moment.
Neighbouring bands are separated by guard bands. These are unused slices of spectrum that stop adjacent signals from interfering.
Suppose a link has 48 kHz of usable spectrum and each voice channel needs 4 kHz. Without guard bands you would fit 12 channels. With a 1 kHz guard band between each pair of neighbours, n channels need 4n + (n − 1) kHz. The value n = 9 needs 44 kHz and n = 10 needs 49 kHz, so only 9 channels fit.
Two points matter for exams:
- FDM bandwidth is in hertz, not bits per second. Converting to a bit rate needs a modulation or the Shannon/Nyquist formulas, which are outside this chapter.
- A band belongs to its user even when the user is silent. The idle spectrum cannot be lent to anyone else.
Synchronous time-division multiplexing (TDM)
TDM divides time instead of frequency. Time is cut into frames, and each frame is cut into N equal slots. User i may send only in slot i of every frame. During its slot a user has the whole link rate. Over a long period, each user gets a fraction 1/N of the link rate.
The classic example is the T1 line. A frame has 24 slots of 8 bits each, plus 1 framing bit. That makes 24 × 8 + 1 = 193 bits per frame. There are 8000 frames per second, so the link rate is 193 × 8000 = 1,544,000 bits/s, or 1.544 Mbps. Each slot carries one byte every 125 µs, so each channel gets 8 × 8000 = 64 kbps.
No address is needed. The receiver knows who owns a bit from its position within the frame, which is why the sender and receiver must stay synchronized.
Transfer time over a TDM circuit
TDM and FDM are the usual ways to build circuits in a circuit-switched network. A circuit-switched transfer takes three parts: setup time, transmission time at the circuit's rate, and propagation delay. The rate is the link rate divided by the number of circuits, even if the other circuits are idle.
def circuit_transfer_time(file_bits, link_bps, circuits, setup_s=0.0, prop_s=0.0):
"""Time to send a file over one TDM/FDM circuit.
Each circuit gets link_bps / circuits, whether or not the others are in use."""
circuit_rate = link_bps / circuits
return setup_s + file_bits / circuit_rate + prop_s
# 640,000-bit file, 1.536 Mbps link shared by 24 circuits, 500 ms setup
print(circuit_transfer_time(640_000, 1_536_000, 24, setup_s=0.5)) # 10.5The circuit rate is 1,536,000 / 24 = 64,000 bits/s. The file needs 640,000 / 64,000 = 10 s, and the setup adds 0.5 s, giving 10.5 s. FDM gives the same answer because each of the 24 bands also carries 64 kbps.
The cost of reserving capacity
Suppose a user is idle. Their slot still goes by in every frame, empty, and nobody else can use it. If a user is active only 10% of the time, synchronous TDM wastes about 90% of that user's reserved capacity.
A user also cannot go faster than 1/N of the link. If one of 24 users has a large file and the other 23 are silent, the file still moves at 64 kbps.
Statistical multiplexing
Statistical multiplexing does not reserve anything. Each sender splits its data into packets. A packet is a unit of data with a header attached. The packets from all senders join a shared queue, and the link sends them one after another at the full link rate.
The header tells the receiver which conversation a packet belongs to. This costs extra bits on every packet, which synchronous TDM does not pay.
Two things follow from the design:
- When only a few senders are active, each one can use most of the link.
- If several senders transmit at the same moment, their packets arrive faster than the link can send them. The extra packets wait in a buffer. This waiting is queuing delay. If the buffer fills, packets are dropped.
The design works because senders are bursty, meaning they are rarely all active together. Capacity is given to whoever needs it right now, so the link is better used than with fixed slots.
How many users can share the link?
Take a 1 Mbps link. Each user sends at 100 kbps when active and is active 10% of the time. With reserved circuits, the link supports 1 Mbps / 100 kbps = 10 users. With packet sharing, we can admit more users and accept a small chance of overload.
Suppose there are 35 users. The link is overloaded only if more than 10 are active at once. The number of active users follows a binomial distribution with n = 35 and p = 0.1.
from math import comb
def overload_probability(users, p_active, capacity_users):
"""P(more than capacity_users of the users are active at once)."""
return sum(
comb(users, k) * p_active**k * (1 - p_active) ** (users - k)
for k in range(capacity_users + 1, users + 1)
)
print(f"{overload_probability(35, 0.1, 10):.4f}") # 0.0004The overload probability is about 0.0004, so the queue grows in well under 0.1% of the time. The link carries 3.5 times as many users as circuit switching, and the average active count is only 35 × 0.1 = 3.5 users. This benefit is called the statistical multiplexing gain.
Comparing the techniques
| Property | FDM | Synchronous TDM | Statistical multiplexing |
|---|---|---|---|
| Capacity reserved per user | A frequency band | A slot in every frame | None |
| Idle capacity usable by others | No | No | Yes |
| Per-unit header needed | No | No | Yes |
| Queuing delay | None | None once the slot is assigned (a sender may wait for its next slot) | Yes, varies with load |
| Risk of overload and loss | No, admission is limited | No, admission is limited | Yes, if buffers fill |
| Peak rate for one user | Band width only | Link rate / N | Up to the full link rate |
Common errors
- Treating TDM as faster than FDM. With the same link rate and the same number of circuits, each circuit gets the same rate. They differ in how the capacity is divided, not in how much each user receives.
- Using the full link rate for a circuit. In a circuit-switched network with N circuits, a transfer proceeds at link rate / N. Use that rate in the transmission-time formula.
- Forgetting setup time. Circuit switching adds setup time before any bit moves. The 500 ms in the example above is a typical figure in textbook questions.
- Saying statistical multiplexing is lossless. It trades a small chance of buffer overflow for better use of the link.
- Mixing hertz and bits per second. Add and divide spectrum in Hz. Add and divide rates in bits/s. Do not mix the two.
Looking ahead
Synchronous TDM and FDM are the main ways to build circuits. The next chapter covers circuit switching: setting up a dedicated path, using it, and tearing it down. Statistical multiplexing is the core of packet switching, which is a later chapter. The queuing delay mentioned here is analysed in the chapters on delay and utilization.
Exercise
A link has a rate of 2.048 Mbps and is shared by 32 TDM circuits. Setup takes 400 ms. How long does it take to send a 1,280,000-bit file over one circuit? Ignore propagation delay.
Show answer
The circuit rate is 2,048,000 / 32 = 64,000 bits/s. The transmission time is 1,280,000 / 64,000 = 20 s. Adding the 0.4 s setup gives 20.4 s.
Exercise
A 1 Mbps link is shared by users who each send at 250 kbps when active. How many users can circuit switching support? If each user is active 20% of the time and 12 users share the link by packet switching, in which situation is the link overloaded?
Show answer
Circuit switching supports 1 Mbps / 250 kbps = 4 users. With packet switching, the link is overloaded when more than 4 users are active at the same moment, because 5 × 250 kbps = 1.25 Mbps exceeds 1 Mbps. The number of active users among the 12 is binomial with n = 12 and p = 0.2, so the average is 2.4 active users. Overload is possible but not frequent.
Exercise
Why does synchronous TDM need no header on each slot, while statistical multiplexing does?
Show answer
In synchronous TDM the position of a slot in the frame identifies its owner, so the receiver knows the stream without any extra bits. In statistical multiplexing, packets from different users are sent in whatever order they arrive, so there is no fixed position. Each packet needs a header with an address or label that tells the receiver which conversation it belongs to.