CAKE w/ Adaptive Bandwidth

For safety I recommend a default hard minimum below which we know things will break, otherwise problems with getting the maximum correct might invalidate our attempt at keeping the minimum sane. I am making things up here obviously, but the goal would be for that Minimum to never/rarely trigger, we really just need tp avoid the throttle hard situation, because delays will not recover from that....

Fair, but I start seeing major issues far before I even get down to 1mbps.

We still should have a lowish forces event rate, so that we are sure we slowly converge back to the set rates if neither load not delay indicate urgent changes, no?

Hmm. I suspect this relates to the configurable parameters in the script, like how the baselines update or how much the download and upload rates are punished (maybe too much). Or bad choice of reflectors for your connection. Or something similar?

We could try to fix the shell script to work, but honestly I think it is worth that you guys get something that works in lua now since that seems the best way forward. We can then optimise that to work on multiple connections. I am happy to test to death on my connection. And maybe I can even contribute to lua since I can actually understand most of it.

I am really keen that multiple individuals work on the same thing. Going back to my very first post on this thread, a problem hitherto has been that too many individuals have been working on their own DIY hacks.

Cheesy graphic time. Now we can work as a team:

image

So the goal from my perspective is to pull everything good together into one solution for OpenWrt. One adaptive rate routine to rule them all. @moeller0 has convinced me that the CAKE was not half-baked. It just needed icing.

Or one of these:

image

Or maybe something else, since not everyone approves of alcohol.

Haha - 'Sherry' the OpenWrt adaptive rate script to complement CAKE.

1 Like

I am not opposed to:
a) setting a default to > 1 mbps (mind you for such low rates we might also need to automatically adjust the threshold parameter) as a single full MTU will hog the link for 1000*(1500*8)/(1000*1000) = 12 ms and we probably need to allow for ~2 packets before our probes.

b) keeping this still as a parameter users could modify, that is we need a default that avoids hard failure and beyond that user's can tune it if they feel like it.

1 Like

As mentioned in my thread Why you need at least 3Mbps upload to get good game performance with ~1500byte packets: Doing the math lots of latency sensitive stuff will start to break down below 3Mbps. On the other hand plenty of people have slower connections than that. So I don't think we can easily just select that as the minimum. However perhaps the lower of 3Mbps or 10% of max but not less than 200kbps ?

1 Like

Would you like to pull the Lua script back into your repo and have us collectively contribute to a "master" copy there via PRs? I am just trying to think of what will help continue good visibility of the scripts and promote participation.

1 Like

Something like that is exactly where my head was going with the "min as a percentage of max" I threw out there. You summed it up more concisely--thanks!

Happy to do this if others agree. Since I am a total GitHub novice could you advise on steps?

Will need to be in a few hours as have telecon to prepare for now.

I submitted 2 PRs, one a set of cleanups, and then a functionality PR to send a bunch of timestamp pings every 0.5 s, then wake up every 1/2 milliseconds to read the responses.

It appears to run correctly

