2081 1

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]

Computer NetworksChapter 3: Data Link LayerError Detection and Correction techniquesNumerical: CRC error detection

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

  1. reg=11010, MSB=1 → XOR 10011 = 01001; shift in next bit 1 → 10011; remaining 10110000
  2. reg=10011, MSB=1 → XOR 10011 = 00000; shift in 1 → 00001; remaining 0110000
  3. reg=00001, MSB=0 → shift in 0 → 00010; remaining 110000
  4. reg=00010, MSB=0 → shift in 1 → 00101; remaining 10000
  5. reg=00101, MSB=0 → shift in 1 → 01011; remaining 0000
  6. reg=01011, MSB=0 → shift in 0 → 10110; remaining 000
  7. reg=10110, MSB=1 → XOR 10011 = 00101; shift in 0 → 01010; remaining 00
  8. reg=01010, MSB=0 → shift in 0 → 10100; remaining 0
  9. reg=10100, MSB=1 → XOR 10011 = 00111; shift in 0 → 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:

  1. 11010^10011=01001, in 1 →10011, rem stream 0111110
  2. 10011^10011=00000, in 0 →00000, rem 111110
  3. 00000 in 1 →00001, rem 11110
  4. 00001 in 1 →00011, rem 1110
  5. 00011 in 1 →00111, rem 110
  6. 00111 in 1 →01111, rem 10
  7. 01111 in 1 →11111, rem 0
  8. 11111^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; 10011 fits at start: XOR top 5 11010^10011=01001 → 0100110110000 (13 more)
  • Leading 0s, next 1 at pos2: 100110110000; 1001... take 5 bits 10011^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

ComponentBits
Message1101011011
Appended zeros0000
Generator10011
CRC Remainder1110
Transmitted codeword11010110111110

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.