Error Detection and Correction
Error Detection and Correction
ERROR DETECTION
&
CORRECTION
ERROR CLASSIFICATION
• Distortion
• Attenuation
• Noise
DISTORTION
• Means that the signal changes its form or shape
• Distortion occurs in composite signals
• Each frequency component has its own
propagation speed traveling through a medium.
• The different components therefore arrive with
different delays at the receiver.
• That means that the signals have different phases at
the receiver than they did at the source.
ATTENUATION
• Means loss of energy -> weaker signal
• When a signal travels through a medium it loses
energy overcoming the resistance of the medium
• Amplifiers are used to compensate for this loss of
energy by amplifying the signal.
NOISE
• There are different types of noise
• Thermal - random noise of electrons in the wire creates
an extra signal
• Induced - from motors and appliances, devices act as
transmitter antenna and medium as receiving antenna.
• Crosstalk - same as above but between two wires.
• Impulse - Spikes that result from power lines, lightning,
etc.
3.5
Data can be corrupted during
transmission. For reliable
communication, errors must be
detected and corrected.
Burst error :-
0 0 0 0 1 0 1 0 0 0 0 0 0 0 1 0
Received Sent
Burst Error
Sent
0 1 0 0 0 1 0 0 0 1 0 0 0 0 1 1
Bits corrupted by Burst Error
Received
0 1 0 1 1 1 0 1 0 1 0 0 0 0 1 1
Error detecting code is to include
only enough redundancy to allow
the receiver to deduce that an error
occurred, but not which error, and
ERROR have it request a re- transmission.
DETECTIO
N Error detection uses the concept of
redundancy, which means adding
extra bits for detecting error at the
destination.
REDUNDANCY
1100001 Data
Checking function
Receiver 1 VRC
Sender
VERTICAL REDUNDANCY
CHECK
Example :
1110110 1101111
1110010
VRC CAN DETECT ALL IT CAN DETECT BURST VRC CAN NOT DETECT
SINGLE – BIT ERRORS ERRORS IF THE TOTAL ERRORS WHERE THE
NUMBER OF ERRORS IN TOTAL NUMBER OF BITS
EACH DATA UNIT IS ODD. CHANGED IS EVEN.
LONGITUDINAL REDUNDANCY
CHECK(LRC)
11100111
11011101
00111001
10101001
LRC 10101010
Receiver Side:
11100111
11011101
00111001
10101001
10101010 Redundancy bits
00000000
LRC of n bits can
Advantage : easily detect burst
error of n bits.
Disadvantage:
REMAINDER CRC
Zero accept
N bits
Nonzero reject
Receiver Sender
19
DIVISOR
X^7
X^6 + X^5 + X^2
X^4 X^3
+ X + 1
1 0 1 0 0 1 1 1
A
polynomial should
It should not be It should be
be selected
divisible by x. divisible by x+1.
according to the
following rule:-
EXAMPL The CRC generator at sender end :
E:-
111101
1101 100100 0 0 0
1101
1000
1101
1010
1101
1110
1101
0110
0000
1100
1101
22
THE CRC CHECKER AT THE
RECEIVER1END:
11101
1101 100100 0 0 1
1101
1000
1101
1010
1101
1110
1101
0110
0000
1101
1101
23
0000
ERROR
CORRECTION
Error correcting code is to include enough
redundant information along with each block of
data sent to enable the receiver to deduce what
the transmitted character must have been.
d d d r d d d r d r r
Redundancy Bits
IN THE HAMMING CODE, EACH R BIT IS
THE VRC BIT FOR ONE COMBINATION OF
DATA BITS :
- r1 is the one combination of data bits.
-r2 is another combination of data
bits. and so on.
Adding r1 1 0 0 1 1 0 1 1
Adding r2 1 0 0 1 1 0 1 0 1
Adding r4 1 0 0 1 1 0 0 1 0 1
Adding r8 1 0 0 1 1 1 0 0 1 0 1
11 10 9 8 7 6 5 4 3 2 1
Code. 1 0 0 1 1 1 0 0 1 0 1 30
1 0 0 1 1 1 0 0 1 0 1 Sent
Error
1 0 0 1 0 1 0 0 1 0 1 Received
1 0 0 1 0 1 0 0 1 0 1
11 10 9 8 7 6 5 4 3 2 1
1 0 0 1 0 1 0 0 1 0 1
11 10 9 8 7 6 5 4 3 2 1
1 0 0 1 0 1 0 0 1 0 1
11 10 9 8 7 6 5 4 3 2 1
1 0 0 1 0 1 0 0 1 0 1
11 10 9 8 7 6 5 4 3 2 1