0984

Error Detection

Data Transmission · 4 question types

Exam Frequency Analysis

Past paper frequency (2018 to 2024)

This topic accounts for approximately 5% of your exam marks.

stable
Rare
Stable5%

Parity bits, checksums and check digits each appear in most papers. Often 3 to 4 marks.

ARQ is a protocol that automatically requests a re-transmission whenever the receiver detects an error.

ARQ is not a method of detection in itself; it is the rule that combines an error-detection method with automatic retransmission. It works like this:

  1. The sender transmits a packet of data.
  2. The receiver uses an error-detection method (parity, checksum, etc.) to check the packet.
  3. If the packet is correct, the receiver sends back a positive acknowledgement (ACK). The sender then transmits the next packet.
  4. If the packet is corrupted, the receiver sends back a negative acknowledgement (NAK), and the sender re-transmits the same packet.
  5. If the sender hears nothing at all within a fixed amount of time (the timeout), the sender assumes the packet (or its acknowledgement) was lost and re-transmits.
  6. Steps 1 to 5 repeat until every packet has been correctly received and acknowledged, or until a retry limit is reached.
Stop-and-wait ARQ timing diagrams for four scenarios: normal performance (each frame Fr0/Fr1 is acknowledged Ack1/Ack0 within its timeout), frame loss (a lost frame is re-transmitted after the timeout expires), ACK loss (a lost acknowledgement causes the same frame to be re-sent on timeout), and late ACK (an acknowledgement that arrives after the timeout, again triggering re-transmission), each showing the sender and receiver timelines with per-frame timeout windows.
Source: Stop-and-wait ARQ by Save My Exams

Why ARQ matters

  • Combines detection with correction. A parity or checksum on its own only tells the receiver something is wrong. ARQ uses that signal to actually fix the problem by re-transmitting.
  • Handles total packet loss. Without ARQ's timeout, a completely missing packet would never be re-sent. With ARQ, a packet that fails to arrive is automatically requested again.
  • Used by TCP. The protocol behind almost every internet connection uses ARQ to guarantee reliable delivery in spite of unreliable underlying networks.

A glance at the names

The Cambridge specification calls this , but you may also see it written as Automatic Repeat Query or Automatic Retransmission Request. Both refer to the same idea.

Exam tip

Explain how ARQ works using a positive acknowledgement

What comes up: a 5-mark "explain how" question on ARQ with positive acknowledgement (ACK).

Write (five marks): (1) When the sender transmits a data packet, a timer is started. (2) The receiver checks the packet for errors using an error-detection method. (3) If the packet is error-free, the receiver sends a positive acknowledgement (ACK) back to the sender. (4) On receiving the ACK, the sender transmits the next packet. (5) If the sender's timer runs out before an ACK arrives (a timeout), the same packet is re-transmitted — this repeats until an ACK is received or a maximum number of retries is reached.

Watch out: make sure you include the timer/timeout — that is a distinct mark point for handling a completely lost packet, and it is commonly dropped.