Question
Consider a long-lived TCP session with an end-to-end bandwidth of 1 Gbps (= bits-per-second). The session starts with a sequence number of 1234. The minimum time (in seconds, rounded to the closest integer) before this sequence number can be used again is _______.
Official answer and solution
- Official answer
- 34
- From
- Official GATE 2018 answer key
Solution
Compute the time needed to cycle through the full 32-bit TCP sequence number space at 1 Gbps.
TCP sequence numbers are 32 bits wide and count individual bytes transferred. The total sequence space consists of sequence numbers.
The transmission bandwidth is 1 Gbps:
The time required to wrap around the entire sequence number space is:
Rounding to the closest integer gives 34 seconds.
34
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2018 Computer Science and Information Technology (CS)
- Question
- 35 of 65, printed as CS Q.25
- Section
- Computer Science and Information Technology
Report an error in this question
GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.