• Notice regarding image hosts and attachments. See here.

Internet Speed Degradation

Soldato
Joined
29 Jul 2010
Posts
24,530
Location
Lincs
The internet has been playing up again this morning, 1500+ ping and 0.5mb dl. Plusnet have run their tests and everything is fine on the line and after trying some things it looks like the problem is internal.

Setup is :-
Plusnet router has 2 things plugged into it 1) Primary mesh point 2) Netgear 8 port 10/100 FS608 v3 switch

Netgear switch has 7 other cables plugged into it. 4 are local, 2 PCs, printer and CCTV the other 2 go to other switches around the house and 1 outside to switch in a static caravan, all with various things plugged into them.

So if I unplug everything and put main PC into router, internet is back to normal, 16 ping and 22mb dl. So I thought that’s an easy troubleshoot, plug every other cable in 1 at a time and when internet craters, that one is the issue.

But strangely that hasn't happened, but what has happened is every time I plugged a cable back in, the internet got slightly worse each time. So ping went from 16 -> 35 -> 62 -> 89 -> 120 etc etc (not exact numbers) and speed showed a corresponding drop of 1-2mb a time.

So with everything plugged back in again now I'm currently at 233 ping and 14mb dl. Still a lot better than when I got up this morning, but noticeably slow and laggy.

The Netgear switch is ancient, would that be the culprit? I don't know if they would just get progressively worse like this or just stop working altogether if its faulty?
 
10/100 Mbps switch is ancient, but it shouldn't cause what you're observing. It might though, depends on how clients are negotiating with it. Do you have any switches in a loop? If so that would cause havoc.

For the sake of £10 or whatever a dumb 1 Gbps switch costs I would 'switch' it out and see if it changes anything.
 
10/100 Mbps switch is ancient, but it shouldn't cause what you're observing. It might though, depends on how clients are negotiating with it. Do you have any switches in a loop? If so that would cause havoc.

I don't think so....afaik the cables going from this first switch all only go to other netgear or TP link switches which then either just extend cabling or have their own end point equipment plugged into them.

In the whole network there are 3 other netgear "switches" (1 x GS308 v3 + 2 x Netgear WNDR3700 v2 that I have downgraded to work as a dumb switch), 1 TP link smart switch (TL-SG105E) and a Linksys Wireless-G Access Point.

Yes it's all cobbled together a bit Heath Robinson style!

For the sake of £10 or whatever a dumb 1 Gbps switch costs I would 'switch' it out and see if it changes anything.

Any recommendations?

Is the Netgear GS308 I've got any good, I could swap that for the FS608 for now
 
I've ordered a couple of new 1Gbps switches anyway but I think I might have tracked it down to the Linksys WAP. Taking that out of the network and things seem to be steady and ok, rather than intermittently laggy and slow.

When the new switches come I'll swap out one of the WNDR3700's and turn that into a WAP to replace the Linksys and see what happens.
 
Sounds like the network is pushing up against a packet/traffic switching limit. The network could probably be optimised by balancing the device per port or with a router upgrade that can handle more traffic per port.

Edit: You also potentially use the managed switch to handle traffic shaping and switching.
 
Last edited:
So it wasn't the Linksys WAP and even after replacing the new switches the network has been behaving the same.

So my partners SiL is over who is head of AI in a cyber security firm and he got Claude to test the network. It found a couple of critical issues, the main one being bufferbloat, which seems to be causing the whole network lag?

So I've found and run the Bufferbloat speedtest and it seems to confirm that, with the main jam being with the uploads. Our internet here is 24/1 at best with effectively 2 families running off it.

