Skip to content

GATE CS 2024 Set 1 Q19 — Transport Layer: Flow Control, Congestion Control, UDP, TCP, Sockets

Explain with AI

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

Select all correct options
View worked solution

Answer: A;D

To determine the correct statements, let's analyze the TCP 3-way handshake process between the client P\text{P} and the server Q\text{Q}:

  1. Initial Sequence Number (NPN_P):
    • When client P\text{P} initiates a connection, it sends a SYN\text{SYN} packet with an Initial Sequence Number (ISN), denoted here as NPN_P.
    • This ISN is chosen randomly (or via a pseudo-random generator) to prevent security vulnerabilities like TCP sequence prediction attacks and to avoid confusion with packets from previous closed connections. It is not always 00.
    • Thus, Statement A is correct and Statement B is incorrect.
  2. Acknowledgement Number in SYN-ACK (NQN_Q):
    • The SYN\text{SYN} flag consumes exactly 11 sequence number, even though the packet contains no payload data.
    • When server Q\text{Q} receives the SYN\text{SYN} packet with sequence number NPN_P, it responds with a SYN-ACK\text{SYN-ACK} packet.
    • The acknowledgement number (NQN_Q) in this SYN-ACK\text{SYN-ACK} packet indicates the next sequence number Q\text{Q} expects to receive from P\text{P}. Therefore, NQ=NP+1N_Q = N_P + 1.
    • Thus, Statement D is correct and Statement C is incorrect.

Hence, the correct options are A and D.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Transport Layer: Flow Control, Congestion Control, UDP, TCP, Sockets questions