GATE CS 2021 Set 2 | Question 17

Computer Networks › Transport Layer · MCQ · 1 mark · Answer: C

  1. Question 17Computer Networksmcq1 mark
    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 with the SYN bit set, SEQ number X, and ACK bit set to 0 to Q. 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?
    • A.
      The ACK bit is set to 0, SYN bit is set to 1, SEQ number is Y, and ACK number is X.
    • B.
      The ACK bit is set to 0, SYN bit is set to 0, SEQ number is Y, and ACK number is X.
    • C.
      The ACK bit is set to 1, SYN bit is set to 1, SEQ number is Y, and ACK number is X+1.
      ✓
    • D.
      The ACK bit is set to 1, SYN bit is set to 0, SEQ number is Y+1, and ACK number is X.

    Answer: C

    Solution

    The second handshake segment (SYN-ACK) has SYN=1 and ACK=1, carries Q's own initial sequence number Y, and acknowledges P's SYN with ACK number .

More GATE PYQ on Transport Layer

All GATE CS Computer Networks PYQ →

Attempt GATE CS 2021 Set 2 in real GATE exam mode

Full paper with a timer, the GATE interface and a topic-wise analysis — free.

Create free account →