GATE CS 2024 Set 1 — Question 29
MSQ+1 / -0EasyTCP HandshakeTransport LayerComputer Networks
Computer Networks → Transport Layer → TCP Handshake
Last updated
Question
TCP client successfully establishes a connection to TCP server . Let denote the sequence number in the SYN sent from to . Let denote the acknowledgement number in the SYN ACK from to . Which of the following statements is/are CORRECT?
A.
The sequence number is chosen randomly by
B.
The sequence number is always 0 for a new connection
C.
The acknowledgement number is equal to
D.
The acknowledgement number is equal to
Correct answer
(A) The sequence number N_P is chosen randomly by P; (D) The acknowledgement number N_Q is equal to N_P + 1
Solution
In the TCP three-way handshake process:
1.Step 1 (SYN): The client sends a SYN segment to the server to initiate a connection. This segment contains an Initial Sequence Number (ISN), denoted as . According to TCP standards (RFC 793, RFC 6528), the ISN is chosen using a pseudo-random generator to ensure uniqueness and security against sequence number prediction attacks. Therefore, statement (A) is correct.
2.Step 2 (SYN ACK): The server responds with a SYN ACK segment. This segment includes its own ISN and an acknowledgement number. The acknowledgement number confirms the receipt of the client's SYN. Since the SYN flag logically consumes one sequence number, the acknowledgement number is set to the client's sequence number plus one (). The question defines as this acknowledgement number. Thus, , making statement (D) correct.
Statement (B) is incorrect because the ISN is randomized, not fixed at 0. Statement (C) is incorrect because the acknowledgement number must be to account for the SYN flag.More questions on Transport Layer
2024 Set 1 Q16A user starts browsing a webpage hosted at a remote server. The browser opens a single TCP…2024 Set 2 Q23Node X has a TCP connection open to node Y. The packets from X to Y go through an intermediate IP…2024 Set 2 Q28Which of the following statements about IPv4 fragmentation is/are TRUE?2024 Set 1 Q31Which of the following fields is/are modified in the IP header of a packet going out of a network…2024 Set 2 Q32Which of the following fields of an IP header is/are always modified by any router before it…
Practice GATE CS PYQs with adaptive difficulty
Timed practice, skill tracking, and AI explanations — free to start.
Start practicing free