I have been suffering from slow internet connection and frequent timeout when accessing the internet. This all happened after I changed my Wifi router.
And the solution, change the MTU to a lower value that matches the Wifi router to avoid framenting of the IP packets. I don't know the underlying principles but it works out for me and that's great.
Below link to the article I read,
http://news.zdnet.co.uk/communications/0,1000000085,2123537,00.htm
Basic steps being,
1. use DOS command 'ping -f -l 1500 192.168.1.1' to figure out the maximum packet size your router supports. Change the IP address to the gateway address of your router; reduce or increase the number after '-l' to find out the max package size that could be used. When framenting happens, you will see the following line in the ping output,
Pinging 192.168.1.1 with 1500 bytes of data:
Packet needs to be fragmented but DF set.
Packet needs to be fragmented but DF set.
Packet needs to be fragmented but DF set.
Packet needs to be fragmented but DF set.
Ping statistics for 192.168.1.1:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
2. Change the MTU to the max packet size you have found, in my case, this is 1472 which is smaller than than the Windows default and caused fragmenting. You need to modify the registry. Below the key you need to modify (in my case, I have to create it myself)
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{interface ID}\MTU
It's a DWORD type field. When you modify the value, make use you have selected to input the value in Decimal number format.
And, that's it. I am now happily surfing the internet.
And the solution, change the MTU to a lower value that matches the Wifi router to avoid framenting of the IP packets. I don't know the underlying principles but it works out for me and that's great.
Below link to the article I read,
http://news.zdnet.co.uk/communications/0,1000000085,2123537,00.htm
Basic steps being,
1. use DOS command 'ping -f -l 1500 192.168.1.1' to figure out the maximum packet size your router supports. Change the IP address to the gateway address of your router; reduce or increase the number after '-l' to find out the max package size that could be used. When framenting happens, you will see the following line in the ping output,
Pinging 192.168.1.1 with 1500 bytes of data:
Packet needs to be fragmented but DF set.
Packet needs to be fragmented but DF set.
Packet needs to be fragmented but DF set.
Packet needs to be fragmented but DF set.
Ping statistics for 192.168.1.1:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),
2. Change the MTU to the max packet size you have found, in my case, this is 1472 which is smaller than than the Windows default and caused fragmenting. You need to modify the registry. Below the key you need to modify (in my case, I have to create it myself)
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters\Interfaces\{interface ID}\MTU
It's a DWORD type field. When you modify the value, make use you have selected to input the value in Decimal number format.
And, that's it. I am now happily surfing the internet.
Comments
So, your "MTU" is actually 1472+28 = 1500: which is a typical Ethernet packet size.
But, assuming you are "serving the net", you shouldn't just measure the MTU to your router. You should ping those sites that you visited most to see if any nodes out there with MTU smaller than 1500.
Just my 0.02. Cheers~