For data to be sent across the Internet, traffic is sent over either TCP or UDP. This post will focus on how a TCP session is established, for more information on the differences between UDP and TCP click here.
In order for a TCP session to be established between 2 devices, a process known as the TCP 3 Way Handshake must occur.
How It Works
We know that TCP uses sequence numbers when sending packets, this is part of how the order of packets are verified, and a great way to identify any missing data that might have been lost in transit.