GateAI
TCP Flow and Congestion Control

GATE CSE 2024 Set 1 · Q29

MSQ1 markEasy

Time

TCP client P successfully establishes a connection to TCP server Q. Let NPN_P denote the sequence number in the SYN sent from P to Q. Let NQN_Q denote the acknowledgement number in the SYN ACK from Q to P. Which of the following statements is/are CORRECT?

Select all that applyOne or more correct

Pick every correct option

Solution

Step-by-step verified solution

Official answer: A) The sequence number NP is chosen randomly by P; D) The acknowledgement number NQ is equal to NP + 1

TCP Flow and Congestion Control

During the TCP 3-way handshake:

  1. Initial Sequence Number (ISN): The initial sequence number NPN_P is chosen dynamically/randomly (often using a clock-based or pseudo-random algorithm) by client P to prevent sequence number prediction attacks and avoid confusion with old duplicate packets from previous connections. Hence, NPN_P is not always 00. Thus, (A) is correct and (B) is incorrect.

  2. SYN Packet Consumption: A TCP segment with the SYN flag set consumes one logical sequence number (even though it carries no user data).

  3. Acknowledgement Number: The server acknowledges the receipt of the SYN by sending a SYN+ACK segment with an acknowledgement field containing the next expected sequence number from client P, which is NP+1N_P + 1. Thus, NQ=NP+1N_Q = N_P + 1. Hence, (D) is correct and (C) is incorrect.

Therefore, statements (A) and (D) are correct.

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 Q29 of the GATE CSE 2024 Set 1 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. 2 of them are 1-mark MSQs like this one, and it is the only one in GATE CSE 2024 Set 1.

How GATE tests TCP Flow and Congestion Control

More from GATE CSE 2024 Set 1

Share this solution

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

GateAI solution cardGATE CSE 2024 Set 1 · Q29 · MSQ

TCP client P successfully establishes a connection to TCP server Q. Let NP denote the sequence number in the SYN sent from P to Q. Let NQ denote the acknowledgement number in the SYN ACK from Q to P. Which of the following statements is/are CORRECT?

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.