CS FundamentalsVery hardProduct company interview · GATE level

A 20 Mbps link has a one-way propagation delay of 8 ms and carries 1250-byte frames; ACKs are negligibly short. The sender window is chosen as the smallest size that keeps the link 100% utilised. What is the minimum number of sequence-number bits needed for Go-Back-N and for Selective Repeat (receiver window equal to sender window) respectively?

  1. A. 6 bits and 7 bits
  2. B. 6 bits and 6 bits
  3. C. 5 bits and 6 bits
  4. D. 7 bits and 8 bits

Correct answer: A. 6 bits and 7 bits

Tt = 10000 bits / 20 Mbps = 0.5 ms, so a = 8/0.5 = 16 and the window for full utilisation is 1 + 2a = 33 frames. Go-Back-N needs at least W + 1 = 34 sequence numbers, so 6 bits (64). Selective Repeat needs at least 2W = 66 sequence numbers, so 7 bits (128); 6 bits give only 64. Using a window of 1 + a = 17 leads to 5 and 6 bits, and forgetting the 2W rule gives 6 and 6.

More Computer Networks questions

Exams that ask this topic