StreakPeaked· Practice

ExamsGATETechnical

A bit-stuffing based framing protocol uses an 8-bit delimiter pattern of 01111110. If the output bit-string after stuffing is 01111100101, then the input bit-string is

  1. 0111110100
  2. 0111110101
  3. 0111111101
  4. 0111111111

Correct answer: 0111110101

Solution

The correct option is right because in bit-stuffing, a '0' is inserted after every sequence of five consecutive '1's to prevent confusion with the delimiter. The output string 01111100101 contains a stuffed '0' after the five '1's, indicating that the original input string must have been 0111110101.

Related GATE Technical questions

⚔️ Practice GATE Technical free + battle 1v1 →