D1213 of 14
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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?

Name it

Subcarriers

N subcarriers spaced Δf=fs/N apart, each carrying one symbol Xk for a time T=N/fs=1/Δf. 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 Nlog2⁡N operations instead of N2.

The cyclic prefix

Copying the last Ncp 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

Yk=HkXk+noise,Hk=∑nh[n]e−j2πkn/N

and a one-tap equalizer divides by Hk, estimated from known pilot subcarriers or a training symbol. The prefix costs Ncp/(N+Ncp) 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
  1. Subcarrier spacing. Δf=20MHz64=312.5kHz
  2. Symbol time. The FFT window plus the prefix: T=6420MHz+0.8μs=3.2μs+0.8μs=4μs
  3. Data bits per symbol. 64-QAM carries 6 bits per subcarrier: 48×6×34=216bits
  4. Data rate. R=216bits4μs=54Mb/s
  5. 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
  1. Subcarrier spacing. 9600256=37.5Hz
  2. Symbol time. T=2569600s=26.7ms
  3. Prefix. Tcp=649600s=6.7ms That's 20% overhead, and it absorbs echoes from up to 2.3 m of extra path.
  4. 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
  1. The worst case. If all 256 subcarriers line up in phase, the peak is 256 times the average: 10log10⁡256=24.1dB
  2. Real symbols. They rarely come close, but peaks of 10 to 12 dB are common.
  3. 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?

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.