Definitionintro
Delay spread
Also called rms delay spread, multipath delay spread.
The spread in arrival time of the paths of a channel: the RMS width of the power delay profile, sigma_tau = sqrt(sum P_l tau_l^2 - (sum P_l tau_l)^2) for tap powers P_l that sum to 1.
The delay spread of a multipath channel measures how long the copies of one transmitted impulse keep arriving. The standard measure is the root mean square (RMS) delay spread , the standard deviation of the arrival time when each path is weighted by its power. It is the single number that decides whether a link sees intersymbol interference, how long a cyclic prefix must be, and over what band the channel gain stays nearly constant: the coherence bandwidth is of the order of . The time-domain counterpart of this page in the Doppler domain is the Doppler spread.
Definition
The power delay profile. Let the channel have paths, or taps of a tapped delay line model, at the delays in seconds, with the mean powers . The list of pairs is the power delay profile (PDP). It is a property of the statistics of the channel, not of one realization: in the WSSUS model it is the mean power at each delay. Delays are measured from the first arrival, so unless the page says otherwise, and the powers are normalized so that . For a profile that is not normalized, divide every sum below by .
Mean delay and RMS delay spread. With these weights,
is the mean excess delay and is the RMS delay spread. The two forms of are equal because and . For a continuous profile with , replace the sums by integrals over .
Maximum excess delay. For a threshold of dB, the maximum excess delay is , where is the largest delay whose power is within dB of the strongest path (Rappaport, Section 5.4.1). It depends on , and one weak late path can make it large while hardly moves. Tse and Viswanath write for the largest difference of path delays, which is the maximum excess delay with no threshold.
Properties. For every normalized profile:
- Shift invariance. Adding the same constant to every delay changes by that constant and leaves unchanged, because uses only .
- Scaling. Multiplying every delay by multiplies and by . The link-level models of 3GPP TR 38.901 use this: their delays are normalized to and scaled to the wanted spread.
- Range. . The lower bound holds with equality only when all the power sits at one delay. The upper bound holds because a variable in an interval of length has variance at most , with equality for two equal taps at the ends.
- Link to frequency. Let be the normalized correlation of the channel gain at two frequencies apart. A Taylor expansion of gives
since the first-order term is zero. So sets how fast the gains at nearby frequencies decorrelate. Fleury (1996) proved the bound for ; the proof and its use are on the coherence bandwidth page.
Flat or selective. A symbol of duration sees little intersymbol interference when is small compared with . Rappaport (Section 5.5) uses as the condition for flat fading. That is a rule of thumb, not a theorem: the real effect depends on the shape of the profile, the pulse and the receiver.
Computing the delay spread
The function below uses the centered form of . The form is equal in exact arithmetic but loses digits in floating point when all delays share a large offset, for example absolute delays of microseconds that differ by a few nanoseconds.
RMS-DELAY-SPREAD(τ[0..L-1], P[0..L-1]) ▷ delays and mean powers, any positive scale- 1
S ← Σ_l P[l] - 2
μ ← (Σ_l P[l] · τ[l]) / S ▷ mean excess delay - 3
v ← (Σ_l P[l] · (τ[l] - μ)²) / S ▷ centered second moment - 4
return μ, √v MAX-EXCESS-DELAY(τ[0..L-1], P[0..L-1], X) ▷ X is the threshold in dB- 5
t ← max_l P[l] · 10^(-X/10) - 6
return max{τ[l] : P[l] ≥ t} - min_l τ[l]
The cost is operations in the real-RAM model. The implementation also gives the frequency correlation . Its tests check the examples on this page in exact rational arithmetic, the 3GPP values below, the shift and scale properties, and Fleury's bound on random profiles.
Examples and non-examples
Two equal paths. Taps of power at and microsecond give microseconds and microseconds, the largest value that a span of 1 microsecond allows.
Four paths. Powers , that is , , and dB, at delays microseconds:
The maximum excess delay is microseconds for dB, since every tap is within dB of the strongest, and microsecond for dB.
An exponential profile. for has and the second moment , so . This shape is common in indoor models, for example inside each cluster of the Saleh-Valenzuela model.
Standard profiles. The LTE test profiles of 3GPP TS 36.104, Annex B.2, are tapped delay lines. EPA has taps at ns with powers dB. Converting the powers to linear values, normalizing them and applying the definition gives ns and ns. The same steps give ns for EVA and ns for ETU. The standard lists , and ns.
Symbol length. With ns, a single-carrier link at Msymbol/s ( microsecond) has and needs an equalizer. LTE instead uses OFDM with a symbol of about microseconds and a normal cyclic prefix of about microseconds. The prefix is almost five times but a little shorter than the last ETU delay of microseconds; that tap is dB below the strongest and leaks a small amount of interference.
Non-example: power from one realization. The squared magnitudes of one draw of the taps are not the PDP. The RMS width of one draw is a random variable, and its mean is not in general. The PDP needs an average over many realizations, or over a local area in measurements.
Non-example: averaging in dB. The weights must be linear powers. Weighting the EPA delays by the dB values, or by the amplitudes , gives a different number that has no meaning as a delay spread.
Non-example: the largest delay. For ETU the largest delay is microseconds and is microseconds. The maximum excess delay and the RMS delay spread answer different questions: the first sizes a cyclic prefix that must catch every path, the second sets the coherence bandwidth.
Related definitions
- Coherence bandwidth: the frequency separation over which the gains stay correlated, bounded below in terms of .
- Tapped delay line channel model: the model whose tap delays and powers form the PDP.
- WSSUS channel model: the statistical frame in which the PDP is the mean power per delay, and the transform of the frequency correlation.
- Doppler spread: the same kind of width, taken over the Doppler spectrum instead of the delays.
- Intersymbol interference and cyclic prefix: the effects of a delay spread on a single-carrier and on a multicarrier link.
- Rake receiver: a receiver that resolves the paths and combines them, which turns the delay spread into diversity.
Code
Each implementation follows the pseudocode above. A comment @line links a line of code to a line of the pseudocode. Point at a line of the pseudocode to see the matching code. The build runs the native tests of each language.
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/delay-spread/. The authors are listed in prov/T38XE2.jsonl.
"""Mean excess delay, RMS delay spread and maximum excess delay of a power delay profile.
A profile is a list of delays tau[l] and mean powers P[l] >= 0 in linear units (not dB).
The powers need not sum to 1; every moment is divided by their sum.
With int or Fraction inputs, delay_moments returns exact Fractions.
"""
import cmath
import math
from fractions import Fraction
from typing import Sequence, Tuple, Union
Number = Union[int, float, Fraction]
def _check(delays: Sequence[Number], powers: Sequence[Number]) -> None:
if len(delays) != len(powers) or not delays:
raise ValueError("delays and powers must be non-empty and of the same length")
if any(p < 0 for p in powers) or sum(powers) <= 0:
raise ValueError("powers must be non-negative with a positive sum")
def delay_moments(delays: Sequence[Number], powers: Sequence[Number]) -> Tuple[Number, Number]:
"""The mean excess delay and the variance sigma_tau^2 of the profile."""
_check(delays, powers)
s = sum(powers) # @line L1
if all(isinstance(x, (int, Fraction)) for x in list(delays) + list(powers)):
s = Fraction(s)
mu = sum(p * t for p, t in zip(powers, delays)) / s # @line L2
var = sum(p * (t - mu) ** 2 for p, t in zip(powers, delays)) / s # @line L3
return mu, var
def rms_delay_spread(delays: Sequence[Number], powers: Sequence[Number]) -> Tuple[float, float]:
"""The mean excess delay and the RMS delay spread sigma_tau."""
mu, var = delay_moments(delays, powers)
return float(mu), math.sqrt(var) # @line L4
def max_excess_delay(delays: Sequence[Number], powers: Sequence[Number], x_db: float) -> Number:
"""The largest delay with power within x_db dB of the strongest tap, minus the first delay."""
_check(delays, powers)
t = max(powers) * 10 ** (-x_db / 10) # @line L5
return max(d for d, p in zip(delays, powers) if p >= t) - min(delays) # @line L6
def frequency_correlation(delays: Sequence[float], powers: Sequence[float], df: float) -> complex:
"""R(df) = sum_l P_l exp(-j 2 pi df tau_l) / sum_l P_l, the normalized frequency correlation."""
_check(delays, powers)
s = float(sum(powers))
return sum(p * cmath.exp(-2j * math.pi * df * t) for p, t in zip(powers, delays)) / s
def db_to_linear(powers_db: Sequence[float]) -> list:
"""Convert powers in dB to linear values."""
return [10 ** (x / 10) for x in powers_db]
test_delay_spread.py 108 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/delay-spread/. The authors are listed in prov/T38XE2.jsonl.
import math
import random
from fractions import Fraction
from delay_spread import (
db_to_linear,
delay_moments,
frequency_correlation,
max_excess_delay,
rms_delay_spread,
)
# 3GPP TS 36.104, Annex B.2: delays in ns, powers in dB.
EPA = ([0, 30, 70, 90, 110, 190, 410], [0, -1, -2, -3, -8, -17.2, -20.8])
EVA = ([0, 30, 150, 310, 370, 710, 1090, 1730, 2510], [0, -1.5, -1.4, -3.6, -0.6, -9.1, -7, -12, -16.9])
ETU = ([0, 50, 120, 200, 230, 500, 1600, 2300, 5000], [-1, -1, -1, 0, 0, 0, -3, -5, -7])
def test_four_tap_exact() -> None:
p = [Fraction(1, 2), Fraction(1, 4), Fraction(1, 8), Fraction(1, 8)]
d = [0, 1, 2, 4]
mu, var = delay_moments(d, p)
assert mu == 1 and var == Fraction(7, 4)
assert abs(rms_delay_spread(d, p)[1] - 1.3228756555) < 1e-9
pf = [float(x) for x in p]
assert max_excess_delay(d, pf, 10) == 4
assert max_excess_delay(d, pf, 5) == 1
def test_two_equal_taps() -> None:
mu, var = delay_moments([0, 1], [1, 1])
assert mu == Fraction(1, 2) and var == Fraction(1, 4)
# |R| = |cos(pi df)| equals Fleury's bound cos(2 pi sigma df) with sigma = 1/2.
for k in range(1, 50):
df = k / 100
assert abs(abs(frequency_correlation([0, 1], [1, 1], df)) - math.cos(math.pi * df)) < 1e-12
def test_exponential_profile() -> None:
# A fine sampling of exp(-t) on [0, 40] gives mean and spread close to 1.
h = 0.001
d = [(i + 0.5) * h for i in range(40000)]
p = [math.exp(-t) for t in d]
mu, s = rms_delay_spread(d, p)
assert abs(mu - 1) < 1e-4 and abs(s - 1) < 1e-4
def test_3gpp_profiles() -> None:
for (d, pdb), mean, rms in ((EPA, 44.20, 43), (EVA, 253.92, 357), (ETU, 561.24, 991)):
mu, s = rms_delay_spread(d, db_to_linear(pdb))
assert abs(mu - mean) < 0.01
assert round(s) == rms
def test_dB_weights_are_wrong() -> None:
d, pdb = EPA
wrong = rms_delay_spread(d, [-x + 21 for x in pdb])[1]
assert abs(wrong - 43) > 10
def test_shift_and_scale() -> None:
rng = random.Random(3)
for _ in range(200):
n = rng.randint(1, 8)
d = [Fraction(rng.randint(0, 1000)) for _ in range(n)]
p = [Fraction(rng.randint(1, 100)) for _ in range(n)]
mu, var = delay_moments(d, p)
c, a = Fraction(rng.randint(-500, 500)), Fraction(rng.randint(1, 9), rng.randint(1, 9))
mu2, var2 = delay_moments([x + c for x in d], p)
assert mu2 == mu + c and var2 == var
mu3, var3 = delay_moments([a * x for x in d], p)
assert mu3 == a * mu and var3 == a * a * var
# Range: the variance is at most a quarter of the squared span.
assert 0 <= var <= (max(d) - min(d)) ** 2 / 4
def test_fleury_bound_and_taylor() -> None:
rng = random.Random(1)
for _ in range(2000):
n = rng.randint(2, 6)
p = [rng.random() ** 3 + 1e-9 for _ in range(n)]
d = [rng.random() * 10 for _ in range(n)]
_, s = rms_delay_spread(d, p)
for k in range(1, 26):
df = 0.01 * k / s
r = abs(frequency_correlation(d, p, df))
assert r >= math.cos(2 * math.pi * s * df) - 1e-12
assert r >= 1 - 2 * math.pi ** 2 * s * s * df * df - 1e-12
# Taylor: 1 - Re(exp(j 2 pi df mu) R(df)) is close to 2 pi^2 sigma^2 df^2 for small df.
mu, _ = rms_delay_spread(d, p)
span = max(abs(t - mu) for t in d)
if s < 0.1 * span:
continue
df = 2e-3 / span
r = frequency_correlation(d, p, df) * complex(math.cos(2 * math.pi * df * mu), math.sin(2 * math.pi * df * mu))
assert abs((1 - r.real) / (2 * math.pi ** 2 * s * s * df * df) - 1) < 1e-3
def test_bad_input() -> None:
for d, p in (([], []), ([0, 1], [1]), ([0, 1], [0, 0]), ([0, 1], [1, -1])):
try:
delay_moments(d, p)
except ValueError:
continue
raise AssertionError("expected ValueError")
References
- Theodore S. Rappaport, Wireless Communications, Principles and Practice, second edition, Prentice Hall, 2002, Section 5.4.1 (time dispersion parameters, the mean excess delay, the RMS delay spread and the maximum excess delay) and Section 5.5 (flat and frequency-selective fading)
- Andrea Goldsmith, Wireless Communications, Cambridge University Press, 2005, Section 3.3.1 (the power delay profile, its mean and RMS delay spread)
- David Tse and Pramod Viswanath, Fundamentals of Wireless Communication, Cambridge University Press, 2005, Section 2.3 (the delay spread T_d as the largest difference of path delays, and its relation to the coherence bandwidth) and Table 2.1
- 3GPP TS 36.104, Base Station radio transmission and reception (E-UTRA), Release 9 (ETSI TS 136 104 V9.11.0), Annex B.2 (multipath fading propagation conditions, the EPA, EVA and ETU delay profiles with RMS delay spreads of 43, 357 and 991 ns)
- Bernard H. Fleury, An uncertainty relation for WSS processes and its application to WSSUS systems, IEEE Transactions on Communications 44(12), 1632 to 1634, 1996, whole paper (the lower bound arccos(c)/(2 pi sigma_tau) on the coherence bandwidth at correlation level c)
Where this leads
About this page
The build computes these levels from the evidence in the repository. Each row says what the next level needs. Read what the levels mean.
| Ladder | Level | What the next level needs |
|---|---|---|
| Human proof | H0 no proof |
|
| Lean | L0 no Lean part |
|
| Code (python) | I0 not checked yet |
|
| Visual | V0 none |
|
| Writing | W4 complete |
|
Tag T38XE2 Edit this page History Report an error Markdown