JSI Tip 7215. A program that copies data to a TCP server performs poorly?

If you run a program on Windows NT 5.x, that uses the Windows Sockets API, to copy data over the network to a TCP server, you may experience poor performance.

Discussion of the technical reasons, and programming workarounds, are beyond the scope of this tip, but you might be able to workaround this behavior by adjusting the registry:

If the server runs Windows 2000

1. Use the Registry Editor ( Regedt32.exe) to navigate to:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\<Interface GUID>

2. On the Edit menu, Add Value Name TcpDelAckTicks, a REG_DWORD data type, and set the data value to 0.

3. Exit the Registry Editor and restart Windows 2000.

If the server runs Windows Server 2003 (or Windows XP)

1. Use the Registry Editor ( Regedit.exe) to navigate to:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\<Interface GUID>

2. On the Edit menu, press New and DWORD Value.

3. Name the Value Name TcpAckFrequency.

4. Right-click the TcpAckFrequency Value Name and press Modify.

5. Set the data value to 1.

6. Exit the Registry Editor and restart Windows.



Hide comments

Comments

  • Allowed HTML tags: <em> <strong> <blockquote> <br> <p>

Plain text

  • No HTML tags allowed.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.
Publish