Router MTU

Status
Not open for further replies.

llee

Golden Member
Oct 27, 2009
1,152
0
76
Why is it that configuring a router's MTU settings from automatic 1500 to a manual setting that's lower e.g. 1400 will solve VPN issues, connectivity problems, etc. Does the packet size really matter that much?
 

Crusty

Lifer
Sep 30, 2001
12,684
2
81
You will get much better answers in the networking forum as this isn't really all that highly technical.

The root of the problem you are describing is that a VPN will encapsulate your data packet so it can provide it's own security measures. When you do that you have to increase your packet size to accommodate the new header information.

Anytime you try to send a packet that is larger than your MTU you have to break it up into multiple frames so that it can be passed along the network. So if you force your packets to have a frame size much lower than 1500 then when the VPN encapsulates the packet you are still below 1500 and can send the packet along unharmed.

Why is breaking packets up bad? It causes excessive CPU/Memory usage and in the case of a VPN the overhead increases as well. If a packet has to be split up so it can fit inside the MTU size you are having to duplicate the IP headers/VPN headers which creates extra data to send, so you lower the amount of actual data you can send because you have more overhead.
 

Elias824

Golden Member
Mar 13, 2007
1,100
0
76
You will get much better answers in the networking forum as this isn't really all that highly technical.

The root of the problem you are describing is that a VPN will encapsulate your data packet so it can provide it's own security measures. When you do that you have to increase your packet size to accommodate the new header information.

Anytime you try to send a packet that is larger than your MTU you have to break it up into multiple frames so that it can be passed along the network. So if you force your packets to have a frame size much lower than 1500 then when the VPN encapsulates the packet you are still below 1500 and can send the packet along unharmed.

Why is breaking packets up bad? It causes excessive CPU/Memory usage and in the case of a VPN the overhead increases as well. If a packet has to be split up so it can fit inside the MTU size you are having to duplicate the IP headers/VPN headers which creates extra data to send, so you lower the amount of actual data you can send because you have more overhead.

That makes sence to me, but why would the OP think a smaller MTU was better for VPN, since a smaller MTU would result in more packet splits
 

Mark R

Diamond Member
Oct 9, 1999
8,513
16
81
Because VPN packets need to be tunnelled/encapsulated and the encapsulation takes space. If the MTU of your public network (e.g. Internet) is 1500, then your private packets on your VPN must be smaller, so that they do not have to be fragmented once the baggage of the encapsulation is added.

This wiuld normally be done by the VPN client/server.
 

extra

Golden Member
Dec 18, 1999
1,947
7
81
You're probably on a PPPoE connection and have a router that screws up and sets the MTU to 1500 anyway...lot of (at least some older, popularly used ones) Linksys ones did that. RV016, RV082, etc. Manual 1492, and good times.
 
Status
Not open for further replies.