Kitz ADSL Broadband Information
adsl spacer  
Support this site
Home Broadband ISPs Tech Routers Wiki Forum
 
     
   Compare ISP   Rate your ISP
   Glossary   Glossary
 
Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1] 2

Author Topic: Help getting MTU 1500 working with openwrt  (Read 6215 times)

Pauljbl

  • Member
  • **
  • Posts: 73
Help getting MTU 1500 working with openwrt
« on: August 15, 2019, 09:54:10 PM »

I have a hg612 modem in bridge mode I did telnet in to it and did a if config and it says the ptm interface has a MTU of 1500 is this correct or should it be 1508

I have done ping tests and get fragmented packets over 1492 MTU
I have set the router wan interface to 1508 in the GUI in openwrt
Logged

Alex Atkin UK

  • Addicted Kitizen
  • *****
  • Posts: 5281
    • Thinkbroadband Quality Monitors
Re: Help getting MTU 1500 working with openwrt
« Reply #1 on: August 15, 2019, 10:12:56 PM »

It always said 1500 on mine too but somehow it seemed to "just work" on pfSense.

I know it must have worked because when I switched to my current modems I HAD to use the patched firmware to get the same setup to work there.
Logged
Broadband: Zen Full Fibre 900 + Three 5G Routers: pfSense (Intel N100) + Huawei CPE Pro 2 H122-373 WiFi: Zyxel NWA210AX
Switches: Netgear MS510TXUP, Netgear MS510TXPP, Netgear GS110EMX My Broadband History & Ping Monitors

d2d4j

  • Kitizen
  • ****
  • Posts: 1103
Re: Help getting MTU 1500 working with openwrt
« Reply #2 on: August 15, 2019, 10:13:11 PM »

Hi

Ask your dsl provider if they support 1500

Given your post it looks unlikely or your pc is not 1500

Many thanks

John
Logged

Pauljbl

  • Member
  • **
  • Posts: 73
Re: Help getting MTU 1500 working with openwrt
« Reply #3 on: August 15, 2019, 11:03:07 PM »

Is there a way to find out if my ISP supports 1500
Logged

Weaver

  • Senior Kitizen
  • ******
  • Posts: 11459
  • Retd s/w dev; A&A; 4x7km ADSL2 lines; Firebrick
Re: Help getting MTU 1500 working with openwrt
« Reply #4 on: August 16, 2019, 12:04:24 AM »

There is an MTU test for ISPs (IPv4 only iirc, despite what it says) which is excellent but has bugs in it so read the cautionary tale at https://forum.kitz.co.uk/index.php/topic,22654.msg385812.html#msg385812

This test will only report MTU=whatever if everything in the chain supports at least that MTU, so that is switches, router, modem and the isp.

One example of where the isp matters : the old BT20CN network for ADSL when used with PPPoEoA won’t let you do MTU 1500+8=1508, even if all the kit is good. (But would be fine with 21CN ADSL exchanges or with PPPoA on the dsl side. In the latter case, in a separate-modem, two-box setup, you would need a PPPoEoE-to-PPPoA protocol-converting Draytek Vigor 130 modem which presents PPPoA not PPPoEoA on the ADSL side and that doesn’t upset BT and Openreach’s old 20cn kit.) Any ISP who uses BT20CN for ADSL will be restricted by BT’s max MTU of IP 1492+8 = 1500 PPP MTU.
Logged

Pauljbl

  • Member
  • **
  • Posts: 73
Re: Help getting MTU 1500 working with openwrt
« Reply #5 on: August 16, 2019, 04:14:01 PM »

Yes I tried that test and it said I had a MTU of 1492.
Wondered if it is my ISP or something not set right
Logged

Weaver

  • Senior Kitizen
  • ******
  • Posts: 11459
  • Retd s/w dev; A&A; 4x7km ADSL2 lines; Firebrick
Re: Help getting MTU 1500 working with openwrt
« Reply #6 on: August 16, 2019, 06:07:50 PM »

Remind us of your isp and type of dsl link etc ?
Logged

burakkucat

  • Respected
  • Senior Kitizen
  • *
  • Posts: 38300
  • Over the Rainbow Bridge
    • The ELRepo Project