The recommended solution seems to be get a SQM router and use the Plusnet Hub 2 in bridging mode (the Hub 2 doesn't even have QoS).

Can anyone recommend a cheap and cheerful SQM router? I'm hoping in the next year or so to maybe be able to get FTTP, as Openreach are supposedly upgrading around here - whether it comes to our house is yet to be determined. So something cheap to a) see if it works and b) only needs to be man enough to cope with our slow internet atm.

Google recommendation seems to say a second hand Linksys WRT1900ACS would do the job running OpenWRT? This is all new terminology to me, did some reading up on it last night, but I'm confident enough to install and configure something like that following instructions, but if there's something easier to use I'm all ears.
 
Last edited:
Oh, baby. You're in my wheelhouse now. :cool: I have a... relationship... with SQM and bufferbloat lol. It's my little niche. Your WAN is so asymmetric that your ACKs are choked, and it's causing you issues. I would indeed highly recommend OpenWRT for this in your case, though it's going to take you a little bit of hassle at first (to flash and install it).

You want to install the sqm scripts, then enable CAKE or fq_codel and set the cap at 90% of whatever you get on speedtest without any shaper active. So in your case you might end up with a shaper limit of ~21,600 down and ~900 up. That will kill your bufferbloat stone dead. That said, you mention you're only seeing a fraction on your ingress (download) already. Are we sure the line itself isn't faulty? What's the actual product and stats for your connection?

On an unrelated note, that was nice of your SiL but lol at using Claude to diagnose the network. When you're a hammer, every screw is a nail I suppose. :D
 
Thanks @Rainmaker

I don't think there's a particular fault with the line as this problem happens intermittently but regularly and the last time in a full blown grind to a stop I was on the phone to plusnet and the line tested fine. I'll give this a go and keep my fingers crossed it's the solution.
 
Have you ruled out other users using all the bandwidth ? 24/1 is not a lot of bandwidth to share amongst two families. It wouldn't take a lot of different streams to max that out for example let alone download large file etc.
 
Last edited:
Yikes, anytime something phones home to check for updates etc it could bring the whole thing to it's knees.

Can you get a 4G or 5G mobile signal where you live because despite the issues I have from time to time with 4G it could be a game changer for you until you can get fibre.
 
Well I've got the new router installed and flashed with OpenWRT, SQM installed and configured and first impressions are.....great!

Have run the bufferbloat speedtest and the rating has gone from C & D previously to A & A+ and I've just tested by dling a large file to saturate the line and the internet still works perfectly :)

Will keep checking over the next few days, but fingers crossed that has solved the issue.
 
Well I've got the new router installed and flashed with OpenWRT, SQM installed and configured and first impressions are.....great!

Have run the bufferbloat speedtest and the rating has gone from C & D previously to A & A+ and I've just tested by dling a large file to saturate the line and the internet still works perfectly :)

Will keep checking over the next few days, but fingers crossed that has solved the issue.
What's your current config? You can find it with cat /etc/config/sqm
 
Last edited:
What's your current config? You can find it with cat /etc/config/sqm

I did just have to google to understand what you meant and how to do that! :D (I am a complete amateur at all this)

config queue 'eth1'
option enabled '1'
option interface 'pppoe-wan'
option download '19000'
option upload '900'
option qdisc 'cake'
option script 'piece_of_cake.qos'
option linklayer 'ethernet'
option use_mq '0'
option debug_logging '0'
option verbosity '5'
option overhead '34'

I did run some speed tests and real world today we seemed to be getting 14-15Mbps down and 0.8 up , but I set it at under 90% of our theoretical max of 23-24 and 1 up.

Like I say, I'll keep an eye on it and maybe play around with the speed settings to see if there's any differences.
 
I did just have to google to understand what you meant and how to do that! :D (I am a complete amateur at all this)



I did run some speed tests and real world today we seemed to be getting 14-15Mbps down and 0.8 up , but I set it at under 90% of our theoretical max of 23-24 and 1 up.

Like I say, I'll keep an eye on it and maybe play around with the speed settings to see if there's any differences.
That's a huge improvement already! Going from C/D to A+ will be a night-and-day difference for usability. Looking at your config, though, it seems you're leaving a fair bit of bandwidth on the table. Setting download to 19,000 on a ~24M line is restricting you to ~80% of your available goodput (speed). Also, on a tiny 1 Mbps upload pipe, TCP ACKs from regular downloading (even a web page) will easily choke your upload and drag everything down.

First, check your DSL modem page to see your actual sync rate (e.g. 23,000 / 1,000). You want SQM set to roughly 90–95% of that sync rate. Assuming a 24 Mbps / 1 Mbps sync, try updating your config.

Back up your current config with cp /etc/config/sqm /etc/config/sqm.bak.

If you prefer using the command line (which, tbh, is better once you get used to it), copy this in, as one block in one go:

Code:
<see later posts for improved config>

Then. once you've done that enter /etc/init.d/sqm restart.

If you're doing it in the webUI instead, set the Link Layer to PTM (bridged, PPPoE), which sets overhead to 26 and MPU to 64 automatically, and add ack-filter under Advanced Egress options. Once you've applied those settings, give it a test on Waveform's bufferbloat test. The ack-filter addition alone will keep your upload clear and free up the ingress (download) pipe for better usability and responsiveness.

Edit: Changed the config to make it easier for you, hopefully.
 
Last edited:
  • Like
Reactions: Kol
Thanks @Rainmaker that advice is really appreciated. I am using the WebUI and I'll have a go tomorrow with updating all those settings :)
Cool mate, have fun with it. Deffo change your mpu and overhead though, as incorrect values will screw up your line and your Internet 'experience'/feel. That ack-filter is the magic you need on that line, 100%. With only 1Mbps up you're going to choke otherwise. With the config above, you should see a big uplift again. Let us know how you get on. :)
 
Cool mate, have fun with it. Deffo change your mpu and overhead though, as incorrect values will screw up your line and your Internet 'experience'/feel. That ack-filter is the magic you need on that line, 100%. With only 1Mbps up you're going to choke otherwise. With the config above, you should see a big uplift again. Let us know how you get on. :)

I've had to dig around in the technical logs of the Plusnet Hub 2 to find the line sync speeds (as they don't show in the OpenWRT router or openly the Hub 2 in bridge mode) and it says
Data rate : 1.193 / 24.806
Max data rate : 1.193 / 26.400

