📡 Paper 1 · Topic 2: Data Transmission
2.2 Error Detection Methods
Cambridge IGCSE Computer Science 0478 · ~12 min read · ⭐ Pro

Why Error Detection?

When data is transmitted over a network, errors can occur due to electrical interference, noise, or hardware faults. Error detection methods help identify whether data has been corrupted during transmission.

Important: Cambridge 0478 expects you to know three methods: parity checks, checksums, and echo checks.

Parity Checks

A parity bit is an extra bit added to a group of bits to make the total number of 1s either even (even parity) or odd (odd parity).

How it works:

  • Sender and receiver agree on even or odd parity
  • Sender counts the 1s in the data and sets the parity bit to make the total even/odd
  • Receiver counts 1s including the parity bit — if the total doesn't match, an error has occurred

Worked example (even parity):

Data: 1011001 → five 1s (odd). Add parity bit 1 to make it even: 10110011 (six 1s). ✓

If received as 10110111 (seven 1s — odd), parity fails → error detected.

Limitations:

  • Can only detect an odd number of bit errors
  • If two bits flip, parity count is still correct → error not detected
  • Cannot identify which bit is wrong (error correction not possible)

Checksums

A checksum is a value calculated from the data before transmission. The receiver recalculates and compares.

  • Sender adds up all the bytes/values in a block of data to produce a checksum value
  • Checksum is sent alongside the data
  • Receiver performs the same calculation on received data
  • If the calculated checksum matches the sent checksum → data received correctly
  • If checksums differ → error detected; receiver requests retransmission

More powerful than parity — can detect multi-bit errors in blocks of data.

Echo Checks (ARQ)

In an echo check, the receiver sends the data back to the sender. The sender compares the echoed data with the original.

  • If they match → data transmitted correctly
  • If they differ → retransmission is requested
  • Simple but doubles the amount of data on the network
  • Example: older modem communications, terminal systems
MethodHow it worksStrengthLimitation
Parity bitExtra bit to make 1s even or oddSimple, low overheadMisses even-number bit errors
ChecksumSum of data values comparedDetects multi-bit errorsDoesn't pinpoint which bits
Echo checkData echoed back to senderVery reliableDoubles network traffic
Exam tip: Cambridge commonly asks you to describe or work through a parity check. Know: (1) what even/odd parity means, (2) how to set a parity bit, (3) the limitation (can't detect even-number errors). Also know that error detection can only detect errors — it's error correction methods that fix them.
⚠️ Common Mistakes
  • Saying parity detects all errors — it cannot detect errors where an even number of bits flip
  • Confusing even and odd parity — the parity bit is set so the TOTAL count of 1s (data + parity) is even or odd
  • Saying error detection corrects errors — detection only finds them; you still need retransmission
Video coming soon
Click slide or press arrow keys to navigate
✍️

Worksheet — Error Detection

5 questions · 10 marks

Q1Describe how a parity check works to detect errors in data transmission. Use even parity in your answer.[3]
✅ Mark scheme
A parity bit is added to the data [1]; the parity bit is set so the total number of 1s (including the parity bit) is even [1]; the receiver counts the 1s in the received data — if the count is not even, an error has occurred [1]
Q2The data 1010110 is transmitted using even parity. What parity bit should be added? Show your working.[2]
✅ Mark scheme
1010110 contains four 1s — already even [1]; so parity bit = 0 [1] (total remains even: four 1s)
Q3State one limitation of using a parity check for error detection.[1]
✅ Mark scheme
Parity cannot detect errors if an even number of bits are corrupted (the count would still appear correct) [1]
Q4Describe how a checksum is used to detect errors in a block of data.[3]
✅ Mark scheme
The sender calculates a checksum by summing the values in the data [1]; the checksum is sent with the data [1]; the receiver performs the same calculation and compares — if the checksums don't match, an error has occurred [1]
Q5State one disadvantage of using an echo check compared to other error detection methods.[1]
✅ Mark scheme
Echo checks require the data to be sent twice (there and back), which doubles the network traffic / uses more bandwidth [1]
Quiz — Error Detection
Q 1 of 8
Score
/ 8
Click to reveal
TermDefinition
🎯

Mini Test — Error Detection

10 minutes · mixed marks

← 2.1d Client-Server Topic 2: Data Transmission Next: 2.3 Encryption →
🔒
Pro Content
Upgrade to Pro to access all lessons.
£7.99/month
or £59/year
Subscribe now →