TCP/IP handshake, also called Three Way Handshake, is a process to establish a connection between two devices. It's kind of like when you meet someone new and you introduce yourself and shake their hand. In the same way, computers use a handshake to introduce themselves and make sure they're able to talk to each other.
Its purpose is to establish a reliable and secure communication channel using Transmission Control Protocol (TCP) and Internet Protocol (IP). This process has three steps:
To request for connection establishment, the sender sends synchronization (SYN) packet to the receiver.
When the receiver is willing to establish a connection, the receiver sends a synchronization acknowledgement (SYN-ACK) packet to the sender.
To complete the connection, the sender sends an acknowledgement (ACK) packet to the receiver.
