Error Detection
Error Detection
Error Detection
1. The sending and receiving computers agree the protocol to be used (even or odd) Check Digit
2. The sending computer adds the correct parity bit to the binary data (either an extra 1 or 0)
A check digit is the nal digit in a code of numbers. It is calculated from all the other digits in the
3. The sending computer sends the binary data, including the parity bit
code. It’s purpose is to spot human errors on data entry.
4. The receiving computer checks to make sure the overall parity of the data received is as
agreed (an even or odd number of 1 bits) Check digits are often found in barcodes, product codes or ISBN book numbers.
5. If the parity of the data is incorrect, the receiving computer will request that the data is
transmitted again There are many different mathematical algorithms that can be used to calculate a check digit.
Different industries will have their own preferred method.
Drawbacks of parity checks
Method
If two bits are transposed (change places) then the computer could be fooled into thinki ng
the data is correct and not corrupted 1. The check digit is calculated and added to the barcode, packaging, product code etc at the
If two random bits change state then the system could also be fooled point of manufacture
2. A human types the long numerical code into a computer, e.g. the cashier will type the
Parity Block barcode number when a scanner fails or packaging is damaged
3. The computer calculates what it believes should be the check digit, based on the numbers
This method of error checking is similar to a traditional parity check except the data is arrang e d n i
entered by the human
a virtual table with parity bits added to each row and column.
4. The computer then compares it’s calculated check digit with the check digit typed in by the
A single corrupted bit can be spotted at the intersection of a corrupted row and column.
human (the last digit in the long code)
Multiple corrupted bits would also aw this system. 5. If the two don’t match, then the human has made an error when typing in the numerical code,
e.g. barcode number
6. The human will be asked by the computer to re-enter the numerical code
Bene ts
Echo Check
Good for spotting human errors such as:
With an echo check, the receiving computer sends a copy of the data immediately back to the
Incorrect digit entered
sending computer for comparison.
Transposition error (two numbers change order)
The sending computer compares the two sets of data to check if any errors occurred during the Omitted digit or extra digit
transmission process.