PRB: Poor TCP/IP Performance When Doing Small SendsID: Q126716
|
When doing multiple sends of less than the Maximum Transmission Unit (MTU), you may see poor performance. On an Ethernet network, the MTU for TCP/IP is 1460 bytes.
When an application does two sends of less than a transport MTU, the second send is delayed until an ACK is received from the remote host. The delay occurs in case the application does another small send. TCP can then coalesce the two small sends into one larger packet. This concept of collecting small sends into larger packets is called Nagling.
There are a number of ways to avoid Nagling in an application. Here are two. The second is more complex but gives a better performance benefit:
More information about Nagling and the Nagle algorithm can be found in RFC 1122.
Additional query words:
Keywords : kbnetwork kbAPI kbNTOS310 kbNTOS350 kbNTOS351 kbWinOS2000 kbSDKPlatform kbWinOS95 kbWinsock kbGrpNet
Version : WINDOWS:3.1,3.5,3.51,4.0
Platform : WINDOWS
Issue type : kbprb
|
Last Reviewed: February 4, 2000 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |