Three-Way Handshake in Networking

How does this three-way handshake thing work when we're talking about networks?

Intermediat

Keamanan Cyber


The three-way handshake is a fundamental process in networking, particularly in the context of the Transmission Control Protocol (TCP), one of the core protocols of the Internet Protocol (IP) suite. It is used to establish a reliable and connection-oriented communication between two devices, typically a client and a server. The three-way handshake ensures that both ends agree on the initial sequence numbers and other parameters before starting the actual data transfer.

Here’s how the three-way handshake works:



The purpose of the three-way handshake is to achieve several important goals:



Once the three-way handshake is complete, data transfer can occur between the client and server. After the data transfer is finished, a similar process (four-way handshake) is used to gracefully terminate the connection.

It’s worth noting that the three-way handshake is specific to TCP. Other transport layer protocols, like User Datagram Protocol (UDP), do not establish connections in the same way since they are connectionless and do not provide the same reliability mechanisms as TCP.