GateAI
TCP Flow and Congestion Control

GATE CSE 2021 Set 2 · Q7

MCQ1 markEasy

Time

Consider the three-way handshake mechanism followed during TCP connection establishment between hosts P and Q. Let X and Y be two random 32-bit starting sequence numbers chosen by P and Q respectively. Suppose P sends a TCP connection request message to Q with a TCP segment having SYN bit = 1, SEQ number = X, and ACK bit = 0. Suppose Q accepts the connection request. Which one of the following choices represents the information present in the TCP segment header that is sent by Q to P?

Select one answerSingle correct

Pick an option to check

Solution

Step-by-step verified solution

Official answer: C) SYN bit = 1, SEQ number = Y, ACK bit = 1, ACK number = X+1, FIN bit = 0

TCP Flow and Congestion Control

During the TCP 3-way handshake:

  1. Step 1 (P to Q): P sends a SYN packet:

    SYN=1,ACK=0,SEQ=X,FIN=0\text{SYN} = 1, \text{ACK} = 0, \text{SEQ} = X, \text{FIN} = 0
  2. 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\text{SYN bit} = 1.

    • Since Q is acknowledging P's SYN segment, ACK bit=1\text{ACK bit} = 1.

    • Q's own starting sequence number is SEQ number=Y\text{SEQ number} = Y.

    • Since a SYN packet consumes 1 sequence number, Q acknowledges it with ACK number=X+1\text{ACK number} = X + 1.

    • Connection termination is not taking place, so FIN bit=0\text{FIN bit} = 0.

Therefore, the header contains: SYN bit=1,SEQ number=Y,ACK bit=1,ACK number=X+1,FIN bit=0\text{SYN bit} = 1, \text{SEQ number} = Y, \text{ACK bit} = 1, \text{ACK number} = X+1, \text{FIN bit} = 0, which corresponds to option (C).

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

This TCP Flow and Congestion Control previous year question is Q7 of the GATE CSE 2021 Set 2 paper. Find more GATE CSE PYQs on TCP Flow and Congestion Control in Computer Networks, or browse all GATE CSE PYQs.

Free diagnostic

Where do you stand for GATE?

Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related TCP Flow and Congestion Control PYQs now with no account.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

TCP Flow and Congestion Control in GATE CSE

TCP Flow and Congestion Control has 23 GATE CSE PYQs across 21 papers from 2012 to 2026. 10 of them are 1-mark MCQs like this one, and it is the only one in GATE CSE 2021 Set 2.

How GATE tests TCP Flow and Congestion Control

More from GATE CSE 2021 Set 2

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2021 Set 2 · Q7 · MCQ

Consider the three-way handshake mechanism followed during TCP connection establishment between hosts P and Q. Let X and Y be two random 32-bit starting sequence numbers chosen by P and Q respectively. Suppose P sends a TCP connection request message to Q with a TCP segment having SYN bit = 1, SEQ number = X, and ACK bit = 0. Suppose Q accepts the connection request. Which one of the following choices represents the information present in the TCP segment header that is sent by Q to P?

Topic-wise GATE CS PYQs with verified steps

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.