Question
Consider the 3-way handshaking protocol for TCP connection establishment. Let the three packets exchanged during the connection establishment be denoted as P1, P2, and P3, in order. Which of the following option(s) is/are TRUE with respect to TCP header flags that are set in the packets?
Official answer and solution
- Official answer
- B and D
- From
- Official GATE 2025 answer key
Solution
Recall the SYN and ACK control bits in the three segments (SYN, SYN-ACK, ACK) of TCP connection establishment.
During the TCP 3-way handshake:
- P1 (Client Server, SYN):
SYN = 1,ACK = 0(D) is TRUE. - P2 (Server Client, SYN-ACK):
SYN = 1,ACK = 1(B) is TRUE (and (C) is false). - P3 (Client Server, ACK):
SYN = 0,ACK = 1(A) is false.
Options (B), (D)
The answer is the one in the official GATE answer key. The solution is this site's own explanation.
Source
- Paper
- GATE 2025 Computer Science and Information Technology - Session 1 (CS1)
- Question
- 22 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.