Question
TCP client P successfully establishes a connection to TCP server Q. Let denote the sequence number in the SYN sent from P to Q. Let denote the acknowledgement number in the SYN ACK from Q to P. Which of the following statements is/are CORRECT?
Official answer and solution
- Official answer
- A and D
- From
- Official GATE 2024 answer key
Solution
Recall TCP 3-way handshake rules for Initial Sequence Number (ISN) selection and SYN acknowledgement numbering.
- (A) is CORRECT and (B) is FALSE: In TCP, the client chooses its Initial Sequence Number (ISN) pseudo-randomly (to prevent sequence-number spoofing and stale segment collisions from prior connections).
- (D) is CORRECT and (C) is FALSE: Because a TCP
SYNflag consumes sequence number in the sequence space, server Q acknowledges receipt of P'sSYNby setting the acknowledgement number (the next expected sequence number from P) to .
Final answer
Options (A), (D)
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2024 Computer Science and Information Technology - Set 1 (CS1)
- Question
- 29 of 65
- 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.