ExamYard Lectures

Checksum, echo check, ARQ and check digits

IGCSE Computer Science 0478 · Chapter 2.3, Error detection · 5-minute lecture

The teaching part (1 min) is free to watch. A free account opens the whole lecture: 4 practice questions, 2 real past-paper questions with the answers explained, the mistakes that lose marks, the full-marks tip, a one-card summary and a quick quiz.

What this lecture covers

  1. Four more methods
  2. The checksum
  3. The checksum, in a picture
  4. A checksum in numbers
Read the transcript of the teaching part

Last time

Before we start: last time, in Errors in transmission and parity checks, you learned these points. Here they are again on one card. Keep them in mind, because today builds on them.

Four more methods

Parity is not the only check. Cambridge wants four more: the checksum, the echo check, automatic repeat request, and the check digit. The first three check data sent across a network. The check digit checks data typed or scanned in.

The checksum

Before sending, the sender uses an agreed algorithm to calculate a value from the data. This is the checksum. The checksum is sent along with the data. The receiver uses the same algorithm to calculate the checksum again from what arrived. If the two checksums are different, there is an error, and the data is requested again.

The checksum, in a picture

Here is the checksum in a picture: the data and its checksum go across, the receiver works it out again, and asks for the data again if they differ.

A checksum in numbers

Here is a simple example. The data bytes are twelve, nine and four. The sender adds them: twenty-five. That is the checksum, and it is sent too. If the receiver gets twelve, eight and four, it adds them to twenty-four, which does not match twenty-five. So an error is found, and the data is sent again. Real checksums use a cleverer formula, but the idea is the same.

How often it comes up

The whole chapter: Methods of Error Detection.

Chapter 2.3: Error detection

Also for IGCSE Computer Science 0478

Which topics come up most in IGCSE Computer Science 0478 past papers, counted from every paper since 2004: Paper 1 topic frequency, Paper 2 topic frequency.

The topical past-paper books: Paper 1, Paper 2.