BIT254 ยท 2082 ยท 5 marks
A bit stream 11011001 is transmitted using a standard CRC method. The generator polynomial is x3 + x - 1. Show the actual bit string transmitted and show the error checking on the receiver side.
A bit stream 11011001 is transmitted using a standard CRC method. The generator polynomial is $x^3 + x - 1$. Show the actual bit string transmitted and show the error checking on the receiver side. [5]
CRC (Cyclic Redundancy Check) - Worked Solution
Given
- Message bit stream (M):
11011001(8 bits) - Generator polynomial: $x^3 + x - 1$
- In modulo-2 (GF(2)) arithmetic, $-1 \equiv +1$, so $x^3 + x - 1 = x^3 + x + 1$
- Generator (G):
1011(4 bits, degree $r = 3$)
Solution
Step 2.1: Append $r = 3$ zeros to the message
$$M' = 11011001 ,|, 000 = 11011001000$$
Step 2.2: Sender-side XOR division of 11011001000 by 1011
10000101 <-- quotient
______________
1011 ) 11011001000
1011
----
1101
1011
----
01100
1011
----
01110
1011
----
01011
1011
----
00000
000 <-- remainder (CRC)
Step trace (leading-bit alignment, XOR when leading bit = 1):
| Working segment | XOR with | Result | Bring down |
|---|---|---|---|
1101 | 1011 | 0110 | +1 โ 1101 |
1101 | 1011 | 0110 | +0 โ 1100 |
1100 | 1011 | 0111 | +0 โ 1110 |
1110 | 1011 | 0101 | +1 โ 1011 |
1011 | 1011 | 0000 | +0 โ 0000 |
0000 | (leading 0, no XOR) | 000 | end |
Remainder (CRC) = 000
Step 2.3: Actual transmitted bit string
$$\text{Transmitted} = M ,|, \text{CRC} = 11011001 ,|, 000$$
$$\boxed{11011001000}$$
Step 2.4: Receiver-side error checking
Receiver divides the received frame 11011001000 by the same generator 1011:
1011 ) 11011001000
... (identical division) ...
000 <-- remainder
Remainder = 000
Step 2.5: Decision
| Remainder | Decision |
|---|---|
000 | No error - accept the frame |
| non-zero | Error detected - reject / retransmit |
Since the remainder is 000, the receiver concludes the frame was received without error.
Summary
| Parameter | Value |
|---|---|
| Message | 11011001 |
| Generator ($x^3+x+1$) | 1011 |
| Appended message | 11011001000 |
| CRC (remainder) | 000 |
| Transmitted frame | 11011001000 |
| Receiver remainder | 000 โ No error |
Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.