Which of the following system calls results in the sending of SYN packets ?

This question was previously asked in
NIELIT Scientific Assistant CS 5 Dec 2021 Official Paper
View all NIELIT Scientific Assistant Papers >
  1. Socket 
  2. Bind 
  3. Listen 
  4. Connect

Answer (Detailed Solution Below)

Option 4 : Connect
Free
NIELIT Scientific Assistant Quantitative Aptitude Mock Test
0.5 K Users
20 Questions 20 Marks 30 Mins

Detailed Solution

Download Solution PDF

The correct answer is Connect.

key-point-image Key Points

  • The connect system call is responsible for establishing a connection to a remote host.
    • When the connect system call is executed, it initiates the process of setting up a TCP connection.
    • As part of this process, the client sends a SYN (synchronize) packet to the server.
    • The server responds with a SYN-ACK (synchronize-acknowledge) packet if it is ready to accept the connection.
    • The client then sends an ACK (acknowledge) packet, completing the three-way handshake and establishing the connection.
  • The other system calls mentioned (Socket, Bind, Listen) are involved in different stages of socket programming but do not directly result in sending SYN packets.
    • Socket: Creates a new socket.
    • Bind: Associates a socket with a local address and port.
    • Listen: Prepares the socket to accept incoming connections.

additional-information-image Additional Information

  • The three-way handshake is a fundamental process in establishing a reliable TCP connection.
  • Understanding the role of each system call in network programming is essential for developing network applications.
  • Proper handling of socket connections ensures the robustness and security of network communication.
Latest NIELIT Scientific Assistant Updates

Last updated on Feb 20, 2025

-> A total number of 113 revised vacancies have been announced for the post of Scientific Assistant in Computer Science (CS), Information Technology (IT), and Electronics & Communication (EC) streams.

-> Online application form, last date has been extended up to from 17th April 2025.

->The NIELT has revised the Essential Qualifications for the post of Scientific Assistant. Candidates must possess (M.Sc.)/ (MS)/ (MCA) / (B.E.)/ (B.Tech) in relevant disciplines.

 

-> The NIELIT Scientific Assistant 2025 Notification has been released by the National Institute of Electronics and Information Technology (NIELIT).

More Flow Control Questions

Get Free Access Now
Hot Links: teen patti real teen patti wink teen patti wala game