Sub topic 1
Radio basics: frequency, bandwidth and signal strength
Wi-Fi is radio. Every later topic in this tutorial (bands, channels, interference, modulation) builds on three quantities: frequency, bandwidth and signal strength. This chapter defines them and shows how they combine to limit the speed of a link.
Prerequisites
This chapter assumes you know:
- What a network and an IP address are.
- How a router, a switch and an access point differ.
- How to read short Python and shell snippets.
You do not need any radio or physics background. You do need to be comfortable with logarithms at the level of "10 to the power of 3 is 1000".
Frequency and wavelength
A radio signal is an electromagnetic wave that oscillates. Its frequency is the number of oscillations per second, measured in hertz (Hz). One MHz is a million Hz and one GHz is a billion Hz. Wi-Fi uses roughly 2.4, 5 and 6 GHz.
The wavelength is the distance the wave travels in one oscillation. It follows from the speed of light, c, which is about 299,792,458 m/s:
wavelength = c / frequency
Higher frequencies have shorter wavelengths. That has practical effects:
- Antennas for 5 and 6 GHz are smaller than those for 2.4 GHz.
- Short waves are absorbed or blocked more by walls, floors and people.
- Short waves also lose more energy over the same distance, as the path loss section below shows.
Bandwidth
In radio, bandwidth is the width of a slice of spectrum, measured in Hz. A Wi-Fi channel that covers 5170 to 5190 MHz has a bandwidth of 20 MHz.
They are related because a wider slice of spectrum can carry more information. The Shannon capacity formula gives the theoretical upper limit:
C = B × log2(1 + SNR)
Here C is the capacity in bit/s, B is the bandwidth in Hz, and SNR is the signal-to-noise ratio (a plain ratio, not dB). Capacity grows linearly with bandwidth but only logarithmically with SNR. Doubling the channel width doubles the ceiling. Doubling the signal power adds only a small increment.
Signal strength and decibels
A receiver measures how much power arrives at its antenna. Wi-Fi tools report this as RSSI (received signal strength indicator) or as a signal level in dBm. The exact meaning of RSSI varies by chipset, so dBm values are more comparable.
dBm is a logarithmic unit: decibels relative to 1 milliwatt (mW).
dBm = 10 × log10(power in mW)
Radio power spans huge ranges, so logs keep the numbers manageable. Two rules cover most of what you need:
- Every +10 dB multiplies power by 10.
- Every +3 dB roughly doubles power.
| Power | dBm | Typical meaning |
|---|---|---|
| 100 mW | 20 | Common maximum transmit power for an access point on 2.4 GHz |
| 1 mW | 0 | Reference point |
| 0.000001 mW (1 nW) | -30 | Extremely strong received signal, a few centimeters from the transmitter |
| 0.0000000001 mW | -70 | Usable received signal |
| 0.000000000001 mW | -90 | Close to the noise floor, unusable for most links |
Received signal levels are always negative in dBm, because received power is far below 1 mW. A value closer to zero is stronger: -50 dBm is much better than -80 dBm.
Path loss
A signal weakens as it spreads out. In free space (no walls, no reflections) the loss in dB is:
FSPL = 20 × log10(d in km) + 20 × log10(f in MHz) + 32.44
Distance and frequency both appear inside a logarithm. Doubling the distance costs about 6 dB. Doubling the frequency also costs about 6 dB. This is why 5 GHz reaches a little less far than 2.4 GHz at the same transmit power, even before walls are counted.
Real buildings add more loss. Typical extra losses are a few dB for a wooden door or interior wall and 10 dB or more for concrete or metal. Free-space numbers are therefore the best case.
Noise and SNR
Every receiver also sees noise: thermal noise from the electronics plus other radio energy. Thermal noise power is about -174 dBm per Hz, so for a channel of width B:
noise floor ≈ -174 + 10 × log10(B in Hz) dBm, plus the receiver's own noise figure
For 20 MHz that is about -101 dBm. Real receivers land nearer -95 dBm. Each doubling of channel width raises the noise floor by 3 dB, because the receiver listens to twice as much spectrum.
SNR in dB is the signal level minus the noise level. A signal at -65 dBm with a floor at -95 dBm has an SNR of 30 dB. Higher SNR lets the radio use faster modulation, which later chapters cover.
Worked example in Python
This script converts units, computes free-space loss, and applies the Shannon formula.
import math
C = 299_792_458 # speed of light in m/s
def wavelength_m(freq_mhz):
return C / (freq_mhz * 1e6)
def mw_to_dbm(mw):
return 10 * math.log10(mw)
def dbm_to_mw(dbm):
return 10 ** (dbm / 10)
def fspl_db(distance_m, freq_mhz):
return 20 * math.log10(distance_m / 1000) + 20 * math.log10(freq_mhz) + 32.44
def shannon_mbps(bw_mhz, snr_db):
snr = 10 ** (snr_db / 10)
return bw_mhz * math.log2(1 + snr) # MHz times bits/s/Hz gives Mbit/s
tx_dbm = mw_to_dbm(100) # 20 dBm
for freq in (2437, 5180):
rx = tx_dbm - fspl_db(10, freq)
print(f"{freq} MHz: wavelength {wavelength_m(freq):.3f} m, "
f"received at 10 m {rx:.1f} dBm")
print(f"{shannon_mbps(20, 30):.1f} Mbit/s") # 20 MHz, SNR 30 dB
print(f"{shannon_mbps(40, 30):.1f} Mbit/s") # 40 MHz, SNR 30 dB
print(f"{shannon_mbps(20, 20):.1f} Mbit/s") # 20 MHz, SNR 20 dBThe output is:
2437 MHz: wavelength 0.123 m, received at 10 m -40.2 dBm
5180 MHz: wavelength 0.058 m, received at 10 m -46.7 dBm
199.3 Mbit/s
398.7 Mbit/s
133.2 Mbit/sAt 10 m, 5 GHz arrives about 6.5 dB weaker than 2.4 GHz. Doubling the width doubles the capacity ceiling. Dropping SNR by 10 dB cuts it by about a third.
Common mistakes
- Treating dB values as linear. Going from -60 to -70 dBm cuts power by a factor of 10, not by 10 units.
- Comparing RSSI across vendors. RSSI scales differ. Compare dBm readings instead.
- Judging a link on signal alone. A strong signal with a high noise floor still has poor SNR.
- Expecting free-space numbers indoors. Walls and reflections make real loss larger and uneven.
Exercise
An access point transmits at 20 dBm. A laptop receives it at -70 dBm, and the noise floor is -95 dBm. What is the SNR, and roughly how many times weaker is the received power than the transmitted power?
Show answer
SNR = -70 - (-95) = 25 dB. The total loss is 20 - (-70) = 90 dB, which is a factor of 10^9, so the received power is about a billion times weaker than the transmitted power.