Error Detection
Error Detection
Error Detection
Transmission errors can also occur when one digital device attempts
to transmit data to another, this can have a huge impact on
productivity and as such methods have been designed to spot and
correct these errors.
Parity Checking
Parity Bits
The parity bit system involves first deciding whether odd or even
parity will be used. This means that the number of ones and zeros in a
string of bits will even or odd.
When sending data, one single bit is added to ensure that the data has
an odd or even number of 1s or 0s.
1
How Parity Bits Work
Before data is transmitted, both parties agree to use either odd or even
parity.
The parity bit is set by the sending party and checked by the receiver
If the number of bits does not match the even or odd system it is clear
that there could have been an error.
The receiver notifies the sender that the parity checks failed and asks
for the data to be reset.
Note:
The parity check is not perfect, it will fail to detect an error in
transmission if more than one bit is altered as the re still could be the
correct (odd or even) parity, however the bits could be in the wrong
order.
Parity Blocks
A parity block uses the same odd and even system to detect errors in
data, however rather than focusing on a single binary value, the block
system will allow errors to be detected within a virtual table of data.
2
Applying a parity bit to each row and each column of the data table
will allow any error to be detected quickly and the erroneous value to
be found.
Example:
In this system, the Even parity system has been used, this means that:
In the table above, all data is correct and all parity bits are correct.
Finding an error
Consider the table above, it has one bit that has beentransposed (flip
from 1 to 0 or 0 to 1). There is an easy way to find it using the table.
Step 1
Check each column to ensure that there still remains an even number
of 1s and 0s according to the even system that we are using.
3
Column 5 has been discovered as incorrect. There are five 1s and
three 0s therefore it has failed the parity check. But we do not know
specifically which bit has transposed.
Step 2
To find the specific error we now need to work through each row of
bytes searching for any byte that may fail the even parity check.
Row 5 was discovered to fail the even parity check. This byte has
three 1s andfive 0s.