Reputation: 66
While using devtools Network tab on Chrome 15 (stable) on Windows 7 and Windows XP, I am seeing cases where "receiving" time for an HTTP response is >100ms but the response is a 302 redirects or small image (beacons) - with a payload below 500 bytes (header+content).
Capturing the TCP traffic on Wireshark clearly shows the server sent the entire HTTP response in a single TCP packet, so receiving time should have been 0. A good example is CNN homepage, or any major website that has a lot of ads and tracking beacons.
This brings up a couple of questions:
In my tests I used a virtual machine for Windows XP, while Windows 7 was on a desktop (quad core, 8gb ram).
Upvotes: 4
Views: 2508
Reputation: 1485
The Nagle Algorithm and the Delayed ACK Algorithm are two congestion control algorithms that are enabled by default on Windows machines. These will introduce delays in the traffic of small payloads in an attempt to reduce some of the chattiness of TCP/IP.
Delayed ACK will cause ~200ms of additional "Receiving" time in Chrome's network tab when receiving small payloads. Here is a webpage explaining the algorithms and how to disable them on Windows: http://smallvoid.com/article/winnt-nagle-algorithm.html
Upvotes: 1
Reputation: 32296
Upvotes: 1