rx_bytes_path: /sys/class/net/ifb4eth0/statistics/tx_bytes
tx_bytes_path: /sys/class/net/eth0/statistics/tx_bytes
Reflector IP: 9.9.9.9  |  Current time: 55300981  |  TX at: 55300975  |  RTT: 6  |  UL time: 2  |  DL time: 4
Reflector 9.9.9.9 up baseline = 2 down baseline = 4
Reflector 9.9.9.9 up recent = 2 down recent = 4
Reflector IP: 9.9.9.10  |  Current time: 55301510  |  TX at: 55301504  |  RTT: 6  |  UL time: 2  |  DL time: 4
Reflector 9.9.9.10 up baseline = 2 down baseline = 4
Reflector 9.9.9.10 up recent = 2 down recent = 4
Reflector IP: 149.112.112.10  |  Current time: 55302044  |  TX at: 55302037  |  RTT: 7  |  UL time: 1  |  DL time: 6
Reflector 149.112.112.10 up baseline = 1 down baseline = 6
Reflector 149.112.112.10 up recent = 1 down recent = 6
Reflector IP: 149.112.112.11  |  Current time: 55302573  |  TX at: 55302567  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 149.112.112.11 up baseline = 1 down baseline = 5
Reflector 149.112.112.11 up recent = 1 down recent = 5
Reflector IP: 149.112.112.112  |  Current time: 55303107  |  TX at: 55303100  |  RTT: 7  |  UL time: 2  |  DL time: 5
Reflector 149.112.112.112 up baseline = 2 down baseline = 5
Reflector 149.112.112.112 up recent = 2 down recent = 5
Reflector IP: 9.9.9.9  |  Current time: 55303636  |  TX at: 55303630  |  RTT: 6  |  UL time: 2  |  DL time: 4
Reflector 9.9.9.9 up baseline = 2 down baseline = 4
Reflector 9.9.9.9 up recent = 2 down recent = 4
Reflector IP: 9.9.9.10  |  Current time: 55304171  |  TX at: 55304164  |  RTT: 7  |  UL time: 2  |  DL time: 5
Reflector 9.9.9.10 up baseline = 2 down baseline = 4.1
Reflector 9.9.9.10 up recent = 2 down recent = 4.8
Reflector IP: 149.112.112.10  |  Current time: 55304701  |  TX at: 55304694  |  RTT: 7  |  UL time: 1  |  DL time: 6
Reflector 149.112.112.10 up baseline = 1 down baseline = 6
Reflector 149.112.112.10 up recent = 1 down recent = 6
Reflector IP: 149.112.112.11  |  Current time: 55305234  |  TX at: 55305228  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 149.112.112.11 up baseline = 1 down baseline = 5
Reflector 149.112.112.11 up recent = 1 down recent = 5
Reflector IP: 149.112.112.112  |  Current time: 55305768  |  TX at: 55305761  |  RTT: 7  |  UL time: 1  |  DL time: 6
Reflector 149.112.112.112 up baseline = 1.9 down baseline = 5.1
Reflector 149.112.112.112 up recent = 1.2 down recent = 5.8
Reflector IP: 9.9.9.9  |  Current time: 55306297  |  TX at: 55306290  |  RTT: 7  |  UL time: 2  |  DL time: 5
Reflector 9.9.9.9 up baseline = 2 down baseline = 4.1
Reflector 9.9.9.9 up recent = 2 down recent = 4.8
Reflector IP: 9.9.9.10  |  Current time: 55306830  |  TX at: 55306824  |  RTT: 6  |  UL time: 2  |  DL time: 4
Reflector 9.9.9.10 up baseline = 2 down baseline = 4.09
Reflector 9.9.9.10 up recent = 2 down recent = 4.16
Reflector IP: 149.112.112.10  |  Current time: 55307363  |  TX at: 55307357  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 149.112.112.10 up baseline = 1 down baseline = 5.9
Reflector 149.112.112.10 up recent = 1 down recent = 5.2
Reflector IP: 149.112.112.11  |  Current time: 55307897  |  TX at: 55307891  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 149.112.112.11 up baseline = 1 down baseline = 5
Reflector 149.112.112.11 up recent = 1 down recent = 5
Reflector IP: 149.112.112.112  |  Current time: 55308427  |  TX at: 55308421  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 149.112.112.112 up baseline = 1.81 down baseline = 5.09
Reflector 149.112.112.112 up recent = 1.04 down recent = 5.16
Reflector IP: 9.9.9.9  |  Current time: 55308962  |  TX at: 55308955  |  RTT: 7  |  UL time: 2  |  DL time: 5
Reflector 9.9.9.9 up baseline = 2 down baseline = 4.19
Reflector 9.9.9.9 up recent = 2 down recent = 4.96
Reflector IP: 9.9.9.10  |  Current time: 55309493  |  TX at: 55309485  |  RTT: 8  |  UL time: 3  |  DL time: 5
Reflector 9.9.9.10 up baseline = 2.1 down baseline = 4.181
Reflector 9.9.9.10 up recent = 2.8 down recent = 4.832
Reflector IP: 149.112.112.10  |  Current time: 55310027  |  TX at: 55310021  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 149.112.112.10 up baseline = 1 down baseline = 5.81
Reflector 149.112.112.10 up recent = 1 down recent = 5.04
Reflector IP: 149.112.112.11  |  Current time: 55310556  |  TX at: 55310550  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 149.112.112.11 up baseline = 1 down baseline = 5
Reflector 149.112.112.11 up recent = 1 down recent = 5
Reflector IP: 149.112.112.112  |  Current time: 55311091  |  TX at: 55311084  |  RTT: 7  |  UL time: 1  |  DL time: 6
Reflector 149.112.112.112 up baseline = 1.729 down baseline = 5.181
Reflector 149.112.112.112 up recent = 1.008 down recent = 5.832
Reflector IP: 9.9.9.9  |  Current time: 55311620  |  TX at: 55311613  |  RTT: 7  |  UL time: 3  |  DL time: 4
Reflector 9.9.9.9 up baseline = 2.1 down baseline = 4.171
Reflector 9.9.9.9 up recent = 2.8 down recent = 4.192
Reflector IP: 9.9.9.10  |  Current time: 55312153  |  TX at: 55312146  |  RTT: 7  |  UL time: 4  |  DL time: 3
Reflector 9.9.9.10 up baseline = 2.29 down baseline = 4.0629
Reflector 9.9.9.10 up recent = 3.76 down recent = 3.3664
Reflector IP: 149.112.112.10  |  Current time: 55312682  |  TX at: 55312676  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 149.112.112.10 up baseline = 1 down baseline = 5.729
Reflector 149.112.112.10 up recent = 1 down recent = 5.008
Reflector IP: 149.112.112.11  |  Current time: 55313215  |  TX at: 55313208  |  RTT: 7  |  UL time: 1  |  DL time: 6
Reflector 149.112.112.11 up baseline = 1 down baseline = 5.1
Reflector 149.112.112.11 up recent = 1 down recent = 5.8
Reflector IP: 149.112.112.112  |  Current time: 55313745  |  TX at: 55313738  |  RTT: 7  |  UL time: 0  |  DL time: 7
Reflector 149.112.112.112 up baseline = 1.5561 down baseline = 5.3629
Reflector 149.112.112.112 up recent = 0.2016 down recent = 6.7664
Reflector IP: 9.9.9.9  |  Current time: 55314277  |  TX at: 55314270  |  RTT: 7  |  UL time: 3  |  DL time: 4
Reflector 9.9.9.9 up baseline = 2.19 down baseline = 4.1539
Reflector 9.9.9.9 up recent = 2.96 down recent = 4.0384
Reflector IP: 9.9.9.10  |  Current time: 55314812  |  TX at: 55314805  |  RTT: 7  |  UL time: 2  |  DL time: 5
Reflector 9.9.9.10 up baseline = 2.261 down baseline = 4.15661
Reflector 9.9.9.10 up recent = 2.352 down recent = 4.67328
Reflector IP: 149.112.112.10  |  Current time: 55315341  |  TX at: 55315334  |  RTT: 7  |  UL time: 1  |  DL time: 6
Reflector 149.112.112.10 up baseline = 1 down baseline = 5.7561
Reflector 149.112.112.10 up recent = 1 down recent = 5.8016
Reflector IP: 149.112.112.11  |  Current time: 55315874  |  TX at: 55315868  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 149.112.112.11 up baseline = 1 down baseline = 5.09
Reflector 149.112.112.11 up recent = 1 down recent = 5.16
Reflector IP: 149.112.112.112  |  Current time: 55316403  |  TX at: 55316397  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 149.112.112.112 up baseline = 1.50049 down baseline = 5.32661
Reflector 149.112.112.112 up recent = 0.84032 down recent = 5.35328
Reflector IP: 9.9.9.9  |  Current time: 55316936  |  TX at: 55316930  |  RTT: 6  |  UL time: 2  |  DL time: 4
Reflector 9.9.9.9 up baseline = 2.171 down baseline = 4.13851
Reflector 9.9.9.9 up recent = 2.192 down recent = 4.00768
Reflector IP: 9.9.9.10  |  Current time: 55317465  |  TX at: 55317459  |  RTT: 6  |  UL time: 2  |  DL time: 4
Reflector 9.9.9.10 up baseline = 2.2349 down baseline = 4.140949
Reflector 9.9.9.10 up recent = 2.0704 down recent = 4.134656
Reflector IP: 149.112.112.10  |  Current time: 55317999  |  TX at: 55317992  |  RTT: 7  |  UL time: 1  |  DL time: 6
Reflector 149.112.112.10 up baseline = 1 down baseline = 5.78049
Reflector 149.112.112.10 up recent = 1 down recent = 5.96032
Reflector IP: 149.112.112.11  |  Current time: 55318528  |  TX at: 55318521  |  RTT: 7  |  UL time: 2  |  DL time: 5
Reflector 149.112.112.11 up baseline = 1.1 down baseline = 5.081
Reflector 149.112.112.11 up recent = 1.8 down recent = 5.032
Reflector IP: 149.112.112.112  |  Current time: 55319061  |  TX at: 55319055  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 149.112.112.112 up baseline = 1.450441 down baseline = 5.293949
Reflector 149.112.112.112 up recent = 0.968064 down recent = 5.070656
Reflector IP: 9.9.9.9  |  Current time: 55319591  |  TX at: 55319585  |  RTT: 6  |  UL time: 2  |  DL time: 4
Reflector 9.9.9.9 up baseline = 2.1539 down baseline = 4.124659
Reflector 9.9.9.9 up recent = 2.0384 down recent = 4.001536
Reflector IP: 9.9.9.10  |  Current time: 55320125  |  TX at: 55320119  |  RTT: 6  |  UL time: 2  |  DL time: 4
Reflector 9.9.9.10 up baseline = 2.21141 down baseline = 4.1268541
Reflector 9.9.9.10 up recent = 2.01408 down recent = 4.0269312
Reflector IP: 149.112.112.10  |  Current time: 55320655  |  TX at: 55320648  |  RTT: 7  |  UL time: 1  |  DL time: 6
Reflector 149.112.112.10 up baseline = 1 down baseline = 5.802441
Reflector 149.112.112.10 up recent = 1 down recent = 5.992064
Reflector IP: 149.112.112.11  |  Current time: 55321188  |  TX at: 55321182  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 149.112.112.11 up baseline = 1.09 down baseline = 5.0729
Reflector 149.112.112.11 up recent = 1.16 down recent = 5.0064
Reflector IP: 149.112.112.112  |  Current time: 55321718  |  TX at: 55321711  |  RTT: 7  |  UL time: 1  |  DL time: 6
Reflector 149.112.112.112 up baseline = 1.4053969 down baseline = 5.3645541
Reflector 149.112.112.112 up recent = 0.9936128 down recent = 5.8141312
Reflector IP: 9.9.9.9  |  Current time: 55322252  |  TX at: 55322245  |  RTT: 7  |  UL time: 2  |  DL time: 5
Reflector 9.9.9.9 up baseline = 2.13851 down baseline = 4.2121931
Reflector 9.9.9.9 up recent = 2.00768 down recent = 4.8003072
Reflector IP: 9.9.9.10  |  Current time: 55322783  |  TX at: 55322776  |  RTT: 7  |  UL time: 1  |  DL time: 6
Reflector 9.9.9.10 up baseline = 2.090269 down baseline = 4.31416869
Reflector 9.9.9.10 up recent = 1.202816 down recent = 5.60538624
Reflector IP: 149.112.112.10  |  Current time: 55323314  |  TX at: 55323308  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 149.112.112.10 up baseline = 1 down baseline = 5.7221969
Reflector 149.112.112.10 up recent = 1 down recent = 5.1984128
Reflector IP: 149.112.112.11  |  Current time: 55323847  |  TX at: 55323841  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 149.112.112.11 up baseline = 1.081 down baseline = 5.06561
Reflector 149.112.112.11 up recent = 1.032 down recent = 5.00128
Reflector IP: 149.112.112.112  |  Current time: 55324377  |  TX at: 55324370  |  RTT: 7  |  UL time: 2  |  DL time: 5
Reflector 149.112.112.112 up baseline = 1.46485721 down baseline = 5.32809869
Reflector 149.112.112.112 up recent = 1.79872256 down recent = 5.16282624
Reflector IP: 9.9.9.9  |  Current time: 55324912  |  TX at: 55324906  |  RTT: 6  |  UL time: 2  |  DL time: 4
Reflector 9.9.9.9 up baseline = 2.124659 down baseline = 4.19097379
Reflector 9.9.9.9 up recent = 2.001536 down recent = 4.16006144
Reflector IP: 9.9.9.10  |  Current time: 55325442  |  TX at: 55325435  |  RTT: 7  |  UL time: 2  |  DL time: 5
Reflector 9.9.9.10 up baseline = 2.0812421 down baseline = 4.382751821
Reflector 9.9.9.10 up recent = 1.8405632 down recent = 5.121077248
Reflector IP: 149.112.112.10  |  Current time: 55325975  |  TX at: 55325969  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 149.112.112.10 up baseline = 1 down baseline = 5.64997721
Reflector 149.112.112.10 up recent = 1 down recent = 5.03968256
Reflector IP: 149.112.112.11  |  Current time: 55326505  |  TX at: 55326498  |  RTT: 7  |  UL time: 1  |  DL time: 6
Reflector 149.112.112.11 up baseline = 1.0729 down baseline = 5.159049
Reflector 149.112.112.11 up recent = 1.0064 down recent = 5.800256
Reflector IP: 149.112.112.112  |  Current time: 55327038  |  TX at: 55327032  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 149.112.112.112 up baseline = 1.418371489 down baseline = 5.295288821
Reflector 149.112.112.112 up recent = 1.159744512 down recent = 5.032565248
Reflector IP: 9.9.9.9  |  Current time: 55327567  |  TX at: 55327561  |  RTT: 6  |  UL time: 2  |  DL time: 4
Reflector 9.9.9.9 up baseline = 2.1121931 down baseline = 4.171876411
Reflector 9.9.9.9 up recent = 2.0003072 down recent = 4.032012288
Reflector IP: 9.9.9.10  |  Current time: 55328101  |  TX at: 55328094  |  RTT: 7  |  UL time: 3  |  DL time: 4
Reflector 9.9.9.10 up baseline = 2.17311789 down baseline = 4.3444766389
Reflector 9.9.9.10 up recent = 2.76811264 down recent = 4.2242154496
Reflector IP: 149.112.112.10  |  Current time: 55328630  |  TX at: 55328624  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 149.112.112.10 up baseline = 1 down baseline = 5.584979489
Reflector 149.112.112.10 up recent = 1 down recent = 5.007936512
Reflector IP: 149.112.112.11  |  Current time: 55329165  |  TX at: 55329158  |  RTT: 7  |  UL time: 1  |  DL time: 6
Reflector 149.112.112.11 up baseline = 1.06561 down baseline = 5.2431441
Reflector 149.112.112.11 up recent = 1.00128 down recent = 5.9600512
Reflector IP: 149.112.112.112  |  Current time: 55329694  |  TX at: 55329688  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 149.112.112.112 up baseline = 1.3765343401 down baseline = 5.2657599389
Reflector 149.112.112.112 up recent = 1.0319489024 down recent = 5.0065130496
Reflector IP: 9.9.9.9  |  Current time: 55330230  |  TX at: 55330224  |  RTT: 6  |  UL time: 2  |  DL time: 4
Reflector 9.9.9.9 up baseline = 2.10097379 down baseline = 4.1546887699
Reflector 9.9.9.9 up recent = 2.00006144 down recent = 4.0064024576
Reflector IP: 9.9.9.10  |  Current time: 55330759  |  TX at: 55330753  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 9.9.9.10 up baseline = 2.055806101 down baseline = 4.41002897501
Reflector 9.9.9.10 up recent = 1.353622528 down recent = 4.84484308992
Reflector IP: 149.112.112.10  |  Current time: 55331293  |  TX at: 55331286  |  RTT: 7  |  UL time: 2  |  DL time: 5
Reflector 149.112.112.10 up baseline = 1.1 down baseline = 5.5264815401
Reflector 149.112.112.10 up recent = 1.8 down recent = 5.0015873024
Reflector IP: 149.112.112.11  |  Current time: 55331824  |  TX at: 55331817  |  RTT: 7  |  UL time: 1  |  DL time: 6
Reflector 149.112.112.11 up baseline = 1.059049 down baseline = 5.31882969
Reflector 149.112.112.11 up recent = 1.000256 down recent = 5.99201024
Reflector IP: 149.112.112.112  |  Current time: 55332355  |  TX at: 55332349  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 149.112.112.112 up baseline = 1.33888090609 down baseline = 5.23918394501
Reflector 149.112.112.112 up recent = 1.00638978048 down recent = 5.00130260992
Reflector IP: 9.9.9.9  |  Current time: 55332889  |  TX at: 55332883  |  RTT: 6  |  UL time: 2  |  DL time: 4
Reflector 9.9.9.9 up baseline = 2.090876411 down baseline = 4.13921989291
Reflector 9.9.9.9 up recent = 2.000012288 down recent = 4.00128049152
Reflector IP: 9.9.9.10  |  Current time: 55333418  |  TX at: 55333412  |  RTT: 6  |  UL time: 2  |  DL time: 4
Reflector 9.9.9.10 up baseline = 2.0502254909 down baseline = 4.369026077509
Reflector 9.9.9.10 up recent = 1.8707245056 down recent = 4.168968617984
Reflector IP: 149.112.112.10  |  Current time: 55333952  |  TX at: 55333946  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 149.112.112.10 up baseline = 1.09 down baseline = 5.47383338609
Reflector 149.112.112.10 up recent = 1.16 down recent = 5.00031746048
Reflector IP: 149.112.112.11  |  Current time: 55334482  |  TX at: 55334476  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 149.112.112.11 up baseline = 1.0531441 down baseline = 5.286946721
Reflector 149.112.112.11 up recent = 1.0000512 down recent = 5.198402048
Reflector IP: 149.112.112.112  |  Current time: 55335016  |  TX at: 55335010  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 149.112.112.112 up baseline = 1.304992815481 down baseline = 5.215265550509
Reflector 149.112.112.112 up recent = 1.001277956096 down recent = 5.000260521984
Reflector IP: 9.9.9.9  |  Current time: 55335546  |  TX at: 55335540  |  RTT: 6  |  UL time: 2  |  DL time: 4
Reflector 9.9.9.9 up baseline = 2.0817887699 down baseline = 4.125297903619
Reflector 9.9.9.9 up recent = 2.0000024576 down recent = 4.000256098304
Reflector IP: 9.9.9.10  |  Current time: 55336080  |  TX at: 55336073  |  RTT: 7  |  UL time: 2  |  DL time: 5
Reflector 9.9.9.10 up baseline = 2.04520294181 down baseline = 4.4321234697581
Reflector 9.9.9.10 up recent = 1.97414490112 down recent = 4.8337937235968
Reflector IP: 149.112.112.10  |  Current time: 55336609  |  TX at: 55336602  |  RTT: 7  |  UL time: 2  |  DL time: 5
Reflector 149.112.112.10 up baseline = 1.181 down baseline = 5.426450047481
Reflector 149.112.112.10 up recent = 1.832 down recent = 5.000063492096
Reflector IP: 149.112.112.11  |  Current time: 55337142  |  TX at: 55337136  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 149.112.112.11 up baseline = 1.04782969 down baseline = 5.2582520489
Reflector 149.112.112.11 up recent = 1.00001024 down recent = 5.0396804096
Reflector IP: 149.112.112.112  |  Current time: 55337672  |  TX at: 55337665  |  RTT: 7  |  UL time: 1  |  DL time: 6
Reflector 149.112.112.112 up baseline = 1.2744935339329 down baseline = 5.2937389954581
Reflector 149.112.112.112 up recent = 1.0002555912192 down recent = 5.8000521043968
Reflector IP: 9.9.9.9  |  Current time: 55338205  |  TX at: 55338198  |  RTT: 7  |  UL time: 3  |  DL time: 4
Reflector 9.9.9.9 up baseline = 2.17360989291 down baseline = 4.1127681132571
Reflector 9.9.9.9 up recent = 2.80000049152 down recent = 4.0000512196608
Reflector IP: 9.9.9.10  |  Current time: 55338734  |  TX at: 55338727  |  RTT: 7  |  UL time: 3  |  DL time: 4
Reflector 9.9.9.10 up baseline = 2.140682647629 down baseline = 4.3889111227823
Reflector 9.9.9.10 up recent = 2.794828980224 down recent = 4.1667587447194
Reflector IP: 149.112.112.10  |  Current time: 55339268  |  TX at: 55339261  |  RTT: 7  |  UL time: 1  |  DL time: 6
Reflector 149.112.112.10 up baseline = 1.1629 down baseline = 5.4838050427329
Reflector 149.112.112.10 up recent = 1.1664 down recent = 5.8000126984192
Reflector IP: 149.112.112.11  |  Current time: 55339797  |  TX at: 55339791  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 149.112.112.11 up baseline = 1.043046721 down baseline = 5.23242684401
Reflector 149.112.112.11 up recent = 1.000002048 down recent = 5.00793608192
Reflector IP: 149.112.112.112  |  Current time: 55340332  |  TX at: 55340325  |  RTT: 7  |  UL time: 2  |  DL time: 5
Reflector 149.112.112.112 up baseline = 1.3470441805396 down baseline = 5.2643650959123
Reflector 149.112.112.112 up recent = 1.8000511182438 down recent = 5.1600104208794
Reflector IP: 9.9.9.9  |  Current time: 55340866  |  TX at: 55340858  |  RTT: 8  |  UL time: 2  |  DL time: 6
Reflector 9.9.9.9 up baseline = 2.156248903619 down baseline = 4.3014913019314
Reflector 9.9.9.9 up recent = 2.160000098304 down recent = 5.6000102439322
Reflector IP: 9.9.9.10  |  Current time: 55341396  |  TX at: 55341389  |  RTT: 7  |  UL time: 3  |  DL time: 4
Reflector 9.9.9.10 up baseline = 2.2266143828661 down baseline = 4.3500200105041
Reflector 9.9.9.10 up recent = 2.9589657960448 down recent = 4.0333517489439
Reflector IP: 149.112.112.10  |  Current time: 55341929  |  TX at: 55341923  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 149.112.112.10 up baseline = 1.14661 down baseline = 5.4354245384596
Reflector 149.112.112.10 up recent = 1.03328 down recent = 5.1600025396838
Reflector IP: 149.112.112.11  |  Current time: 55342459  |  TX at: 55342452  |  RTT: 7  |  UL time: 1  |  DL time: 6
Reflector 149.112.112.11 up baseline = 1.0387420489 down baseline = 5.309184159609
Reflector 149.112.112.11 up recent = 1.0000004096 down recent = 5.801587216384
Reflector IP: 149.112.112.112  |  Current time: 55342994  |  TX at: 55342987  |  RTT: 7  |  UL time: 1  |  DL time: 6
Reflector 149.112.112.112 up baseline = 1.3123397624856 down baseline = 5.3379285863211
Reflector 149.112.112.112 up recent = 1.1600102236488 down recent = 5.8320020841759
Reflector IP: 9.9.9.9  |  Current time: 55343523  |  TX at: 55343517  |  RTT: 6  |  UL time: 2  |  DL time: 4
Reflector 9.9.9.9 up baseline = 2.1406240132571 down baseline = 4.2713421717383
Reflector 9.9.9.9 up recent = 2.0320000196608 down recent = 4.3200020487864
Reflector IP: 9.9.9.10  |  Current time: 55344056  |  TX at: 55344050  |  RTT: 6  |  UL time: 2  |  DL time: 4
Reflector 9.9.9.10 up baseline = 2.2039529445795 down baseline = 4.3150180094537
Reflector 9.9.9.10 up recent = 2.191793159209 down recent = 4.0066703497888
Reflector IP: 149.112.112.10  |  Current time: 55344586  |  TX at: 55344580  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 149.112.112.10 up baseline = 1.131949 down baseline = 5.3918820846136
Reflector 149.112.112.10 up recent = 1.006656 down recent = 5.0320005079368
Reflector IP: 149.112.112.11  |  Current time: 55345121  |  TX at: 55345114  |  RTT: 7  |  UL time: 1  |  DL time: 6
Reflector 149.112.112.11 up baseline = 1.03486784401 down baseline = 5.3782657436481
Reflector 149.112.112.11 up recent = 1.00000008192 down recent = 5.9603174432768
Reflector IP: 149.112.112.112  |  Current time: 55345652  |  TX at: 55345645  |  RTT: 7  |  UL time: 2  |  DL time: 5
Reflector 149.112.112.112 up baseline = 1.3811057862371 down baseline = 5.304135727689
Reflector 149.112.112.112 up recent = 1.8320020447298 down recent = 5.1664004168352
Reflector IP: 9.9.9.9  |  Current time: 55346185  |  TX at: 55346179  |  RTT: 6  |  UL time: 2  |  DL time: 4
Reflector 9.9.9.9 up baseline = 2.1265616119314 down baseline = 4.2442079545644
Reflector 9.9.9.9 up recent = 2.0064000039322 down recent = 4.0640004097573
Reflector IP: 9.9.9.10  |  Current time: 55346714  |  TX at: 55346708  |  RTT: 6  |  UL time: 2  |  DL time: 4
Reflector 9.9.9.10 up baseline = 2.1835576501215 down baseline = 4.2835162085083
Reflector 9.9.9.10 up recent = 2.0383586318418 down recent = 4.0013340699578
Reflector IP: 149.112.112.10  |  Current time: 55347248  |  TX at: 55347241  |  RTT: 7  |  UL time: 1  |  DL time: 6
Reflector 149.112.112.10 up baseline = 1.1187541 down baseline = 5.4526938761523
Reflector 149.112.112.10 up recent = 1.0013312 down recent = 5.8064001015874
Reflector IP: 149.112.112.11  |  Current time: 55347777  |  TX at: 55347771  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 149.112.112.11 up baseline = 1.031381059609 down baseline = 5.3404391692833
Reflector 149.112.112.11 up recent = 1.000000016384 down recent = 5.1920634886554
Reflector IP: 149.112.112.112  |  Current time: 55348311  |  TX at: 55348304  |  RTT: 7  |  UL time: 1  |  DL time: 6
Reflector 149.112.112.112 up baseline = 1.3429952076134 down baseline = 5.3737221549201
Reflector 149.112.112.112 up recent = 1.166400408946 down recent = 5.833280083367
Reflector IP: 9.9.9.9  |  Current time: 55348840  |  TX at: 55348834  |  RTT: 6  |  UL time: 2  |  DL time: 4
Reflector 9.9.9.9 up baseline = 2.1139054507383 down baseline = 4.219787159108
Reflector 9.9.9.9 up recent = 2.0012800007864 down recent = 4.0128000819515
Reflector IP: 9.9.9.10  |  Current time: 55349374  |  TX at: 55349368  |  RTT: 6  |  UL time: 2  |  DL time: 4
Reflector 9.9.9.10 up baseline = 2.1652018851094 down baseline = 4.2551645876575
Reflector 9.9.9.10 up recent = 2.0076717263684 down recent = 4.0002668139916
Reflector IP: 149.112.112.10  |  Current time: 55349908  |  TX at: 55349900  |  RTT: 8  |  UL time: 2  |  DL time: 6
Reflector 149.112.112.10 up baseline = 1.20687869 down baseline = 5.5074244885371
Reflector 149.112.112.10 up recent = 1.80026624 down recent = 5.9612800203175
Reflector IP: 149.112.112.11  |  Current time: 55350438  |  TX at: 55350431  |  RTT: 7  |  UL time: 1  |  DL time: 6
Reflector 149.112.112.11 up baseline = 1.0282429536481 down baseline = 5.406395252355
Reflector 149.112.112.11 up recent = 1.0000000032768 down recent = 5.8384126977311
Reflector IP: 149.112.112.112  |  Current time: 55350973  |  TX at: 55350967  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 149.112.112.112 up baseline = 1.308695686852 down baseline = 5.3363499394281
Reflector 149.112.112.112 up recent = 1.0332800817892 down recent = 5.1666560166734
Reflector IP: 9.9.9.9  |  Current time: 55351502  |  TX at: 55351496  |  RTT: 6  |  UL time: 2  |  DL time: 4
Reflector 9.9.9.9 up baseline = 2.1025149056644 down baseline = 4.1978084431972
Reflector 9.9.9.9 up recent = 2.0002560001573 down recent = 4.0025600163903
Reflector IP: 9.9.9.10  |  Current time: 55352036  |  TX at: 55352029  |  RTT: 7  |  UL time: 3  |  DL time: 4
Reflector 9.9.9.10 up baseline = 2.2486816965984 down baseline = 4.2296481288917
Reflector 9.9.9.10 up recent = 2.8015343452737 down recent = 4.0000533627983
Reflector IP: 149.112.112.10  |  Current time: 55352565  |  TX at: 55352559  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 149.112.112.10 up baseline = 1.186190821 down baseline = 5.4566820396833
Reflector 149.112.112.10 up recent = 1.160053248 down recent = 5.1922560040635
Reflector IP: 149.112.112.11  |  Current time: 55353099  |  TX at: 55353093  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 149.112.112.11 up baseline = 1.0254186582833 down baseline = 5.3657557271195
Reflector 149.112.112.11 up recent = 1.0000000006554 down recent = 5.1676825395462
Reflector IP: 149.112.112.112  |  Current time: 55353628  |  TX at: 55353621  |  RTT: 7  |  UL time: 2  |  DL time: 5
Reflector 149.112.112.112 up baseline = 1.3778261181668 down baseline = 5.3027149454852
Reflector 149.112.112.112 up recent = 1.8066560163578 down recent = 5.0333312033347
Reflector IP: 9.9.9.9  |  Current time: 55354162  |  TX at: 55354155  |  RTT: 7  |  UL time: 3  |  DL time: 4
Reflector 9.9.9.9 up baseline = 2.192263415098 down baseline = 4.1780275988775
Reflector 9.9.9.9 up recent = 2.8000512000315 down recent = 4.0005120032781
Reflector IP: 9.9.9.10  |  Current time: 55354691  |  TX at: 55354685  |  RTT: 6  |  UL time: 2  |  DL time: 4
Reflector 9.9.9.10 up baseline = 2.2238135269386 down baseline = 4.2066833160025
Reflector 9.9.9.10 up recent = 2.1603068690547 down recent = 4.0000106725597
Reflector IP: 149.112.112.10  |  Current time: 55355225  |  TX at: 55355219  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 149.112.112.10 up baseline = 1.1675717389 down baseline = 5.411013835715
Reflector 149.112.112.10 up recent = 1.0320106496 down recent = 5.0384512008127
Reflector IP: 149.112.112.11  |  Current time: 55355755  |  TX at: 55355748  |  RTT: 7  |  UL time: 1  |  DL time: 6
Reflector 149.112.112.11 up baseline = 1.022876792455 down baseline = 5.4291801544075
Reflector 149.112.112.11 up recent = 1.0000000001311 down recent = 5.8335365079092
Reflector IP: 149.112.112.112  |  Current time: 55356290  |  TX at: 55356284  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 149.112.112.112 up baseline = 1.3400435063502 down baseline = 5.2724434509367
Reflector 149.112.112.112 up recent = 1.1613312032716 down recent = 5.0066662406669
Reflector IP: 9.9.9.9  |  Current time: 55356820  |  TX at: 55356813  |  RTT: 7  |  UL time: 2  |  DL time: 5
Reflector 9.9.9.9 up baseline = 2.1730370735882 down baseline = 4.2602248389897
Reflector 9.9.9.9 up recent = 2.1600102400063 down recent = 4.8001024006556
Reflector IP: 9.9.9.10  |  Current time: 55357354  |  TX at: 55357347  |  RTT: 7  |  UL time: 2  |  DL time: 5
Reflector 9.9.9.10 up baseline = 2.2014321742447 down baseline = 4.2860149844023
Reflector 9.9.9.10 up recent = 2.0320613738109 down recent = 4.8000021345119
Reflector IP: 149.112.112.10  |  Current time: 55357883  |  TX at: 55357876  |  RTT: 7  |  UL time: 2  |  DL time: 5
Reflector 149.112.112.10 up baseline = 1.25081456501 down baseline = 5.3699124521435
Reflector 149.112.112.10 up recent = 1.80640212992 down recent = 5.0076902401625
Reflector IP: 149.112.112.11  |  Current time: 55358418  |  TX at: 55358411  |  RTT: 7  |  UL time: 1  |  DL time: 6
Reflector 149.112.112.11 up baseline = 1.0205891132095 down baseline = 5.4862621389668
Reflector 149.112.112.11 up recent = 1.0000000000262 down recent = 5.9667073015818
Reflector IP: 149.112.112.112  |  Current time: 55358952  |  TX at: 55358946  |  RTT: 6  |  UL time: 1  |  DL time: 5
Reflector 149.112.112.112 up baseline = 1.3060391557151 down baseline = 5.2451991058431
Reflector 149.112.112.112 up recent = 1.0322662406543 down recent = 5.0013332481334
Reflector IP: 9.9.9.9  |  Current time: 55359481  |  TX at: 55359474  |  RTT: 7  |  UL time: 2  |  DL time: 5
Reflector 9.9.9.9 up baseline = 2.1557333662294 down baseline = 4.3342023550907
Reflector 9.9.9.9 up recent = 2.0320020480013 down recent = 4.9600204801311
Reflector IP: 9.9.9.10  |  Current time: 55360014  |  TX at: 55360008  |  RTT: 6  |  UL time: 2  |  DL time: 4
Reflector 9.9.9.10 up baseline = 2.1812889568203 down baseline = 4.2574134859621
Reflector 9.9.9.10 up recent = 2.0064122747622 down recent = 4.1600004269024
Reflector IP: 149.112.112.10  |  Current time: 55360544  |  TX at: 55360537  |  RTT: 7  |  UL time: 2  |  DL time: 5
Reflector 149.112.112.10 up baseline = 1.325733108509 down baseline = 5.3329212069292
^Clua: sqm-autorate.lua:249: interrupted!
stack traceback:
        [C]: in function 'nanosleep'
        sqm-autorate.lua:249: in function 'conductor'
        sqm-autorate.lua:253: in main chunk
        [C]: ?
