Communication Networks · Visualized
Parity Check
Error Control
Detecting and correcting corrupted bits with parity, CRC and Hamming codes.
3 interactive subtopics — each one animated, step-through and explained.
Parity Check
Error ControlParity is the simplest error detector: count the 1-bits of the data and append one extra bit so the total is even (even parity). The receiver recounts. If an odd number of bits flipped somewhere, the parity mismatches and the block is rejected — but two flips cancel out and slip straight through.
How Parity Check Works
- Sender XORs all data bits together to compute the parity bit.
- The codeword (data + parity) now contains an even number of 1s.
- The receiver XORs every received bit including parity.
- Result 0 → accept; result 1 → an odd number of errors occurred → discard / ask again.
- Any even number of bit-flips preserves parity and goes undetected.
Parity Check Worked Example
Try it: Toggle “flip one bit in transit” and replay — the verdict flips from OK to ERROR DETECTED.
Data 1011010 has four 1s → parity 0 keeps it even. Flip the third bit: three... five 1s? Recount says odd — rejected. This 12.5% overhead buys detection of every single-bit corruption.
Parity Check: Key Facts to Remember
Recommended resourcesAffiliate links · may earn us a commission
Recommended for learners
See how packets really travel
Networks are built on the structures and algorithms you can watch step by step — queues, trees, and routing algorithms.