TCP 3 way handshake and Latency

Chirag Singla
1 min readJan 7, 2018

--

Whenever we make an http/https connection then we end up forming a new TCP connection. Setting up a new TCP connection requires a 3 way handshake. If the ping latency between the two servers is x milliseconds then the handshake would introduce a latency of 3x/2 milliseconds. Once the connection is established then the applications can send the data over the established connection.

A lot of times I see higher load times when I am trying to visit some US websites from India. The same websites load much faster when I am in US. Increasing the bandwidth of my internet connection won’t solve the problem as the main bottleneck would be the time to form connections with the server located in US.

References:

Image Source: https://hpbn.co/building-blocks-of-tcp/

--

--