D12 · Lesson 10 · The channel
What happens to a signal between transmitter and receiver, additive noise and SNR, echoes from multipath and the notches they cut in the spectrum, delay spread against symbol time, frequency offset and Doppler, and measuring each of them from a known preamble
Between the speaker and the microphone, the modem's sound picks up room noise, bounces off walls, desk and ceiling so that delayed copies pile onto the direct sound, and shifts slightly in frequency if either device moves. Radio channels do the same things at much higher frequencies. A receiver can only undo what it can measure, so practical links start every packet with a known preamble and use it to estimate the noise level, when the signal arrived, how it echoes and how far its frequency has moved.
- The frequency response of a channel with a direct path and one echo of relative gain a, arriving τ milliseconds later: in dB.
- The echo adds in phase at some frequencies and cancels at others, cutting notches spaced 1/τ apart. A 1 ms echo puts notches every 1000 Hz, right across the modem's band.
- As a approaches 1 the notches become deep holes where a tone simply vanishes. That's frequency-selective fading.
Predict
A wall behind the microphone sends back an echo that travels 3.4 m farther than the direct sound. How many 1200 baud symbols later does it arrive?
3.4 m/343 m/s = 9.9 ms, and a symbol lasts 0.83 ms, so the echo lands about 12 symbols late. Each received symbol is mixed with an echo of one sent 12 symbols earlier: intersymbol interference far longer than any pulse shaping can prevent. Sound is slow, so even a small room makes a harsh channel.
Name it
Noise
Additive noise from the room, the microphone and its preamplifier sets the SNR, the ratio of mean signal power to mean noise power. For a known signal, subtract it and measure what's left.
Multipath
Each path k adds a copy with gain and delay :
A two-path channel has power gain : peaks of , notches of , spaced 1/τ. The delay spread is how long the echoes last. If it's much shorter than a symbol, the channel just scales the signal (flat fading); if it's longer, as in rooms, symbols smear into each other and need an equalizer (lesson 11) or OFDM's cyclic prefix (lesson 13). A known preamble's arrival time is found by cross-correlation, which peaks where the received copy lines up with it.
Frequency offset and Doppler
Mismatched clocks shift the carrier by (ppm × ). Motion shifts it by the Doppler factor for a speed v along the path. With sound, c is only 343 m/s, so walking at 1 m/s moves an 1800 Hz tone by 5.2 Hz, far more than a radio sees at the same speed relative to its wavelength. The offset shows as a steady rotation of a known complex tone, so averaging the phase step between samples measures it. Comparing samples L apart turns the same rotation into an L times bigger angle, so noise matters L times less, but the angle wraps once the offset passes : a fine estimate over a small range.
Worked example
A 1200 baud acoustic modem's echo arrives with half the direct path's amplitude, 1 ms late. Where are the notches in its band, and how deep?
Show the solution
- Where the notches fall. The echo cancels the direct path where which puts the notches at 500, 1500, 2500 Hz and so on, 1000 Hz apart.
- Notch depth.
- Peaks between.
- The mark tone at 1200 Hz. It sits between a notch and a peak:
Answer notches 6.0 dB deep at 500, 1500, 2500 Hz and so on, with peaks of +3.5 dB between; the mark tone gets +1.9 dB.
Worked example
A phone carried at 1 m/s receives the 1200 and 2200 Hz tones. How far do they shift?
Show the solution
- Doppler shift. A tone shifts by .
- The 1200 Hz tone.
- The 2200 Hz tone.
- Who notices. A noncoherent FSK receiver doesn't care, since its correlators' main lobes are 1200 Hz wide (lesson 4), but a coherent receiver's PLL has to follow it.
Answer 3.5 Hz for the 1200 Hz tone and 6.4 Hz for the 2200 Hz tone.
Worked example
What path difference makes an echo arrive 1 ms late in air, and how does a room's half-second reverberation compare with a 1200 baud symbol?
Show the solution
- Path difference. The distance sound covers in 1 ms:
- Symbol length. A symbol lasts 0.83 ms.
- Compare with the reverberation. A reverberation of 0.5 s smears each symbol over hundreds of later ones, so acoustic modems must either equalize or use slow symbols with long guard times.
Answer 34.3 cm of extra path, and the reverberation spans hundreds of 0.83 ms symbols.
Check
Model a channel and measure it: noise, echoes, arrival time and frequency offset.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
An echo travels 3.4 m farther than the direct sound. How many samples later does it arrive at 8000 samples per second?
Check
An echo of relative amplitude 0.5 arrives with the direct signal. How deep are the notches it cuts?
Check
A microphone moves toward a speaker at 1 m/s. How far does a 1200 Hz tone shift?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
Check
A receiver estimates frequency offset by comparing samples 10 apart at 9600 samples per second. What's the largest offset it can measure without the phase wrapping?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
Check
An echo of amplitude 0.5 arrives 0.5 ms after the direct sound.
(a)
How far apart are the notches?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
(b)
How deep are they?
(c)
What extra path length causes it?
Check
A phone moves at 1 m/s while receiving a 1200 Hz tone.
(a)
How far does the tone shift?
Write units the way you normally would: 1.5 Hz, 1500 mHz and 0.0015 kHz are the same answer.
(b)
What fractional shift is that?
Explain why
Why do echoes that are much shorter than a symbol cause less trouble than echoes that are longer?
If every echo arrives within a small fraction of a symbol after the direct path, each received symbol is just a slightly smeared, rescaled copy of itself, so the receiver sees the same symbol with a different gain and phase and can correct that with a single multiplier. When the echoes are delayed by a symbol or more, each received symbol also contains delayed copies of earlier symbols carrying different data. That intersymbol interference can't be removed by one gain; the receiver needs an equalizer that knows the echo pattern, or a scheme like OFDM that makes its symbols much longer than the echoes and adds a guard interval to absorb them.
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.