Escolar Documentos
Profissional Documentos
Cultura Documentos
Communications
Tenth Edition
by William Stallings
CHAPTER 6
Error Detection and Correction
On Human Communication,
Colin Cherry
Types of Errors
Burst errors
Contiguous sequence of B bits in which
the first and last bits and any number of
intermediate bits are received in error
Can be caused by impulse noise or by
fading in a mobile wireless environment
Sent
0 0 1 0 0 0 1 0 0 1 1 0 0 1 0 1 1 0 1 1 1 0 0 1
bits corrupted by error
0 0 0 0 0 1 0 0 0 0 1 1 0 1 0 1 1 0 0 1 1 0 0 1
Received
burst error of
length B = 10
single-bit
error
Error Detection
Regardless of design you will have errors, resulting in the change of one or more bits in a
transmitted frame
Frames
Pb
P1
P2
P3
Probability that a bit is received in error; also known as the bit error rate
(BER)
Probability that a frame arrives with no bit errors
Probability that, with an error-detecting algorithm in use, a frame arrives
with one or more undetected errors
The probability that a frame arrives with no bit errors decreases when the probability of a
single bit error increases
The probability that a frame arrives with no bit errors decreases with increasing frame length
The longer the frame, the more bits it has and the higher the probability that one of
these is in error
k bits
data'
data
E = f(data)
E' = f(data')
COMPARE
Receiver
data
n k bits
n bits
Transmitter
Parity Check
The
If
row
parity
column
parity
b1,1
b1,j
r1
b2,1
b2,j
r2
bi,1
bi,j
ri
c1
cj
0
0
0
0
0
1
1
1
1
0
1
1
0
0
0
1
1
0
1
1
0
0
0
1
1
1
1
1
1
0
0
0
0
0
0
1
0
1
1
0
1
1
0
0
0
1
1
0
1
1
0
0
0
1
1
1
1
1
1
0
row parity
error
column
parity error
(b) No errors
0
0
0
0
1
1
1
0
0
0
0
1
1
1
1
0
1
0
1
1
1
0
1
0
1
0
0
0
1
0
1
1
0
0
1
1
0
1
1
0
1
1
1
0
1
0
0
0
Ones-complement addition
0001
F203
F204
F204
F4F5
1E6F9
E6F9
1
E6FA
E6FA
F6F7
1DDF1
DDF1
1
DDF2
220D
Partial sum
Partial sum
Carry
Partial sum
Carry
Ones complement of the result
Partial sum
Partial sum
Carry
Partial sum
Carry
Partial sum
0001
F203
F204
F204
F4F5
1E6F9
E6F9
1
E6FA
E6FA
F6F7
1DDF1
DDF1
1
DDF2
DDF2
220D
FFFF
CRC Process
Modulo 2 arithmetic
Digital logic
X9 + X8 + X6 + X4 + X2 + X
P(X)
X5 + X4 + X2 + 1
X14
X12
X14 + X13 +
Q(X)
X8 + X7 +
X11 +
X9
X5D(X)
X5
X9 + X8
X10 +
X8
X11 +X10+ X9 +
X11 +X10 +
X7
X8 +
X6
X9 + X8 + X7 + X6 + X5
X9 + X8 +
X6 +
X7 +
X4
X5 + X4
X7 + X6 +
X4 +
X2
X6 + X5 +
X6 + X5 +
X2
X3 +
X3 + X2 + X
R(X)
The bit error rate (BER) on a wireless link can be quite high,
which would result in a large number of retransmissions
Propagation delay is very long compared to the transmission
time of a single frame
Codeword
On the transmission end each k-bit block of
data is mapped into an n-bit block (n > k) using
a forward error correction (FEC) encoder
k bits
codeword
FEC
decoder
no error or
correctable
error
FEC
encoder
codeword
n bits
data
Transmitter
Receiver
data
Hamming distance
Code rate
101
Without
coding
102
Rate 1/2
coding
103
104
105
Region of
coding gain
106
0
10
3 dB
11
12
13
2.77 dB
(Eb/N0) (dB)
14
Summary
Types of errors
Error detection
Parity check
Internet checksum
Cyclic redundancy
check
Parity bit
Two-dimensional parity
check
Modulo 2 arithmetic
Polynomials
Digital logic
Forward error
correction