Each time a user opens his/her web browser, watches a video, or sends an email, the networking protocols operate in the background, making it all happen. Prior to sending data via Transmission Control Protocol (TCP), a client and a server have to synchronize themselves by establishing a connection. It is referred to as the TCP 3-way Handshake.
But what exactly is a TCP handshake, and why is it so important for error-free communication?
TCP handshake is a protocol-specific three-step process that occurs when using the Transmission Control Protocol (TCP) to establish a connection between a client (e.g., a laptop or a smartphone) and a server (website host).
In contrast to other simple protocols that transfer data without any checks, TCP focuses on the reliability, order of data transfer, and checking of errors. The main point of the handshake is to synchronize the sequence numbers of both devices to be sure they are ready to communicate.
The connection establishment is dependent upon three particular control packets, commonly referred to as SYN, SYN-ACK, and ACK. This is how the negotiation process goes step by step:
Firstly, the client sends a TCP segment having the SYN flag set to 1 to the server. The packet performs two key functions:
In response to the client’s SYN packet, the server confirms that there are open ports available for accepting the connection request, and sends the packet having both the SYN and ACK flags set to 1:
Finally, the client responds with a packet having the ACK bit set to 1:
The presented process of the 3-way handshake has several technical benefits, making the contemporary Internet safe and stable:
Despite being secure and orderly, the handshake technique can be subjected to attacks by intruders. One type of attack on networks that affects this technique is the SYN Flood attack.
In such an attack, attackers send the target server thousands of fake SYN packets that use fake source IP addresses. The following are the various strategies used by network administrators in combating these threats:
Also Read: How Internet Protocol Evolution Shapes Future Connectivity
Knowledge of what is TCP Handshake function is makes it clear why TCP is the foundation of communication on the Internet. a uses a disciplined handshake process which involves three steps (SYN, SYN-ACK, and ACK) to check for readiness and synchronization of the sequence numbers.
Ans: It allows establishing a reliable and synchronized connection between two devices.
Ans: They include SYN, SYN-ACK, and ACK.
Ans: To let both sides independently confirm readiness and sequence numbers.