Research notes / Erasure coding
Reed-Solomon recovery needs more than a fragment count
Published 13 October 2026 / Updated 19 October 2026 / Primary-source review and synthetic exact arithmetic
Three surviving fragments do not necessarily determine three original values. The selected equations must be independent, and the values must be trustworthy. Redundancy count alone proves neither.
On this page11 sections
Two properties that should not be conflated
Systematic describes an encoding that retains the original symbols. Maximum distance separable (MDS) supplies the any-k recovery guarantee. RFC 5510 specifies both, on a channel where received symbols are assumed uncorrupted. It is a packet-FEC specification, not a certification of a storage product. [1]
For a molecular-storage application, see DNA coverage and sequence dropout: repeated reads can leave encoded fragments unseen even when the average coverage looks sufficient.
For the column-vector convention below, each surviving fragment contributes one row of a generator matrix. Recovering three unknown data symbols requires an invertible three-row matrix. A visible identity block only settles the easy case in which all original data fragments survive.
Same dimensions, different recovery guarantees
Our selected teaching example has three data symbols and six encoded symbols over GF(7): integers 0 through 6 with arithmetic modulo 7. This is not byte arithmetic or GF(28). We check all 20 ways to retain exactly three of the six fragments. Row indices begin at zero.
| Construction | Checked | Recoverable | Singular survivor sets |
|---|---|---|---|
| Identity plus power rows | 20 | 19 | [1, 3, 5] |
| Whole-matrix systematic transform | 20 | 20 | None |
The first construction appends rows [1, x, x2] for x = 1, 2, 6 beneath a three-row identity matrix. Its power rows are distinct, yet surviving rows 1, 3 and 5 are dependent.
row 1: [0, 1, 0]
row 3: [1, 1, 1]
row 5: [1, 6, 1]
row 5 - row 3 = 5 * row 1 (modulo 7)The ambiguity is concrete: original payloads [0, 0, 0] and [1, 0, 6] both produce surviving values [0, 0, 0]. No decoder using only those values can tell which payload was written. This is information loss, not a numerical-precision problem.
For the second construction, start with six Vandermonde rows [1, x, x2] at x = 0 through 5. Let T be its first three rows. Compute G = V T-1 over GF(7), transforming every row rather than replacing the top rows. The result has an identity block and passes all 20 subset checks. Each chosen submatrix is an invertible Vandermonde matrix multiplied by the same invertible T-1.
Both matrices and every singular subset are in the generated JSON. The model and tests enumerate all 343 possible input triples independently of matrix inversion, then round-trip every payload through each nonsingular survivor set.
node --test erasure-matrix.test.mjsThis is an exhaustive result for two explicit small constructions, not a sampled population. The 19/20 count is not a 95% reliability estimate. We assign no probability to fragment losses, and do not model disks, racks, stale versions, repair traffic or concurrent updates. The matrices are illustrative, not the historical paper's example, ISA-L output or an RFC 5510 implementation.
Why the construction deserves a source audit
Plank and Ding corrected the earlier information-dispersal construction. We have now read the complete six-page technical report dated 24 April 2003, including its column-transformation algorithm and worked example. The related journal article appeared in 2005; its full text was not used for the reconstruction below. The GF(7) example above remains a separate teaching construction. [2] [7]
The pinned ISA-L header gives a related implementation warning: gf_gen_rs_matrix does not promise invertible recovery matrices for all parameter choices. It documents sufficient parameter ranges and a separate Cauchy constructor. Here its m means total rows, not parity count. A familiar function name is not a substitute for checking its contract. This is a documented limitation, not a newly discovered vulnerability, and it does not establish a defect in Ceph. [3]
Reconstructing the published GF(16) example
The report's page 4 uses three data symbols and six encoded symbols over GF(24). Its Table 1 describes arithmetic consistent with the polynomial basis modulo x4 + x + 1. Addition is XOR: 6 + 6 = 0, and 4 times 4 = 3. Ordinary arithmetic modulo 16 would give different answers. [7]
Using those logarithm tables, we reconstruct the same V T-1 transform and obtain every entry of the printed final matrix. Rows 0 through 2 are the identity; its remaining rows are:
row 3: [1, 1, 1]
row 4: [15, 8, 6]
row 5: [14, 9, 6]The tests independently implement polynomial multiplication and compare all 256 scalar products against the table method. They then encode all 4,096 three-symbol payloads and reconstruct each through every three-row survivor set: 81,920 successful round trips. This checks the published example, not all Reed-Solomon implementations.
Full rank does not protect every survivor set
The report specifies column operations. In this column-vector convention, right multiplication by one invertible matrix T-1 preserves each selected row submatrix's rank: selecting rows S gives GS = VS T-1. Preserving only the rank of the complete generator is weaker.
As a separate negative control, replace row 5 with row 5 XOR row 4. This reversible row operation leaves the three identity rows unchanged, so the full matrix still has rank three and remains systematic. But its new row 5 is [1, 1, 0]. Survivors 0, 1 and 5 now contain no information about the third data symbol.
| Case | Valid sets | Singular sets |
|---|---|---|
| Published | 20 / 20 | None |
| Row-mixed | 18 / 20 | [0, 1, 5][2, 3, 5] |
The second failed set is [2, 3, 5]: its rows also sum to zero. These are exact enumeration counts, not failure probabilities. The row-mixed matrix is our negative control, not a defect in the authors' correction or a production codec.
Download the results and provenance, Python reconstruction and tests into one directory. Python 3.10 or later suffices without third-party packages:
python3 rs-correction.test.pyA change of field representation or generator is also a data-format decision. Do not apply a new decoder to old fragments merely because their dimensions match; retain the codec parameters and fragment ordering that produced them.
Correctness evidence is not a speed ranking
The FAST 2009 comparison by Plank and colleagues tested five open-source libraries, several code families and two main machines. After finding high filesystem-I/O variability, the coding experiments removed actual file I/O and measured encoding work. Decoding selected missing data drives and checked reconstructed data. Cache behavior, packet size and implementation details materially affected results. These are historical implementation experiments, not current storage throughput figures or a proof for every erasure pattern. [4, sections 4-7]
Our enumeration makes no performance claim. Compare local repair accounting for a separate question: how much data a successful reconstruction reads.
An invertible system can recover the wrong data
If an input fragment silently changes, solving an invertible system still gives an answer. An erasure-channel contract does not supply the missing integrity check. Fragment identity, expected version and validation before repair remain separate requirements; see checksum and lost-write boundaries.
For an engineering review, record the exact code construction and field, fragment ordering, supported parameters, tested loss patterns, validation of helpers and reconstruction, and placement across failure domains. Do not replace a production codec or reinterpret existing fragments using this teaching implementation.
A missing symbol is not an unknown error
An erasure has a known position but no trusted value; an error is an incorrect value at a position the decoder has not identified. For minimum distance d, bounded-distance unique decoding guarantees recovery when 2e + s < d. An MDS code has d = n - k + 1, giving 2e + s ≤ n - k. Here e counts errors among non-erased symbols and s counts erasures in one codeword. A suitable errors-and-erasures decoder is required. [5]
Our six-symbol, three-data-symbol code has distance 4: we compare every pair among its 343 codewords, 58,653 pairs in total. The following are exact limits for this construction, not drive-failure rates.
| e | s | 2e + s | Guaranteed? |
|---|---|---|---|
| 0 | 3 | 3 | Yes |
| 1 | 1 | 3 | Yes |
| 1 | 2 | 4 | No |
| 2 | 0 | 4 | No |
Outside the bound, some inputs may still decode correctly; universal unique recovery is lost. Conversely, a single returned candidate does not prove that the assumed error budget was true.
Four available symbols, multiple possible originals
In this original teaching example, positions 2 and 3 are erased. The four available values are compatible with two different payloads if one of those four values may be wrong. Positions are zero-based and ? denotes an erasure, never a zero.
Payload A: [0, 0, 0]
Codeword A: [0, 0, 0, 0, 0, 0]
Payload B: [0, 0, 1]
Codeword B: [0, 0, 1, 3, 6, 3]
Observed: [0, 0, ?, ?, 0, 3]A explains the observation with an error at position 5; B explains it with an error at position 4. Each is one mismatch away on available coordinates. These are two of the 4 candidates found by exhaustive search. This is the 2e + s = 4 case, beyond the code's budget of three.
Suppose A was written. Correctly rejecting position 5 leaves [0, 0, ?, ?, 0, ?], which uniquely recovers A as three known erasures. Rejecting the healthy position 4 instead leaves [0, 0, ?, ?, ?, 3]; an erasure-only solver now returns B, uniquely but incorrectly. A reliable per-fragment integrity check can therefore help locate erasures, but an unsupported guess can remove the evidence needed to detect a wrong repair. Identity, expected version and integrity of the verification metadata still matter.
The tests enumerate all 88,494 payload/channel cases within the bound for this fixed code: all 343 payloads, every placement of up to three erasures, and every nonzero single-symbol change with zero or one erasure. Candidate search compares against the complete codebook rather than inverting only the selected survivors. An explicit ambiguous case and false-identification case provide negative controls.
Download the results and source hashes, decoder model, its matrix dependency and the tests into one directory, then run:
node --test rs-errors.test.mjsNo random sample, confidence interval or device population is involved. Each coordinate is one GF(7) symbol; real shards contain many symbols and require explicit codeword mapping. This exhaustive search is intentionally tiny, not a production decoder, hardware experiment or validation of any vendor's implementation.
Reliability information must be justified
Senger and colleagues investigate selecting erasures using channel-derived reliability, not assuming every suspect symbol is wrong. Their 2011 paper evaluates RS(255,144) over GF(256), 256-QAM and additive white Gaussian noise. Section V combines simulation with bounds based on an average of 10,000 random reliability vectors; those bound calculations reuse one erasure count rather than adapting it to every received word. Section IV-B also labels a proposition supporting one approximation as experimentally checked, without a proof in that version. [6]
These are communications-channel results, not measured storage corruption rates. We do not reproduce their simulations or transfer their reported gain to disks. The engineering lesson we draw is narrower: document how suspect positions are identified, which decoder consumes that information, and what happens when identification is wrong. An erasure-only storage API does not acquire error-location capability merely because its underlying code is Reed-Solomon.
Sources and reproducibility
- Lacan, Roca, Peltotalo and Peltotalo. RFC 5510 (2009), sections 3.1, 8.2-8.4: systematic encoding and the erasure-channel assumption.
- Plank and Ding. Correction to the 1997 Tutorial on Reed-Solomon Coding. SPE 35(2), 189-194 (2005), DOI 10.1002/spe.631. Journal metadata.
- Intel ISA-L erasure_code.h, gf_gen_rs_matrix and gf_gen_cauchy1_matrix documentation; commit 8fa1e72fee7338fcfbf829b00f2f407631bd2dba.
- Plank, Luo, Schuman, Xu and Wilcox-O'Hearn. A Performance Evaluation and Examination of Open-Source Erasure Coding Libraries For Storage. FAST 2009, sections 2, 4-7.
- G. David Forney. Principles of Digital Communication II, MIT 6.451 (2005), section 6.5.3: bounded-distance erasure-and-error correction.
- Senger, Sidorenko, Schober, Bossert and Zyablov. Adaptive Single-Trial Error/Erasure Decoding of Reed-Solomon Codes (2011), arXiv:1104.0576v1, sections II-V. Full five-page version reviewed.
- Plank and Ding. UT-CS-03-504 (24 April 2003), section 3, Table 1 and worked GF(16) example, pages 2-4. Full six-page report reviewed.
Reviewed 19 October 2026. Original calculations use exact integer arithmetic and no random seed or third-party dataset. The JSON includes method and limits; the repository checkpoint records the runtime, tests and deployment evidence. No source paper, figure or external library code is republished.