The TCP three-way handshake is the setup exchange that lets two hosts establish a reliable TCP connection. It synchronizes sequence numbers and negotiates some connection parameters, but it does no…