GATE / CS ARCHIVE

GATE CSE 2021 SET 2 / QUESTION 7

GATE CSE 2021 Set 2 Q7

Computer Networks · Transport, Congestion Control & Traffic Shaping · Full GATE CSE 2021 Set 2 paper

GATE 2021 Set 2, Q7 1 mark · MCQ
Report issue

Transport, Congestion Control & Traffic Shaping

Question 7, GATE 2021: TCP hosts P,Q choose initial sequence numbers X,Y. P sends SYN=1,SEQ=X,ACK=0; Q accepts. Select Q's response (SYN,SEQ,ACK,ACKnumber,FIN): A (1,X+1,0,Y,0); B (0,X+1,0,Y,1); C (1,Y,1,X+1,0); D (1,Y,1,X,0).
Tap to enlarge
Your answer
Answer & solution

Official answer: C

Q sends SYN+ACK using its own initial sequence Y and acknowledging X+1 because SYN consumes one sequence number. Thus SYN=1, SEQ=Y, ACK=1, ACKnumber=X+1, FIN=0, C; sequence arithmetic is modulo 2³².

TCP sequence spaces are independent in the two directions. Q must announce Y, not X+1, as its own sequence number. The acknowledgment X+1 says that P's SYN was consumed and the next expected sequence is X+1. FIN is zero because the response establishes rather than closes the connection.

Original paper, page 58 · Answer key