Consider the data transfer using TCP over a 1 Gbps link. Assuming that the maximum segment lifetime (MSL) is set to 60 seconds, the minimum number of bits required for the sequence number field of the TCP header, to prevent the sequence number space from wrapping around during the MSL is ______.
GATE 2022 CS Q.60: solution and answer
Answer and solution
ANSWER
The sequence number field needs at least 33 bits.
Official answer: 33Source: Official answer key, GATE 2022 CS (IIT Kharagpur)
TCP numbers every byte, so the sequence number space must be at least as large as the number of bytes the sender can transmit within one MSL. Otherwise a sequence number could repeat while an old segment with that number is still alive in the network.
Link rate bits/s bytes/s.
Bytes sent in one MSL bytes.
We need .
So the minimum number of bits is .
KEY IDEA
TCP numbers bytes, not segments. The sequence number space must cover every byte the link can send in one MSL, so .
WATCH OUT FOR
Using the rate in bits per second (, which gives 36 bits). TCP sequence numbers count bytes, so the rate must first be divided by 8.
From the GATE 2022 CS paper. Every question of this paper · Download the full paper · All 12 TCP questions, with notes
More TCP questions
- GATE 2018 CS Q.14 · MCQ · 1 markConsider the following statements regarding the slow start phase of the TCP congestion control algorithm.
- GATE 2018 CS Q.25 · NAT · 1 markConsider a long-lived TCP session with an end-to-end bandwidth of 1 Gbps (= 10^9 bits-per-second).
- GATE 2026 CS1 Q.18 · MCQ · 1 markWith respect to a TCP connection between a client and a server, which one of the following statements is true?
- GATE 2026 CS1 Q.44 · MCQ · 2 marksA TCP sender successfully establishes a connection with a TCP receiver and starts the transmission of…
