Errors in transmission and parity checks
Watch the whole lecture free
Make a free account to watch every lecture to the end: 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.
That was the teaching part. The rest of this lecture is free with an account: 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.
No password needed now: we email you a link to set one. Already have an account? Sign in, then come back to this page.
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
- A message that changed
- Why errors happen
- What error detection does
- The parity check
- 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
- Errors in transmission and parity checks 5 min
- Checksum, echo check, ARQ and check digits 5 min
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.