So I've updated the SQM speeds to 90% of the normal data rate to 22300 / 1000 now.

There are 3 tabs on the SQM page - Basic Settings / Queue Discipline / Link Layer Adaptation

In the Link Layer Adaptation tab, the first option is Link Layer. I don’t have the option of PTM (bridged,pppoe) - I just have
Ethernet with overhead : select for VDSL2 (which I've chosen)
ATM : Select for ADSL1, ADSL2, ADSL2+ etc

I'm on FTTC which google said the VDSL2 option was the one to choose.

I've now changed the Per Packet Overhead to 26

Then I've ticked the Advanced Linklayer box and it opens up :

Maximum packet size : it's set to 2047

Rate table size : it's set to 128

Minimum packet size : it's set to 0, is this what I change to 64 (mpu?)

Then I just have Linklayer adaptaion mechanism : which is set to default. The other options are cake / htb_private / tc_stab. I don't see anything for ingress or egress options.

On the Queue discipline tab there are options for ECN (ingress) and ECN (egress) but the options are only ECN (default) - which is selected for the ingress and NOECN (default) which is selected for the egress.

I can't see anything about 'wash' and 'ack-filter wash'

Edit :

Trying it, things don't seem as snappy, so I've reverted back to 900 on upload (left download) and reset overhead to 34 and minimum to 0 and it seems snappier again.

probably should have only changed things back 1 at a time!
 
Last edited:
Ah OK. OpenWRT has changed a little since I last used it. I've just RTFM and you'll want to stick with the Ethernet with overhead option if you're configuring it through LUCi (webUI) with overhead 34. You should have a box (or tick-box to enable a box) called Advanced options. In that, you can write:

For ingress (download):
nat dual-dsthost ingress wash besteffort mpu 68

For egress (upload):
nonat dual-srchost nowash ack-filter-aggressive diffserv4 mpu 68

And see how that feels. Have a play and do some actual testing (Flent RRUL, LibreQoS test).

Edit: If you want to make it easier you can just set it direct in /etc/config/sqm as I said, using the terminal:

Bash:
cat << 'EOF' > /etc/config/sqm
config queue 'eth1'
    option enabled '1'
    option interface 'pppoe-wan'
    option download '22300'
    option upload '875'
    option qdisc 'cake'
    option script 'piece_of_cake.qos'
    option linklayer 'ptm'
    option overhead '34'
    option mpu '68'
    option advanced '1'
    option ingress_options 'nat dual-dsthost ingress wash besteffort'
    option egress_options 'nonat dual-srchost ack-filter-aggressive nowash diffserv4'
EOF

Then restart SQM with /etc/init.d/sqm restart.

Edit: If you're sticking to the webUI you should be able to enter those extra options under the Queue Discipline tab. Enable "Show and Use Advanced Configuration", and write the two lines (for egress and ingress) in the appropriate box under "Advanced option strings" or similar. I've used VyOS for years and write the tc commands direct to the kernel, so I'm going from memory and a quick search for OpenWRT's GUI here — you should be able to find it following this though.
@Freakbro I'm actively labbing this out for you so I've made a couple of further tweaks. Make sure you check you're using the latest ones (switched to ack-filter-aggressive and tweaked down the speeds). Give it a try!
 
Last edited:
Back
Top Bottom