ExamYard Lectures

Errors in transmission and parity checks

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

The teaching part (2 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. A message that changed
  2. Why errors happen
  3. What error detection does
  4. The parity check
  5. Working out a parity bit
Read the transcript of the teaching part

Last time

Before we start: last time, in Packet switching, you learned these points. Here they are again on one card. Keep them in mind, because today builds on them.

A message that changed

You send the number five, but your friend's phone receives seven. One bit changed on the way: 0 0 0 0 0 1 0 1 became 00000111. Errors like this happen all the time on networks. So computers need ways to notice them.

Why errors happen

Electrical interference, from motors, power cables or the weather, can flip bits. Data can be lost: some bits, or a whole packet, never arrive. Data can be gained: extra bits appear that were never sent. And on parallel cables, bits can skew and arrive out of step.

What error detection does

Every error-detection method sends some extra data with the real data. The receiver uses that extra data to check whether what arrived matches what was sent. If it does not match, the data is sent again.

The parity check

The simplest method is the parity check. Sender and receiver first agree on even parity or odd parity. Each byte carries seven bits of data, and one extra bit, the parity bit, usually on the left. With even parity, the parity bit is chosen so the whole byte has an even number of ones. With odd parity, it is chosen so the byte has an odd number of ones.

Working out a parity bit

Here are two worked examples. The data 1 0 0 1 1 0 1 has four ones. For even parity, four is already even, so the parity bit is zero: 01001101. For odd parity, we need one more one, so the parity bit is one: 11001101.

How often it comes up

The whole chapter: Methods of Error Detection, Types and Methods of Data Transmission.

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.