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

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, log2⁡(1+SNR), 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?

Name it

The capacity formula

For a channel of bandwidth B with Gaussian noise and signal-to-noise ratio SNR,

C=Blog2⁡(1+SNR) bits per second

Below C, codes exist that make the error rate as small as desired; above it, errors are unavoidable. The ratio η=Rb/B is the spectral efficiency.

Diminishing returns

At high SNR, log2⁡(1+SNR)≈SNRdB/3: 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 (Eb/N0)η and requiring η≤log2⁡(1+(Eb/N0)η) gives the least energy per bit for each spectral efficiency:

EbN0≥2η−1η

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
  1. Capacity. 30 dB is an SNR of 1000: C=3000×log2⁡1001=29.9kb/s
  2. 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 Eb/N0 for 2 and for 6 bits per second per hertz? What SNR does 4 b/s/Hz need?

Show the solution
  1. 2 b/s/Hz. (22−1)/2=1.5 or 1.76 dB.
  2. 6 b/s/Hz. (26−1)/6=10.5 or 10.2 dB.
  3. SNR for 4 b/s/Hz. It must be at least 24−1=15 or 11.8 dB.

Answer the least Eb/N0 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
  1. Capacity. −10 dB is an SNR of 0.1: C=106log2⁡(1+0.1)=138kb/s
  2. 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 Eb/N0 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 Eb/N0 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?

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.