Beruflich Dokumente
Kultur Dokumente
2 Cyclic redundancy
check (CRC) codes
m( X ) = mk −1 X k −1 + mk − 2 X k − 2 + ... + m1 X + m0 degree (k - 1)
9 Appended bits: R = [ rn −1 rn − 2 … r1 r0 ]
R ( X ) = rn −1 X n −1 + rn − 2 X n − 2 + ... + r1 X + r0 degree (n - 1)
9 CRC code bits:
C = [ cN −1 cN − 2 … c1 c0 ] = [ mk −1 mk − 2 … m1 m0 rn −1 rn − 2 … r1 r0 ]
C( X ) = cN −1 X N −1 + cN − 2 X N − 2 + ... + c1 X + c0 degree (N - 1)
=X n m( X ) + R ( X )
p. 4 ELEC 7073 Digital Communications III, Dept. of E.E.E., HKU
Cyclic Redundancy Check Codes (2)
m = [1010100101]
m( X ) = X 9 + X 7 + X 5 + X 2 + 1
R = [111]
R( X ) = X 2 + X + 1 Xnm(X) is the polynomial
corresponding to the message
C = [1010100101111] bit sequence to which a
number n of 0’s is appended.
[1010100101000]
C( X )=X n m( X ) + R ( X )
= X 3 ( X 9 + X 7 + X 5 + X 2 + 1) + X 2 + X + 1
=X 12 + X 10 + X 8 + X 5 + X 3 + X 2 + X + 1
An error burst of length B in an N-bit received word is defined as a contiguous sequence of B bits
in which the first and last bits or any number of intermediate bits are received in error.
X12 + X11 + X3 + X2 + X + 1
which has 12 appended bits:
9detects all burst errors affecting an odd number of bits
9detects all burst errors with a length less than or equal to 12
9detects, 99.95 percent of the time, burst errors with a length of
13
9detects, 99.97 percent of the time, burst errors with a length
more than 13.
Appended
Code Generator Polynomial g(X) Applications
Bits
CRC-4 X4 + X + 1 4 ITU G.704
CRC-8 X8 + X2 + X + 1 8 ATM header
CRC-10 X10 + X9 + X5 + X4 + X + 1 10 ATM AAL
CRC-16-
X16 + X12 + X5 + 1 16 Bluetooth
CCITT
X32 + X26 + X23 + X22 + X16 + X12 + X11
CRC-32 32 LANs
+ X10 + X8 + X7 + X5 + X4 + X2 + X + 1