Data Link Layer:: Error Detection and Correction
Data Link Layer:: Error Detection and Correction
Data Link Layer:: Error Detection and Correction
Outline
Error Control
Detecting errors
Correcting errors
Types of Errors
Single-bit errors
Burst errors
Redundancy
Coding
Block codes
Convolutional codes
XOR Operation
Block Coding
Known as datawords
k=?
r=?
n=?
11
Notes
12
Error Correction
13
k, r, n = ?
The receiver receives 01001, what is the original dataword?
14
Hamming Distance
Hamming Distance between two words is the
number of differences between corresponding bits.
d(01, 00) = ?
d(11, 00) = ?
d(010, 100) = ?
d(0011, 1000) = ?
How many 8-bit words are n bits away
from 10000111?
15
17
18
19
Parity check
Cyclic Redundancy Check
Checksum
20
Parity Check
21
22
23
Parity-Check: Encoding/Decoding
24
25
2D Parity Check
27
28
29
CRC Encoder/Decoder
30
CRC Generator
31
Checking CRC
32
Polynomial Representation
33
34
Strength of CRC
Transmitted message is
M(x)xn R(x)
which is divisible by G(x)
35
Strength of CRC
Received message is
M(x)xn R(x) + E(x)
where E(x) represents bit errors
Receiver does not detect any error when
E(x) is divisible by G(x), which means
either:
E(x) 0 No error
E(x) 0 Undetectable error
36
Strength of CRC
38
39
40
x3
x10 + x9 + x5
x6+1
41
Standard Polynomials
42
Error Correction
Two methods
43
2r k+1
2r k+r+1
44
Number of
redundancy bits
r
Total
bits
k+r
1
2
3
4
5
6
7
10
11
45
Hamming Code
error-correcting bits
46
47
48
49
51