---
title: Signals, bandwidth and the channel
heading: Shannon's model of a communication system, what "bandwidth" means for a real signal, distortionless channels, noise, SNR and Eb/N0
eyebrow: S8 · Lesson 1 · Signals, bandwidth and the channel
xp: 50
---

::: hook
Every communication system, from a 1920s AM station to a 5G phone, fits Claude Shannon's 1948 picture: a source, a transmitter that turns messages into signals, a channel that attenuates, distorts and adds noise, and a receiver that tries to undo the damage. What separates good systems from bad is how they spend the two scarce resources the channel offers, bandwidth and signal power, against noise. This course follows that trade from analog modulation through digital modems to coding near the Shannon limit. It starts with the bookkeeping: what bandwidth really means for a pulse train, and how signal-to-noise ratio and energy per bit connect.
:::

::: play
- The power spectral density of a random binary (NRZ) signal at bit rate $R_b$, $S(f) \propto \text{sinc}^2(f/R_b)$, in dB against frequency in units of $R_b$.
- The first null sits at $R_b$ and holds 90.3% of the power; the half-power bandwidth is only 0.443 $R_b$, while 99% of the power needs about 10 $R_b$ because the sidelobes fall slowly.
- "Bandwidth" has no single meaning: every definition draws a different line on this one curve, which is why sharp pulses are replaced by shaped ones (lesson 9).
:::
:::

```sim plot
view: graph
x: f = 0..5
y: S = -40..2 dB
plot: 20*log(abs(sin(pi*(f + 1e-9))/(pi*(f + 1e-9)))) | samples: 1000 | label: NRZ spectrum, dB
plot: -3.01 | dashed | color: ch3 | label: half power
marker: f = 1 | label: first null
```

::: predict
## A receiver needs Eb/N0 = 10 dB at 1 Mb/s and its noise bandwidth is 0.5 MHz. What SNR does that correspond to?

- [ ] 10 dB
- [x] 13 dB
- [ ] 7 dB
- [ ] 20 dB

::: reveal
SNR = (Eb/N0)(Rb/B): 10 dB + 10 log(1/0.5) = 13.0 dB. Signal power is energy per bit times bits per second, and noise power is N0 times bandwidth. Sending more bits per hertz needs more SNR for the same Eb/N0, which is the bandwidth–power trade in one line.
:::
:::

::: nameit
## The system

Source → source encoder → channel encoder → modulator → **channel** → demodulator → decoders → destination. The channel attenuates, distorts (its frequency response isn't flat), and adds noise and interference.

## Distortionless transmission

A channel $H(f) = Ke^{-j2\pi f\tau}$, constant gain and linear phase, delivers $Kx(t - \tau)$: an exact, delayed copy. The delay is the negative slope of the phase, $\tau = -\frac{1}{2\pi}\frac{d\phi}{df}$. Real channels are close to this only over a limited band.

## Bandwidth

For a pulse train at $R_b$ = 1/T bits per second with rectangular pulses (NRZ), $S(f) \propto T\,\text{sinc}^2(fT)$:

- half-power (3 dB) bandwidth 0.443 $R_b$;
- first-null bandwidth $R_b$ (90.3% of the power), $2R_b$ for 95.0%;
- 99%-power bandwidth about 10 $R_b$.

A passband signal occupies twice its baseband bandwidth around the carrier.

## Noise, SNR and Eb/N0

White thermal noise has density $N_0 = kT_\text{sys}$, so in bandwidth B the noise is $N_0B$: −174 dBm/Hz + 10 log B + NF. With signal power S and bit rate $R_b$:

$$E_b = \frac{S}{R_b}, \qquad \text{SNR} = \frac{S}{N_0B} = \frac{E_b}{N_0}\cdot\frac{R_b}{B}$$

$E_b/N_0$ is the fair way to compare digital schemes, since it doesn't depend on the bandwidth chosen.
:::

::: example
## A receiver with a 5 dB noise figure gets −90 dBm in a 1 MHz bandwidth carrying 2 Mb/s. What are its SNR and Eb/N0?

::: solution
1. **Noise.** In the 1 MHz bandwidth, with the 5 dB noise figure:
   $$\begin{aligned} N &= -174 + 60 + 5 \\ &= -109\ \text{dBm} \end{aligned}$$
2. **SNR.**
   $$\begin{aligned} \text{SNR} &= -90 - (-109) \\ &= 19\ \text{dB} \end{aligned}$$
3. **Eb/N0.** It's the SNR times $B/R_b$:
   $$\begin{aligned} \frac{E_b}{N_0} &= 19 + 10\log 0.5 \\ &= 16.0\ \text{dB} \end{aligned}$$
   The two differ because this signal carries 2 bits per second per hertz.

**Answer:** the SNR is 19 dB and Eb/N0 is 16.0 dB.
:::
:::

::: example
## A channel's phase is −72° at 1.00 MHz and −144° at 1.20 MHz, linear in between. What delay does it impose?

::: solution
1. **Phase change in radians.**
   $$\begin{aligned} \Delta\phi &= 72° \times \frac{\pi}{180} \\ &= 1.257\ \text{rad} \end{aligned}$$
2. **Delay.** Over $\Delta f$ = 0.2 MHz:
   $$\begin{aligned} \tau &= \frac{\Delta\phi}{2\pi\Delta f} \\ &= \frac{1.257}{2\pi \times 0.2 \times 10^6}\ \text{s} \\ &= \frac{1.257}{1.257 \times 10^6}\ \text{s} \\ &= 1.0\ \text{µs} \end{aligned}$$
3. **If the phase weren't linear.** Different frequencies across the band would arrive at different times: delay distortion.

**Answer:** the channel delays the signal by 1.0 µs.
:::
:::

::: example
## A 100 Mb/s link needs Eb/N0 = 10 dB and uses a 50 MHz noise bandwidth with a 4 dB noise figure. What SNR and received power does it need?

::: solution
1. **SNR.**
   $$\begin{aligned} \text{SNR} &= \frac{E_b}{N_0} + 10\log_{10}\frac{R_b}{B} \\ &= 10 + 3.0 \\ &= 13.0\ \text{dB} \end{aligned}$$
2. **Noise floor.**
   $$\begin{aligned} N &= -174 + 10\log_{10}(5 \times 10^7) \\ &\quad + 4 \\ &= -93.0\ \text{dBm} \end{aligned}$$
3. **Received power.** The receiver needs the noise floor plus the SNR:
   $$\begin{aligned} P &= -93.0 + 13.0 \\ &= -80.0\ \text{dBm} \end{aligned}$$
4. **Halving the noise bandwidth.** For the same bit rate it would leave the needed power unchanged: the SNR target rises by 3 dB as the noise falls by 3 dB.

**Answer:** the link needs an SNR of 13.0 dB and a received power of −80.0 dBm.
:::
:::

::: check
given: E = 4 | 10 | 15; R = 1 | 10 | 100; B = 0.5 | 2 | 50
answer: E + 10*log(R/B)
unit: dB
tolerance: 0.05

## A link runs at {R} Mb/s with Eb/N0 = {E} dB in a {B} MHz noise bandwidth. What's its SNR?

::: right
Right. $E_b/N_0 + 10\log(R_b/B)$ = {answer} dB.
:::

::: misses
- [E - 10*log(R/B)] SNR = (Eb/N0)(R_b/B): add, don't subtract, 10 log(R_b/B).
- [any] Not yet. S = $E_bR_b$ and N = $N_0B$.
:::
:::

::: check
given: P = -100 | -85 | -70; N = 3 | 8; R = 0.1 | 2 | 20
answer: P - (-174 + 10*log(R*1e6) + N)
unit: dB
tolerance: 0.05

## A receiver with {N} dB noise figure gets {P} dBm carrying {R} Mb/s. What's its Eb/N0?

::: right
Right. $E_b/N_0 = P - (-174 + 10\log R_b + \text{NF})$ = {answer} dB.
:::

::: misses
- [P - (-174 + 10*log(R) + N)] Use the bit rate in bits per second.
- [any] Not yet. $E_b/N_0 = S/(R_bN_0)$ with $N_0$ = −174 + NF dBm/Hz.
:::
:::

::: check
given: B = 0.01 | 1 | 20; N = 0 | 4 | 10
answer: -174 + 10*log(B*1e6) + N
unit: dBm
tolerance: 0.05

## What's the noise power in {B} MHz for a receiver with {N} dB noise figure?

::: right
Right. −174 + 10 log B + NF = {answer} dBm.
:::

::: misses
- [-174 + 10*log(B) + N] B must be in hertz.
- [any] Not yet. $N_0B$ with $N_0$ = −174 dBm/Hz at 290 K.
:::
:::

::: check
given: R = 9.6 | 100 | 1000
answer: 0.4429*R
unit: kHz
tolerance: 0.5%

## A binary NRZ signal runs at {R} kb/s. What's its half-power bandwidth?

::: right
Right. 0.443 $R_b$ = {answer} kHz.
:::

::: misses
- [R] That's the first-null bandwidth.
- [R/2] That's the Nyquist bandwidth of an ideal sinc pulse, not of NRZ's half-power point.
- [any] Not yet. $\text{sinc}^2(fT) = 1/2$ at fT = 0.443.
:::
:::

::: check
given: p = 30 | 60 | 90; f = 0.1 | 0.5 | 2
answer: p/360/(f*1e6)*1e6
unit: µs
tolerance: 0.5%

## Across a {f} MHz span a channel's phase drops linearly by {p}°. What's its delay?

::: right
Right. $\tau = \Delta\phi/(2\pi\Delta f)$ = {answer} µs.
:::

::: misses
- [p/(f*1e6)*1e6] Convert degrees to cycles: divide by 360.
- [any] Not yet. Delay = −dφ/dω.
:::
:::

::: check
given: S = 10 | 20 | 30; R = 2 | 4 | 6
answer: S - 10*log(R)
unit: dB
tolerance: 0.05

## A link has {S} dB SNR and carries {R} bits per second per hertz of bandwidth. What's its Eb/N0?

::: right
Right. $E_b/N_0 = \text{SNR}/(R_b/B)$ = {answer} dB.
:::

::: misses
- [S + 10*log(R)] Divide by the spectral efficiency: subtract its dB.
- [any] Not yet. Invert SNR = (Eb/N0)(R_b/B).
:::
:::

::: check
kind: parts
given: N = 2 | 5 | 8; B = 0.2 | 5 | 50; S = 6 | 15 | 25

## A receiver with a {N} dB noise figure uses a {B} MHz noise bandwidth and needs {S} dB SNR.

::: part
answer: -174 + 10*log(B*1e6) + N
unit: dBm
tolerance: 0.5%

### What is its noise floor?

::: misses
- [any] $-174 + 10\log_{10}B + \text{NF}$.
:::
:::

::: part
answer: -174 + 10*log(B*1e6) + N + S
unit: dBm
tolerance: 0.5%

### What signal power must it receive?

::: misses
- [any] Floor plus SNR.
:::
:::
:::

::: check
kind: derivation
vars: E = 0.5..1000, R = 1e3..1e9, B = 1e3..1e9, S = 1e-15..1e-3

## A link has Eb/N0 = E (linear), bit rate R and noise bandwidth B; separately, a received power S carries R bits per second.

::: step
answer: E*R/B

### What is the SNR?
:::

::: step
answer: S/R

### What is the energy per bit?
:::

::: step
answer: 10*log(E) + 10*log(R/B)

### What is the SNR in dB?
:::

::: right
Right. SNR and $E_b/N_0$ differ by the spectral efficiency $R_b/B$ in decibels.
:::
:::

::: explain
## Why is Eb/N0 a fairer measure than SNR for comparing digital modulation schemes?

::: model
SNR depends on how wide a bandwidth the noise is measured in, and different schemes occupy different bandwidths for the same bit rate: a scheme that packs four bits per hertz has four times the signal power per hertz of one that packs one. Comparing them at the same SNR would compare them at different signal energies per bit. $E_b/N_0$ divides out both the bit rate and the bandwidth: it's the energy spent per bit relative to the noise density, the actual cost of sending one bit. Two schemes can then be compared fairly on how much energy each needs per bit for a given error rate, and the bandwidth each uses is judged separately.
:::
:::

::: practice

::: check
given: E = 6 | 12; R = 1 | 50; B = 1 | 20
answer: E + 10*log(R/B)
unit: dB
tolerance: 0.05

## SNR from Eb/N0 {E} dB, {R} Mb/s, {B} MHz?

::: misses
- [any] $E_b/N_0 + 10\log(R_b/B)$.
:::
:::

::: check
given: B = 0.2 | 5; N = 2 | 7
answer: -174 + 10*log(B*1e6) + N
unit: dBm
tolerance: 0.05

## Noise in {B} MHz, NF {N} dB?

::: misses
- [any] −174 + 10 log B + NF.
:::
:::

::: check
given: R = 9.6 | 64 | 100 | 256 | 1000 | 2048
answer: 0.4429*R
unit: kHz
tolerance: 0.5%

## Half-power bandwidth of {R} kb/s NRZ?

::: misses
- [any] 0.443 $R_b$.
:::
:::
:::
