GATE / CS ARCHIVE

GATE CSE 2025 SET 1 / QUESTION 22

Reading flags in the TCP handshake

Computer Networks · Transport, Congestion Control & Traffic Shaping · Full GATE CSE 2025 Set 1 paper

GATE 2025 Set 1, Q22 1 mark · MSQ
Report issue

Transport, Congestion Control & Traffic Shaping

Question 22, GATE 2025: Let P1,P2,P3 be the three successive packets of the ordinary TCP connection-establishment handshake. Select true claims: A P3 has SYN=1,ACK=1; B P2 has SYN=1,ACK=1; C P2 has SYN=0,ACK=1; D P1 has SYN=1.
Tap to enlarge
Select all that apply
Answer & solution

Official answer: B, D

Approach: Separate the request to synchronize sequence numbers from the acknowledgment of the peer’s request.
P1 is the initiating SYN: it starts synchronization with SYN=1 and, in the ordinary initial handshake, ACK=0. Hence D is true.
P2 both acknowledges the first SYN and announces the responding endpoint’s own initial sequence number. Its flags are SYN=1 and ACK=1. This makes B true and C false.
P3 acknowledges the responder’s SYN. It is an ACK with SYN=0,ACK=1, so A is false. The correct selection is B and D.
The ACK flag indicates that the acknowledgment-number field is valid; it is not merely a generic statement that a packet arrived. This question is about the standard three-way establishment sequence, not simultaneous open or later connection teardown.

Original paper, page 22 · Answer key