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?
- A. 10110011110100
- B. 10111010100101
- C. 10000111100101
- 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
- A 12-bit Hamming codeword protects 8 data bits. Positions are numbered 1 to 12 from the left, even-parity check bits sit at positions 1…
- A 100 Mbps CSMA/CD network has its two farthest stations 500 m of cable apart, with two repeaters on the path between them. Signals travel…
- Two Ethernet stations A and B collide. For A this is the 1st collision of its current frame, so it picks its backoff K uniformly from {0…
- Routers A, B and C run a basic distance-vector protocol with no split horizon or poisoned reverse. Link costs are A-B = 3, B-C = 2 and A-C…
- Five routers use distance-vector routing with link costs A-B = 1, B-C = 2, C-D = 1, D-E = 3, A-E = 12, A-D = 7 and B-D = 5. Initially each…
- Dijkstra's algorithm is run from S on an undirected network with link costs S-A 7, S-B 2, S-C 6, A-B 3, B-D 8, A-D 4, B-C 5, C-E 5, D-E 1…