Thursday, March 7, 2013

TCP Window

From Windows Vista, we can set TCP window auto-tuning


disabled = scale factor 0
highlyrestricted = scale factor 2
restricted = scale factor 4
normal = scale factor 8
experimental = scale factor 14

However, it can be override by Windows if TCP heuristics is ON. To turn it off, go to registry

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters\EnableWsd and set it to 0.

or run command

% netsh int tcp set heuristics disabled

See here: http://social.technet.microsoft.com/Forums/en/w7itpronetworking/thread/5baff76a-be80-4e4d-a28e-e251dc5c5043

Wednesday, March 6, 2013

Wireshark

Wireshark on VirtualBox 4.0 cannot capture packet, see here for how to fix it:
https://forums.virtualbox.org/viewtopic.php?f=6&t=41831&start=0