CS FundamentalsVery hardGATE CS (PYQ pattern)
HDLC-style bit stuffing inserts a 0 after every run of five consecutive 1s in the data. The payload 01111110111110111111001111100111111 (35 bits) is framed. How many bits does the stuffed payload contain (flags not counted)?
- A. 41
- B. 39
- C. 42
- D. 40
Correct answer: D. 40
Scan left to right: a 0 is inserted after each run reaching five 1s (and the counter restarts after the inserted 0). 35 + 5 inserted = 40.
More Computer Networks questions
- A 1 Mbps link carries 1000-bit frames and has a one-way propagation delay of 20 ms (acknowledgements are tiny). What is the minimum number…
- A stop-and-wait link has a = Tp/Tt = 4 and each frame is lost or corrupted independently with probability 0.2 (acknowledgements are never…
- A code has the five codewords 00110101, 01011010, 10101100, 11000011 and 01101001. It is used on a channel that flips bits. What are the…
- Differential Manchester encoding (IEEE 802.5 convention) always has a transition in the middle of each bit, and has an additional…
- A noisy channel has bandwidth 3 kHz and SNR of 30 dB. A transmitter uses 16 signal levels. What is the maximum achievable data rate?
- A class B network 150.20.0.0 is subnetted with mask 255.255.240.0 under the OLD (RFC 950) rules that forbid the all-zeros and all-ones…