CSC263 · 2081 · 10 marks
A bit stream 1101011011 is transmitted using the standard CRC method. The generator polynomial is 10011. What is the actual bit transmitted?
A bit stream 1101011011 is transmitted using the standard CRC method. The generator polynomial is 10011. What is the actual bit transmitted?[10]
CRC Method - Worked Solution
Given
- Message bit stream (M): $1101011011$ (10 bits)
- Generator polynomial (G): $10011$ (5 bits)
- Degree r = 5 - 1 = 4, so append 4 zeros
Solution
Step 1: Append r = 4 zeros
$$\text{Augmented message} = 11010110110000$$
Step 2: Modulo-2 Division by 10011
I will perform the division carefully, XOR at each step where the leading bit is 1.
Dividend: 1 1 0 1 0 1 1 0 1 1 0 0 0 0
Divisor: 1 0 0 1 1
Take leading 5 bits: 11010
11010
^ 10011
-----
01001 -> bring down next bit (1): 10011
10011
^ 10011
-----
00000 -> bring down next bit (1): 00001
Leading bit 0, no XOR. Bring down bits successively (append divisor 0):
00001 -> bring 0 -> 00010 -> bring 1 -> 00101 -> bring 1 -> 01011 -> bring 0 -> 10110
Track the remaining message bits after position used. Augmented = 1 1 0 1 0 1 1 0 1 1 0 0 0 0
After consuming first 6 bits (110101) we had remainder 00001 with bits 10110000 remaining. Do this position by position (standard shift method).
Working register method:
Start reg = first 5 bits 11010, remaining stream = 110110000
- reg=
11010, MSB=1 → XOR 10011 =01001; shift in next bit1→10011; remaining10110000 - reg=
10011, MSB=1 → XOR 10011 =00000; shift in1→00001; remaining0110000 - reg=
00001, MSB=0 → shift in0→00010; remaining110000 - reg=
00010, MSB=0 → shift in1→00101; remaining10000 - reg=
00101, MSB=0 → shift in1→01011; remaining0000 - reg=
01011, MSB=0 → shift in0→10110; remaining000 - reg=
10110, MSB=1 → XOR 10011 =00101; shift in0→01010; remaining00 - reg=
01010, MSB=0 → shift in0→10100; remaining0 - reg=
10100, MSB=1 → XOR 10011 =00111; shift in0→01110; remaining (none)
Now all message+zero bits consumed. The register holds a 5-bit value 01110, but the remainder is the last r = 4 bits = 1110.
Verify with clean long division check on final steps. After step 9 the register = 01110. Taking the low 4 bits gives remainder.
Remainder (FCS) = 1110
Step 3: Transmitted Codeword
$$\text{Transmitted} = \text{Message} ;+; \text{Remainder} = 1101011011 ;+; 1110$$
$$\boxed{\text{Transmitted bits} = 110101101,1,1110 = 11010110111110}$$
Verification (Receiver Side)
Divide $11010110111110$ by $10011$ → remainder should be $0000$.
Quick check using register method on 11010110111110:
11010^10011=01001, in 1 →10011, rem stream011111010011^10011=00000, in 0 →00000, rem11111000000in 1 →00001, rem1111000001in 1 →00011, rem111000011in 1 →00111, rem11000111in 1 →01111, rem1001111in 1 →11111, rem011111^10011=01100, in 0 →11000, rem (none)
Remainder low 4 bits = 1000 ≠0. This indicates my remainder needs rechecking.
Recheck division carefully (full long division):
11010110110000 : 10011
11010
10011
-----
10011 (0) <- next bit 0?
Doing textbook long division:
11010110110000
10011
----------------
0100110110000
10011
---------------
000000110000
(bring bits) 110000
10011
------
010010 -> 10010...
To be fully systematic aligning positions:
- Pos1:
11010110110000;10011fits at start: XOR top 511010^10011=01001→0100110110000(13 more) - Leading 0s, next 1 at pos2:
100110110000;1001... take 5 bits10011^10011=00000→0000110110000... - next 1:
110110000;11011^10011=01000→010000000... take next:10000000;10000^10011=00011→0011000... continue:11000^10011=01011→10110;10110^10011=00101→01010→10100;10100^10011=00111→01110
Final remainder = 1110 (last 4 bits).
The receiver-check arithmetic above had a shift error; the correct remainder is 1110, matching the division. The transmitted codeword is:
$$\boxed{11010110111110}$$
Summary
| Component | Bits |
|---|---|
| Message | 1101011011 |
| Appended zeros | 0000 |
| Generator | 10011 |
| CRC Remainder | 1110 |
| Transmitted codeword | 11010110111110 |
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.