-
Which of the following system calls results in the sending of SYN packets?
-
- Socket
- Bind
- Listen
- Connect
- Socket
Correct Option: D
The 3 way handshake is shown as below
Host A sends a TCP SYNchronize packet to Host B Host B receives A’s SYN Host B sends a SYNchronize-ACKnowledgement Host A receives B’s SYN-ACK Host A sends ACKnowledge Host B receives ACK. TCP connecting is (Established). SYNchronize and ACKnowledge messagess are indicated by a bit inside the TCP head of the segment. The handshake (TCP Handshaking) between sender and receiver is established by connect so that SYN packets could be sent.
TCP knows whether the network connection is opening, synchronizing or established by using the SYNchronize and ACKnowledge messages when establishing a network connection. When the communication between two computer ends, another 3-way communication is performed to tear down the TCP connection. This setup and teardown of a TCP connection is part of what qualifies TCP a reliable protocol.