S548 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

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 1/d4 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 1/d4 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, 1−e−10−M/10: 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?

Name it

The models

  • Exact two-ray: with direct and reflected paths r1=d2+(ht−hr)2 and r2=d2+(ht+hr)2 and a ground reflection coefficient of −1, the received field is proportional to |e−jkr1r1−e−jkr2r2|; multiplying by λ/4π 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 1−e−x.
  • Range from a budget: with path loss L0+10nlog10⁡(d/d0) and a budget B in dB for path loss and margin, the range is d0⋅10(B−L0−M)/(10n).

Check

Write two_ray_db(d, ht, hr, f): the exact two-ray path gain in dB (negative), and approx_db(d, ht, hr): 20log10⁡(hthr/d2).

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 L0+10nlog10⁡(d/d0) 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?