Professional Documents
Culture Documents
Networking
Lecture 17
Error Detection
and
Correction
Data can be corrupted during transmission.
For reliable communication, errors must be
detected and corrected.
Network must be able to transfer data from one
device to another with acceptable accuracy.
Burst error does not necessarily mean that the errors occur in
consecutive bits
Most likely to happen in a serial transmission
Number of bits affected depends on the data rate and duration of
noise If the data is sent at 1 kbps, a noise of 1/100 s can affect 10
bits.
If the data is sent at 1 Mbps, a noise of 1/100 s can affect
10000 bits.
Redundancy
Examples:
dataword 0100 codeword received 0100011 syndrome = 000
no errors
0111 0111001 received 0011001 syndrome 011 (b2) flip
b2 error is corrected
Dataword 1101 1101000 received 0001000 syndrome 101
(b0) flip b0 0000 wrong data word
When a burst of error of size 4 corrupts the frame, only 1 bit from
each codeword is corrupted – the corrupted bit can be easily be
corrected at the receiver
Error Detection & Correction Common Techniques
Cyclic Codes
Cyclic codes are special linear block code – if a codeword is cyclically shifted
(rotated), the result is another codeword
Ex : 1011000 is a codeword and if cyclically left-shifted, the result 0110001 is
also a codeword.
Error Detection & Correction Common Techniques
Cyclic Redundancy Check
The use of cyclic codes to detect and correct error
CRC encoder and decoder
CRC generator and checker
Error Detection & Correction Common Techniques
11 1
1
Error Detection & Correction Common Techniques
Internet checksum
Sender site:
1. The message is divided into 16-bit words.
2. The value of the checksum word is set to 0.
3. All words including the checksum are added using one’s complement
addition.
4. The sum is complemented and becomes the checksum.
5. The checksum is sent with the data.
Receiver site:
1. The message (including checksum) is divided into 16-bit words.
2. All words are added using one’s complement addition.
3. The sum is complemented and becomes the new checksum.
4. If the value of checksum is 0, the message is accepted; otherwise, it is
rejected.
Error Detection & Correction Common Techniques