LearnViz CompSci
Home / Learn / Computer Networks / Error Detection and Correction

Intermediate Topic 25 of 50 Computer Networks

Error Detection and Correction

Using checksums and codes to find and fix corrupted bits.

How it works

Error detection adds redundancy so a receiver can tell when data was corrupted, using parity bits, checksums and cyclic redundancy checks. Error correction adds enough redundancy to repair errors without retransmission, as with Hamming codes, Reed-Solomon and low-density parity-check codes. Forward error correction suits links where retransmission is costly, while automatic repeat request resends corrupted data.

Step-by-step walkthrough

  1. The sender adds extra check bits.
  2. The frame is sent over a noisy link.
  3. The receiver recomputes the check.
  4. A mismatch means corruption, the frame is dropped or resent.
  5. Error-correcting codes such as Hamming can even repair single-bit flips.

Where it is used

Ethernet, Wi-Fi, TCP and storage media use detection codes, while satellite links, QR codes, optical discs, DSL and 5G use strong correction.

Common pitfall

Simple parity misses even numbers of bit flips. Checksums can miss some errors, and detection is not security: attackers can alter data and recompute checksums. More redundancy costs bandwidth, so match the code strength to the channel error rate. Layers may each check, because errors can occur inside devices too.

Where it fits in the course

Error Detection and Correction is topic 25 of 50 in Computer Networks, rated Intermediate. It follows Sliding Window Protocol. The next topic is CRC.

Practice and explore

How to study this topic

  1. Read the explanation above and restate the definition in your own words.
  2. Open the interactive lesson and answer its mini quiz.
  3. Read the common pitfall, then write a short example that avoids it.
  4. Check your understanding in the Computer Networks quiz, and revisit the topic if you miss a question.

Frequently asked questions

What is Error Detection and Correction?
Using checksums and codes to find and fix corrupted bits. It belongs to Computer Networks and is an intermediate-level topic.
Where do people use Error Detection and Correction?
Ethernet, Wi-Fi, TCP and storage media use detection codes, while satellite links, QR codes, optical discs, DSL and 5G use strong correction.
What is the most common mistake with Error Detection and Correction?
Simple parity misses even numbers of bit flips.
What should I learn before this topic?
Start with Sliding Window Protocol, the topic just before it in Computer Networks.
How can I practice it?
Answer the mini quiz in the interactive lesson, then take the Computer Networks quiz.
Is Error Detection and Correction hard to learn?
It is an Intermediate topic. Be comfortable with the Beginner topics in this area first, then read the common pitfall carefully, since it is where most mistakes happen.
How long does it take to learn Error Detection and Correction?
Most learners can read the explanation and finish the interactive lesson in under an hour. Fluency comes from applying the idea, so plan a few short practice sessions with the quiz.
Which topics are related to Error Detection and Correction?
Sliding Window Protocol, CRC, Congestion Control are closely connected. The full list is in the related topics section of this page.
What should I study after Error Detection and Correction?
Continue with CRC, the next topic in Computer Networks.

Related topics