5. Interleaving & Burst Errors
Scatter data so burst errors become single errors
Most error-correcting codes are designed to handle random, scattered errors — a flipped bit here, a corrupted symbol there. Their mathematics assumes errors are spread thinly and independently across the received data. But the real world is rarely so obliging. Real-world errors are bursty: a scratch on a CD wipes out thousands of consecutive bits, a momentary signal fade in a wireless channel corrupts an entire block, a lightning strike garbles a long stretch of transmission.
Interleaving is a simple but powerful technique that bridges this gap. The idea: rearrange the data before transmission so that symbols from different codewords are mixed together. When a burst error strikes the channel and corrupts a run of consecutive symbols, de-interleaving on the receive side spreads those errors back across many different codewords. One big problem becomes many small ones — and small problems are exactly what error-correcting codes are built to handle.
The Problem: Burst Errors
Consider a code that can correct up to 2 symbol errors per codeword. If errors arrive randomly, each codeword is unlikely to accumulate more than 1 or 2 errors, and the code handles them with ease. But suppose a burst hits 10 consecutive symbols, and all 10 happen to belong to the same codeword. That codeword now has 10 errors — far beyond the code's correction capacity. The data is lost.
Now imagine those 10 consecutive symbols had been drawn from 10 different codewords. Each codeword would have only 1 error — well within the code's ability to correct. Every codeword recovers perfectly. Same burst, same number of corrupted symbols, but a completely different outcome.
Without Interleaving — burst hits one codeword
Codeword A: [ A1 A2 A3 A4 A5 A6 A7 A8 ]
^^^^^^^^^^^^^^^^^^^^
burst corrupts 5 symbols
→ 5 errors in Codeword A → UNCORRECTABLE
With Interleaving — burst spread across codewords
Transmitted: [ A1 B1 C1 D1 A2 B2 C2 D2 A3 B3 ... ]
^^ ^^ ^^ ^^ ^^
burst corrupts 5 symbols
After de-interleaving:
Codeword A: 1 error → correctable
Codeword B: 1 error → correctable
Codeword C: 1 error → correctable
Codeword D: 1 error → correctable
Codeword E: 1 error → correctable
Block Interleaving
The simplest form of interleaving is block interleaving. The process uses a matrix: write the codewords into rows, then transmit by reading columns. On the receiving end, fill the matrix column by column (as the data arrives), then read the rows to recover each codeword. A burst that corrupts consecutive transmitted symbols will hit at most one symbol per row — one symbol per codeword.
Block Interleaving: 4 codewords of 8 symbols
Step 1 — Write codewords into rows:col1 col2 col3 col4 col5 col6 col7 col8 +-----+-----+-----+-----+-----+-----+-----+-----+row 1 | A1 | A2 | A3 | A4 | A5 | A6 | A7 | A8 | Codeword A +-----+-----+-----+-----+-----+-----+-----+-----+ row 2 | B1 | B2 | B3 | B4 | B5 | B6 | B7 | B8 | Codeword B +-----+-----+-----+-----+-----+-----+-----+-----+ row 3 | C1 | C2 | C3 | C4 | C5 | C6 | C7 | C8 | Codeword C +-----+-----+-----+-----+-----+-----+-----+-----+ row 4 | D1 | D2 | D3 | D4 | D5 | D6 | D7 | D8 | Codeword D +-----+-----+-----+-----+-----+-----+-----+-----+
Step 2 — Transmit column by column:
A1 B1 C1 D1 | A2 B2 C2 D2 | A3 B3 C3 D3 | A4 B4 C4 D4 | ...
Step 3 — A burst corrupts 4 consecutive transmitted symbols:
A1 B1 C1 D1 A2 B2 C2 D2 A3 B3 C3 D3 A4 B4 C4 D4 ^ ^ ^ ^ burst of 4
Step 4 — After de-interleaving (fill columns, read rows):
Codeword A: A1 [A2] A3 A4 A5 A6 A7 A8 → 1 error Codeword B: B1 [B2] B3 B4 B5 B6 B7 B8 → 1 error Codeword C: C1 [C2] C3 C4 C5 C6 C7 C8 → 1 error Codeword D: D1 [D2] D3 D4 D5 D6 D7 D8 → 1 error
Each codeword has exactly 1 error → easily correctable!
Worked Example
Setup: 4 codewords, each 6 symbols long. The code corrects 1 error per codeword.
Step 1 — The original codewords:
Codeword W: W1 W2 W3 W4 W5 W6 Codeword X: X1 X2 X3 X4 X5 X6 Codeword Y: Y1 Y2 Y3 Y4 Y5 Y6 Codeword Z: Z1 Z2 Z3 Z4 Z5 Z6
Step 2 — Write into a 4×6 matrix (rows):
c1 c2 c3 c4 c5 c6
+-----+-----+-----+-----+-----+-----+
W | W1 | W2 | W3 | W4 | W5 | W6 |
+-----+-----+-----+-----+-----+-----+
X | X1 | X2 | X3 | X4 | X5 | X6 |
+-----+-----+-----+-----+-----+-----+
Y | Y1 | Y2 | Y3 | Y4 | Y5 | Y6 |
+-----+-----+-----+-----+-----+-----+
Z | Z1 | Z2 | Z3 | Z4 | Z5 | Z6 |
+-----+-----+-----+-----+-----+-----+
Step 3 — Read column by column to produce the transmitted sequence (24 symbols):
W1 X1 Y1 Z1 W2 X2 Y2 Z2 W3 X3 Y3 Z3 W4 X4 Y4 Z4 W5 X5 Y5 Z5 W6 X6 Y6 Z6 ---- col1 --- --- col2 --- --- col3 --- --- col4 --- --- col5 --- --- col6 ---
Step 4 — A burst error corrupts symbols 7 through 10 (4 consecutive):
Position: 1 2 3 4 5 6 7 8 9 10 11 12 ...
Symbol: W1 X1 Y1 Z1 W2 X2 Y2 Z2 W3 X3 Y3 Z3 ...
^^ ^^ ^^ ^^
burst hits positions 7-10
Corrupted symbols: Y2, Z2, W3, X3
Step 5 — De-interleave (fill columns, read rows):
Codeword W: W1 W2 [W3] W4 W5 W6 → 1 error (W3) Codeword X: X1 X2 [X3] X4 X5 X6 → 1 error (X3) Codeword Y: Y1 [Y2] Y3 Y4 Y5 Y6 → 1 error (Y2) Codeword Z: Z1 [Z2] Z3 Z4 Z5 Z6 → 1 error (Z2)
Step 6 — Decode:
Each codeword has exactly 1 error. Our code corrects 1 error per codeword, so all 4 codewords are fully recovered.
Without interleaving:
Transmitted as-is: W1 W2 W3 W4 W5 W6 | X1 X2 X3 X4 X5 X6 | Y1 ...
^^ ^^ ^^ ^^
burst hits positions 7-10
Codeword X: X1 [X2] [X3] [X4] [X5] X6 → 4 errors → UNCORRECTABLE!
The same burst, the same 4 corrupted symbols — but without interleaving, all 4 errors land in a single codeword, overwhelming the code's correction capacity.
Interleaving Depth
The interleaving depth d (the number of rows, i.e., the number of codewords interleaved together) determines the maximum burst length the system can handle. With a t-error-correcting code and interleaving depth d, the system can correct bursts up to d × t symbols long.
In the worked example above, d = 4 and t = 1, so we handle bursts up to 4 × 1 = 4 symbols. If we used a 2-error-correcting code with the same depth, we could handle bursts up to 4 × 2 = 8 symbols. If we increased depth to 10 with a 2-error code, we could survive bursts of 20 consecutive symbol errors.
Deeper interleaving means more burst protection — but it comes at a cost. The encoder must buffer the entire matrix before it can begin transmitting, and the decoder must receive the entire block before it can begin decoding. This introduces latency proportional to the interleaving depth. For a depth-100 interleaver with 200-symbol codewords, that is 20,000 symbols of delay before the first codeword can be decoded.
Convolutional Interleaving
Block interleaving has a drawback: the encoder and decoder must each buffer the entire matrix — d × n symbols of memory, and a full-block delay before any decoding can begin. Convolutional interleaving (also called Forney or Ramsey interleaving) offers a clever alternative that achieves the same burst-spreading effect with roughly half the memory and half the latency.
The idea: instead of a single matrix, use d parallel paths with progressively increasing delays. Path 0 has zero delay, path 1 is delayed by M symbols, path 2 by 2M symbols, and so on up to path d−1 with (d−1)×M symbols of delay. A commutator switch cycles through the paths, feeding one symbol to each in turn.
Convolutional Interleaver (depth 4, M = 3)
Input symbols: s0 s1 s2 s3 s4 s5 s6 s7 s8 ...Path 0: delay = 0 symbols ───── [no buffer] ─────> Path 1: delay = 3 symbols ───── [ 3-sym buf ] ─────> Path 2: delay = 6 symbols ───── [ 6-sym buf ] ─────> Path 3: delay = 9 symbols ───── [ 9-sym buf ] ─────>
Commutator cycles: s0→path0, s1→path1, s2→path2, s3→path3, s4→path0, s5→path1, ...
De-interleaver uses the reverse delays: path 0 gets the longest delay, path d-1 gets zero — so all symbols re-align.
The de-interleaver on the receive side uses complementary delays (path 0 gets the longest, path d−1 gets zero), so the total delay through the interleaver–de-interleaver pair is the same for every symbol and the original ordering is restored. Convolutional interleaving is used more widely than block interleaving in practical systems because of its lower memory and latency requirements.
CDs: Cross-Interleaved Reed-Solomon (CIRC)
The compact disc is a masterclass in interleaving. Its error-correction system, known as CIRC (Cross-Interleaved Reed-Solomon Coding), combines two Reed-Solomon codes with a convolutional interleaver between them to achieve remarkable burst-error resilience.
CIRC Encoding Pipeline
Audio samples (16-bit stereo, 44.1 kHz)
↓
Scrambling (spread L/R samples for additional resilience)
↓
C2 Encoder: RS(28, 24) over GF(2⁸)
→ adds 4 parity symbols to each 24-data-symbol block
↓
Interleaver: convolutional, depth 28, delays of 0 to 27 × 4 = 108 frames
→ spreads each C2 codeword's symbols across 109 consecutive frames
↓
C1 Encoder: RS(32, 28) over GF(2⁸)
→ adds 4 parity symbols to each 28-symbol block
↓
EFM modulation → written to disc
CIRC Decoding Pipeline (on read)
Read from disc → EFM demodulation
↓
C1 Decoder: RS(32, 28) — corrects up to 2 symbol errors per frame
↓
De-interleaver: reverses the convolutional interleaving
↓
C2 Decoder: RS(28, 24) — corrects up to 2 symbol errors,
or detects and flags up to 4 erasures (symbols C1 flagged as unreliable)
↓
Audio output (with interpolation for any remaining flagged samples)
The interleaving depth of 109 frames means that a single burst error on the disc surface is spread across 109 different C2 codewords. A physical scratch up to about 2.5 mm long (roughly 4,000 bits) can be fully corrected. With interpolation for concealment, scratches up to ~7.5 mm are tolerable. This is why a lightly scratched CD still plays perfectly.
Interleaving in Wireless
Wireless channels suffer from fading — the signal strength drops for a period as the transmitter, receiver, or environment moves. During a fade, the signal-to-noise ratio plummets and a run of consecutive symbols is corrupted. This is the classic burst-error scenario, and every modern wireless standard uses interleaving to combat it.
Before Interleaving — fade wipes out one codeword
Time → |---- CW1 ----|---- CW2 ----|---- CW3 ----|---- CW4 ----|
Signal: ______________| |_____________|______________
|_____________|
deep fade
CW2: all symbols corrupted → UNCORRECTABLE
CW3: all symbols corrupted → UNCORRECTABLE
After Interleaving — fade errors spread across all codewords
Time → |C1 C2 C3 C4 C1 C2 C3 C4 C1 C2 C3 C4 C1 C2 C3 C4|...
Signal: ______________| |______________|_________
|_____________|
deep fade
After de-interleaving:
CW1: 2 errors → correctable CW3: 2 errors → correctable
CW2: 2 errors → correctable CW4: 2 errors → correctable
In GSM, the interleaving depth is 8 (spreading each codeword across 8 time slots of about 0.577 ms each). LTE uses time-frequency interleaving across OFDM subcarriers and time slots. Wi-Fi (802.11) interleaves bits across subcarriers within each OFDM symbol. In every case, the depth is tuned to the expected fade duration of the channel.
The Tradeoff: Latency
More Interleaving
- Handles longer burst errors
- Higher latency (must buffer full block)
- More memory required
- Better for storage and broadcast systems
Less Interleaving
- Lower latency (shorter buffer)
- Less burst protection
- Less memory required
- Better for real-time and interactive systems
This tradeoff shapes system design. A CD can afford deep interleaving (109 frames of delay) because playback is not interactive — a few milliseconds of buffering is imperceptible. A voice call over GSM uses shallow interleaving (depth 8, about 40 ms of added delay) because human conversation is sensitive to latency. Deep-space probes can interleave over thousands of symbols because round-trip times are already measured in hours.
Where Interleaving Is Used
| System | Interleaving Type | Purpose |
|---|---|---|
| CD / DVD / Blu-ray | Cross-interleaved RS (CIRC) | Survive scratches and disc defects |
| DAB Digital Radio | Time interleaving (384 ms) | Handle multipath fading |
| DVB-T / DVB-S | Convolutional + bit interleaving | Broadcast TV over satellite and terrestrial channels |
| GSM | Block interleaving (depth 8) | Mobile voice in fading channels |
| LTE / 5G NR | Time-frequency interleaving | Spread errors across OFDM subcarriers and slots |
| Wi-Fi (802.11) | Frequency interleaving | Spread errors across OFDM subcarriers |
| Deep Space | Block interleaving (very deep) | Handle solar interference and long fades |
| Turbo Codes | Internal interleaver (pseudo-random) | Decorrelate inputs to the two component encoders |
Try It Yourself — Block Interleaving
Configure the interleaving parameters, then click & drag across the transmitted stream to simulate a burst error. Compare how the same burst affects codewords with and without interleaving.
Interleaving Matrix
Transmitted Stream (column-by-column)
De-interleaving Results
Key Takeaways
- Interleaving does not add redundancy — it rearranges existing codewords so that burst errors are spread across many codewords after de-interleaving.
- Block interleaving writes codewords into rows and transmits column by column. Simple to understand, but requires buffering the entire matrix.
- Convolutional interleaving uses staggered delay lines to achieve the same spreading effect with roughly half the memory and latency.
- Interleaving depth d with a t-error-correcting code handles bursts up to d × t symbols long.
- CIRC on CDs is the iconic real-world example: two RS codes with convolutional interleaving between them survive scratches up to 2.5 mm.
- The fundamental tradeoff is latency — deeper interleaving protects against longer bursts but requires more buffering delay. System designers choose depth based on the expected burst length and the application's latency tolerance.