Re: Help getting MTU 1500 working with openwrt
« Reply #7 on: August 16, 2019, 06:25:56 PM »

In an attempt to add some clarity (and, hopefully, not confusing Pauljbl) I'll show exactly what that MTU testing site returns for my circuit. Please note that I, like Weaver, have an ADSL2 circuit, using PPPoA and my provider is TalkTalk.

My MTU is 1500.

Sending 32 bytes to W.X.Y.Z  <-  not fragmented

Sending 750 bytes to W.X.Y.Z  <-  not fragmented

Sending 1125 bytes to W.X.Y.Z  <-  not fragmented

Sending 1313 bytes to W.X.Y.Z  <-  not fragmented

Sending 1407 bytes to W.X.Y.Z  <-  not fragmented

Sending 1454 bytes to W.X.Y.Z  <-  not fragmented

Sending 1478 bytes to W.X.Y.Z  <-  FRAGMENTED!

Sending 1466 bytes to W.X.Y.Z  <-  not fragmented

Sending 1472 bytes to W.X.Y.Z  <-  not fragmented

Sending 1475 bytes to W.X.Y.Z  <-  FRAGMENTED!

Sending 1473 bytes to W.X.Y.Z  <-  FRAGMENTED!

Sending 1472 bytes to W.X.Y.Z  <-  not fragmented

From the tests we did, we can assume that 1472 bytes is the largest unfragmented packet
size. The MTU size would be 1500, made up from 1472 payload and 28 ICMP/IP Headers
and payload information.
The maximum MTU size for W.X.Y.Z is:    1500

NB: The Internet Protocol requires that hosts must be able to process IP datagrams of at least
576 bytes (for IPv4) or 1280 bytes (for IPv6)

Obviously I have globally replaced my IPv4 address with the string "W.X.Y.Z".
Logged
:cat:  100% Linux and, previously, Unix. Co-founder of the ELRepo Project.

Please consider making a donation to support the running of this site.

Pauljbl

  • Member
  • **
  • Posts: 73
Re: Help getting MTU 1500 working with openwrt
« Reply #8 on: August 16, 2019, 06:38:01 PM »

My ISP is Vodafone using pppoe
Its vdsl
Logged

Weaver

  • Senior Kitizen
  • ******
  • Posts: 11459
  • Retd s/w dev; A&A; 4x7km ADSL2 lines; Firebrick
Re: Help getting MTU 1500 working with openwrt
« Reply #9 on: August 18, 2019, 02:54:27 AM »

To our existing druids; does the fact that this is FTTC tell us anything about MTU? I presume not, because MTU could hypothetically be limited further upstream even if it is happily 1500 for IP PDUs, or even a lot more, at the MSAN.

I seem to remember rather a lot higher numbers being mentioned in respect of BT, for L2 various layers’ PDU sizes - the system has to be able to carry Ethernet including maybe two VLAN tags besides, plus yet more protocol bloat not mentioned too. BT I believe, but memory fails, has a healthy amount of room for additional protocol bloat acquired from lower layers on top of IP PDU MTU of 1500, rather more than the bare minimum iirc.

But Vodafone may well be completely different upstream. I don’t know what I’m talking about, but someone here will know.
Logged

j0hn

  • Kitizen
  • ****
  • Posts: 4098
Re: Help getting MTU 1500 working with openwrt
« Reply #10 on: August 18, 2019, 01:48:23 PM »

The HG612 does 1508 without any modifications.
The ifconfig displays 1500 for all interfaces but ignore this.

If you were being limited to 1492 MTU out to the wider internet I can see 2 possible reasons.
Vodafone don't support it, or your Openwrt router needs additional setup to support it.

Some Openwrt routers need multiple interfaces changed to allow this to work.

Which router are you using?
Logged
Talktalk FTTP 550/75 - Speedtest - BQM

Pauljbl

  • Member
  • **
  • Posts: 73
Re: Help getting MTU 1500 working with openwrt
« Reply #11 on: August 18, 2019, 02:30:01 PM »

Its a bthomehub 5 with openwrt installed on
I set the wan interface to 1508
Logged

j0hn

  • Kitizen
  • ****
  • Posts: 4098
Re: Help getting MTU 1500 working with openwrt
« Reply #12 on: August 18, 2019, 04:37:31 PM »

https://forum.kitz.co.uk/index.php/topic,23615.msg399210.html#msg399210

Quote
I was able to get 1500 MTU with my previous provider, John Lewis broadband but once I switched over to Vodafone, MTU is being clamped to 1492.

The issue might be a Vodafone limitation, but a few posts on Overclockers suggest 1508 MTU works on Vodafone.

Some Openwrt devices need different MTU's set on different interfaces but AFAIK the BT HH5a just needs 1508 MTU set in the WebUI.

Can you post the output of ifconfig on the HH5a?

What does http://www.letmecheck.it/mtu-test.php show (ipv6 needs disabled)?
Logged
Talktalk FTTP 550/75 - Speedtest - BQM

Pauljbl

  • Member
  • **
  • Posts: 73
Re: Help getting MTU 1500 working with openwrt
« Reply #13 on: August 18, 2019, 05:24:48 PM »

--------------------------------------------------
root@OpenWrt:~# ifconfig
br-lan    Link encap:Ethernet  HWaddr A0:1B:29:7A:25:7C
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fd6c:ba51:9b48::1/60 Scope:Global
          inet6 addr: fe80::a21b:29ff:fe7a:257c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3879453 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5509018 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:538528287 (513.5 MiB)  TX bytes:6894267979 (6.4 GiB)

eth0      Link encap:Ethernet  HWaddr 0E:94:C6:48:02:CD
          inet6 addr: fe80::c94:c6ff:fe48:2cd/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:33793865 errors:0 dropped:1 overruns:0 frame:0
          TX packets:30758793 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:664406380 (633.6 MiB)  TX bytes:2826047668 (2.6 GiB)

eth0.1    Link encap:Ethernet  HWaddr A0:1B:29:7A:25:7C
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2751945 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3662798 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:440648104 (420.2 MiB)  TX bytes:4274873858 (3.9 GiB)

eth0.2    Link encap:Ethernet  HWaddr 0E:94:C6:48:02:CD
          inet addr:192.168.2.2  Bcast:192.168.2.255  Mask:255.255.255.0
          inet6 addr: fe80::c94:c6ff:fe48:2cd/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:21648842 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12857135 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:27826648969 (25.9 GiB)  TX bytes:1900631500 (1.7 GiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:65536  Metric:1
          RX packets:32796 errors:0 dropped:0 overruns:0 frame:0
          TX packets:32796 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1
          RX bytes:2865175 (2.7 MiB)  TX bytes:2865175 (2.7 MiB)

pppoe-wan Link encap:Point-to-Point Protocol
          inet addr:90.246.217.38  P-t-P:212.158.250.41  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:21486887 errors:0 dropped:0 overruns:0 frame:0
          TX packets:12621925 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:27647108310 (25.7 GiB)  TX bytes:1614950661 (1.5 GiB)

wlan0     Link encap:Ethernet  HWaddr A0:1B:29:7A:25:7F
          inet6 addr: fe80::a21b:29ff:fe7a:257f/64 Scope:Link
          inet6 addr: fe80::a21b:29ff:fe7a:257f/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1168295 errors:0 dropped:0 overruns:0 frame:0
          TX packets:2392383 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:139132464 (132.6 MiB)  TX bytes:2847828835 (2.6 GiB)
Logged

j0hn

  • Kitizen
  • ****
  • Posts: 4098
Re: Help getting MTU 1500 working with openwrt
« Reply #14 on: August 18, 2019, 05:46:54 PM »

That's set to 1492.
The Eth0 interface needs to be 1508 and pppoe-wan needs to be 1500.

Try following this guide

https://forum.archive.openwrt.org/viewtopic.php?id=51326

Although I don't know if you need to set this part

Quote
Because eth0.1 (lan) and eth0.2 (wan) both inherit eth0's MTU we will want to explicitly set the LAN back to 1500.
Logged
Talktalk FTTP 550/75 - Speedtest - BQM
Pages: [1] 2
 

anything