Skip to content

GATE CS 2021 Set 1 Q29 — Data Link Layer: Framing, Error Detection, MAC, Ethernet Bridging

Explain with AI

Assume that a 1212-bit Hamming codeword consisting of 88-bit data and 44 check bits is d8d7d6d5c8d4d4d3d2c4d1c2c1d_8d_7d_6d_5c_8d_4d_ 4d_3d_2c_4d_1c_2c_1, where the data bits and the check bits are given in the following tables: d8d7d6d5d4d3d2d1110x0101Data bitsc8c4c2c1y010Check bits\overset{\textbf{Data bits}}{\begin{array}{|c|c|c|c|} \hline d_{8} & d_{7} & d_{6} & d_{5} & d_{4} & d_{3} & d_{2} & d_{1} \\ \hline 1 & 1 & 0 & x & 0 & 1 & 0 & 1 \\ \hline \end{array}}\qquad \overset{\textbf{Check bits}}{\begin{array}{|c|c|c|c|} \hline c_{8} & c_{4} & c_{2} & c_{1} \\ \hline y & 0 & 1 & 0 \\ \hline \end{array}} Which one of the following choices gives the correct values of xx and yy?

Choose one option
View worked solution

Answer: A

In a standard 12-bit Hamming code with even parity, the bits are indexed from 1 to 12 (right-to-left):

Position 121110987654321
Bit d8d_8d7d_7d6d_6d5d_5c8c_8d4d_4d3d_3d2d_2c4c_4d1d_1c2c_2c1c_1
Value 110xxyy0100110

Using even parity, we set up the parity equations for the check bits:

  1. For c1c_1 (covers positions 1, 3, 5, 7, 9, 11): c1⊕d1⊕d2⊕d4⊕d5⊕d7=0c_1 \oplus d_1 \oplus d_2 \oplus d_4 \oplus d_5 \oplus d_7 = 0 Substituting the given values: 0⊕1⊕0⊕0⊕x⊕1=0  ⟹  x=00 \oplus 1 \oplus 0 \oplus 0 \oplus x \oplus 1 = 0 \implies x = 0
  2. For c8c_8 (covers positions 8, 9, 10, 11, 12): c8⊕d5⊕d6⊕d7⊕d8=0c_8 \oplus d_5 \oplus d_6 \oplus d_7 \oplus d_8 = 0 Substituting the values (with x=0x = 0): y⊕0⊕0⊕1⊕1=0  ⟹  y=0y \oplus 0 \oplus 0 \oplus 1 \oplus 1 = 0 \implies y = 0

Thus, x=0x = 0 and y=0y = 0, which corresponds to option A.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Data Link Layer: Framing, Error Detection, MAC, Ethernet Bridging questions