Hi,
I'm experimenting with this script. I'm using the non-veth method. Just wanted to verify if I set it up correctly. Here's what my interfaces look like:
My sqm settings:
config queue 'eth1'
option debug_logging '0'
option verbosity '5'
option qdisc 'cake'
option interface 'eth4'
option linklayer 'ethernet'
option overhead '26'
option qdisc_advanced '1'
option squash_dscp '0'
option ingress_ecn 'ECN'
option upload '15000'
option download '85000'
option enabled '1'
option script 'layer_cake.qos'
option egress_ecn 'ECN'
option squash_ingress '0'
option qdisc_really_really_advanced '1'
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 314836078540 bytes 291251158 pkt (dropped 0, overlimits 0 requeues 1262)
backlog 0b 0p requeues 1262
qdisc fq_codel 0: dev eth0 parent :8 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb ecn
Sent 510413 bytes 1544 pkt (dropped 0, overlimits 0 requeues 1)
backlog 0b 0p requeues 1
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 32Mb ecn
Sent 45683292630 bytes 40747559 pkt (dropped 0, overlimits 0 requeues 76)
backlog 0b 0p requeues 76
maxpacket 1392 drop_overlimit 0 new_flow_count 5 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 32Mb ecn
Sent 51872476969 bytes 46000690 pkt (dropped 0, overlimits 0 requeues 64)
backlog 0b 0p requeues 64
maxpacket 1514 drop_overlimit 0 new_flow_count 7 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 32Mb ecn
Sent 51102475885 bytes 46774534 pkt (dropped 0, overlimits 0 requeues 95)
backlog 0b 0p requeues 95
maxpacket 1392 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 1514 target 5.0ms interval 100.0ms memory_limit 32Mb ecn
Sent 48555566581 bytes 48044838 pkt (dropped 0, overlimits 0 requeues 925)
backlog 0b 0p requeues 925
maxpacket 1454 drop_overlimit 0 new_flow_count 5 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 32Mb ecn
Sent 43240690345 bytes 40525781 pkt (dropped 0, overlimits 0 requeues 42)
backlog 0b 0p requeues 42
maxpacket 2924 drop_overlimit 0 new_flow_count 19 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 32Mb ecn
Sent 38220117029 bytes 35317424 pkt (dropped 0, overlimits 0 requeues 28)
backlog 0b 0p requeues 28
maxpacket 1392 drop_overlimit 0 new_flow_count 3 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 32Mb ecn
Sent 36160948688 bytes 33838788 pkt (dropped 0, overlimits 0 requeues 31)
backlog 0b 0p requeues 31
maxpacket 1514 drop_overlimit 0 new_flow_count 10 ecn_mark 0
new_flows_len 0 old_flows_len 0
qdisc mq 0: dev eth1 root
Sent 33340576792 bytes 39677969 pkt (dropped 0, overlimits 0 requeues 50)
backlog 0b 0p requeues 50
qdisc fq_codel 0: dev eth1 parent :8 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb ecn
Sent 360473 bytes 2214 pkt (dropped 0, overlimits 0 requeues 1)
backlog 0b 0p requeues 1
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 eth1 parent :7 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb ecn
Sent 6187911566 bytes 7058870 pkt (dropped 0, overlimits 0 requeues 5)
backlog 0b 0p requeues 5
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 eth1 parent :6 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb ecn
Sent 4594355091 bytes 5069647 pkt (dropped 0, overlimits 0 requeues 4)
backlog 0b 0p requeues 4
maxpacket 1514 drop_overlimit 0 new_flow_count 2 ecn_mark 0
new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth1 parent :5 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb ecn
Sent 5000053866 bytes 5451176 pkt (dropped 0, overlimits 0 requeues 7)
backlog 0b 0p requeues 7
maxpacket 3028 drop_overlimit 0 new_flow_count 2 ecn_mark 0
new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth1 parent :4 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb ecn
Sent 3843807451 bytes 8184217 pkt (dropped 0, overlimits 0 requeues 22)
backlog 0b 0p requeues 22
maxpacket 60 drop_overlimit 0 new_flow_count 1 ecn_mark 0
new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth1 parent :3 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb ecn
Sent 5102683792 bytes 4771349 pkt (dropped 0, overlimits 0 requeues 4)
backlog 0b 0p requeues 4
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 eth1 parent :2 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb ecn
Sent 4340117955 bytes 4505577 pkt (dropped 0, overlimits 0 requeues 3)
backlog 0b 0p requeues 3
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 eth1 parent :1 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb ecn
Sent 4271286598 bytes 4634919 pkt (dropped 0, overlimits 0 requeues 4)
backlog 0b 0p requeues 4
maxpacket 0 drop_overlimit 0 new_flow_count 0 ecn_mark 0
new_flows_len 0 old_flows_len 0
qdisc mq 0: dev eth2 root
Sent 125789867499 bytes 182426556 pkt (dropped 0, overlimits 0 requeues 313)
backlog 0b 0p requeues 313
qdisc fq_codel 0: dev eth2 parent :8 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb ecn
Sent 12277347 bytes 85880 pkt (dropped 0, overlimits 0 requeues 3)
backlog 0b 0p requeues 3
maxpacket 3028 drop_overlimit 0 new_flow_count 2 ecn_mark 0
new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth2 parent :7 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb ecn
Sent 27841332727 bytes 32039269 pkt (dropped 0, overlimits 0 requeues 50)
backlog 0b 0p requeues 50
maxpacket 4894 drop_overlimit 0 new_flow_count 16 ecn_mark 0
new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth2 parent :6 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb ecn
Sent 30160681239 bytes 33620926 pkt (dropped 0, overlimits 0 requeues 24)
backlog 0b 0p requeues 24
maxpacket 3028 drop_overlimit 0 new_flow_count 3 ecn_mark 0
new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth2 parent :5 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb ecn
Sent 23085917457 bytes 30195316 pkt (dropped 0, overlimits 0 requeues 21)
backlog 0b 0p requeues 21
maxpacket 429 drop_overlimit 0 new_flow_count 2 ecn_mark 0
new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth2 parent :4 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb ecn
Sent 17675737002 bytes 28029617 pkt (dropped 0, overlimits 0 requeues 116)
backlog 0b 0p requeues 116
maxpacket 118 drop_overlimit 0 new_flow_count 4 ecn_mark 0
new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth2 parent :3 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb ecn
Sent 11453431221 bytes 21313103 pkt (dropped 0, overlimits 0 requeues 53)
backlog 0b 0p requeues 53
maxpacket 7570 drop_overlimit 0 new_flow_count 6 ecn_mark 0
new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth2 parent :2 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb ecn
Sent 9985821919 bytes 19225591 pkt (dropped 0, overlimits 0 requeues 17)
backlog 0b 0p requeues 17
maxpacket 36336 drop_overlimit 0 new_flow_count 4 ecn_mark 0
new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth2 parent :1 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb ecn
Sent 5574668587 bytes 17916854 pkt (dropped 0, overlimits 0 requeues 29)
backlog 0b 0p requeues 29
maxpacket 3028 drop_overlimit 0 new_flow_count 6 ecn_mark 0
new_flows_len 0 old_flows_len 0
qdisc mq 0: dev eth3 root
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
qdisc fq_codel 0: dev eth3 parent :8 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb 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 eth3 parent :7 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb 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 eth3 parent :6 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb 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 eth3 parent :5 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb 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 eth3 parent :4 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb 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 eth3 parent :3 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb 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 eth3 parent :2 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb 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 eth3 parent :1 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb 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 htb 1: dev eth4 root refcnt 2 r2q 10 default 0x8000 direct_packets_stat 33 direct_qlen 1000
Sent 14042669150 bytes 11276413 pkt (dropped 86, overlimits 12225669 requeues 3)
backlog 0b 0p requeues 3
qdisc fq_codel 15: dev eth4 parent 1:8000 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb ecn
Sent 238874928 bytes 519547 pkt (dropped 9, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
maxpacket 20863 drop_overlimit 0 new_flow_count 60220 ecn_mark 0
new_flows_len 0 old_flows_len 1
qdisc fq_codel 14: dev eth4 parent 1:14 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb ecn
Sent 12963098121 bytes 9531235 pkt (dropped 77, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
maxpacket 27252 drop_overlimit 0 new_flow_count 137514 ecn_mark 0
new_flows_len 0 old_flows_len 1
qdisc fq_codel 12: dev eth4 parent 1:12 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb ecn
Sent 2523655 bytes 24111 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
maxpacket 590 drop_overlimit 0 new_flow_count 18309 ecn_mark 0
new_flows_len 1 old_flows_len 21
qdisc fq_codel 11: dev eth4 parent 1:11 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb ecn
Sent 344959 bytes 1825 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
maxpacket 2988 drop_overlimit 0 new_flow_count 492 ecn_mark 0
new_flows_len 1 old_flows_len 9
qdisc fq_codel 13: dev eth4 parent 1:13 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb ecn
Sent 837817364 bytes 1199660 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
maxpacket 1342 drop_overlimit 0 new_flow_count 26916 ecn_mark 0
new_flows_len 1 old_flows_len 3
qdisc ingress ffff: dev eth4 parent ffff:fff1 ----------------
Sent 3985698885 bytes 8938294 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 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 htb 1: dev eth4-ifb root refcnt 2 r2q 70 default 0x8000 direct_packets_stat 42 direct_qlen 32
Sent 4119657079 bytes 8938284 pkt (dropped 7, overlimits 2369890 requeues 0)
backlog 0b 0p requeues 0
qdisc fq_codel 15: dev eth4-ifb parent 1:8000 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb ecn
Sent 1557651314 bytes 1523911 pkt (dropped 2, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
maxpacket 10598 drop_overlimit 0 new_flow_count 120768 ecn_mark 0
new_flows_len 0 old_flows_len 1
qdisc fq_codel 14: dev eth4-ifb parent 1:14 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb ecn
Sent 969703619 bytes 5211271 pkt (dropped 5, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
maxpacket 22710 drop_overlimit 0 new_flow_count 133989 ecn_mark 0
new_flows_len 0 old_flows_len 1
qdisc fq_codel 12: dev eth4-ifb parent 1:12 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb ecn
Sent 3254917 bytes 18811 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
maxpacket 479 drop_overlimit 0 new_flow_count 18624 ecn_mark 0
new_flows_len 1 old_flows_len 0
qdisc fq_codel 11: dev eth4-ifb parent 1:11 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb ecn
Sent 2267440 bytes 2295 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
maxpacket 9084 drop_overlimit 0 new_flow_count 430 ecn_mark 0
new_flows_len 1 old_flows_len 9
qdisc fq_codel 13: dev eth4-ifb parent 1:13 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 32Mb ecn
Sent 1586750040 bytes 2181944 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
maxpacket 1449 drop_overlimit 0 new_flow_count 218042 ecn_mark 0
new_flows_len 1 old_flows_len 7
qdisc cake 8029: dev ifb4eth4 root refcnt 2 bandwidth 85Mbit diffserv3 triple-isolate nonat nowash no-ack-filter split-gso rtt 100.0ms noatm overhead 26
Sent 1091 bytes 11 pkt (dropped 0, overlimits 4 requeues 0)
backlog 0b 0p requeues 0
memory used: 2176b of 4250000b
capacity estimate: 85Mbit
min/max network layer size: 46 / 309
min/max overhead-adjusted size: 72 / 335
average network hdr offset: 1
Bulk Best Effort Voice
thresh 5312Kbit 85Mbit 21250Kbit
target 5.0ms 5.0ms 5.0ms
interval 100.0ms 100.0ms 100.0ms
pk_delay 0us 15us 0us
av_delay 0us 0us 0us
sp_delay 0us 0us 0us
backlog 0b 0b 0b
pkts 0 11 0
bytes 0 1091 0
way_inds 0 0 0
way_miss 0 4 0
way_cols 0 0 0
drops 0 0 0
marks 0 0 0
ack_drop 0 0 0
sp_flows 0 4 0
bk_flows 0 0 0
un_flows 0 0 0
max_len 0 323 0
quantum 300 1514 648
I'm not an expert in any of this, but I'll try to provide any more info if needed.