This is an old version, saved 4 Dec 2026, 04:24 by TechWritereditor. See the current version.

Cyclic redundancy check

Cyclic redundancy check (CRC) is a method of detecting accidental errors in digital data. The sender calculates a short check value from the data and sends it along; the receiver repeats the calculation and, if the results disagree, knows the data was damaged on the way.[1][2]

Contents
  1. How it works
  2. History
  3. Uses
  4. See also
  5. References

How it works

The data bits are treated as the coefficients of a polynomial, and sender and receiver agree in advance on a divisor called the generator polynomial.[1][2] The sender appends extra check bits chosen so that the whole message divides evenly by the generator, using arithmetic in which subtraction is the logical exclusive-or (XOR) operation.[1] The receiver divides what arrives by the same polynomial: a remainder of zero suggests the data is intact, while any other remainder signals an error.[1][2] With a well-chosen generator, a CRC catches all single-bit and double-bit errors, any odd number of errors, and any "burst" of consecutive damaged bits shorter than the check value.[1][2] The calculation is simple to build in hardware from a shift register and a few XOR gates.[1]

History

Cyclic codes for error detection were described by W. Wesley Peterson and D. T. Brown in a paper in the Proceedings of the IRE in January 1961.[3] The paper explained these codes in terms of polynomials and described the equipment needed to build error-detection systems with them.[3] Peterson later received the 1999 Japan Prize for establishing coding theory for reliable digital communication, broadcasting and storage.[4]

Uses

CRCs are used in nearly all link-level network protocols; Ethernet, for example, protects each frame with a 32-bit CRC.[1] They detect errors more strongly than the simple Internet checksum, which is easier to compute in software but misses some error patterns.[1] The PNG image format attaches a 32-bit CRC to every chunk of a file to detect corruption, using the same polynomial as the GZIP compression format.[5]

See also

References

  1. ^ 2.4: Error Detection (Computer Networks: A Systems Approach). LibreTexts. eng.libretexts.org
  2. ^ Direct Link Networks – Error Detection and Correction (CS 438 lecture). University of Illinois Urbana-Champaign. courses.grainger.illinois.edu
  3. ^ Cyclic Codes for Error Detection. Scilit (record of Proceedings of the IRE, vol. 49, no. 1). 1961-01-01. scilit.com
  4. ^ Japan Prize Laureates: W. Wesley Peterson (1999). The Japan Prize Foundation. japanprize.jp
  5. ^ Portable Network Graphics (PNG) Specification (Third Edition). World Wide Web Consortium. 2025-06-24. w3.org