GATE / CS ARCHIVE

SIMILAR QUESTIONS / COMPUTER NETWORKS

Relate sender window to ACK-return time and utilization

3 questions solved the same way, newest first. Back to Computer Networks

How these are solved

Draw the sender data-serialization and round-trip ACK timeline. The useful transmit fraction is bounded by window x frame transmission time divided by the data/ACK-return cycle, capped at full utilization.

2 marks · MCQ
Report issue

Window size for full link utilization

Data Link, Framing, Error Control & ARQ

Question 45, GATE 2026: A lossless sliding-window link sends 1000-bit frames at 100 kbps (100000 bits/s). One-way propagation is 100 ms; processing and ACK transmission times are zero. Find the smallest window W for 100% utilization among 10,21,20,11 frames.
Tap to enlarge
Your answer
Answer & solution

Official answer: B

Step through it (5 steps)

Givens and goal

A lossless sliding-window link sends 1000-bit frames at 100 kbps (100000 bits/s). One-way propagation is 100 ms; processing and ACK transmission times are zero. Find the smallest window W for 100% utilization among 10,21,20,11 frames.

Approach

Find when the first frame’s acknowledgement returns, then require the initial window to keep the transmitter busy until that instant.

Step-by-step solution

1. Frame transmission time is T_tx=1000/100000 s=0.01 s=10 ms. Propagation time is T_prop=100 ms in each direction.
2. Start frame 1 at time 0. Its last bit leaves the sender at 10 ms and reaches the receiver at 110 ms. With zero processing and ACK transmission time, its ACK is sent then and reaches the sender at 210 ms.
3. Sending W frames back-to-back occupies the sender for W·10 ms. If this duration is less than 210 ms, the sender exhausts its window before the first ACK returns and must sit idle.
4. Full utilization requires 10W≥210, giving W≥21. With W=21, the first ACK arrives exactly when frame 21 finishes, allowing frame 22 to start without a gap. Later acknowledgements then arrive at the same spacing as new frames are sent.
5. Therefore the minimum is 21 frames, option B. W=20 covers only the 200-ms propagation round trip and overlooks the first frame’s own 10-ms transmission. W=10 or 11 is also too small.

The equivalent formula is W≥1+2T_prop/T_tx=1+20=21. It assumes acknowledgements are issued after full frame reception as in the stated textbook link model.

Original paper, page 34 · Answer key

2 marks · NAT
Report issue

Data Link, Framing, Error Control & ARQ

Question 49, GATE 2021: A sliding-window protocol uses a full-duplex error-free link with negligible frame/ACK processing, unlimited queued frames, 2000-bit data frames, 10-bit ACK frames, 1 Mbps in each direction, and 100 ms one-way propagation. What is the minimum sender window in frames needed for 50% utilization (source asks nearest-integer rounding)?
Tap to enlarge
Answer & solution

Official answer: 50 to 52

Our answer: 51

Step through it (6 steps)

A data frame takes 2000/106=2 ms to serialize; an ACK takes 10/106=0.01 ms. The earliest ACK for the first frame returns after 2+100+0.01+100=202.01 ms. For an unsaturated sliding window of W frames, utilization is W*2/202.01. Requiring at least 0.5 gives W>=50.5025, so the smallest integer window is 51. The official accepted interval is 50 to 52 and is retained, but the explicit ACK serialization and minimum-integer calculation give 51.

A cycle for the first frame includes its serialization, forward propagation, ACK serialization, and reverse propagation: 202.01 ms. In that interval W frames occupy the forward link for 2W ms, unless the link is already saturated. Hence utilization is min(1,2W/202.01). W=50 gives about 49.5025%, below the target, whereas W=51 gives about 50.4925%. This directly checks the minimum-integer result and explains why the wider official interval is preserved separately from the derivation.

Original paper, page 39 · Answer key

2 marks · MCQ
Report issue

Sliding-window throughput and bit-byte mismatch

Data Link, Framing, Error Control & ARQ

Question 84, GATE 2003: A sends data to B over a full-duplex link using a sliding-window protocol. Send and receive windows each hold five packets. Data packets are 1000 bytes and take 50 μs to transmit. ACKs travel only B→A and have negligible transmission time. One-way propagation is 200 μs. What is maximum achievable throughput?
A. 7.69×10^6 bps
B. 11.11×10^6 bps
C. 12.33×10^6 bps
D. 15.00×10^6 bps
Both reproductions print packet size in bytes and options in bits per second.
Tap to enlarge
Your answer
Answer & solution

Answer: None (no official key was published)

1. The raw link rate is 1000×8/(50×10−6)=160×106 bits/s.
2. Packet 1 finishes leaving A at 50 μs and reaches B at 250 μs. Its immediate ACK returns to A at 450 μs. Meanwhile A can send packets 1–5 during 0–250 μs and must wait before sending packet 6 at 450 μs.
3. The ACKs then space subsequent transmissions 50 μs apart, giving recurrent batches of five packets per 450 μs. Window-limited throughput=5×1000×8/(450×10−6)=88.888... Mbit/s, below the raw rate.
4. No option matches. 5000/(450 μs)=11.111... million bytes/s, numerically close to B but with the wrong unit. Accepting B would silently discard the factor eight, so the baseline unanswered status is retained.

Solution: The physical data rate is 1000×8/(50 microseconds)=160 Mbit/s. The acknowledgment for the first packet can return after one packet transmission plus two propagation delays: 50+2×200=450 microseconds. A window of five permits 5×1000×8=40000 transmitted bits during that interval, hence the achievable steady-state rate is min(160 Mbit/s,40000/450 microseconds)=88.888… Mbit/s. None of the printed options equals this. Dividing 5000 bytes by 450 microseconds gives 11.111… million bytes/s, which numerically resembles option B but is not 11.11 million bits/s. The packet size is printed in bytes and every answer is printed in bps in both sources, so B cannot be accepted without changing a unit.

Original paper, page 12