Skip to content
Tactiverge

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.

plate 13 · Wi-Fi radio link, isometric, exploded

Tab to a numbered part (or tap it) to jump to its description. The same parts as a list:

  1. 1Router case
  2. 2Baseband board
  3. 3RF front end
  4. 4Antenna
  5. 5Power adapter
  6. 6Client device
  7. 7Client radio module

2Major components

What every part does, and how.

  1. 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.

  2. 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.

  3. 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.

  4. 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.

  5. 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.

  6. 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.

  7. 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.

Data packetsfrom the internetBasebandbits → symbolsPower adapterRF front endamplify, filterAntennaFree spacespreading lossClient radiosymbols → bitsLaptop or phone
Energy (solid)Information (dashed)Matter (dotted) Source Sense Decide Convert Output

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.

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. 1.20·log₁₀(0.02) = −33.98
  2. 2.20·log₁₀(2437) = 67.74
  3. 3.FSPL = −33.98 + 67.74 + 32.44 = 66.20 dB
  4. 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. 1.SNR = 10^(25/10) ≈ 316.2
  2. 2.log₂(317.2) ≈ 8.31
  3. 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.

  1. Layer 1

    Physical layer

    OFDM modulation, error-correcting codes, MIMO stream separation.

  2. Layer 2

    Medium access

    Listen before talk; back off and retry if two stations collide.

  3. 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.

20 m
2,400 MHz
20 dBm
0 dB
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.

-16.0-56.01100Distance (m)dBm

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.

  1. Observation

    Map your signal

    1. Use your device's Wi-Fi settings (some show signal strength in dBm or bars).
    2. Note the reading at 1, 2, 4 and 8 steps from the router, in a line.
    3. 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.

  2. Virtual

    Shannon what-if

    1. In the demonstration, halve the distance.
    2. Record the SNR and capacity change.
    3. Explain why capacity grows by much less than double.

    Safety: Runs entirely in your browser.