Computer Networks · TEE · papers

Q6(a) · CRC

2023-11-22 · Final 2023-24 / Re-exam 2022-23

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

Q6(a). Consider data generated at sender 110101 and CRC polynomial x^3+x+1. Calculate i) CRC code generated at the sender side ii) Final message transmitted from sender to receiver iii) Show message is received without error at receiver. [10 marks]

Answer

Given

Data = 110101; generator bits = 1011; degree r = 3.

To find

CRC remainder, complete transmitted frame and receiver check.

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

110101 → 110101000

Step 2. Perform XOR division

Leading positionBefore XORAligned generatorAfter XOR
1110101000101100000011001000
2011001000010110000001111000
3001111000001011000000100000
4000100000000101100000001100
6000001100000001011000000111

Step 3. Build the frame

Remainder = 111. Transmit 110101111.

Step 4. Divide the received frame

PositionBeforeGeneratorAfter
1110101111101100000011001111
2011001111010110000001111111
3001111111001011000000100111
4000100111000101100000001011
6000001011000001011000000000

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