10 Error
10 Error
10 Error
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 = ?
Hamming Distance
Hamming
Hamming Distance
Distance between
between two
two words
words is
is the
the
number
number of
of differences
differences between
between corresponding
corresponding
bits.
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
Minimum Hamming
Distance
The
The minimum
minimum Hamming
Hamming distance
distance is
is the
the
smallest
smallest Hamming
Hamming distance
distance between
between
all
all possible
possible pairs
pairs in
in aa set
set of
of words.
words.
16
Detection Capability of
Code
To guarantee the detection of up to sbit errors, the minimum Hamming
distance in a block code must be
dmin
=s+1
min
17
Correction Capability of
Code
18
Example: Hamming
Distance
19
Common Detection
Methods
Parity check
20
Parity Check
21
22
23
Parity-Check:
Encoding/Decoding
24
Performance of Parity
Check
Can 1-bit errors be detected?
25
2D Parity Check
2D Parity Check:
Performance
27
2D Parity Check:
Performance
28
29
CRC Encoder/Decoder
30
CRC Generator
31
Checking CRC
32
Polynomial
Representation
More common representation than binary
form
Easy to analyze
Divisor is commonly called generator
polynomial
33
Division Using
Polynomial
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
Properties of Good
Polynomial
38
39
Example: CRC
Generators
Which of the following polynomials
40
Example: CRC
Generators
Criticize the following CRC generators
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 Redundant
Bits
Number of
data bits
k
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
Redundant Bit
Calculation
47
48
Example: Correcting
Error
Receiver receives 10010100101
49
Strength of Hamming
Code
Minimum Hamming Distance is 3
51