Week-7 Data Link Error Detection and Correction
Week-7 Data Link Error Detection and Correction
Slide
2
internet model
Slide
3
Slide
4
Slide
5
Slide
6
Single-Bit Error
Slide
7
Error detection
looking only to see if any error has occurred.
Error correction
Need to know the exact number of bits that are
corrupted and more importantly, their location in the
message.
The correction of errors is more difficult than the
detection.
Slide
9
Slide
10
Slide
12
Slide
13
Detection methods
VRC(Vertical Redundancy Check)
LRC(Longitudinal Redundancy)
CRC(Cyclic redundancy Check)
Checksum
Slide
14
Slide
15
Slide
16
Slide
20
Slide
25
Polynomials
CRC generator(divisor) is most often represented not as
a string of 1s and 0s, but as an algebraic polynomial.
Standard polynomials
Slide
30
Slide
31
Slide
33
Slide
34
Example
How can we represent the number 21 in one’s
complement arithmetic using only four bits?
Solution
• The number 21 in binary is 10101 (it needs
five bits).
• We can wrap the leftmost bit and add it to
the four rightmost bits.
• We have (0101 + 1) = 0110 or 6.
Example ( at a sender)
16 bits block 8 bits checksum
Original data : 10101001 00111001
1’s complement addition
10101001
00111001
--------------
11100010 Sum
00011101 Checksum
Sending bits
10101001 00111001 00011101 transmitting
Example ( at a receiver)
No errors: