Principle
What is meant by MTU, then, MTU is called Maximum Transmission Unit.
Simply put, the data we transmit over the network is a single packet, and the MTU is the maximum size of that packet. If we set the maximum packet size locally to be A, the router maximum to be B, and the telecom router maximum to be C, then the size relationship should be C=B=A.
Why is it that the MTU is greater than the B? That in the end set how much MTU good pinch, a simple test on the line
First of all, the router's MTU is set to the default (generally 1492 or 1500)
Then we began to test
Take Baidu as an example ping-l1472-f www.baidu.com
-l on behalf of us the PING ICMP packet size of 1472
-f represents forcing not to split packets
Well, if PING is normal, the response time XXMS and TTL, then we set the operator's MTU is larger than the 1472, if there is a need to split packets, but set the DF, which means that the operator's MTU is smaller than this number. Then we increase or decrease this value according to the situation, to what extent? To the size of the packet can be transmitted, that is to say, just can be transmitted does not need to split 1 point larger, must need to split the degree. General telecommunications router is 1464, but do not rush to set up 1464 data transmission or there is a packet header called information, generally 28 so the MTU is set to 1464 + 28 = 1492, well, the router's MTU is set to 1492 it.
But.... The local MTU is 1500 Oh, that is to say, your packet to your own router is still split, the following is the specific changes.
WIN7 user
Start-Run-cmd
Type
netshinterfaceipv4showsubinterfaces to see the MTU of each of your connections (usually 1500)
Then
netshinterfaceipv4setsubinterface "Connection name to be changed "mtu=your reasonable value store=persistent"
XP users
Press Win+R. key combination to bring up the "Run" menu, type regedit, and then enter;
Select "HKEY_Local_MachineSYSTEMC MachineSYSTEMCurrentControlSetServicesTcpipParametersinterface";
There may be a lot of items under the interface, you need to observe the key values one by one, there will be an item with your NIC IP consistent, check the item!
Then right click on the item, select "Edit New DWORD Value", and then name it "MTU" on the right side;
Right click on MTU, select "Modify", and in the pop-up dialog box, you can see a pop-up dialog box. "in the pop-up window, select "Decimal", and fill in the reasonable MTU value you came up with.
PS: test without going to ping seems to be for security denial of ICMP. So change the URL
ps2:Don't forget to set your router's MTU to a larger value before testing, don't let the router block your packets