CS FundamentalsVery hardGATE CS

A transport protocol numbers BYTES (like TCP). On a 10 Gbps link with a maximum segment lifetime of 120 s, how many sequence-number bits are needed so that no number is reused while an old segment with it may still exist?

  1. A. 32
  2. B. 37
  3. C. 41
  4. D. 38

Correct answer: D. 38

In 120 s the link sends 10¹⁰/8 × 120 = 1.5 × 10¹¹ bytes; log₂(1.5 × 10¹¹) ≈ 37.1, so 38 bits. TCP's 32 bits wrap in about 3.4 s at 10 Gbps, which is why PAWS timestamps exist. Adding 3 extra bits would be counting bits instead of bytes.

More Computer Networks questions

Exams that ask this topic