GATE / CS ARCHIVE

GATE CSE 2018 / QUESTION 25

TCP sequence-number wrap time

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

GATE 2018, Q25 1 mark · NAT
Report issue

Transport, Congestion Control & Traffic Shaping

Question 25, GATE 2018: A long-lived TCP connection sends at 10^9 bits/s and starts at sequence number 1234. Find the minimum time in seconds before that number can recur, rounded to an integer.
Tap to enlarge
Answer & solution

Official answer: 34 to 35

Our answer: 34 seconds

Method

A TCP sequence number labels a byte, so a full modulo-2^32 cycle consumes 4294967296 bytes, or 34359738368 bits. Divide by the bit rate, maintaining consistent units. The initial value 1234 affects which label comes first, but not how many increments return to it. This is a sequence-space throughput calculation; it does not independently establish that reusing the number is safe from delayed old packets.

Solution

TCP sequence numbers count bytes modulo 232. At109 bits/s, consuming the full sequence space requires 232·8/109≈34.359738 seconds, rounded 34. The starting number 1234 only shifts the cycle and does not change its length.

Original paper, page 10 · Answer key