D4 · Lesson 6 · Shannon capacity
Shannon's formula for the most bits per second any scheme can send error-free through a noisy channel of given bandwidth and SNR, spectral efficiency, why extra SNR gives diminishing returns, the minimum energy per bit of −1.6 dB, and how close real links come
In 1948 Claude Shannon proved something that seemed impossible: a noisy channel can carry information with as few errors as you like, as long as you send slower than a definite limit, its capacity. Above that limit, no scheme can avoid errors; below it, a clever enough code can make them vanish. The formula is short enough to fit on a business card, and for fifty years engineers chased it. Modern Wi-Fi, 5G and deep-space links, using the codes of lesson 8, now operate within about a decibel of it.
- The capacity per hertz of bandwidth, , against the SNR in decibels.
- At high SNR each extra 3 dB, a doubling of power, buys only one more bit per second per hertz. At low SNR capacity grows almost in proportion to power.
- The readouts give the capacity of a channel of bandwidth B at the chosen SNR.
Predict
A 20 MHz Wi-Fi channel has an SNR of 25 dB. What's the most it could possibly carry, error-free?
25 dB is a ratio of 316, and = 20 MHz × log₂ 317 = 20 × 8.31 = 166 Mb/s. Real single-antenna Wi-Fi in 20 MHz manages about 86 Mb/s at this SNR (64-QAM with rate-5/6 coding) and 143 Mb/s at its very best, and multiple antennas multiply that by sending independent streams.
Name it
The capacity formula
For a channel of bandwidth B with Gaussian noise and signal-to-noise ratio SNR,
Below C, codes exist that make the error rate as small as desired; above it, errors are unavoidable. The ratio is the spectral efficiency.
Diminishing returns
At high SNR, : each doubling of power adds one bit per second per hertz. More bandwidth helps more: at the same total power, doubling B halves the SNR but doubles the multiplier.
The energy limit
Writing SNR as and requiring gives the least energy per bit for each spectral efficiency:
As η → 0 (unlimited bandwidth), this falls to ln 2 = 0.693, or −1.59 dB: no scheme can communicate reliably with less energy per bit. Uncoded BPSK needs 10.5 dB for an error rate of 10⁻⁶, so good coding is worth up to about 10 dB.
Worked example
A telephone line passes 3 kHz with an SNR of 30 dB. What's its capacity?
Show the solution
- Capacity. 30 dB is an SNR of 1000:
- Dial-up modems. That's why dial-up modems stalled at 28.8 and 33.6 kb/s (56k modems used a digital trick at the phone company's end).
Answer the line's capacity is 29.9 kb/s.
Worked example
What's the least for 2 and for 6 bits per second per hertz? What SNR does 4 b/s/Hz need?
Show the solution
- 2 b/s/Hz. or 1.76 dB.
- 6 b/s/Hz. or 10.2 dB.
- SNR for 4 b/s/Hz. It must be at least or 11.8 dB.
Answer the least is 1.76 dB for 2 b/s/Hz and 10.2 dB for 6 b/s/Hz, and 4 b/s/Hz needs an SNR of at least 11.8 dB.
Worked example
What is the capacity of a 1 MHz channel whose SNR is −10 dB, below the noise?
Show the solution
- Capacity. −10 dB is an SNR of 0.1:
- Below the noise. Capacity never reaches zero: with enough coding (or spreading), data can be carried under the noise, which is how GPS signals, arriving at about −20 dB, are received.
Answer the capacity is 138 kb/s.
Check
A 20 MHz channel has an SNR of 15 dB. What's its Shannon capacity?
Write units the way you normally would: 1.5 Mb/s, 1500 kb/s and 0.0015 Gb/s are the same answer.
Check
What's the least SNR that can support 4 bits per second per hertz?
Check
What's the least that can support 2 bits per second per hertz?
Check
A 10 kHz audio channel has an SNR of 10 dB. What's its capacity?
Write units the way you normally would: 1.5 kb/s, 1500 b/s and 0.0015 Mb/s are the same answer.
Check
A channel has 1 MHz of bandwidth and −10 dB SNR.
(a)
What is its capacity?
Write units the way you normally would: 1.5 Mb/s, 1500 kb/s and 0.0015 Gb/s are the same answer.
(b)
How many bits per second per hertz is that?
Check
A link must carry 4 bits per second per hertz.
(a)
What is the least that Shannon allows?
(b)
What is the least SNR?
Explain why
Why does doubling a link's power add only one bit per second per hertz at high SNR?
Capacity grows with the logarithm of one plus the signal-to-noise ratio, because what limits a channel is how many distinguishable signal levels fit between the noise's spread and the signal's size. The number of distinguishable levels grows with the ratio of signal amplitude to noise amplitude, the square root of the power ratio, and the bits per symbol grow with the logarithm of that number. Doubling the power multiplies the number of levels by about √2 in each of two dimensions, which adds one bit per two-dimensional symbol, or one bit per second per hertz. More bandwidth, by contrast, adds whole new symbols per second, so at low SNR extra bandwidth buys more capacity than extra power.
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.