Algorithmadvanced
Outer loop link adaptation
Also called OLLA.
Subtracts a backoff offset from the reported SINR before choosing the modulation and coding scheme; the offset grows on each NACK and shrinks on each ACK, so the BLER meets a target.
- Solves
- Link adaptation
- Time
- O(n log J) worst
- Space
- O(1) extra
- Where
- J = the number of modulation and coding schemes; n = the number of transmissions
- Model
- Real RAM
- Properties
- deterministicfeedback drivennot needs modelonline
- Evidence
- Proof sketchCode in 1 languages
- Origin
- Klaus I. Pedersen, Guillaume Monghal, Istvan Z. Kovacs, Troels E. Kolding, Akhilesh Pokhariyal, Frank Frederiksen, Preben Mogensen, 2007
Outer loop link adaptation (OLLA) corrects the channel quality reports that link adaptation relies on. The inner loop maps a reported SINR (in dB) to the fastest modulation and coding scheme whose threshold it meets. The reports are biased by estimation error, delay and model error, so the block error rate (BLER) misses its target . OLLA keeps one number, a backoff offset in dB, and uses in the lookup. After each transmission it reads the HARQ feedback: a NACK raises by , which makes the next choices more cautious, and an ACK lowers it by . With these steps, an exact identity ties the NACK fraction to the offset: if the offset stays bounded, the NACK fraction tends to , whatever the channel does. It costs work per acknowledgment.
In plain words
The receiver tells the sender how good the channel is, and the sender picks a speed from a table. But the reports are often a little too hopeful or too gloomy, so too many or too few packets fail.
OLLA fixes this with one number, a safety margin. The sender takes the margin off each report before it looks at the table. Each time a packet fails, the margin goes up by a large step. Each time a packet gets through, it goes down by a small step. If the goal is that one packet in ten fails, the large step is nine times the small one. Then nine successes and one failure leave the margin where it was, and in the long run about one packet in ten fails.
The problem
There are schemes with increasing thresholds (in dB), set so that scheme has the BLER at the SINR on a reference channel. Transmission comes with a report . The transmitter picks a scheme, sends, and receives an ACK or a NACK. The reports have an unknown and possibly slowly changing error. The goal is a long-run fraction of NACKs equal to , with the fastest schemes that allow it. The algorithm does not need to know the error model or the BLER curves.
The algorithm
OLLA(θ[1..J], β_T, Δ_up, Δ_0, the reports γ̂_1, γ̂_2, ...)- 1
Δ_down ← Δ_up · β_T / (1 - β_T); Δ ← Δ_0 - 2
for n = 1, 2, ... do - 3
γ_adj ← γ̂_n - Δ ▷ back off the report - 4
j ← the largest j with θ_j ≤ γ_adj, or 1 if none ▷ binary search - 5
send with scheme j and receive ACK or NACK - 6
if NACK then Δ ← Δ + Δ_up - 7
else Δ ← Δ - Δ_down - 8
clamp Δ to [Δ_min, Δ_max] if bounds are given
The offset is in dB and is subtracted, so a positive offset means the reports are believed to be too high. Some texts add an offset instead, with the opposite signs; the rule is the same.
Example
Take and dB, so dB. From , nine ACKs bring the offset to dB, and one NACK brings it back to 0. Ten transmissions with exactly one NACK, in any order, leave the offset unchanged; more NACKs push it up, fewer push it down.
A simulation shows the effect. The five schemes of the link adaptation example have rates bits per symbol and the model BLER curves with dB; the thresholds are the 10% points. The true SINR is uniform on dB, and each report adds a fixed bias and Gaussian noise with a standard deviation of 1 dB. Over 20000 transmissions with a fixed seed (computed values):
| report bias | NACK rate, table alone | throughput, table alone | NACK rate, with OLLA | throughput, with OLLA | mean offset, second half |
|---|---|---|---|---|---|
| +3 dB (too hopeful) | 0.300 | 2.00 | 0.100 | 2.23 | 1.84 dB |
| 0 dB | 0.032 | 2.18 | 0.100 | 2.23 | -1.20 dB |
| -3 dB (too gloomy) | 0.002 | 1.67 | 0.100 | 2.23 | -4.19 dB |
With OLLA the NACK rate and the throughput do not depend on the bias, and the learned offsets differ by the 3 dB steps of the bias. Even with no bias the offset is not zero: the reports are noisy and the true SINR is spread over each scheme's range, so the table alone fails less often than 10%, and the loop moves to faster schemes.
Correctness
Claim. Let be the number of NACKs among the first transmissions. Without the bounds of line L8, for every and every sequence of feedback,
So if the offset stays in an interval of length , the NACK fraction is within of the target.
Key steps. After steps the offset is , by induction. Solving for and using , which is how line L1 chooses the down step, gives the identity. The identity uses no model of the channel. Whether the offset stays bounded does depend on the channel: if more backoff gives fewer NACKs, the expected step points back to the balance point, a stochastic approximation argument. If even the slowest scheme fails more often than , the offset grows without bound, and the identity explains why. The full proof is in the proofs folder.
Proof: The NACK fraction of outer loop link adaptation tends to the target whenever the offset stays boundedfull
Setting. Fix a target and an up step , and put , as line L1 does. The loop starts from an offset . After transmission it receives for a NACK or for an ACK, and lines L6 and L7 set
This section treats the loop without the bounds of line L8; the last remark covers them. Let be the number of NACKs among the first transmissions. Nothing is assumed about how the channel, the reports or the schemes produce the feedback: the sequence is arbitrary, and may depend on the past offsets in any way.
Lemma 1 (the balance of the steps). .
Proof. , and dividing by it gives .
Lemma 2 (the offset counts the NACKs). For every , .
Proof. By induction on . For this is the update rule. If it holds for , then adding gives , which is the claim for .
Theorem (the NACK fraction). For every ,
Hence, if the offsets stay in an interval , then , and . More generally whenever .
Proof. Lemma 2 gives . Divide by and use Lemma 1 for ; the second form uses from the proof of Lemma 1. If and are both in , then , which gives the bound. If , the second term tends to 0.
Remark (the converse). The identity also shows what happens when the target cannot be met. If the NACK fraction stays above for a long stretch, then grows at least linearly, by , and the loop backs off more and more; if it stays below , the offset falls linearly and the loop picks faster schemes. So an offset that drifts without bound is the sign that no offset meets the target, for example because even the slowest scheme fails too often.
Remark (why the offset stays bounded in practice). Suppose that, given the offset , a NACK has a probability that does not increase with (more backoff means slower schemes and fewer errors), with for all small enough and for all large enough . The expected change of the offset is by Lemma 1, which is positive below the balance point and negative above it, so the offset drifts back toward the set where . This is a stochastic approximation argument with a constant step; it gives an offset that stays near the balance point with high probability, with a spread that grows with . The theorem itself does not need it, and this proof does not claim it.
Remark (bounds). With the bounds of line L8, write , where is the total amount removed or added by clamping. The theorem then holds with in place of . If the offset rarely touches the bounds, and the conclusion is unchanged. If it sits at the upper bound, the NACK fraction can stay above the target, and the bound is the reason.
Complexity
Each transmission takes one subtraction, one binary search over the thresholds and one update, so transmissions take time. The state is one number, so the extra space is beyond the threshold table. With a uniform grid of thresholds, the lookup is by division.
Properties
- Model free. The update uses only ACKs and NACKs. It does not need the error model of the reports or the BLER curves.
- Exact balance. The step ratio is the only choice for which the expected step is zero exactly when the NACK probability is .
- Sawtooth. The offset never settles; it moves in a sawtooth around the balance point, with a spread that grows with .
- Speed against noise. A large step tracks a changing bias quickly but adds noise to the choice of scheme; a small step is smooth but slow. After a jump of dB in the bias, the offset needs about transmissions to follow it downwards, and about NACKs to follow it upwards.
- Target, not optimum. OLLA meets a BLER target. It does not search for the throughput-best BLER, which can differ from the target.
Variants and improvements
- One offset per user, or per user and layer. In cellular systems each link has its own loop; with several layers each layer can have one.
- Bounded offset. Line L8 keeps the offset in a window, so a long run of errors from an outage does not make the loop too cautious for a long time afterwards.
- Variable steps. A large step at the start of a connection and a smaller one later gives a fast start and a smooth steady state.
- Feedback from the first transmission only. With hybrid ARQ, the loop usually counts the ACK or NACK of the first transmission of each block, because the target is a first-transmission BLER.
- Throughput-seeking loops. Some designs move the target itself, for example by comparing the throughput at two targets, to find the best BLER for the channel.
- The same rule elsewhere. The outer loop of power control in CDMA sets the SIR target with the same up and down steps, using frame errors instead of HARQ feedback.
When to use it
Use it whenever a link chooses its scheme from quality reports and gets ACK or NACK feedback: the cost is a few operations per packet, and it removes biases that are hard to model, such as receiver differences between devices, report delay and a mapping like EESM with a slightly wrong parameter. Use a small step when the bias changes slowly and the traffic is steady; use a larger one, or bounds, when traffic comes in bursts.
Pitfalls
- Sparse traffic. The loop learns one step per packet. With little traffic, the offset stays at its start value or follows an old bias.
- Counting retransmissions. If the loop counts the feedback of retransmissions, which succeed more often, it aims at a different BLER than intended.
- Unbounded growth. In an outage, every packet fails, and without a bound the offset grows for as long as the outage lasts. When the channel recovers, the loop is far too cautious.
- Wrong sign. The offset is subtracted from the report. Adding it, with the same step signs, makes the loop unstable: each NACK makes the next choice more aggressive.
- A fixed step ratio with a changed target. If the BLER target changes, must change with it; otherwise the loop converges to the old target.
Implementations
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/outer-loop-link-adaptation/. The authors are listed in prov/ZM1GV1.jsonl.
"""Outer loop link adaptation (OLLA).
The receiver reports an SINR estimate in dB. The inner loop maps the report to
the fastest modulation and coding scheme whose threshold it meets. The outer
loop keeps a backoff offset in dB that is subtracted from each report before
the lookup. On each NACK the offset grows by step_up; on each ACK it shrinks by
step_down = step_up * target / (1 - target). If the offset stays bounded, the
fraction of NACKs tends to the target.
"""
import bisect
def step_down_for(step_up, target):
"""The down step that makes the target the balance point of the loop."""
if not step_up > 0:
raise ValueError("step_up must be positive")
if not 0 < target < 1:
raise ValueError("target must be in (0, 1)")
return step_up * target / (1 - target)
def select_scheme(thresholds, snr_db):
"""Index of the largest threshold <= snr_db, or 0 if none (thresholds increase)."""
return max(bisect.bisect_right(thresholds, snr_db) - 1, 0)
class OuterLoop:
"""The OLLA state: one offset, two steps and optional bounds."""
def __init__(self, step_up, target, offset=0.0, lower=None, upper=None):
self.step_up = step_up
self.step_down = step_down_for(step_up, target) # @line L1
self.offset = offset
self.lower, self.upper = lower, upper
def choose(self, thresholds, report_db):
adjusted = report_db - self.offset # @line L3
return select_scheme(thresholds, adjusted) # @line L4
def update(self, ack):
if not ack: # @line L6
self.offset += self.step_up
else: # @line L7
self.offset -= self.step_down
if self.lower is not None and self.offset < self.lower: # @line L8
self.offset = self.lower
if self.upper is not None and self.offset > self.upper:
self.offset = self.upper
return self.offset
def olla(thresholds, reports, feedback, step_up, target, offset=0.0, lower=None, upper=None):
"""Run the loop over a sequence of reports.
feedback(n, scheme) returns True for an ACK and False for a NACK of
transmission n sent with the given scheme. Returns (schemes, offsets, nacks),
where offsets[n] is the offset after transmission n.
"""
loop = OuterLoop(step_up, target, offset, lower, upper)
schemes, offsets, nacks = [], [], 0
for n, report in enumerate(reports): # @line L2
j = loop.choose(thresholds, report)
ack = feedback(n, j) # @line L5
nacks += not ack
loop.update(ack)
schemes.append(j)
offsets.append(loop.offset)
return schemes, offsets, nacks
test_outer_loop_link_adaptation.py 122 lines
# SPDX-License-Identifier: MIT
# Part of https://algorithm.tamnd.com/outer-loop-link-adaptation/. The authors are listed in prov/ZM1GV1.jsonl.
import math
import random
from fractions import Fraction
import pytest
from outer_loop_link_adaptation import OuterLoop, olla, select_scheme, step_down_for
RATES = [0.5, 1.0, 2.0, 3.0, 4.5]
MIDPOINTS = [-2.0, 1.0, 6.0, 10.0, 15.0]
SLOPE = 1.5
THRESHOLDS = [t + math.log(9) / SLOPE for t in MIDPOINTS] # 10% BLER points
def bler(j, snr_db):
return 1 / (1 + math.exp(SLOPE * (snr_db - MIDPOINTS[j])))
def simulate(step_up, bias, n=20000, seed=1, target=0.1):
"""Uniform true SINR in [0, 20] dB, reports with a bias and 1 dB noise."""
rng = random.Random(seed)
true = [rng.uniform(0, 20) for _ in range(n)]
reports = [g + bias + rng.gauss(0, 1) for g in true]
coin = random.Random(seed + 1)
bits = [0.0]
def feedback(i, j):
ok = coin.random() >= bler(j, true[i])
bits[0] += RATES[j] * ok
return ok
schemes, offsets, nacks = olla(THRESHOLDS, reports, feedback, step_up, target)
return nacks / n, bits[0] / n, offsets
def test_step_rule() -> None:
assert step_down_for(9, 0.1) == pytest.approx(1)
assert step_down_for(Fraction(9), Fraction(1, 10)) == 1
assert step_down_for(0.5, 0.1) == pytest.approx(0.5 / 9)
def test_identity_with_integer_steps() -> None:
"""Offset = offset0 + 9 * NACKs - 1 * ACKs, exactly, for any sequence."""
rng = random.Random(7)
for _ in range(200):
acks = [rng.random() < 0.85 for _ in range(rng.randint(1, 60))]
loop = OuterLoop(Fraction(9), Fraction(1, 10), offset=Fraction(3))
for a in acks:
loop.update(a)
nacks = acks.count(False)
n = len(acks)
assert loop.offset == 3 + 9 * nacks - (n - nacks)
# the NACK fraction identity of the proof
assert Fraction(nacks, n) == (loop.offset - 3) / (n * 10) + Fraction(1, 10)
def test_nine_acks_and_one_nack_return_to_start() -> None:
loop = OuterLoop(Fraction(9), Fraction(1, 10))
for a in [True] * 9 + [False]:
loop.update(a)
assert loop.offset == 0
def test_select_scheme_matches_linear_scan() -> None:
rng = random.Random(3)
for _ in range(500):
x = rng.uniform(-5, 25)
linear = 0
for j, th in enumerate(THRESHOLDS):
if th <= x:
linear = j
assert select_scheme(THRESHOLDS, x) == linear
assert select_scheme(THRESHOLDS, THRESHOLDS[2]) == 2
assert select_scheme(THRESHOLDS, -100) == 0
@pytest.mark.parametrize("bias", [3.0, 0.0, -3.0])
def test_nack_rate_converges_to_target(bias) -> None:
rate, throughput, offsets = simulate(0.5, bias)
assert abs(rate - 0.1) < 0.005
assert throughput > 2.2
def test_fixed_table_misses_target_with_bias() -> None:
# a step of almost zero is the inner loop alone
rate_up, tp_up, _ = simulate(1e-12, 3.0)
rate_down, tp_down, _ = simulate(1e-12, -3.0)
assert rate_up > 0.25 and rate_down < 0.01
assert tp_up < 2.1 and tp_down < 1.8
def test_offset_tracks_the_bias() -> None:
means = []
for bias in (3.0, 0.0, -3.0):
_, _, offsets = simulate(0.5, bias)
tail = offsets[len(offsets) // 2:]
means.append(sum(tail) / len(tail))
# the learned offsets differ by about the difference of the biases
assert abs((means[0] - means[1]) - 3) < 0.5
assert abs((means[1] - means[2]) - 3) < 0.5
def test_bounds_clamp_the_offset() -> None:
loop = OuterLoop(1.0, 0.1, lower=-2.0, upper=2.0)
for _ in range(10):
loop.update(False)
assert loop.offset == 2.0
for _ in range(1000):
loop.update(True)
assert loop.offset == -2.0
def test_bad_input() -> None:
with pytest.raises(ValueError):
step_down_for(0, 0.1)
with pytest.raises(ValueError):
step_down_for(1, 0)
with pytest.raises(ValueError):
OuterLoop(1, 1.0)
History
Pedersen, Monghal, Kovács, Kolding, Pokhariyal, Frederiksen and Mogensen, in "Frequency domain scheduling for OFDMA with limited and noisy channel feedback" at VTC 2007-Fall, studied OFDMA scheduling when the channel quality reports are coarse and noisy. Their link adaptation corrects the reports with an offset learned from HARQ acknowledgments, with the down step set by the BLER target as above. The step rule is the same as that of the outer loop of power control in CDMA systems, which sets an SIR target from frame errors.
References
- Klaus I. Pedersen, Guillaume Monghal, Istvan Z. Kovacs, Troels E. Kolding, Akhilesh Pokhariyal, Frank Frederiksen and Preben Mogensen, Frequency domain scheduling for OFDMA with limited and noisy channel feedback, IEEE Vehicular Technology Conference (VTC 2007-Fall), pages 1792 to 1796, the outer loop link adaptation offset, updated from ACK and NACK feedback with the down step set by the BLER target
- Andrea Goldsmith, Wireless Communications, Cambridge University Press, 2005, Chapter 9 (adaptive modulation and coding, and the effect of channel estimation error and feedback delay)
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 | H1 sketch |
|
| Lean | L0 no Lean part |
|
| Code (python) | I0 not checked yet |
|
| Visual | V0 none |
|
| Writing | W2 basic |
|
Tag ZM1GV1 Edit this page History Report an error Markdown