Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I am new to Windows networking. When people talk about TCP tuning on Windows platform, they always mention about TCP Window Size. I am wondering whether Windows uses the concept of "Socket Buffer Size"?

On Windows XP, the TCP window size is fixed. We can set it using the TCPWindowSize registry value. How about Socket Buffer Size? How can we set Socket Buffer size on Windows? Can we set it to a value different from TCP window size?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

AFD.sys is the library used to support sockets in Windows. To change the send and receive buffer sizes

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Afd\Parameters]
DefaultReceiveWindow = <value>
DefaultSendWindow = <value>

A reboot is required for the changes to take affect.

I've found the sweet spot for 1GbE to be 65536 and personally I think this should be the default instead of the current one which is 8192. RAM is cheap. :D

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.