Channels and equalisation
| Problem | Model what a channel does to a signal (multipath, Doppler, non-linear amplification, noise, rate and frequency changes) and undo the intersymbol interference it causes |
| Devised by | Robert Lucky (1965), adaptive equalisation; Monroe Austin (1967), the decision-feedback equaliser; Bernard Widrow (1960), LMS adaptation; Dominique Godard (1974), RLS equalisation |
| Accuracy | A trained equaliser removes the interference down to the noise floor (table below); RLS converges in a few dozen symbols, LMS in hundreds |
| Cost | per symbol for an LMS equaliser with forward and feedback taps; for RLS |
| Read first | Modulation: constellations, OFDM and FM, Adaptive filters: LMS, NLMS and RLS |
| API | ChannelImpairment, ChannelTransmitter, ChannelReceiver, NonLinearityTransformer (hard_clip_real, hard_clip_complex, quantize_real, quantize_complex, sigmoid), DecisionFeedbackEqualizer, decision_feedback_equalizer |
Overview
Between transmitter and receiver, a signal is filtered by multipath propagation or band-limited wiring, shifted in frequency by motion (Doppler), distorted by amplifiers, and corrupted by noise. To test receivers, the library models these as stream operators. A transmitter front-end resamples and up-converts; a channel impairment applies an FIR channel, a Doppler shift, a memoryless non-linearity and white Gaussian noise; a receiver front-end down-converts and resamples. The channel’s filtering smears each symbol into its neighbours, intersymbol interference (ISI), which an equaliser must undo. The decision-feedback equaliser (DFE) combines a linear filter on the received samples with a filter on its own past decisions. It cancels the interference those decisions cause without amplifying noise as a purely linear equaliser would.
Where it is used
A real channel smears, delays, shifts and distorts a signal, and a receiver has to undo that.
- Wireless and cellular. Multipath reflections off buildings make symbols overlap; equalisers (or OFDM, which sidesteps the problem) keep 4G/5G and Wi-Fi links usable in cities and indoors.
- Wired links. DSL, cable modems and high-speed serial links on circuit boards use adaptive equalisers to cancel the dispersion of the line.
- Radio design. The channel models of this entry (Doppler, power-amplifier nonlinearity, noise) let an engineer test a receiver in software before building the radio.
History
Telephone-line data modems in the 1960s were limited by ISI. Robert Lucky (1965) at Bell Labs built the first automatic, adaptive equalisers, and Monroe Austin (1967) proposed feeding back decisions to cancel the trailing interference. Bernard Widrow’s LMS algorithm (1960) made adaptation cheap, and Dominique Godard (1974) applied recursive least squares for fast start-up. Adaptive DFEs remain standard in wireline and high-speed serial links.
The idea
A channel in software
ChannelImpairment applies, in order: a real FIR channel (by overlap-add), a Doppler shift (a frequency mixer), an optional non-linearity, and complex white Gaussian noise with a given
power spectral density, so that the noise power is . ChannelTransmitter and ChannelReceiver combine an arbitrary-ratio resampler with a mixer, in the
order a radio front-end uses. The impairment’s noise generator is seeded at random, so its noise differs between runs.
Non-linearities
Power amplifiers saturate, and converters quantise. Hard clipping limits the amplitude (for complex signals, the magnitude, preserving phase); quantisation rounds to evenly spaced
levels on (each component separately for complex signals); the sigmoid is a smooth saturation. NonLinearityTransformer wraps any function as a stream operator.
Intersymbol interference
A channel with impulse response turns symbol into . With , the QPSK points blur into clouds that overlap the decision boundaries:
Figure 16.9. DFE constellation.
The decision-feedback equaliser
The DFE’s output is
with the past decisions (or, during training, the known symbols). The forward filter removes the interference from symbols not yet decided; the feedback filter subtracts the interference of decided ones exactly, without the noise enhancement a linear filter would add to invert a channel with deep spectral nulls. The taps adapt to reduce by NLMS or RLS, trained on known symbols first and then decision-directed:
Figure 16.10. DFE learning curves.
| receiver | symbol error rate after symbol 1000 |
|---|---|
| no equaliser | 0.1270 |
| DFE, LMS | 0.0000 |
| DFE, RLS | 0.0000 |
RLS converges within the 300 training symbols; LMS needs about a thousand, continuing decision-directed. Without equalisation one symbol in eight is wrong. The danger of decision feedback is error propagation: a wrong decision feeds wrong interference back. At sensible signal-to-noise ratios it is rare.
Algorithm
Channel simulation. Each stage is a stream operator, applied in this order to every block of samples: the FIR channel filter; the Doppler shift, a multiplication by a rotating phasor; the optional non-linearity, applied sample by sample; and the addition of complex Gaussian noise.
Decision-feedback equaliser, with forward taps and feedback taps, all initially zero. For each received sample :
- shift into the forward regressor (the last received samples);
- compute the output : the forward taps times the forward regressor, plus the feedback taps times the feedback regressor (the last symbols);
- decide: is the constellation point nearest to ;
- choose the reference : the known training symbol while training lasts, and the decision afterwards (decision-directed mode);
- compute the error and update all the taps together, treating the two regressors as one long input vector, by the NLMS or RLS rule;
- shift into the feedback regressor.
The cost per symbol is that of the adaptive filter: for NLMS and its square for RLS.
Implementation
let fl = self.forward_len;
// Shift the received-sample part of the regressor and insert the new sample.
self.regressor[..fl].rotate_right(1);
self.regressor[0] = x;
let y: Complex<f64> = self.weights.iter().zip(&self.regressor).map(|(w, u)| w * u).sum();
let decision = self.constellation.slice(y);
let desired = target.unwrap_or(decision);
let error = desired - y;
match &mut self.adaptation {
Adaptation::Nlms { step_size } => {
let power: f64 = self.regressor.iter().map(|v| v.norm_sqr()).sum();
let gain = *step_size / (REGULARIZATION + power);
for (w, u) in self.weights.iter_mut().zip(&self.regressor) {
*w += error * u.conj() * gain;
}
}
Adaptation::Rls { forgetting, p } => {
let m = self.weights.len();
// pq = P conj(u); denominator = lambda + u^T P conj(u).
let q: Vec<Complex<f64>> = self.regressor.iter().map(|u| u.conj()).collect();
let pq: Vec<Complex<f64>> = (0..m).map(|i| (0..m).map(|j| p[i][j] * q[j]).sum()).collect();
let denom = *forgetting + self.regressor.iter().zip(&pq).map(|(u, v)| u * v).sum::<Complex<f64>>();
let k: Vec<Complex<f64>> = pq.iter().map(|v| v / denom).collect();
for (w, ki) in self.weights.iter_mut().zip(&k) {
*w += ki * error;
}
// P <- (P - k u^T P) / lambda, where u^T P is the row vector with entries sum_i u_i P[i][j].
let utp: Vec<Complex<f64>> = (0..m).map(|j| (0..m).map(|i| self.regressor[i] * p[i][j]).sum()).collect();
for i in 0..m {
for j in 0..m {
p[i][j] = (p[i][j] - k[i] * utp[j]) / *forgetting;
}
}
}
}
// Shift the decision part of the regressor, feeding back the target while training.
if self.regressor.len() > fl {
self.regressor[fl..].rotate_right(1);
self.regressor[fl] = desired;
}
(y, decision)
with_main_tapplaces the forward filter’s reference tap later, to handle pre-cursor interference, at the cost of that much delay.decision_feedback_equalizer(received, training, …)trains on the first symbols and equalises the rest in one call.quantize_realassumes inputs on and does not clip values outside it.
In practice
//! Channel impairments and a decision-feedback equalizer.
use lib_jsl_dsp::discrete::digital_communications::constellations::Constellation;
use lib_jsl_dsp::discrete::digital_communications::decision_feedback_equalizer::decision_feedback_equalizer;
use lib_jsl_dsp::discrete::stream_operator::StreamOperator;
use lib_jsl_dsp::discrete::transformations::channel_impairment::ChannelImpairment;
use lib_jsl_dsp::discrete::transformations::non_linearity_transformers::{hard_clip_real, quantize_real};
use num_complex::Complex;
fn main() {
println!("hard clip of 1.7 at 1.0: {}; 8-level quantisation of 0.33: {:.4}", hard_clip_real(1.7, 1.0), quantize_real(0.33, 8));
let qpsk = Constellation::qpsk();
let symbols: Vec<Complex<f64>> = (0..3000).map(|k| qpsk.points()[(k * 13 + k / 7) % 4]).collect();
// A three-path channel with a little noise (the generator is seeded randomly).
let mut channel = ChannelImpairment::new(Some(1.0), Some(&[1.0, 0.9, 0.6]), Some(-30.0), None, None).unwrap();
let mut rx = channel.process(&symbols).unwrap().unwrap_or_default();
rx.extend(channel.flush().unwrap().unwrap_or_default());
let rx = &rx[..symbols.len()];
let raw_errors = rx.iter().zip(&symbols).filter(|(r, s)| (qpsk.slice(**r) - **s).norm() > 1e-9).count();
let eq = decision_feedback_equalizer(rx, &symbols[..200], qpsk.clone(), 7, 3, 0.05).unwrap();
let eq_errors = eq.iter().zip(&symbols).skip(500).filter(|(r, s)| (qpsk.slice(**r) - **s).norm() > 1e-9).count();
println!("symbol errors: {raw_errors} of 3000 without equalisation, {eq_errors} of 2500 after the DFE");
}
hard clip of 1.7 at 1.0: 1; 8-level quantisation of 0.33: 0.4286
symbol errors: 1713 of 3000 without equalisation, 0 of 2500 after the DFE
The channel makes most raw decisions wrong; after 200 training symbols the DFE makes none.
Strengths
- Composable channel models for testing receivers; equalisers that adapt to unknown channels and track slow changes.
- Decision feedback removes post-cursor interference without noise enhancement.
Weaknesses
- Error propagation in the DFE; the forward filter must still handle pre-cursor interference.
- The channel noise is not reproducible between runs (its generator is randomly seeded).
Exercises
- Show that a zero-forcing linear equaliser for has impulse response , and that its noise gain grows without bound as .
- Show that a DFE with correct past decisions removes all post-cursor interference with a single forward tap when .
- Simulate error propagation: inject one wrong decision and count the errors that follow.
- Add a Doppler shift to the channel and observe the equaliser’s tracking; how fast must the shift be before it fails?
Hints and answers
- The inverse of is , which is the impulse response ; its noise gain grows without bound as .
- With past decisions correct, subtract from the received sample and divide by .
- After one wrong decision the feedback term is wrong for the next symbols; each subsequent decision may be wrong with probability that depends on the channel tail . Count the errors over many trials.
- A Doppler shift makes the channel time-varying: the adaptive equaliser can track it if its adaptation time is short compared with the channel’s coherence time, about .
Further reading
- J. G. Proakis and M. Salehi, Digital Communications, 5th ed., McGraw-Hill, 2008, chapters 9–10.
- S. U. H. Qureshi, “Adaptive equalization”, Proceedings of the IEEE 73 (1985) 1349–1387.
- R. W. Lucky, “Automatic equalization for digital communication”, Bell System Technical Journal 44 (1965) 547–588.