Kayavak / Information Theory / IT·08 Channels and Noise / Deeper
Deeper · Information Theory
Channels and Noise
The questions the chapter doesn't stop for: why this exists, the model to keep in your head, what changes when an assumption does, how sure we are of each claim, and what's still open. Read it after the chapter; back to the chapter.
Why does this exist?
Noise was an engineering problem long before it was a mathematical one. Telegraph operators repeated important words and spelled names letter by letter, telephone engineers fought crackle with louder signals, and early computers checked their arithmetic with parity bits and stopped when a check failed. Every one of these remedies assumed that reliability had to be paid for in speed or power. Shannon's 1948 paper reframed the problem: describe the noise by its probabilities, measure what still gets through in bits, and ask what the best possible code could do. Hamming, frustrated by a relay computer that detected errors in his weekend jobs but couldn't fix them, published the first efficient correcting codes in 1950, and the two papers together started coding theory.
Detection grew alongside. Cyclic redundancy checks (Peterson and Brown, 1961) gave cheap hardware a strong check against the bursts of errors real channels make. Check digits moved the same idea from wires to people: Hans Peter Luhn's scheme at IBM, the ISBN in 1970, and Jacobus Verhoeff's 1969 study of how people actually mistype numbers, which showed which errors a check digit must catch.
The mental model
Try it yourself first: write your own model in the Mental Model Explorer, then compare.
A channel is a table of probabilities. Noise you can't see costs more than noise you can. Redundancy spaces codewords apart so that damage either shows (detection) or can be undone (correction), and the right redundancy depends on the damage you expect.
| Question | Answer |
|---|---|
| What is it? | Models of noisy transmission, and codes and checks that protect data against them |
| Problem it solves | Moving and storing data correctly when every channel sometimes changes it |
| Parts | Channels (), error counts, rate, distance, parity checks, syndromes, check digits, CRCs |
| How it works | Added bits that obey known rules; a broken rule shows damage, and its pattern can locate it |
| Assumptions | Errors random and independent, or of a known kind (bursts, typing errors) |
| When they change | Bursts defeat codes made for independent errors; adversaries defeat any non-cryptographic check |
| Where it fails | Too many errors per block, damage before the check is computed, deliberate tampering |
| Related ideas | Binomial distribution (ch03), (ch04), typical sets (ch06), mutual information (ch07), capacity (ch09) |
What if?
What if channels told you which bits were wrong?
Reason it through, then open
Then every channel would be an erasure channel, and protection would be much cheaper: a channel that loses 10 % of bits carries 0.9 bits per use, against 0.531 for one that flips 10 %. Simple schemes work well for erasures: one parity block can rebuild any one lost block, which is how RAID 5 survives a failed disk. Networks get close to this by checking every packet and discarding damaged ones, so the layers above see only missing packets. The difference between the two numbers, about 0.37 bits per use at 10 %, is the price of not knowing where the damage is.
What if errors were never independent?
Reason it through, then open
Real channels make errors in bursts: a scratch on a disc, a fade on a radio link, a lightning strike near a cable. A code designed for one error per block fails when a burst puts several into one block, as the exercises' P2 measured (Hamming(7,4) barely helped until the codewords were interleaved). Engineers respond in three ways: interleave, so a burst is spread over many codewords; use codes over whole bytes (Reed–Solomon), so a burst costs a few symbols rather than many bits; and use CRCs for detection, because they catch every burst up to their length. Memory in the noise is also structure, and in principle a code that models it can do better than one that assumes independence.
What if checksums had to stop attackers too?
Reason it through, then open
None of the chapter's checks would do. Sums, Adler-32 and CRCs are designed so that accidental damage is unlikely to go unnoticed, but they're easy to compute and, for CRCs, linear, so anyone can alter data and fix the check (the companion forges a CRC-32 in a few lines). Checks against attackers need cryptographic hash functions, where finding a different message with the same hash is believed infeasible, and, when the check travels with the data, a secret key (a message authentication code) or a signature. They cost more computation, which is why systems use fast checks for accidents and cryptographic ones where tampering is a risk.
Where the boundary is
| Aspect | Detection (checks) | Correction (codes) |
|---|---|---|
| Redundancy needed | Small: 8 to 32 bits per block | Grows with the errors to fix |
| Needs a second chance | Yes: resend, reread or another copy | No |
| Typical tools | Parity, check digits, Adler-32, CRCs | Hamming, SECDED, Reed–Solomon, LDPC |
| Fails when | Damage happens to form another valid block (about ) | More errors than the code's distance allows |
| Failure looks like | Undetected damage | Wrong "corrections", possibly adding errors |
| Used in | Networks, files, typed identifiers | Memory, storage, radio, deep space |
Derive it
Why Hamming codes are perfect.
- A code of length that corrects one error needs every codeword's "ball", the codeword and its neighbours one flip away, to be separate: blocks per codeword.
- With data bits there are codewords, and all the balls must fit among the possible blocks: , that is . This is the Hamming bound for one error.
- With check bits, the bound says .
- Hamming codes have exactly: gives , gives . The balls then fill the whole space with nothing left over: every possible block is within one flip of exactly one codeword.
- Such codes are called perfect. Apart from repetition codes of odd length and trivial cases, the only other perfect binary code is the Golay code of length 23 (1949), which corrects three errors; this was proved in the early 1970s.
How sure are we?
| Claim | How it's known | Where from |
|---|---|---|
| The binary symmetric channel carries bits per use with equally likely inputs | Theorem | The chapter's derivation; chapter 9 shows no input does better |
| Distance detects errors and corrects | Theorem | Hamming (1950) |
| A CRC of degree catches every burst of up to bits | Theorem | Peterson and Brown (1961), for generators with a constant term |
| ISBN-10 catches every single error and every swap | Theorem | 11 is prime; the chapter's exercises |
| 79 % of copying errors are single digits, 10 % adjacent swaps | Measured, one study | Verhoeff (1969), 12,112 errors in six-digit numbers |
| Adler-32 is weak on short messages | Measured and analysed | The companion's measurement; RFC 3309 (2002) |
| One flipped bit in deflate data can go unreported | Measured | The chapter's lab, 12 of 12 trials |
Still open
Codes are now remarkably close to Shannon's limits for long blocks, so the open questions are elsewhere. For short blocks (sensor messages, control signals, low-latency links), how close codes can get to the limit, and how to decode them fast, is an active area since Yury Polyanskiy, H. Vincent Poor and Sergio Verdú's 2010 bounds for finite block lengths. Storage at scale raises its own questions: how to repair erasure-coded data across a cluster while moving as little data as possible (regenerating codes, since 2007). And silent data corruption in processors, where a chip computes a wrong answer without any error signal, was reported by large operators in 2021 and is still being measured and mitigated.
What would change your mind? The chapter claims that a check computed after damage can't detect it, so integrity checks must be end to end. A system that reliably detected corruption introduced before its own check was computed, using only the corrupted data, would refute it; any such system turns out to rely on redundancy elsewhere, such as a second copy, a format whose rules the damage broke, or a check computed earlier.
Recall
What does a binary symmetric channel do?
Flips each bit independently with the same probability p, whichever bit was sent.
How much information does a BSC carry per use with equally likely inputs?
1 − h(p) bits: about 0.531 for p = 0.1.
What does an erasure channel with ε = 0.1 carry?
0.9 bits per use: lost bits are marked, so the rest can be trusted.
What's the chance n bits arrive with no errors?
(1 − p)^n, about e^(−np): it depends on the expected number of errors.
What does minimum distance d buy?
Detection of d − 1 errors, or correction of ⌊(d − 1)/2⌋.
What is Hamming(7,4)?
A code sending 4 data bits with 3 parity bits; the failed checks (the syndrome) give the position of a single error.
Why does ISBN-10 catch every adjacent swap and Luhn not?
ISBN-10 uses weights modulo the prime 11; Luhn misses 09 ↔ 90.
Why does compressed data need a checksum?
It has no redundancy left, so one flipped bit can silently garble much of the rest.
Reflect
Be honest with yourself; this stays in your browser. Anything you can't tick yet is what to revisit.