CS FundamentalsVery hardProduct company interview · GATE level

A sender protects the 10-bit message 1011001110 with a CRC using the generator 10011 (x^4 + x + 1) and transmits the resulting 14-bit codeword. Each string below is a corrupted version of that codeword. Which one will the receiver's CRC check accept as error-free?

  1. A. 10110011110100
  2. B. 10111010100101
  3. C. 10000111100101
  4. D. 10111010000101

Correct answer: D. 10111010000101

Dividing 10110011100000 by 10011 (modulo 2) leaves remainder 0101, so the codeword is 10110011100101. An error goes undetected only if the error pattern itself is divisible by the generator. 10111010000101 differs from the codeword in bit positions 5, 8 and 9 from the left, i.e. the error pattern is 10011 shifted - a multiple of the generator - so the remainder is still 0000. The others have error patterns with two bits, or a burst of at most 4 bits, which x^4 + x + 1 always detects (remainders 0110, 1100 and 0010).

More Computer Networks questions

Exams that ask this topic