2

I have a chain of devices connected to the Internet:

  1. Draytek 2120n-plus Fibre router in a Metal Shed - Internet connection
  2. TP-Link AV500 Powerline Adapter
  3. Draytek 2760 VDSL Router, used as Wireless Hub
  4. Linksys SPA2102 VOIP router

These devices are linked up without any special settings that I can remember. The VOIP router is configured according to my VOIP providers guide: http://blog.2talk.co.nz/spa2102.html

Generally, when computers are connected to 1. or 3. through Wifi they work very well. However on 3. I found that browsing, Skype, SSH sessions and any other application regularly "stall". No data seems to be flowing for about 30-90 seconds after which everything is back to normal. This happens every 10 minutes or so.

To troubleshoot this I reduced the MTU on 3. to 1300. This seems to have fixed the stalling problem, however I can now no longer use the VOIP device, I get no dial tone, nor any ringing out.

An Internet search indicates that there is no MTU setting in the SPA 2102 router.

I could also not find any MTU size for Ethernet over Powerline, so I presume this runs on an MTU of 1500?

How would I determine what an appropriate MTU is, I guess it should be 1492, but obviously I also want to eliminate the stalling

Some information on further network devices:

    1. has a simple switch connected with 1-2 computers and a printer, however the switch is not in between 1. and 2.
    1. has usually 2 mobile phones connected by Wifi and sometimes another 2 computers.
jdog
  • 111
  • 4
  • 28
  • 1
    I noticed something similar in my Internet connection. Since I moved from ADSL to Internet "through air", ssh sessions inside vpn connection would stall, and practically anything with a bit of load. It seems certain devices add a bigger payload which ends up having a 1500 default MTU an excessive value. I'm not a networking guy, but I did something like you, adjust the tun interface (for the vpn) to 1390, which seemed to give me the best compromise because If I lowered it too much I would have connection issues to some services too. Good Luck, hope a networking expert tell us about moew ofthis – ezra-s Dec 29 '16 at 08:57
  • Just that little raise fixed the issue. But interested in learning why as well – jdog Dec 29 '16 at 09:27
  • Which device is the DHCP server? How precisely is the SPA2102 connected? – David Schwartz Dec 29 '16 at 11:47
  • Both 1. And 3. Are configured as DHCP servers. Spa2102 is connected to an Ethernet port on LAN on 3. – jdog Dec 29 '16 at 17:51
  • MTU can be the cause of interesting problems, but I am not totally convinced this is an MTU problem. Do you have anywhere you can do packet traces? – Law29 Aug 26 '18 at 13:10
  • Yes, can run wireshark on windows 10 or anything else – jdog Aug 26 '18 at 22:15
  • Can you ping 3 using ping -l ? If so you can walk up the size until you get fragmentation in the ping responses. That should tell you at least the optimal mtu for #3. – frontsidebus Aug 27 '18 at 18:03

2 Answers2

3

I do not think this is an MTU problem. MTU problems are usually not intermittent, as the problem you describe seems to be. MTU problems are noticed when existing sessions stop working at usually the same point, such as when getting an image. Wireshark will show that DNS mostly works and that TCP sessions (HTTPS for example) get connected and then start timing out -- but every single time, not every ten minutes.

To test for an MTU problem, you can use a simple ping HOST -f -l SIZE, described here in detail by TP-Link. Note that the number used by the Windows ping is the payload, and that headers are 28 bytes, so an MTU of 1500 corresponds to a successful ping -f -l 1472. Testing should not only be toward the tp-link host as suggested, but between a computer connected to your device 1 and another connected to your device 3. Your internal pings should be OK at 1472, and maybe even to the Internet, but if it is less toward the Internet it is not a problem.

Once you have your pings set up (I suggest 1-to-Internet and 1-to-3), keep them pinging each second (add -t to the command line), and wait for the interruption to occur to see what happens.

  • You may run Wireshark to check whether packets are arriving or not.
  • You may run small-sized pings to check once again that it is not an MTU problem (if you run both a small-size ping and a 1472-byte ping, and only the big one stops, then OK, it's an intermittent MTU problem, but again, I don't think that will be it).

So if it's not MTU, what can it be? I suspect either a rogue device that is taking over one of your internal IPs, or a problem with the PowerLine adapter, maybe due to some electrical device that causes a problem every ten minutes or so, and which forces the adapters to re-synchronize. My crystal ball is not perfect, though!

I'm not really answering your question, but this was too long for a comment, and hopefully it will help you find your problem.

Law29
  • 3,507
  • 1
  • 15
  • 28
  • Thank you. I am also working with local Draytek support on this in parallel. We have isolated the problem to the Wifi of adapter 1 and it has improved, but not resolved with using different Wifi channels. I will try out your ping approach and report back. Thank you for your efforts – jdog Aug 27 '18 at 22:07
1

This turned out to be a problem of Wifi congestion.

Firstly, with help of Draytek support, I narrowed down the problem to the device and connection method:

  • computer cable to device 3 worked
  • computer cable to device 1 worked
  • wifi to device 3, with device 3 directly cabled to device 1 did not work.

As the next step we tried different Wifi channels on Device 3 wifi, specifically CHannel 1 and 11 have less overlaps with other channels. This improved the problem to some degree, but not eliminated it.

I also analysed the signal strength of surrounding Wifi access points with an Android tool: Wifi Analyzer

This confirmed that there are a lot of Wifi access points around and that Channels 1 and 11 were somewhat better.

Wifi Signals around where my computer sits

To resolve these issues I found a 802.11ac dual band router I had lying around (2.4Ghz and 5Ghz) and use this now as a new access point. I also had to buy a 5Ghz Wifi usb dongle for my laptop.

jdog
  • 111
  • 4
  • 28