GATE / CS ARCHIVE

GATE CSE 2021 SET 1 / QUESTION 49

GATE CSE 2021 Set 1 Q49

Computer Networks · Data Link, Framing, Error Control & ARQ · Full GATE CSE 2021 Set 1 paper

GATE 2021 Set 1, Q49 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