GATE / CS ARCHIVE

GATE CSE 2008 / QUESTION 17

Socket operation initiating TCP handshake

Computer Networks · Transport, Congestion Control & Traffic Shaping · Full GATE CSE 2008 paper

GATE 2008, Q17 1 mark · MCQ
Report issue

Transport, Congestion Control & Traffic Shaping

Question 17, GATE 2008: Which system call results in sending SYN packets?

(A) socket
(B) bind
(C) listen
(D) connect
Tap to enlarge
Your answer
Answer & solution

Answer: D (no official key was published)

1. socket creates a socket, bind assigns a local endpoint, and listen makes a TCP socket passive.
2. connect initiates the active TCP open, starting the three-way handshake by sending SYN.
3. The requested call is therefore D. This reasoning is specifically for TCP; UDP connect does not initiate a TCP handshake.

Original paper, page 4