Using SQM on ADSL2+ 6.2/1 link trying to get better bufferbloat results

Hello ,
let me start by introducing myself first.
My name is Siniša and Im from Croatia.
Recently I bought a router from Asus (rt-ax59U) and somehow managed to install the latest version of the firmware on it and using Luci to configure it.I installed SQM and some experimental packages which have other options for using the cake protocol. I am connected to the wan port of my ISPs modem which is a HUAWEI H35-its a hybrid model but I only use the adsl2+ connection on it. I am 2.5km from the exchange if that is the right term for it and that limits my speeds which I can get from my ISP which is T COM ( Hrvatski Telekom ) .
I managed to go from an F on the bufferbloat test to A. I followed the instructions and configured it to my best knowledge. My question being; is it actually possible to get an A+ on my connection or is the result that I got decent and the best I can get on it. I am a first time user of the Openwrt software so I do not know much about it.Also for some reason I put the max download to 5500kb and upload to 950kb but it only goes to 4.7 download and 800 upload i think-I do not know why and I get worse latency in upload phase of the test!
Every help is appreciated in advance,
thank you
this is raw connection without Openwrt ---> [https://www.waveform.com/tools/bufferbloat?test-id=ffc8493c-d79a-4e7e-806f-97fe1a377ae8]

and this with Openwrt Sqm---->https://www.waveform.com/tools/bufferbloat?test-id=cb5e65cd-80ed-4a65-94ad-4e8204a435dc

Mmmh, please post the output of the following command taken from a ssh terminal session to the router:

  1. ifstatus wan | grep -e device
  2. cat /etc/config/sqm
  3. tc -s qdisc

For posting these to the forum please follow one of the two options:

Just make sure you "sandwich" your text between two rows of backtick characters ` (which themselves will be invisible in the preview) looking in something like this in the editor:
```
Your Pasted Text as preformatted text with fixed width font
1
1111 (note with fixed-width fonts the numbers are right-aligned)
```
but looking like this in the rendered forum:

Your Pasted Text as preformatted text with fixed width font
   1
1111 (note with fixed-width fonts the numbers are right-aligned)

or

Please use the "Preformatted text </>" button for logs, scripts, configs and general console output.
grafik
Please edit your post accordingly. Thank you! :slight_smile:

This test did not actually run to its end and does not contain all numbers, could you please run that again and post the result here?

Good question. Here is the classification rules from waveform:

Our grading system is a slightly modified version of the DSLReports grading rubric.

First we measure the average latency of your connection when it is unloaded. Next we look at how much this average latency increases when a download and upload test are each active. We take the largest increase we measured, and assign a grade as follow:

  • Less than 5 ms latency increase - A+
  • Less than 30 ms latency increase - A
  • Less than 60 ms latency increase - B
  • Less than 200 ms latency increase - C
  • Less than 400 ms latency increase - D
  • 400 ms or greater latency increase - F

So in your case the upload with its reported +20ms is likely the biggest issue.
But at nominal 950Kbps a single full sized packet will take around:
1000* 1704*8 / (950000) = 14.3 milliseconds

so honestly, I guess A might be the best that is achievable, but please let's try to see whether we can optimise things a bit.

Hello and thanks for the help.
I tried the test again and it always ends like this

but in task manager I see that upload is happening and its going from 250kb to 1.1 MB -so I dont know why it is not like the download part-
regarding the SSh terminal I dont know how to do that -Ill look it up and get back to you
thank you

Taskmanager only tells you what your local machine sent out, not necessarily what and when this reaches the server...

Maybe look here:
https://openwrt.org/docs/guide-quick-start/sshadministration

    "l3_device": "wan",
    "device": "wan",
config queue 'eth1'
        option enabled '0'
        option interface 'lan1'
        option download '950'
        option upload '5450'
        option qdisc 'cake'
        option script 'layer_cake.qos'
        option linklayer 'atm'
        option debug_logging '1'
        option verbosity '8'
        option overhead '48'
        option qdisc_advanced '1'
        option squash_dscp '1'
        option squash_ingress '1'
        option ingress_ecn 'NOECN'
        option egress_ecn 'ECN'
        option qdisc_really_really_advanced '1'
        option iqdisc_opts 'nat dual-srchost'
        option eqdisc_opts 'nat dual-dsthost'
        option linklayer_advanced '1'
        option tcMTU '2047'
        option tcTSIZE '128'
        option tcMPU '64'
        option linklayer_adaptation_mechanism 'cake'

config queue
        option enabled '0'
        option interface 'wan'
        option download '5500'
        option upload '950'
        option debug_logging '1'
        option verbosity '5'
        option qdisc 'cake'
        option script 'piece_of_cake.qos'
        option linklayer 'atm'
        option overhead '48'
        option linklayer_advanced '1'
        option tcMTU '1536'
        option tcTSIZE '96'
        option tcMPU '14'
        option linklayer_adaptation_mechanism 'htb_private'

root@OpenWrt:~# tc -s qdisc
qdisc noqueue 0: dev lo root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc mq 0: dev eth0 root
 Sent 2937400298 bytes 4409310 pkt (dropped 0, overlimits 0 requeues 338)
 backlog 0b 0p requeues 338
qdisc fq_codel 0: dev eth0 parent :10 limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :f limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :e limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :d limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :c limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :b limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :a limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :9 limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :8 limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :7 limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :6 limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 2443231515 bytes 2452371 pkt (dropped 0, overlimits 0 requeues 6)
 backlog 0b 0p requeues 6
  maxpacket 1470 drop_overlimit 0 new_flow_count 160 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :5 limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 494167071 bytes 1956923 pkt (dropped 0, overlimits 0 requeues 332)
 backlog 0b 0p requeues 332
  maxpacket 17102 drop_overlimit 0 new_flow_count 411 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :4 limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 1712 bytes 16 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :3 limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :2 limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :1 limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc noqueue 0: dev wan root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc noqueue 0: dev lan1 root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc noqueue 0: dev lan2 root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc noqueue 0: dev lan3 root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc fq_codel 0: dev ifb-dns root refcnt 2 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc noqueue 0: dev br-lan root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0

Except for tcMPU cake will graciously ignore these, but these appear to be wrong (tcMTU and tcTSISE are used to pre calculate a lookuptable and (2047+1)/128 = 16 which is one increment that fits with the 48 byte payload size, another one would be tcTSIZE=64 and tcMTU=3071)... really the defaults are pretty much correct for everybody, unless you use jumbo packets in your ATM/AAL5 link.

I would recommend you try:

config queue
        option enabled '1'
        option interface 'wan'
        option download '5800'
        option upload '800'
        option debug_logging '1'
        option verbosity '5'
        option qdisc 'cake'
        option script 'piece_of_cake.qos'
        option linklayer 'atm'
        option overhead '48'
        option linklayer_advanced '1'
        option tcMTU '2047'
        option tcTSIZE '128'
        option tcMPU '64'
        option squash_dscp '1'
        option squash_ingress '1'
        option ingress_ecn 'NOECN'
        option egress_ecn 'ECN'
        option qdisc_really_really_advanced '1'
        option iqdisc_opts 'nat dual-srchost ingress'
        option eqdisc_opts 'nat dual-dsthost ack-filter'
        option linklayer_adaptation_mechanism 'default'

BTW, the tc-s qdisc looks like sqm was disabled...

this is what I get with that setup

 "l3_device": "wan",
        "device": "wan",
config queue 'eth1'
        option enabled '0'
        option interface 'lan1'
        option download '800'
        option upload '5800'
        option qdisc 'cake'
        option script 'piece_of_cake.qos'
        option linklayer 'atm'
        option debug_logging '1'
        option verbosity '5'
        option overhead '48'
        option qdisc_advanced '1'
        option squash_dscp '1'
        option squash_ingress '1'
        option ingress_ecn 'NOECN'
        option egress_ecn 'ECN'
        option qdisc_really_really_advanced '1'
        option iqdisc_opts 'nat dual-srchost'
        option eqdisc_opts 'nat dual-dsthost ack-filter'
        option linklayer_advanced '1'
        option tcMTU '2047'
        option tcTSIZE '128'
        option tcMPU '64'
        option linklayer_adaptation_mechanism 'default'

config queue
        option enabled '1'
        option interface 'wan'
        option download '5800'
        option upload '800'
        option debug_logging '1'
        option verbosity '5'
        option qdisc 'cake'
        option script 'piece_of_cake.qos'
        option linklayer 'atm'
        option overhead '48'
        option linklayer_advanced '1'
        option tcMTU '2047'
        option tcTSIZE '128'
        option tcMPU '64'
        option linklayer_adaptation_mechanism 'default'
        option qdisc_advanced '1'
        option squash_dscp '1'
        option squash_ingress '1'
        option ingress_ecn 'NOECN'
        option egress_ecn 'ECN'
        option qdisc_really_really_advanced '1'
        option iqdisc_opts 'nat dual-srchost'
        option eqdisc_opts 'nat dual-dsthost ack-filter'
qdisc noqueue 0: dev lo root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc mq 0: dev eth0 root
 Sent 54046764 bytes 89257 pkt (dropped 0, overlimits 0 requeues 4)
 backlog 0b 0p requeues 4
qdisc fq_codel 0: dev eth0 parent :10 limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :f limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :e limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :d limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :c limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :b limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :a limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :9 limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :8 limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :7 limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :6 limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 45191152 bytes 49334 pkt (dropped 0, overlimits 0 requeues 2)
 backlog 0b 0p requeues 2
  maxpacket 168 drop_overlimit 0 new_flow_count 13 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :5 limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 8853900 bytes 39907 pkt (dropped 0, overlimits 0 requeues 2)
 backlog 0b 0p requeues 2
  maxpacket 486 drop_overlimit 0 new_flow_count 9 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :4 limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 1712 bytes 16 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :3 limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :2 limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :1 limit 10240p flows 1024 quantum 1518 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc cake 8015: dev wan root refcnt 2 bandwidth 800Kbit besteffort dual-dsthost nat nowash ack-filter split-gso rtt 100ms atm overhead 48 mpu 64
 Sent 18450 bytes 80 pkt (dropped 0, overlimits 36 requeues 0)
 backlog 0b 0p requeues 0
 memory used: 8704b of 4Mb
 capacity estimate: 800Kbit
 min/max network layer size:           28 /    1452
 min/max overhead-adjusted size:      106 /    1696
 average network hdr offset:            4

                  Tin 0
  thresh        800Kbit
  target         22.7ms
  interval        118ms
  pk_delay       9.72ms
  av_delay        359us
  sp_delay          9us
  backlog            0b
  pkts               80
  bytes           18450
  way_inds            0
  way_miss           14
  way_cols            0
  drops               0
  marks               0
  ack_drop            0
  sp_flows            1
  bk_flows            1
  un_flows            0
  max_len          2573
  quantum           300

qdisc ingress ffff: dev wan parent ffff:fff1 ----------------
 Sent 18784 bytes 137 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc noqueue 0: dev lan1 root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc noqueue 0: dev lan2 root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc noqueue 0: dev lan3 root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc fq_codel 0: dev ifb-dns root refcnt 2 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 4Mb ecn drop_batch 64
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
  maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
  new_flows_len 0 old_flows_len 0
qdisc noqueue 0: dev br-lan root refcnt 2
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 backlog 0b 0p requeues 0
qdisc cake 8016: dev ifb4wan root refcnt 2 bandwidth 5800Kbit besteffort dual-srchost nat wash no-ack-filter split-gso rtt 100ms atm overhead 48 mpu 64
 Sent 20782 bytes 137 pkt (dropped 0, overlimits 20 requeues 0)
 backlog 0b 0p requeues 0
 memory used: 5648b of 4Mb
 capacity estimate: 5800Kbit
 min/max network layer size:           46 /    1452
 min/max overhead-adjusted size:      106 /    1696
 average network hdr offset:            6

                  Tin 0
  thresh       5800Kbit
  target            5ms
  interval        100ms
  pk_delay       1.64ms
  av_delay         49us
  sp_delay          2us
  backlog            0b
  pkts              137
  bytes           20782
  way_inds            0
  way_miss           13
  way_cols            0
  drops               0
  marks               0
  ack_drop            0
  sp_flows            0
  bk_flows            2
  un_flows            0
  max_len          1536
  quantum           300

Mmmh, try to reduce the upload to 600... is there a chance you can look at the GUI of the real modem to figure out what the modem reports as sync speed?
Also are you sure that there is no device directly connected to the HUAWEI H35? For SQM to do its thing it needs to be able to see all traffic...

this is the sync speed on Huawei and just my Pc connected -Asus Openwrt router I mean

600upload 5500down


950 upload 5450 down

Mmmh, that would allow 7/1 Mbps, but that is clearly not what you are getting...

Please try to disable sqm for a day and do a few waveform tests over the day (or just disable sqm for the test and enable it again). The goal is to measure if/how the achievable rate fluctuates over the course of a day...

Ok Ill try that tomorrow and report back with the results

quick test without SQM enabled :frowning:

1 Like

We expect shitty latency numbers without SQM the question is how do the down- and upload capacity numbers change over the course of a day... as for a static SQM config you want a number that is a bit lower than the lowest number you get without SQM.

I understand -makes sense

1 Like

As I said, it is enough to quickly disable sqm for the test, no need to suffer bad latency during times you do not explicitly test the 'raw capacity'.
As I think the difference is quite striking between quite OK (like for the 5450/950 test) and painful like the last raw test...

1 Like

here are the results from today measurements 1 at 6.30h 2nd 11.30h 3rd 1500h and 4th 18.20h each time the test did not measure the upload because it was probably very bad but those are the results
1st


2nd

3rd

4th

and the last test where I use SQM with down 4400 and upload 999 !! gives this result-I tried to raise the download and lower the upload but then the results degrade by 10-15ms in down and up-so I think that this is the best it can be-or? what do you think ?

The upload seems about right, as on upload with correct overhead accounting often close to 100% of the gross sync rate is possible for ATM, but the download seems a bit low for a 7Mbps sync. This might be caused by the uplink of the DSLAM or due to noise ingress.

About the overhead, have a look at:

and maybe try to collect the data? That should allow to get the overhead accounting exactly right (spoiler alert, this will not change much, 48 in all likelyhood is a bit too large already).