-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The MTU of interface eth0-1 is too small (1496) to handle the transport of batman-adv packets #898
Comments
There's some discussion on this here:
and
In my opinion we should reduce all the MTU of all the wireless interfaces so that no package (received from the clients) will ever be larger than 1496. Now the MTU of wireless interfaces is set to 1536 so that the incoming packages will be 1532 I suppose? I'm not sure on this at all @G10h4ck @dangowrt Decreasing the MTU would cause Batman-adv complain more but should decrease fragmentation. |
@spiccinini do you think the proposed "solution" (to decrease the MTU of the wireless interfaces) would decrease fragmentation and improve performances? Or would it just remove the warning message without actually doing any good? Can anyone test this in a virtual environment? @germanferrero |
the MTU is already lowered down on clients to 1350, not all clients obey that directive but most do. the ones that don't, would also not obey a "hard" lower MTU on wireless interfaces. and a "hard" lower MTU on wireless interfaces breaks clients which can't do proper MTU discovery (very common on ipv4) |
so, in a nutshell, even if "in theory" a lower mtu in router interfaces would be the "right" thing to do, in practice it creates hard to debug problems that are also impossible to fix (due to buggy code in clients). so we resorted to the current design. |
Let's close this. |
console print MTU is small:
[ 31.376438] batman_adv: bat0: No MLD Querier present - multicast optimizations disabled
[ 32.175666] batman_adv: bat0: Adding interface: eth0-1_279
[ 32.181394] batman_adv: bat0: The MTU of interface eth0-1_279 is too small (1496) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1532 would solve the problem.
[ 32.206725] batman_adv: bat0: Interface activated: eth0-1_279
[ 32.256983] batman_adv: bat0: Adding interface: eth0_279
[ 32.262527] batman_adv: bat0: The MTU of interface eth0_279 is too small (1496) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1532 would solve the problem.
[ 32.287672] batman_adv: bat0: Interface activated: eth0_279
[ 32.543731] batman_adv: bat0: Adding interface: eth0-2_279
[ 32.549473] batman_adv: bat0: The MTU of interface eth0-2_279 is too small (1496) to handle the transport of batman-adv packets. Packets going over this interface will be fragmented on layer2 which could impact the performance. Setting the MTU to 1532 would solve the problem.
[ 32.574698] batman_adv: bat0: Interface activated: eth0-2_279
The text was updated successfully, but these errors were encountered: