I'm working on a networking library for my .net application and right now I'm trying to test "real world" latency.
So currently I'm sending the time from the server to the client and recording what time that message is passed up to the rest of the application.
Over what I think is a fairly nice internet connection (40/40 and 50/10) it takes right around 400 milliseconds. I don't really need it to be super fast or anything. I'm just wondering where that compares.
TCP sending has two latency components:
ping google.com -t
.You probably should disable nagling and optimize your Write
calls so that they write all data at once. Otherwise, you'd be sending many small packets without nagling.