A while back, I looked at what caused gigabit networking to slow to a crawl in Windows XP Service Pack 2 under...
heavy network usage. This happened if you were using gigabit networking in conjunction with two things:
- A network card with hardware support for certain acceleration features (in this case, the Large Send Offload feature), and
- the Windows Firewall service enabled.
As it turns out, Windows Firewall has a similar issue with some network adapters that support a hardware feature called checksum offloading.
When data comes in through a network, it's "checksummed," meaning the data is checked against a checksum (or validation code) in the headers in the packets it was delivered in. If the data and checksum don't match, the packet is determined to be bad and has to be retransmitted.
To speed things up, some network cards can "offload" the checksumming, i.e., perform the checksumming on the network card itself, rather than leave the job to the CPU. This frees up the CPU to do that much more work on its own, and on a server with extremely high network throughput, that much CPU savings can add up.
Windows XP and Windows Server 2003 both have driver-level support for checksum offloading in many network cards (that is, when the card itself also supports it). However, sometimes this causes the network link on the computer in question to drop unexpectedly.
Microsoft knows about the problem, and while there's no complete fix, there is a workaround: You can either disable offloading to the network adapter, or disable Windows Firewall. (The problem may be due more to the network driver than Windows itself, but it's not clear which would be more at fault.)
To disable checksum offloading:
- Open the Registry and navigate to HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters.
- Add a new DWORD value named DisableTaskOffload and set it to 1.
- You may need to restart the system to make these changes take effect.
About the author: Serdar Yegulalp is editor of the Windows Power Users Newsletter, which is devoted to hints, tips, tricks, news and goodies for Windows NT, Windows 2000 and Windows XP users and administrators. He has more than 10 years of Windows experience under his belt, and contributes regularly to SearchWinComputing.com and SearchSQLServer.com.
More information on this topic:
- Tip: XP SP2 slows down gigabit network performance
- Topics: Windows network management
- RSS: Sign up for our RSS feed to receive expert advice every day.