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 , then the sequence number of the subsequent segment is always .
II. If the estimated round trip time at any given point of time is , the value of the retransmission timeout is always set to greater than or equal to .
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.
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 , then the sequence number of the subsequent segment is always .' TCP sequence numbers count bytes, not packets. If a segment carries bytes of payload, the sequence number of the next segment will be (not , unless ). (FALSE)
- Statement II: 'If the estimated round trip time at any given point of time is , the value of the retransmission timeout is always set to greater than or equal to .' By RFC 6298, . Because RTTVAR , RTO is always greater than or equal to estimated RTT . (TRUE)
- Statement III: 'The size of the advertised window never changes during the course of the TCP connection.' The advertised receive window () 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).
B
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.