Official answer: C) SYN bit = 1, SEQ number = Y, ACK bit = 1, ACK number = X+1, FIN bit = 0
TCP Flow and Congestion ControlDuring the TCP 3-way handshake:
Step 1 (P to Q): P sends a SYN packet:
SYN=1,ACK=0,SEQ=X,FIN=0 Step 2 (Q to P): Q accepts the connection by responding with a SYN-ACK packet:
Since Q is also synchronizing its sequence number, SYN bit=1.
Since Q is acknowledging P's SYN segment, ACK bit=1.
Q's own starting sequence number is SEQ number=Y.
Since a SYN packet consumes 1 sequence number, Q acknowledges it with ACK number=X+1.
Connection termination is not taking place, so FIN bit=0.
Therefore, the header contains: SYN bit=1,SEQ number=Y,ACK bit=1,ACK number=X+1,FIN bit=0, which corresponds to option (C).