Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TCP-Connection Establishment = How to measure time based on Ping RRT?

Tags:

sockets

I would be greatful for help, understanding how long it takes to establish a TCP connection when I have the Ping RoundTripTip:

According to Wikipedia a TCP Connection will be established in three steps:

1.SYN-SENT (=>CLIENT TO SERVER)
2.SYN/ACK-RECEIVED (=>SERVER TO CLIENT)
3.ACK-SENT (=>CLIENT TO SERVER)

My Questions:

  1. Is it correct, that the third transmission (ACK-SENT) will not yet carry any payload (my data) but is only used for the connection establishement.(This leads to the conclusion, that the fourth packt will be the first packt to hold any payload....)

  2. Is it correct to assume, that when my Ping RoundTripTime is 20 milliseconds, that in the example given above, the TCP Connection establishment would at least require 30 millisecons, before any data can be transmitted between the Client and Server?

Thank you very much

Tom

like image 851
Tom Avatar asked May 21 '10 17:05

Tom


1 Answers

Those things are basically correct, though #2 assumes that the round-trip time is symmetric.

like image 131
WhirlWind Avatar answered Nov 15 '22 05:11

WhirlWind