Parity Across Field Positions

Applying parity across a chosen collection of positions can check any odd number of changes within that collection, regardless of their individual field roles.

Source
Anbloq
Language
English
Created
Updated
Chapters
4
Reading time
1 min
In this article4 chapters
  1. Trace a grouped example
  2. Remember the covered range
  3. Use separate check groups to locate the failing field class
  4. Keep the assignment of positions to groups explicit

Trace a grouped example

Two protected fields contain 01 and 10. They have two ones altogether, giving even parity. Changing one field's first bit changes the combined parity. See population count.

Remember the covered range

A change in an unprotected header cannot be detected by this field check. Header and payload sizes illustrate why coverage needs a clear boundary.[1][2]

Use separate check groups to locate the failing field class

Imagine two groups each protected by even parity. A flip in the first group alone causes its check to fail while the second still passes. One bit in each group can fail both. This is distinct from one parity over their concatenation, which would miss two flips. See which changes parity detects.

Group A and B start valid
Flip one in A → fail A, pass B
Flip one in A and one in B → fail both
Flip two in A → may pass both

Keep the assignment of positions to groups explicit

Framing must be correct before applying the checks. A shifted boundary can mix groups. Test representative positions in both groups and confirm the detected status.

References

  1. MIT OpenCourseWare, 6.003 Signals and Systems ↩
  2. David J. C. MacKay, Information Theory, Inference, and Learning Algorithms ↩