DriversRecommendedOutdated drivers can make a good PC feel brokenScan driver issues before chasing fixes manually.Scan NowOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsPC HealthRecommendedCrashes, freezes, slowdowns? Check your PC nowSpot repairable issues before they interrupt work.Check PC×
Skip to content
World desk4 min

Error Detection and Correction: How Data Errors Are Found and Fixed

Error detection flags corrupted data; error correction uses redundancy to repair some errors. Learn how code distance, parity, CRC, FEC, and retransmission differ.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Error detection identifies data that has been corrupted; error correction uses added information to work out the intended data and repair some errors without retransmission. Both rely on redundancy—extra bits or symbols that make valid data follow predictable rules. Their capabilities are limited: the code’s structure determines how many errors it can reliably detect or correct.

How error detection and correction work

A sender or storage system encodes information together with check bits or symbols. Those additions do not change the information an application means to convey, but they create a structured codeword. A receiver checks whether the received data still satisfies the code’s rules. A failed check indicates corruption; a decoder with enough information may also identify or reconstruct the intended codeword.

As an Amazon Associate I earn from qualifying purchases.

The key distinction is what happens after corruption is noticed. A detector can report that data appears wrong without knowing how to repair it. A correcting code adds enough structure for a receiver to infer some errors locally. If local correction is unavailable or insufficient, a system may instead request another copy.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

What the code’s distance tells you

In a binary code, Hamming distance is the number of bit positions that differ between two codewords. The code’s minimum distance, d, is the smallest such distance between any pair of valid codewords. Greater separation makes it easier to distinguish a valid message from a corrupted one.

  • A code with minimum distance d can guarantee detection of up to d − 1 bit errors in a codeword.
  • It can guarantee correction of up to floor((d − 1)/2) bit errors in a codeword.

These are guarantees within the stated limits, not promises about every corruption. Beyond the correction limit, a decoder may fail or choose a different valid codeword; a detected error is not automatically a corrected error. [IEEE Technology Navigator: Error correction]

Parity, CRC, and common error-correction codes

Method Main role What it does and does not do
Parity Detects some errors A parity bit makes the total number of 1 bits even or odd, according to the chosen rule. A single parity check detects any single-bit flip, but cannot identify which bit changed; it can also miss an even number of flips. [IEEE Technology Navigator: Parity check codes] [MIT OpenCourseWare: Principles of Computer System Design]
CRC Detects corruption A cyclic redundancy check tests data against a computed check value. It signals corruption but is not itself the repair or retransmission step. In PCIe 6.0, CRC is used after forward error correction to check the protected data. [PCI-SIG: PCIe 6.0 Specification Webinar Q&A]
Hamming code Corrects a limited number of bit errors Arranged parity constraints help locate an error. MIT’s textbook excerpt describes a 7-bit code representing 4 data bits that can correct a one-bit error. [MIT OpenCourseWare: Principles of Computer System Design]
Reed–Solomon Corrects suitable symbol errors or erasures Its usefulness depends on the configuration and error model. RFC 5510 specifies schemes for packet-erasure channels: a packet is received without corruption or discarded, and recovery is possible from a sufficient set of received symbols. [RFC 5510: Reed-Solomon Forward Error Correction (FEC) Schemes]
LDPC Supports error correction in communication links Low-density parity-check codes use iterative decoding. IEEE identifies their use in Wi-Fi 802.11n/ac/ax, 5G NR, and DVB-S2. [IEEE Technology Navigator: Parity check codes]

Correction, retransmission, and combined recovery

Codes are also used as part of a recovery strategy. The method depends on whether the receiver can correct data on its own and whether the system can send data again.

  • Forward error correction (FEC): Adds redundancy so a receiver can correct some errors without feedback or a retransmission request.
  • Automatic repeat request (ARQ): Detects a problem and asks the sender to retransmit data.
  • Hybrid ARQ (HARQ): Combines FEC with retransmission, using both local correction and additional transmissions.

These approaches suit different constraints, including latency, channel conditions, and whether feedback is available. [IEEE Technology Navigator: Error correction]

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Why real links may layer checks and repair

A system can apply more than one safeguard because correction and detection have different jobs. PCI-SIG’s September 27, 2020 description of PCIe 6.0 provides one specific example: FEC is applied to a FLIT, CRC checks it, and the link layer can retry if the CRC check fails. In that design, FEC attempts local correction; CRC helps identify remaining corruption; retry supplies another recovery route.

The same PCI-SIG Q&A describes a PCIe 6.0 FLIT as having 242 bytes of payload protected by 8 bytes of CRC, with the resulting 250 bytes protected by 6 bytes of FEC. Those are figures for that PCIe 6.0 arrangement, not a general overhead rule for error-control systems. [PCI-SIG: PCIe 6.0 Specification Webinar Q&A]

Where these techniques are used

Error-control methods appear wherever digital data may be corrupted, lost, or need protection during storage or transmission. IEEE identifies digital communications such as Wi-Fi, 5G, and satellite links, ECC memory, storage systems, and deep-space telemetry as application areas. Specific codes are chosen for the system’s error model and requirements; no one method is best for every case. [IEEE Technology Navigator: Error correction] [IEEE Technology Navigator: Parity check codes]

Quantum error correction is related in purpose but not simply classical error correction applied to quantum data. IEEE notes that quantum codes protect logical qubits through encoding and syndrome measurements rather than directly correcting an unknown quantum state as if it were an ordinary classical bit string. [IEEE Technology Navigator: Error correction]

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

How to choose or understand an error-control method

The right method depends on the problem the system must handle. When comparing designs, consider:

  • Error model: Is the concern isolated bit flips, bursts of errors, or packets that are lost or discarded?
  • Required capability: Must the receiver only detect corruption, or should it correct some errors locally?
  • Redundancy: How much extra data can the system carry or store?
  • Recovery conditions: Is retransmission possible, and is feedback available?
  • Failure behavior: What happens when corruption exceeds the code’s guaranteed correction capacity?

The answers determine the trade-offs among redundancy, latency, and recovery. A code’s name alone does not establish how well it fits a particular system.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
PC Slower Than It Used to Be?Free scan - under a minute
Outdated Drivers Are Slowing You DownFree scan - exact matches

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.