D12 · Lesson 13 · OFDM
Splitting a fast stream into many slow subcarriers, orthogonality and the FFT that makes it cheap, the cyclic prefix that turns echoes into one complex gain per subcarrier, one-tap equalization, frequency offsets and the leakage they cause, and the numbers behind Wi-Fi's 54 Mb/s
A single fast carrier in a room full of echoes needs a long, adaptive equalizer. OFDM sidesteps the problem by sending hundreds of slow carriers side by side, each so slow that an echo is short compared with its symbols. A short guard interval, the cyclic prefix, absorbs the echo completely, and then each subcarrier sees nothing worse than a fixed gain and phase, removed by one division. An inverse FFT builds all the subcarriers at once and an FFT separates them. Wi-Fi, DSL, LTE, 5G and digital TV all work this way.
- Six neighboring subcarriers' spectra, each a sinc centered on its frequency, with frequency measured in subcarrier spacings.
- Each sinc passes through zero exactly at every other subcarrier's center, so sampling subcarrier 2 at its center sees only its own symbol: the subcarriers overlap and still don't interfere.
- Give the receiver a frequency offset ε and the marker moves off center. Its own subcarrier shrinks and the neighbors leak in: inter-carrier interference.
Predict
An OFDM system uses 64 subcarriers and a 16-sample cyclic prefix. An echo arrives 10 samples after the direct path. What does it do to the subcarriers?
The echo is shorter than the prefix, so within the FFT window every subcarrier sees whole cycles of both the direct path and the echo. Two sinusoids of the same frequency add to one sinusoid of that frequency, so each subcarrier comes out multiplied by one complex number, , different for each subcarrier. Dividing by it undoes the echo. An echo longer than 16 samples would spill into the next symbol.
Name it
Subcarriers
N subcarriers spaced apart, each carrying one symbol for a time . Over that time each subcarrier is a whole number of cycles, so they're orthogonal: their spectra are sincs with zeros on every other center. The transmitter builds the sum with an inverse FFT; the receiver separates it with an FFT, at a cost of operations instead of .
The cyclic prefix
Copying the last samples to the front makes the channel's linear convolution look circular within the FFT window, as long as the channel's impulse response is no longer than the prefix. Then
and a one-tap equalizer divides by , estimated from known pilot subcarriers or a training symbol. The prefix costs of the airtime.
Frequency offset
An offset of ε subcarrier spacings shrinks each subcarrier to sinc(ε) and leaks sinc(1 − ε) from each neighbor: −19.2 dB at ε = 0.1. OFDM receivers estimate and remove the offset from the preamble to a few percent of a spacing.
Practical details
Subcarriers in a deep notch carry little, so codes spread each bit across many subcarriers, and DSL loads more bits onto subcarriers with better SNR. The sum of many subcarriers has a high peak-to-average ratio, so transmitters need linear amplifiers with back-off (lesson 9).
Worked example
Wi-Fi (802.11a/g) samples at 20 MHz with a 64-point FFT and a 16-sample prefix, and 48 of the subcarriers carry data. What's its subcarrier spacing, symbol time and top data rate with 64-QAM at rate 3/4?
Show the solution
- Subcarrier spacing.
- Symbol time. The FFT window plus the prefix:
- Data bits per symbol. 64-QAM carries 6 bits per subcarrier:
- Data rate.
- Echo tolerance. The prefix absorbs echoes up to 0.8 µs, 240 m of extra path.
Answer 312.5 kHz spacing, a 4 µs symbol and a top rate of 54 Mb/s.
Worked example
An acoustic OFDM modem samples at 9600 Hz with 256 subcarriers and a 64-sample prefix. What spacing, symbol time and echo tolerance does it have?
Show the solution
- Subcarrier spacing.
- Symbol time.
- Prefix. That's 20% overhead, and it absorbs echoes from up to 2.3 m of extra path.
- Real rooms. Rooms reverberate for longer than that, so acoustic modems accept some leftover interference or use longer prefixes.
Answer 37.5 Hz spacing, 26.7 ms symbols plus a 6.7 ms prefix, and tolerance for echoes from up to 2.3 m of extra path.
Worked example
What is the worst-case peak-to-average power ratio of OFDM with 256 subcarriers?
Show the solution
- The worst case. If all 256 subcarriers line up in phase, the peak is 256 times the average:
- Real symbols. They rarely come close, but peaks of 10 to 12 dB are common.
- Headroom. The transmitter's amplifier (here a speaker) must have that much headroom or the signal clips.
Answer 256 times the average power, or 24.1 dB.
Check
Build an OFDM modulator and demodulator with a cyclic prefix, and equalize a channel.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
An OFDM system samples at 10 MHz with a 64-point FFT. What's its subcarrier spacing?
Write units the way you normally would: 1.5 kHz, 1500 Hz and 0.0015 MHz are the same answer.
Check
An OFDM symbol has 64 samples plus an 8-sample cyclic prefix. What percentage of the airtime does the prefix use?
Check
A Wi-Fi symbol (4 µs) has 48 data subcarriers, each carrying 2 coded bits at code rate 0.5. What's the data rate?
Write units the way you normally would: 1.5 Mbit/s, 1500 kbit/s and 0.0015 Gbit/s are the same answer.
Check
An OFDM receiver's frequency is 0.05 of a subcarrier spacing off. How strongly, relative to a full subcarrier, does each neighbor leak in?
Check
An OFDM modem samples at 20000 Hz with 64 subcarriers and a 64-sample cyclic prefix.
(a)
What is the subcarrier spacing?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
(b)
How long is each symbol, with its prefix?
(c)
What share of the time is the prefix?
Check
OFDM uses 256 subcarriers of equal power.
(a)
What is the worst-case peak-to-average power ratio?
(b)
As a ratio?
Explain why
Why does a cyclic prefix let OFDM undo echoes with just one division per subcarrier?
An echo is a delayed copy of the signal, so without a prefix the start of each FFT window would contain the tail of the previous symbol's echo, mixing symbols together. With a prefix that's at least as long as the echo, that spillover falls entirely within the prefix, which the receiver throws away. Because the prefix is a copy of the symbol's own end, what remains in the window looks like the symbol shifted around circularly, and a circular shift of a whole number of cycles only changes each subcarrier's phase. Adding the direct path and its echoes therefore multiplies each subcarrier by a single complex number, the channel's frequency response at that subcarrier, and dividing by it restores the data.
Practice
Keep practicing
8 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.