Wi-Fi link
A whisper of a few milliwatts, shouted across a room and heard at a billionth of its strength.
A Wi-Fi link is two radios sharing a slice of spectrum. One turns bits into a shaped radio wave; the other picks out an incredibly weak copy of it from noise and turns it back into bits. How fast the link runs depends on how far above the noise that copy arrives: the link budget.
- 7 components
- 2 worked equations
- 1 live model
- 2 safe experiments
1Exploded view
Take the Wi-Fi radio link apart.
Tab to a numbered part (or tap it) to jump to its description. The same parts as a list:
2Major components
What every part does, and how.
- 01
Router case
Holds the boards, vents heat and positions the antennas.
how →Plastic is nearly transparent to radio, so antennas can sit inside or poke out.
- 02
Baseband board
The digital side: packets, encryption and the modem that maps bits onto symbols.
how →OFDM splits the channel into many narrow sub-carriers, each carrying a few bits per symbol.
- 03
RF front end
Power amplifier for sending, low-noise amplifier for receiving, plus filters.
how →The receive amplifier is designed to add as little noise as possible: its noise figure sets how weak a signal can be heard.
- 04
Antenna
Turns current in a conductor into a radio wave, and back.
how →A dipole about half a wavelength long resonates: at 2.4 GHz that is roughly 6 cm.
- 05
Power adapter
Supplies low-voltage DC to the router.
how →A small switch-mode supply; the router's radios use only a fraction of a watt each.
- 06
Client device
A laptop or phone with its own radio and antennas.
how →Both ends are radios; the link budget is worked out in each direction.
- 07
Client radio module
The client's modem and front end on one small module.
how →It measures signal quality and tells the router which data rate to use.
3System relationships
Where the energy and information go.
Each block is a part (or the world outside). Solid lines carry energy, dashed lines carry information, dotted lines carry matter such as water or air.
Flows, in order
- Power adapter sends energy to RF front endenergy: DC
- Data packets sends information to Basebandinformation: bits
- Baseband sends information to RF front endinformation: modulated signal
- RF front end sends energy to Antennaenergy: ≈ 100 mW
- Antenna sends energy to Free spaceenergy: radio wave
- Free space sends energy to Client radioenergy: ≈ nanowatts
- Client radio sends information to Laptop or phoneinformation: bits
Loops that close
- Client radio feeds back to Basebandinformation: acknowledgements, rate
4Physical principles
The physics doing the work.
Inverse-square spreading
A radio wave's power spreads over an ever bigger sphere, so it falls with distance squared: every doubling of distance costs 6 dB.
Decibels
Link budgets add and subtract in dB because the real ratios multiply. 30 dB is a factor of 1000.
Channel capacity
Shannon showed the most data a channel can carry depends only on bandwidth and signal-to-noise ratio. Real systems get within a few dB of it.
Frequency domain and the Fourier transformSampling rate and aliasing
5Mathematical foundations
The equations, with real numbers in them.
Free-space path loss and received power
FSPL = 20·log₁₀(d_km) + 20·log₁₀(f_MHz) + 32.44, P_r = P_t + G_t + G_r − FSPL
- FSPL
- free-space path loss [dB]
- d
- distance [km]
- f
- frequency [MHz]
- P_t, P_r
- transmitted and received power [dBm]
- G_t, G_r
- antenna gains [dBi]
Worked example
- 1.20·log₁₀(0.02) = −33.98
- 2.20·log₁₀(2437) = 67.74
- 3.FSPL = −33.98 + 67.74 + 32.44 = 66.20 dB
- 4.P_r = 20 + 2 + 2 − 66.20 = −42.2 dBm (about 60 nW)
- Path loss at 20 m
- 66.2 dB
- Received power
- -42.2 dBm
AssumesClear line of sight in open space. Walls and people add many more dB of loss indoors.
Shannon capacity
C = B · log₂(1 + SNR)
- C
- maximum error-free data rate [bit/s]
- B
- channel bandwidth [Hz]
- SNR
- signal-to-noise power ratio (linear) [–]
Worked example
- 1.SNR = 10^(25/10) ≈ 316.2
- 2.log₂(317.2) ≈ 8.31
- 3.C = 20 × 10⁶ × 8.31 ≈ 166.2 Mbit/s
- Capacity of a 20 MHz channel
- 166.2 Mbit/s
AssumesWhite noise and a single antenna each end. Multiple antennas (MIMO) can send several streams at once.
6Computing architecture
The computer inside the system.
The radio is mostly computing: digital signal processing for modulation and error correction, plus a protocol stack that shares the channel fairly.
Layer 1
Physical layer
OFDM modulation, error-correcting codes, MIMO stream separation.
Layer 2
Medium access
Listen before talk; back off and retry if two stations collide.
Layer 3
Network
Packets, addresses, encryption and handing data to the internet connection.
7Engineering trade-offs
Every choice costs something.
Higher frequency band (5 or 6 GHz)
Gain:Wider channels, so higher data rates and less congestion.
Cost:More path loss and worse through walls.
Wider channel
Gain:Capacity scales with bandwidth.
Cost:Noise power also rises with bandwidth, and fewer separate channels fit.
Higher transmit power
Gain:Longer range.
Cost:Limited by regulations, battery life and interference to neighbours.
8 · Try it · runs in your browser
Link budget
Move the client further away, change band and transmit power. Watch the received power, the signal-to-noise ratio and the theoretical capacity.
- Path loss
- 66.1 dB
- Received power
- -42.1 dBm
- Signal-to-noise ratio
- 52.9 dB
- Shannon capacity (20 MHz)
- 352 Mbit/s
Strong link: high data rates.
ModelFree-space loss, 2 dBi antennas each end, 20 MHz channel and a 6 dB receiver noise figure (noise floor ≈ -95 dBm).
9Suggested safe experiments
Things to try, safely.
Every experiment here is virtual or a household-safe observation. Never open real devices, batteries or power supplies, never work on mains electricity, and never look at the Sun.
Observation
Map your signal
- Use your device's Wi-Fi settings (some show signal strength in dBm or bars).
- Note the reading at 1, 2, 4 and 8 steps from the router, in a line.
- Does each doubling of distance cost about 6 dB? Where do walls change it?
Safety: Only read the signal; do not open or move the router, and do not change its settings without the owner's permission.
Virtual
Shannon what-if
- In the demonstration, halve the distance.
- Record the SNR and capacity change.
- Explain why capacity grows by much less than double.
Safety: Runs entirely in your browser.
10Keep learning
Lessons, courses and videos.
Lessons
- Signals: amplitude, frequency, period and SNR
- Amplitude, frequency, phase
- The DFT: asking 'how much of this wave?'
Courses
Concepts in the Atlas
- Signals: amplitude, frequency and period
- Frequency domain and the Fourier transform
- Serial communication: UART, I2C and SPI
- Noise and filtering
Field Guide
Videos (open on YouTube)
- Traveling Waves: Crash Course Physics #17 (opens in a new tab)CrashCourse · 7 min 45 s
- But what is the Fourier Transform? A visual introduction. (opens in a new tab)3Blue1Brown · 19 min 41 s
- Why NASA's Deep Space Network Is The Most Important Part Of Any Space Probe (opens in a new tab)Scott Manley · Length: see YouTube