Professional Documents
Culture Documents
Note
Check bits occupy
power of 2 slots
o o o x
o o x o
x x o
o o
o x x x o o x o x o x
x x o
o
o o o x o
o o o x o
x = codewords o = non-codewords
Copyright ©2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks Figure 3.51
Copyright ©2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks Figure 3.49
Recalculate
check bits
Channel
Calculate
check bits Compare
Check Received Information
bits check bits accepted if
check bits
match
Copyright ©2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks Figure 3.50
1 0 0 1 0 0
0 1 0 0 0 1
Last column consists of
1 0 0 1 0 0 check bits for each row
1 1 0 1 1 0
1 0 0 1 1 1
Copyright ©2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks Figure 3.52
1 0 0 1 0 0 1 0 0 1 0 0
0 0 0 1 0 1 0 0 0 1 0 1
Three Four
1 0 0 1 0 0 errors 1 0 0 1 0 0 errors
1 0 0 1 1 0 1 0 0 0 1 0
1 0 0 1 1 1 1 0 0 1 1 1
Arrows indicate failed check bits Figure 3.53
return ~sum;
}
Copyright ©2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks Figure 3.54
• Used extensively.
• Implemented using shift-register circuits for
speed advantages.
• Also called CRC (cyclic redundancy checking)
because these codes generate check bits.
• Polynomial codes :: bit strings are treated as
representations of polynomials with ONLY binary
coefficients (0’s and 1’s).
Example: 1 0 1 1 0 0 0
i(x) = x6 + x4 + x3
n bit codeword
(x + 1)(x + x + 1) = x + x + x + x + x + 1 = x + 1
2 3 2 2 3
Multiplication:
x3 + x2 + x = q(x) quotient
Division: x3 + x + 1 ) x6 + x5
x6 + x4 + x3 dividend
divisor
x5 + x4 + x3
3 x5 + x3 + x2
35 ) 122 x4 + x2
105
x4 + x2 + x
17
x = r(x) remainder
Copyright ©2000 The McGraw Hill Companies
Leon-Garcia & Widjaja: Communication Networks Figure 3.55
Copyright ©2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks Figure 3.56
Copyright ©2000 The McGraw Hill Companies Leon-Garcia & Widjaja: Communication Networks Figure 3.57