Question

Suppose two hosts use a TCP connection to transfer a large file. Which of the following statements is/are FALSE with respect to the TCP connection?

I. If the sequence number of a segment is mm, then the sequence number of the subsequent segment is always m+1m+1.
II. If the estimated round trip time at any given point of time is t sect\text{ sec}, the value of the retransmission timeout is always set to greater than or equal to t sect\text{ sec}.
III. The size of the advertised window never changes during the course of the TCP connection.
IV. The number of unacknowledged bytes at the sender is always less than or equal to the advertised window.

Choose one option
Official answer and solution
Official answer
B
From
Official GATE 2015 answer key

Solution

Examine the byte-stream sequencing and dynamic window mechanisms of TCP.

Evaluating each statement:

  • Statement I: 'If the sequence number of a segment is mm, then the sequence number of the subsequent segment is always m+1m+1.' TCP sequence numbers count bytes, not packets. If a segment carries LL bytes of payload, the sequence number of the next segment will be m+Lm + L (not m+1m + 1, unless L=1L = 1). (FALSE)
  • Statement II: 'If the estimated round trip time at any given point of time is t sect\text{ sec}, the value of the retransmission timeout is always set to greater than or equal to t sect\text{ sec}.' By RFC 6298, RTO=SRTT+max⁡(G,4×RTTVAR)RTO = \text{SRTT} + \max(G, 4 \times \text{RTTVAR}). Because RTTVAR ≥0\ge 0, RTO is always greater than or equal to estimated RTT tt. (TRUE)
  • Statement III: 'The size of the advertised window never changes during the course of the TCP connection.' The advertised receive window (rwndrwnd) is dynamic; it expands and contracts depending on application read rates and buffer occupancy. (FALSE)
  • Statement IV: 'The number of unacknowledged bytes at the sender is always less than or equal to the advertised window.' Standard TCP flow control ensures that the sender never transmits more unacknowledged data than the receiver's advertised window. (TRUE)

Therefore, statements I and III are FALSE (option B).

Final answer

B

Common trap

Thinking TCP sequence numbers increment by 1 for each transmitted segment rather than by the segment byte count.

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2015 Computer Science and Information Technology (CS) Session 1
Question
29 of 65, printed as CS Q.19
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.