1 Like

Again, ideally the min will never trigger, and I fail to see why an acceptable min should depend on the max, both really depend on the properties of a given link. So I respectfully continue to try to convince you that a fixed hard minimum would make an acceptable default :wink:

1 Like

Would be glad to help, but I am just now thinking it may be better to wait a bit until we have the Lua script working to actual do some real adjustments to TC. This would avoid confusion for users looking at your repo and wondering why the Lua script doesn't actually "do anything" like your shell scripts.

Your thoughts?

1 Like

Personally I'd move development of the new Lua script to it's own branch on @Lynx's repo and when it's starting to get ready, move it to main branch.

I think I see what you're saying, @moeller0, in that even reaching a very low static minimum should be rare to begin with. And reaching that point would mean something terribly bad is going on with connectivity to the reflectors to begin with, i.e. upstream internet issue. I originally made an argument for "perceived experience as opposed to 'normal'" (which is baseless now), but in this case even the perceived experience is probably already compromised. Going to 10% of max is probably not going to be anything close to "better" in a situation like this.

Is that where you are approaching this from? If so, I can buy into that and agree that my 10% argument doesn't hold a lot of water against a perceived experience angle. (In other words, I can admit I was wrong.)

1 Like

And now for something completely different. Found via a dump of a google wifi device:

https://chromium.googlesource.com/chromiumos/third_party/kernel/+/refs/heads/stabilize-quickfix-13310.76.B-chromeos-4.14-gw/net/sched/sch_arl.c

3 Likes

Yes. we should try to fix the root cause, so ATM just not throttling itself to death makes sense, for production use however I agree it might make sense to not set this too low....

Yes, except I am coming round to your position somewhat that for real usage a minimal minimum that only allows the link to limp on will not garner us many fans (in that situation, I assume many will trade low latency for more throughput). What it will do however is incentives people to sent their comment/opinion/feed-back :wink:

1 Like

Oh, look @Lynx, more prior art!

1 Like

It doesn't work. I mis-understood the existing loop, so need to re-think - it's doable, will see if I can make progress but probably not tonight

2 Likes

Let me take a stab at it. I had ideas last night.

1 Like

Please go ahead :+1: I think that I know what needs to be done, but it will not happen for at least 10 hours.