GATE / CS ARCHIVE

GATE CSE 2022 / QUESTION 60

GATE CSE 2022 Q60

Computer Networks · Transport, Congestion Control & Traffic Shaping · Full GATE CSE 2022 paper

GATE 2022, Q60 2 marks · NAT
Report issue

Transport, Congestion Control & Traffic Shaping

Question 60, GATE 2022: TCP sends over 1 Gbps with maximum segment lifetime 60 seconds. What minimum sequence-number bit width avoids wrapping during that lifetime?
Tap to enlarge
Answer & solution

Official answer: 33

TCP sequence numbers identify bytes. At 109 bits per second, the stream uses 109/8=125000000 sequence numbers per second and 7500000000 in 60 seconds. A nonwrapping sequence space must accommodate that many distinct bytes during the MSL. Since 232=4294967296 is too small but 233=8589934592 is enough, 33 bits are required.

The bound is 2b≥rate_in_bytes_per_second×MSL. Taking a ceiling gives b=ceil(log2(7.5×109))=33. Counting bits rather than bytes would give the wrong sequence-space requirement because TCP increments sequence numbers per payload byte.

Original paper, page 39 · Answer key