Sub topic 1
Radio Basics: Frequency, Bandwidth and Signal Strength
Prerequisites
This chapter assumes you know what a network and an IP address are. It also assumes you can tell a router, a switch and an access point apart. You should be able to read short Python and shell snippets. No radio background is needed.
Frequency and wavelength
Wi-Fi sends data as radio waves. A radio wave is an oscillating electromagnetic field. Its frequency is the number of oscillations per second, measured in hertz (Hz). One megahertz (MHz) is a million Hz. One gigahertz (GHz) is a billion Hz.
Wavelength is the distance one oscillation covers. It equals the speed of light divided by the frequency, so higher frequencies have shorter wavelengths.
C = 299_792_458 # speed of light in m/s
def wavelength_cm(freq_mhz):
return C / (freq_mhz * 1_000_000) * 100
print(round(wavelength_cm(2437), 1)) # 12.3
print(round(wavelength_cm(5180), 1)) # 5.8Wavelength affects behavior. Lower frequencies pass through walls and travel farther. Higher frequencies are absorbed more and cover less distance, but they have more room for data. This trade-off shapes the choice between the Wi-Fi bands covered in later chapters.
Bandwidth
Bandwidth has two meanings, and mixing them up causes confusion.
- In radio, bandwidth is the width of a slice of spectrum, measured in MHz. A Wi-Fi channel 20 MHz wide uses a 20 MHz slice.
- In networking, bandwidth is often used loosely for data rate, measured in Mbit/s.
In this tutorial, "bandwidth" and "channel width" mean the radio sense. A wider slice can carry more data, so width and data rate are linked. Doubling the width roughly doubles the maximum rate, but it also uses more shared spectrum.
Signal strength
A receiver needs to hear the signal over background noise. Signal strength is usually reported in dBm, decibels relative to one milliwatt. The scale is logarithmic and the values are negative for typical Wi-Fi reception.
| Signal (dBm) | Typical meaning |
|---|---|
| -30 | Very strong, next to the access point |
| -67 | Good enough for streaming video |
| -75 | Weak, slow and unreliable |
| -90 | Near the noise floor, unusable |
Every 3 dB change is about double or half the power. Every 10 dB is a factor of ten. The noise floor is the background level of unwanted energy, often around -95 dBm. What matters most is the signal-to-noise ratio (SNR): the signal in dBm minus the noise in dBm. A signal of -65 dBm with a noise floor of -95 dBm gives an SNR of 30 dB.
Unlicensed spectrum
Governments control who may transmit on each frequency. Most bands need a license. Some bands are set aside for unlicensed use. Anyone may transmit there without a license, as long as the device follows rules on power, antennas and behavior. Wi-Fi, Bluetooth and many household devices share these bands. This is why neighbors' networks and microwave ovens can interfere with yours: nobody owns the spectrum.
Regulatory domains
The rules differ by country. A regulatory domain is the set of rules a region applies, including allowed channels, maximum transmit power and special requirements. Examples are the FCC rules in the United States and ETSI rules in Europe.
Practical effects include:
- Channel 13 is allowed in much of Europe but not in the United States.
- Maximum power limits differ, which changes range.
- Some 5 GHz channels require radar detection, covered in a later chapter.
Devices and access points are configured with a country code. Set it correctly. A wrong code can make your device use illegal channels or hide legal ones.
On Linux you can read the active domain:
iw reg getExercise
An access point reports -60 dBm and the noise floor is -92 dBm. What is the SNR, and is the signal stronger or weaker than -72 dBm?
Show answer
SNR = -60 - (-92) = 32 dB. The signal is stronger than -72 dBm because -60 is closer to zero, a difference of 12 dB, which is more than ten times the power.