Skip to content

GATE CS 2025 Set 1 Q12 — Transport Layer: Flow Control, Congestion Control, UDP, TCP, Sockets

Explain with AI

Consider the 33-way handshaking protocol for TCP connection establishment. Let the three packets exchanged during the connection establishment be denoted as P1, P2\text{P1, P2}, and P3\text{P3}, in order. Which of the following option(s) is/are TRUE with respect to TCP header flags that are set in the packets?

Select all correct options
View worked solution

Answer: B;D

In TCP, the connection establishment process uses a 3-way handshake protocol. The three packets exchanged in order (P1\text{P1}, P2\text{P2}, and P3\text{P3}) have the following TCP header flag configurations:

  1. Packet 1 (P1\text{P1}): Client to Server (Connection Request)
    • The client initiates the connection by setting the SYN flag.
    • Flags: SYN=1\text{SYN} = 1, ACK=0\text{ACK} = 0.
  2. Packet 2 (P2\text{P2}): Server to Client (Connection Acknowledgment)
    • The server acknowledges the client's request and sends its own synchronization request.
    • Flags: SYN=1\text{SYN} = 1, ACK=1\text{ACK} = 1.
  3. Packet 3 (P3\text{P3}): Client to Server (Acknowledgment)
    • The client acknowledges the server's request. The synchronization phase is complete, so the SYN flag is cleared.
    • Flags: SYN=0\text{SYN} = 0, ACK=1\text{ACK} = 1.

Let's evaluate the given options based on these rules:

  • Option A: P3: SYN=1,ACK=1\text{P3: SYN} = 1, \text{ACK} = 1 — Incorrect (In P3\text{P3}, SYN=0\text{SYN} = 0).
  • Option B: P2: SYN=1,ACK=1\text{P2: SYN} = 1, \text{ACK} = 1 — Correct.
  • Option C: P2: SYN=0,ACK=1\text{P2: SYN} = 0, \text{ACK} = 1 — Incorrect (In P2\text{P2}, SYN=1\text{SYN} = 1).
  • Option D: P1: SYN=1\text{P1: SYN} = 1 — Correct (In P1\text{P1}, SYN\text{SYN} is indeed set to 11).

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