CS FundamentalsHardGATE CS

An HDLC receiver removes the 0 that the sender stuffed after every five consecutive 1s. What data does it recover from the bit string 0111110111110011111010 (flags already removed)?

  1. A. 0111111111101111110
  2. B. 011111111110011111010
  3. C. 01111111111011111100
  4. D. 0111111111110111110

Correct answer: A. 0111111111101111110

Scan for 11111 followed by 0 and drop that 0: there are three such places, so 22 bits shrink to 19: 0111111111101111110. Removing only the first stuffed 0 leaves the others in the data.

More Computer Networks questions

Exams that ask this topic