CS FundamentalsHardGATE CS
An HDLC sender bit-stuffs the payload 0111111111111101111101111110 (a 0 after every five consecutive 1s, counting restarting after each stuffed 0). How many 0s does it insert?
- A. 4
- B. 3
- C. 5
- D. 2
Correct answer: A. 4
The run of 13 ones gets a 0 after the 5th and 10th ones; the next run of exactly 5 ones still gets a 0 even though a 0 follows; the run of 6 ones gets one. Total 4. Answering 3 assumes stuffing happens only when a sixth 1 would follow.
More Computer Networks questions
- Stations on a 56 kbps pure-ALOHA channel send 1000-bit frames, and together they generate 21 frames per second (new plus retransmitted…
- A 1 Gbps CSMA/CD network has a maximum cable length of 200 m and signals travel at 2 × 10⁸ m/s. What is the minimum frame size that…
- A new learning switch has hosts A, B, C and D on ports 1–4. These frames are sent in order: A→B, C→D, B→A, D→C, A→D, then B sends a…
- Assertion (A): Split horizon with poisoned reverse does not always prevent count-to-infinity in distance-vector routing. Reason (R): It…
- A token bucket has capacity 1 MB, fills at 2 MB/s, and is full at t = 0, when a host starts sending a long burst. The host's link runs at…
- A 100 Mbps link is 3000 km long and signals travel at 2 × 10⁸ m/s. For what packet size does the transmission delay equal the propagation…