CAKE w/ Adaptive Bandwidth [October 2021 to September 2022]

A glitch like buffering? Or something else?

Yes, it is buffering. Since I used the network for family, so increased to 50% with that quality ISP would have better experiences.

You might be able to get somewhat more bandwidth by increasing your delay trigger:

Perhaps something like 20ms as there's evidently a lot of noise in the 15ms range.

2 Likes

thank you for the advices.

qdisc cake 8011: dev ifb4eth1 root refcnt 2 bandwidth 40219Kbit besteffort dual-dsthost nat wash ingress no-ack-filter split-gso rtt 50ms noatm overhead 44 mpu 68

do i need to changes in sqm rtt 50 to 100 or 150 ms?

I don't think so, just change in the script the trigger level to 20 or maybe 22 ms

1 Like

@malikshi Eager to see how the trigger level change worked out for you whenever you have some updated stats! :slight_smile:

1 Like

If we were to use NTP with a vendor pool, that would still require us to get the pool.ntp.org operators to agree to let us hammer their servers more right?

Had a look on my own box and that luarocks cache looks to just store the index for the repository, which will only be updated when you try to install/update a package AFAIK. So I think we're good there : )

2 Likes

I think the idea is whoever joins the autorate pool would do so with the understanding that they'll be getting frequent pings.

The biggest objection to using NTP IMHO is that it's trivial to have the end user say. "nah let's switch to us.pool.ntp.org I'm in the us after all" and then someone is hammering the wrong pool. If the protocol and servers are totally separate then it's not possible to abuse the time infrastructure.

hello, i installed autorate and my tmp file gives me this, is this normal? I also don't see the created interface (veth, ibf4) am I missing a few things? However, I have no error message when installing

Starting sqm-autorate.lua v0.4.3
[WARN - 20220112T16:59:42]: Rx stats file not yet available. Will retry again in 5 seconds. (Attempt 1 of 12)
[WARN - 20220112T16:59:47]: Rx stats file not yet available. Will retry again in 5 seconds. (Attempt 2 of 12)
[WARN - 20220112T16:59:52]: Rx stats file not yet available. Will retry again in 5 seconds. (Attempt 3 of 12)
[WARN - 20220112T16:59:57]: Rx stats file not yet available. Will retry again in 5 seconds. (Attempt 4 of 12)
[WARN - 20220112T17:00:02]: Rx stats file not yet available. Will retry again in 5 seconds. (Attempt 5 of 12)
[WARN - 20220112T17:00:07]: Rx stats file not yet available. Will retry again in 5 seconds. (Attempt 6 of 12)
[WARN - 20220112T17:00:12]: Rx stats file not yet available. Will retry again in 5 seconds. (Attempt 7 of 12)
[WARN - 20220112T17:00:17]: Rx stats file not yet available. Will retry again in 5 seconds. (Attempt 8 of 12)
[WARN - 20220112T17:00:22]: Rx stats file not yet available. Will retry again in 5 seconds. (Attempt 9 of 12)
[WARN - 20220112T17:00:27]: Rx stats file not yet available. Will retry again in 5 seconds. (Attempt 10 of 12)
[WARN - 20220112T17:00:32]: Rx stats file not yet available. Will retry again in 5 seconds. (Attempt 11 of 12)
[WARN - 20220112T17:00:37]: Rx stats file not yet available. Will retry again in 5 seconds. (Attempt 12 of 12)
[FATAL - 20220112T17:00:42]: Could not open stats file: /sys/class/net/ifb4wan/statistics/tx_bytes

Here is my freshly downloaded sqm auorate file, I am missing 2 lines, right?

config network
        option upload_interface 'wan'
        option download_interface 'ifb4wan'
        option upload_base_kbits '27000'
        option download_base_kbits '65000'
        option upload_min_percent '20'
        option download_min_percent '20'

config output
        option log_level 'INFO'
        option stats_file '/tmp/sqm-autorate.csv'
        option speed_hist_file '/tmp/sqm-speedhist.csv'

To run autorate you should run SQM with a single instance on WAN and speed values for upload and download... It will then create the ifb4wan

according to the procedure I must have 4 entry modified

When the setup script completes, edit the config file /etc/config/sqm-autorate to set:

  • transmit_kbits_base to the "nominal" upload speed that your connection provides on a good day
  • receive_kbits_base to the "nominal" download speed
  • transmit_kbits_min to the lowest upload rate you would accept when controllling bufferbloat
  • receive_kbits_min to the lowest acceptable download rate.

Aha, sorry it looks like our instructions are out of date. We changed some settings recently. Your config file is fine

ok thank you...

what does a single instance mean I don't understand run SQM with a single instance on WAN

You can have SQM on wan, on veth, on second wan etc. But our script only looks at ONE interface.

I only have one sqm instance, wan (eth1), however I have no additional interface created, neither veth nor ifb4

1 Like

Make sure you set a speed for upload and download in your SQM settings

Also @_FailSafe should these be eth1 and ifb4eth1 for him?

yes I of course set my maximum up and down speed according to Speedtest, I didn’t reduce the bandwidth speeds by 20%, I imagine the script will do it ..