2080 11

BIT254 · 2080 · 5 marks

Calculate the transmitted encoded frame if the message sequence is 10010001 and generator polynomial is G(X) = x2 + x + 1

Calculate the transmitted encoded frame if the message sequence is 10010001 and generator polynomial is $G(X) = x^2 + x + 1$ [5]

Network and Data CommunicationsChapter 5: Error Detection and ControlCRC transmitted frame encodingNumerical: CRC generator polynomial

CRC Encoding: Transmitted Frame Calculation

Given Data

  • Message sequence $M = 10010001$
  • Generator polynomial $G(X) = x^2 + x + 1$

Step 1: Generator Bit Pattern

$G(X) = x^2 + x + 1 \Rightarrow \mathbf{111}$

Degree $r = 2$, so append 2 zeros.

Step 2: Augmented Dividend

$$1001000100$$

Step 3: Modulo-2 Division by 111

Perform the division carefully, tracking each bit.

Dividend: 1 0 0 1 0 0 0 1 0 0
Divisor:  1 1 1

I'll process left to right. Take leading 3 bits, XOR when leading bit is 1.

1001000100 : 111

100 → leading 1, XOR 111 = 011
bring down 1 → 0111 → work on 111
111 → leading 1, XOR 111 = 000
bring down 0 → 0000 → 000
000 → leading 0, no XOR
bring down 0 → 0000 → 000
000 → leading 0, no XOR
bring down 1 → 0001 → 001
001 → leading 0, no XOR
bring down 0 → 0010 → 010
010 → leading 0, no XOR
bring down 0 → 0100 → 100
100 → leading 1, XOR 111 = 011
(no more bits)

Align this against the full 10-bit dividend to verify by tracking the running remainder bit by bit.

Running remainder method (shift in each dividend bit, XOR divisor 111 when MSB of the 3-bit window is 1):

Bit inWindow beforeMSB=1? XOR 111Window after
1001no (msb 0)001 → wait

To avoid confusion, use standard long-division layout:

        1 0 1 1 0 0 1
      -----------------
1 1 1 ) 1 0 0 1 0 0 0 1 0 0
        1 1 1
        -----
        0 1 1 0
          1 1 1        (align at next 1)

Do it strictly with the standard algorithm:

   1 0 0 1 0 0 0 1 0 0
 XOR 1 1 1                (pos 1-3): 100^111 = 011
 → 0 1 1 1 0 0 0 1 0 0
     XOR 1 1 1            (pos 2-4): 111^111 = 000
 → 0 0 0 0 0 0 0 1 0 0
                         (pos 3-5 leading 0, skip)
                         (pos 4-6 leading 0, skip)
                         (pos 5-7 leading 0, skip)
                         (pos 6-8 leading 0, skip; bits are 0,0,1)
             XOR 1 1 1    (pos 7-9): bits 0 1 0 leading 0 skip

After the second XOR the string is $0000000100$. The remaining bits are $...100$ at positions 8,9,10.

Reading positions 8-10: $1,0,0$. Leading bit position 8 is 1:

Position 8-10: $100 \oplus 111 = 011$.

Final string tail: last 2 bits = 11.

The remainder (last $r=2$ bits after full reduction) = $\mathbf{11}$.

Verification of Remainder

Reconstruct: string became $0000000100$, then XOR 111 at positions 8-10: $$100 \oplus 111 = 011$$ Final 2 bits = $\mathbf{11}$.

CRC = 11

Careful reduction gives remainder 11; a hand division that drops or misaligns bits in Step 3 would give 01 instead.

Step 4: Transmitted Frame

$$\text{Frame} = \underbrace{10010001}{M} ; \underbrace{11}{CRC} = \mathbf{1001000111}$$

Verification (divide frame by 111, expect remainder 0)

$1001000111$:

  • $100 \oplus 111 = 011$ → $0111000111$
  • $111 \oplus 111 = 000$ → $0000000111$
  • tail $111 \oplus 111 = 000$ → remainder $\mathbf{00}$ ✓

Remainder is zero, confirming correctness.

Result

Transmitted Encoded Frame = 1001000111 (CRC = 11)

Short on time? The 1, 5 and 10 mark versions of this answer, flashcards and practice sets come with a program pass.