Computer Networks · TEE · papers

Q4(a) · CRC and corrupted frame

2024-12-06 · Final 2024-25 / Re-exam 2023-24

Actual paper; 100 marks attempted. Current-syllabus alignment is stated per question.

Q4(a). Given the data bit sequence 1001100 and the CRC polynomial x^3+x^2+1, calculate the transmission sequence. Suppose the 2nd bit from the left is inverted during transmission. Illustrate how the receiver will detect the error. [10 marks]

Answer

Given

Data = 1001100; generator bits = 1101; degree r = 3.

To find

CRC remainder, complete transmitted frame and receiver check; then detect the specified bit inversion.

Formula and why

Append r zeros, divide using XOR (modulo 2), and replace those zeros with the r-bit remainder. XOR has no borrowing or carrying. A valid received codeword has remainder zero; the receiver does not append new zeros.

Step 1. Append zeros

1001100 → 1001100000

Step 2. Perform XOR division

Leading positionBefore XORAligned generatorAfter XOR
1100110000011010000000100100000
2010010000001101000000010000000
3001000000000110100000001010000
4000101000000011010000000111000
5000011100000001101000000001100
7000000110000000011010000000001

Step 3. Build the frame

Remainder = 001. Transmit 1001100001.

Step 4. Divide the received frame

PositionBeforeGeneratorAfter
1100110000111010000000100100001
2010010000101101000000010000001
3001000000100110100000001010001
4000101000100011010000000111001
5000011100100001101000000001101
7000000110100000011010000000000

Receiver remainder = 000. No error is detected; this is not a guarantee that every possible corruption is detectable.

Step 5. Invert bit 2 from the left

1001100001 becomes 1101100001.

PositionBeforeGeneratorAfter
1110110000111010000000000100001
5000010000100001101000000010101
6000001010100000110100000001111
7000000111100000011010000000010

Remainder = 010, which is nonzero: reject the frame and request recovery according to the error-control protocol.