Communication Networks · Visualized
CRC — Cyclic Redundancy Check
Error Control
Detecting and correcting corrupted bits with parity, CRC and Hamming codes.
3 interactive subtopics — each one animated, step-through and explained.
CRC — Cyclic Redundancy Check
Error ControlCRC treats the message as one huge binary number and divides it (mod-2 arithmetic, i.e. XOR) by a fixed generator polynomial. The remainder — typically 16 or 32 bits — is appended. Because division amplifies any changed bit, a correct receiver always computes remainder zero. Ethernet’s FCS field is a CRC-32.
How CRC — Cyclic Redundancy Check Works
- Append r zeros to the data, where r = degree of the generator (here 3 for 1101).
- Divide by the generator using XOR instead of subtraction — align leftmost 1s and XOR.
- The r-bit remainder replaces the appended zeros: this is the transmitted codeword.
- Receiver divides the whole received word by the same generator.
- Remainder 0 → accepted; anything else means corruption (or an uncorrectable pattern).
CRC — Cyclic Redundancy Check Worked Example
Try it: Play — the division walks column by column; the yellow register shows the live remainder.
Data 101001 with generator 1101 ends with remainder 001 → the wire carries 101001001. Re-dividing at the receiver yields 000: accepted. Flip any bit during transit and the remainder turns non-zero.
CRC — Cyclic Redundancy 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.