S5 · Lesson 48 · Propagation lab
The exact two-ray model, fading margins by simulation and range from a link budget, in Python
Lessons 42 and 43 gave link planners' models: Friis, the two-ray ground reflection with its law, Fresnel clearance and diffraction. Mobile links add fading: the signal is the sum of many reflections whose phases shift as anything moves, and its strength fluctuates by tens of decibels. This lab computes the exact two-ray field and finds where the approximation takes over, simulates Rayleigh fading to measure the margin a link needs, and solves a link budget for its range.
- The curve is the probability that a Rayleigh-fading signal falls more than M decibels below its mean, : about 10% for 10 dB of margin, 1% for 20 dB, 0.1% for 30 dB.
- Each additional decade of reliability costs another 10 dB of margin, which is why fading channels need diversity rather than ever more power.
- The lab draws complex Gaussian samples and counts the deep fades.
Predict
A 900 MHz base station 30 m high talks to a phone 2 m high over flat ground. At 7.2 km, ten times the breakpoint distance, how does the exact two-ray received level compare with Friis?
The exact sum of the direct and reflected rays gives −118.8 dB relative to isotropic antennas, against Friis's −108.7 dB: 10 dB lower. The approximation gives −118.7 dB. At 72 km the gap from Friis is 30 dB: beyond the breakpoint the ground reflection costs 20 dB per decade.
Name it
The models
- Exact two-ray: with direct and reflected paths and and a ground reflection coefficient of −1, the received field is proportional to ; multiplying by gives the path gain (in dB, minus the path loss).
- Rayleigh fading: the received amplitude is the magnitude of a complex Gaussian; its power is exponentially distributed, so the chance of falling below a fraction x of the mean is .
- Range from a budget: with path loss and a budget B in dB for path loss and margin, the range is .
Check
Write two_ray_db(d, ht, hr, f): the exact two-ray path gain in dB (negative), and approx_db(d, ht, hr): .
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Write outage(M): the probability that a Rayleigh-fading signal falls more than M dB below its mean, and simulate_outage(M, n, seed): estimate it from n complex Gaussian samples (each component with variance 1/2, so the mean power is 1).
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Check
Write range_km(budget_db, L0_db, n, margin_db, d0_km=1.0): the distance at which path loss plus the fade margin uses up the budget.
Python 3.14 with numpy and matplotlib, running in your browser. Tab indents; press Esc and then Tab to move on.
Explain why
Why do fading channels need large margins, and why does diversity help more than extra power?
In a fading channel the received signal is the sum of many reflections whose phases change as the receiver or its surroundings move, so its power fluctuates randomly about its mean and sometimes falls very low when the reflections nearly cancel. For Rayleigh fading the probability of a fade deeper than a given level falls only in proportion to that level, so each tenfold reduction in outage costs 10 dB of margin, which is very expensive in transmit power. Diversity, receiving through two or more independently fading paths, makes a deep fade require all of them to fade at once, so the outage probability falls as a power of the margin instead, and a few decibels of combined margin achieve what tens of decibels of extra power would.