felang
April 12, 2021, 10:29pm
1
Running a gl.inet mv1000 for about a year. Configured Cake SQM on both download and upload of my Wan connection. Since about a week ago upload traffic does not seem to be limited at all by SQM. I have a 100/100 connection and even if I set egress to 10,000 kbits/s I'm still getting about 95mbit upload on speedtests. I don't recall changing any settings recently other than that.
Download speed correlates directly with whatever I set as download speed in sqm settings. Upload speed doesn't change at all.
Any specific settings I should be checking?
LUCI settings
Logs
tc qdisk
From what I can see (I'm not an expert, far from it), config seems ok but egress shaping is not being applied when sqm is started for some reason (tc qdisk).
Sorry If I'm not posting logs in proper forum etiquette, it's my first time messing with ssh so I had problems trying to use code formatting.
Anybody have any ideas?
So the 'tc qdisc' results confirm your intuition, there is no cake instance on egress.
But your manual invocation returned SUCCESS:
'SQM: cmd_wrapper: tc: SUCCESS: /usr/sbin/tc qdisc add dev wan root cake bandwidth 15000kbit overhead 44 mpu 0 besteffort dual-srchost'
I wonder whether 'wan' is a good interface to use, what does ifstatus wan
return?
You can simply paste the commands output between two lines of three backticks each (```)
` ```
your pasted code
with multiple lines
` ```
just remove the first backtick in the first and last line to get a fixed font block, ideal for posting command line output (that often assumes fixed-width fonts for its formatting), the same method can be used for the other outputs, sparing you from having to use external sites. Looking like:
your pasted code
with multiple lines
That said could you please post the output of:
cat /etc/config/sqm
ifstatus wan | grep -e device
tc -s qdisc
tmomas
April 13, 2021, 8:15am
3
Alternatively, just use the "Preformatted text </>
" button for logs, scripts, configs and general console output.
Does the same as the three backticks, but might be easier to use.
1 Like
felang
April 13, 2021, 3:18pm
4
Thanks!
cat /etc/config/sqm output
root@GL-MV1000:~# cat /etc/config/sqm
config queue 'eth1'
option interface 'wan'
option debug_logging '0'
option verbosity '5'
option qdisc 'cake'
option script 'piece_of_cake.qos'
option linklayer 'ethernet'
option overhead '44'
option download '90000'
option upload '15000'
option enabled '1'
option qdisc_advanced '1'
option squash_dscp '1'
option squash_ingress '1'
option ingress_ecn 'ECN'
option egress_ecn 'NOECN'
option qdisc_really_really_advanced '1'
option iqdisc_opts 'nat dual-dsthost'
option eqdisc_opts 'nat dual-srchost'
ifstatus wan | grep -e device output...
root@GL-MV1000:~# ifstatus wan | grep -e device
"l3_device": "wan",
"device": "wan",
tc -s qdisc output...
root@GL-MV1000:~# 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 13126191324 bytes 13938381 pkt (dropped 0, overlimits 0 requeues 14)
backlog 0b 0p requeues 14
qdisc fq_codel 0: dev eth0 parent :8 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 :5 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 :4 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 :3 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
Sent 13126191324 bytes 13938381 pkt (dropped 0, overlimits 0 requeues 14)
backlog 0b 0p requeues 14
maxpacket 68490 drop_overlimit 0 new_flow_count 155 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 ingress ffff: dev wan parent ffff:fff1 ----------------
Sent 99500003 bytes 178978 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
qdisc noqueue 0: dev lan0 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 fq_codel 0: dev usb0 root refcnt 2 limit 10240p flows 1024 quantum 1514 ta rget 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 801c: dev ifb4wan root refcnt 2 bandwidth 90Mbit besteffort dual-dsth ost nat wash no-ack-filter split-gso rtt 100.0ms noatm overhead 44
Sent 101199405 bytes 178445 pkt (dropped 533, overlimits 112773 requeues 0)
backlog 0b 0p requeues 0
memory used: 493056b of 4500000b
capacity estimate: 90Mbit
min/max network layer size: 46 / 1500
min/max overhead-adjusted size: 90 / 1544
average network hdr offset: 14
Tin 0
thresh 90Mbit
target 5.0ms
interval 100.0ms
pk_delay 222us
av_delay 35us
sp_delay 14us
backlog 0b
pkts 178978
bytes 102005695
way_inds 198
way_miss 1344
way_cols 0
drops 533
marks 0
ack_drop 0
sp_flows 2
bk_flows 1
un_flows 0
max_len 1514
quantum 1514
Thanks,
what do you see when you run:
/usr/sbin/tc qdisc add dev wan root cake bandwidth 15000kbit overhead 44 mpu 0 besteffort dual-srchost
and what is the output of:
tc -s qdisc
after that?
felang
April 13, 2021, 5:07pm
6
root@GL-MV1000:~# /usr/sbin/tc qdisc add dev wan root cake bandwidth 15000kbit o
verhead 44 mpu 0 besteffort dual-srchost
root@GL-MV1000:~# 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 14322461631 bytes 15205328 pkt (dropped 0, overlimits 0 requeues 14)
backlog 0b 0p requeues 14
qdisc fq_codel 0: dev eth0 parent :8 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 :5 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 :4 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 :3 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
Sent 14322461631 bytes 15205328 pkt (dropped 0, overlimits 0 requeues 14)
backlog 0b 0p requeues 14
maxpacket 68490 drop_overlimit 0 new_flow_count 177 ecn_mark 0
new_flows_len 0 old_flows_len 0
qdisc cake 801d: dev wan root refcnt 2 bandwidth 15Mbit besteffort dual-srchost nonat nowash no-ack-filter split-gso rtt 100.0ms noatm overhead 44
Sent 58380 bytes 293 pkt (dropped 0, overlimits 39 requeues 0)
backlog 0b 0p requeues 0
memory used: 10112b of 4Mb
capacity estimate: 15Mbit
min/max network layer size: 28 / 1500
min/max overhead-adjusted size: 72 / 1544
average network hdr offset: 10
Tin 0
thresh 15Mbit
target 5.0ms
interval 100.0ms
pk_delay 758us
av_delay 41us
sp_delay 17us
backlog 0b
pkts 293
bytes 58380
way_inds 0
way_miss 88
way_cols 0
drops 0
marks 0
ack_drop 0
sp_flows 1
bk_flows 1
un_flows 0
max_len 1514
quantum 457
qdisc ingress ffff: dev wan parent ffff:fff1 ----------------
Sent 1034076054 bytes 1150813 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
qdisc noqueue 0: dev lan0 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 fq_codel 0: dev usb0 root refcnt 2 limit 10240p flows 1024 quantum 1514 ta rget 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 801c: dev ifb4wan root refcnt 2 bandwidth 90Mbit besteffort dual-dsth ost nat wash no-ack-filter split-gso rtt 100.0ms noatm overhead 44
Sent 1048187693 bytes 1149484 pkt (dropped 1329, overlimits 1212536 requeues 0)
backlog 0b 0p requeues 0
memory used: 533120b of 4500000b
capacity estimate: 90Mbit
min/max network layer size: 42 / 1500
min/max overhead-adjusted size: 86 / 1544
average network hdr offset: 14
Tin 0
thresh 90Mbit
target 5.0ms
interval 100.0ms
pk_delay 184us
av_delay 24us
sp_delay 7us
backlog 0b
pkts 1150813
bytes 1050187436
way_inds 42787
way_miss 14201
way_cols 0
drops 1329
marks 0
ack_drop 0
sp_flows 2
bk_flows 1
un_flows 0
max_len 1514
quantum 1514
That did it! Thanks so much. Will I have to run
/usr/sbin/tc qdisc add dev wan root cake bandwidth 15000kbit overhead 44 mpu 0 besteffort dual-srchost
every time I want to adjust upload setting with whatever upload limit I want applied?
Why would LUCI settings be ignored?
I think this is just a debugging step. Ultimately the SQM scripts should do this for you.
1 Like
felang
April 13, 2021, 5:32pm
8
Exactly, whatever upload settings are applied in LUCI seem to be ignored. Download is applied no problem, seems weird to me.
Evidently there is a bug. I believe if you can continue to answer @moeller0 's questions, we'll likely get to the bottom of what the bug is. I think this probably has something to do with DSA architectures.
felang
April 13, 2021, 5:46pm
10
Understood, I’ll try to provide whatever info is needed.
That matches what is reported in the log:
cmd_wrapper: tc: SUCCESS: /usr/sbin/tc qdisc add dev wan root cake bandwidth 15000kbit overhead 44 mpu 0 besteffort dual-srchost egress shaping activated
The question is why this gets disabled before SQM is finished....
Things to test:
Set the download shaper to 0 (which disables it) and rerun your test from before:
SQM_DEBUG=1 SQM_VERBOSITY_MAX=8 /etc/init.d/sqm stop ; SQM_DEB
UG=1 SQM_VERBOSITY_MAX=8 /etc/init.d/sqm start
and post the results here. The question is, will setting up the ingress shaper somehow remove the egress shaper?
felang
April 13, 2021, 7:10pm
12
Set the download shaper to 0 in LUCI SQM interface and egress shaper was in fact disabled.
test run results...
root@GL-MV1000:~# UG=1 SQM_VERBOSITY_MAX=8 /etc/init.d/sqm start
SQM: Starting SQM script: piece_of_cake.qos on wan, in: 0 Kbps, out: 15000 Kbps
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link add name TMP_IFB_4_SQM type ifb
SQM: cmd_wrapper: tc: SUCCESS: /usr/sbin/tc qdisc replace dev TMP_IFB_4_SQM root cake
SQM: QDISC cake is useable.
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link set dev TMP_IFB_4_SQM down
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link delete TMP_IFB_4_SQM type ifb
SQM: Starting piece_of_cake.qos
SQM: ifb associated with interface wan:
SQM: Currently no ifb is associated with wan, this is normal during starting of the sqm system.
SQM: cmd_wrapper: ip: SUCCESS: /sbin/ip link add name ifb4wan type ifb
SQM: egress
SQM: cmd_wrapper: tc: FAILURE (2): /usr/sbin/tc qdisc del dev wan root
SQM: cmd_wrapper: tc: LAST ERROR: RTNETLINK answers: No such file or directory
SQM: LLA: default link layer adjustment method for cake is cake
SQM: cake link layer adjustments: overhead 44 mpu 0
SQM: cmd_wrapper: tc: SUCCESS: /usr/sbin/tc qdisc add dev wan root cake bandwidt h 15000kbit overhead 44 mpu 0 besteffort nat dual-srchost
SQM: egress shaping activated
SQM: ingress shaping deactivated
SQM: cmd_wrapper: tc: FAILURE (2): /usr/sbin/tc qdisc del dev ifb4wan root
SQM: cmd_wrapper: tc: LAST ERROR: RTNETLINK answers: No such file or directory
SQM: cmd_wrapper: tc: FAILURE (2): /usr/sbin/tc qdisc del dev wan ingress
SQM: cmd_wrapper: tc: LAST ERROR: RTNETLINK answers: Invalid argument
SQM: piece_of_cake.qos was started on wan successfully
root@GL-MV1000:~#
Can you leave tc monitor
running in another session to see if something else issues a delete?
1 Like
Mmmh, what does tc -s qdisc
return now?
felang
April 13, 2021, 10:52pm
15
root@GL-MV1000:~# 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 21593345260 bytes 22680142 pkt (dropped 0, overlimits 0 requeues 138)
backlog 0b 0p requeues 138
qdisc fq_codel 0: dev eth0 parent :8 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 :5 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 :4 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 :3 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
Sent 21593345260 bytes 22680142 pkt (dropped 0, overlimits 0 requeues 138)
backlog 0b 0p requeues 138
maxpacket 68490 drop_overlimit 0 new_flow_count 363 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 lan0 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 fq_codel 0: dev usb0 root refcnt 2 limit 10240p flows 1024 quantum 1514 ta rget 5.0ms interval 100.0ms memory_limit 4Mb ecn
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
Thanks, so let's use @dave14305 's great idea.
Please open two ssh sessions into your router.
In session one run tc monitor
and let the window open
Then open an additional second ssh session and run SQM_DEBUG=1 SQM_VERBOSITY_MAX=8 /etc/init.d/sqm stop ; SQM_DEB UG=1 SQM_VERBOSITY_MAX=8 /etc/init.d/sqm start
in there.
Then stop tc monitor on the first ssh session by pressing ctrl-c (I think).
Then please post the output from the first ssh session, the output from the second ssh session, as well as the out put of tc -s qdisc
.
The question is when and where do we loose the egress cake instance.
felang
April 14, 2021, 2:18pm
17
So thanks again for the help guys.
Hopefully I didn't mess this up.
Before anything else I forced upload shaping with /usr/sbin/tc qdisc add dev wan root cake bandwidth 15000kbit overhead 44 mpu 0 besteffort dual-srchost
I don't believe it makes any difference since SQM is being stopped after but I thought I'd mention it just in case...
Session one...
root@GL-MV1000:~# tc monitor
deleted qdisc ingress ffff: dev wan parent ffff:fff1 ----------------
deleted qdisc cake 8045: dev wan root bandwidth 15Mbit besteffort dual-srchost nonat nowash no-ack-filter split-gso rtt 100.0ms noatm overhead 44
deleted qdisc cake 8044: dev ifb4wan root bandwidth 90Mbit besteffort dual-dsthost nat wash no-ack-filter split-gso rtt 100.0ms noatm overhead 44
^C
root@GL-MV1000:~#
Session two...
root@GL-MV1000:~# SQM_DEBUG=1 SQM_VERBOSITY_MAX=8 /etc/init.d/sqm stop ; SQM_DEB
UG=1 SQM_VERBOSITY_MAX=8 /etc/init.d/sqm start
SQM: Stopping SQM on wan
-ash: SQM_DEB: not found
root@GL-MV1000:~# 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 37309529606 bytes 38789760 pkt (dropped 0, overlimits 0 requeues 260)
backlog 0b 0p requeues 260
qdisc fq_codel 0: dev eth0 parent :8 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 :5 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 :4 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 :3 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
Sent 37309529606 bytes 38789760 pkt (dropped 0, overlimits 0 requeues 260)
backlog 0b 0p requeues 260
maxpacket 68490 drop_overlimit 0 new_flow_count 557 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 lan0 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 fq_codel 0: dev usb0 root refcnt 2 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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
root@GL-MV1000:~#
Sorry my text contained a bad break, the second invocation should have been"
SQM_DEBUG=1 SQM_VERBOSITY_MAX=8 /etc/init.d/sqm start
and not
SQM_DEB UG=1 SQM_VERBOSITY_MAX=8 /etc/init.d/sqm start
which simply failed to run at all.
Could you please, start from the current state, by running tc monitor
in ine session while simultaneously running SQM_DEBUG=1 SQM_VERBOSITY_MAX=8 /etc/init.d/sqm start
in another session and then close the tc monitor and post the output?
One more question, you write
Did you change anything at all, like a new snapshot build or did you install/deinstall any package on the router?
felang
April 14, 2021, 3:40pm
19
OpenWrt 19.07.0-rc1, r10649-c4fdb377a2
-----------------------------------------------------
root@GL-MV1000:~# SQM_DEBUG=1 SQM_VERBOSITY_MAX=8 /etc/init.d/sqm start
root@GL-MV1000:~# 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 39188876002 bytes 40646561 pkt (dropped 0, overlimits 0 requeues 261)
backlog 0b 0p requeues 261
qdisc fq_codel 0: dev eth0 parent :8 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 :5 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 :4 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 :3 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
Sent 39188876002 bytes 40646561 pkt (dropped 0, overlimits 0 requeues 261)
backlog 0b 0p requeues 261
maxpacket 68490 drop_overlimit 0 new_flow_count 581 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 lan0 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 fq_codel 0: dev usb0 root refcnt 2 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
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
root@GL-MV1000:~#
Regarding any additional packages nothing comes to mind, to be honest shaping probably wasn't being applied since farther back and I just hadn't noticed. I'm running most recently available gl.inet firmware package for the MV1000
1 Like
Mmmh, this looks quite wrong and also weird.
Could you please post the current output of
cat /etc/config/sqm
again, just to make sure we know the intended state.