/etc/init.d/sqm stop
root@homerouter:/etc/config# /etc/init.d/sqm stop
SQM: Stopping SQM on eth1
root@homerouter:/etc/config#
-
capacity test results
-
/etc/init.d/sqm start
root@homerouter:/etc/config# /etc/init.d/sqm start
SQM: Starting SQM script: piece_of_cake.qos on eth1, in: 1732000 Kbps, out: 36318 Kbps
SQM: piece_of_cake.qos was started on eth1 successfully
tc -s qdisc
root@homerouter:/etc/config# 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 37745587741 bytes 28826090 pkt (dropped 82839, overlimits 0 requeues 66090)
backlog 0b 0p requeues 66090
qdisc fq_codel 0: dev eth0 parent :4 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
Sent 11464071962 bytes 9214999 pkt (dropped 45, overlimits 0 requeues 21621)
backlog 0b 0p requeues 21621
maxpacket 18168 drop_overlimit 0 new_flow_count 18801 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 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
Sent 17194291686 bytes 12574890 pkt (dropped 82793, overlimits 0 requeues 21245)
backlog 0b 0p requeues 21245
maxpacket 3028 drop_overlimit 57408 new_flow_count 18207 ecn_mark 0 drop_overmemory 57408
new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :2 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
Sent 3973797128 bytes 3176240 pkt (dropped 0, overlimits 0 requeues 11263)
backlog 0b 0p requeues 11263
maxpacket 1514 drop_overlimit 0 new_flow_count 10052 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 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
Sent 5113426965 bytes 3859961 pkt (dropped 1, overlimits 0 requeues 11961)
backlog 0b 0p requeues 11961
maxpacket 9084 drop_overlimit 0 new_flow_count 8727 ecn_mark 0
new_flows_len 0 old_flows_len 0
qdisc cake 807f: dev eth1 root refcnt 5 bandwidth 36318Kbit besteffort dual-srchost nat nowash ack-filter split-gso rtt 100ms noatm overhead 42 mpu 84
Sent 366719 bytes 691 pkt (dropped 0, overlimits 709 requeues 0)
backlog 0b 0p requeues 0
memory used: 57856b of 4Mb
capacity estimate: 36318Kbit
min/max network layer size: 28 / 1480
min/max overhead-adjusted size: 84 / 1522
average network hdr offset: 13
Tin 0
thresh 36318Kbit
target 5ms
interval 100ms
pk_delay 1.03ms
av_delay 232us
sp_delay 9us
backlog 0b
pkts 691
bytes 366719
way_inds 0
way_miss 31
way_cols 0
drops 0
marks 0
ack_drop 0
sp_flows 2
bk_flows 1
un_flows 0
max_len 2988
quantum 1108
qdisc ingress ffff: dev eth1 parent ffff:fff1 ----------------
Sent 745501 bytes 2466 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
qdisc mq 0: dev eth2 root
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
qdisc fq_codel 0: dev eth2 parent :4 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb 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 eth2 parent :3 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb 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 eth2 parent :2 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb 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 eth2 parent :1 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb 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 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 :4 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb 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 eth3 parent :3 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb 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 eth3 parent :2 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb 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 eth3 parent :1 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb 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 8080: dev ifb4eth1 root refcnt 2 bandwidth 1732Mbit besteffort dual-dsthost nat wash ingress no-ack-filter split-gso rtt 100ms noatm overhead 42 mpu 84
Sent 780125 bytes 2466 pkt (dropped 0, overlimits 308 requeues 0)
backlog 0b 0p requeues 0
memory used: 11Kb of 15140Kb
capacity estimate: 1732Mbit
min/max network layer size: 46 / 1500
min/max overhead-adjusted size: 88 / 1542
average network hdr offset: 14
Tin 0
thresh 1732Mbit
target 5ms
interval 100ms
pk_delay 34us
av_delay 7us
sp_delay 2us
backlog 0b
pkts 2466
bytes 780125
way_inds 4
way_miss 39
way_cols 0
drops 0
marks 0
ack_drop 0
sp_flows 3
bk_flows 1
un_flows 0
max_len 2104
quantum 1514
-
capacity test
-
tc -s qdisc
before taking the screenshot
root@homerouter:/etc/config# 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 38291911463 bytes 29229747 pkt (dropped 82875, overlimits 0 requeues 66935)
backlog 0b 0p requeues 66935
qdisc fq_codel 0: dev eth0 parent :4 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
Sent 11486573820 bytes 9240447 pkt (dropped 45, overlimits 0 requeues 21722)
backlog 0b 0p requeues 21722
maxpacket 18168 drop_overlimit 0 new_flow_count 18858 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 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
Sent 17715681761 bytes 12948541 pkt (dropped 82829, overlimits 0 requeues 21941)
backlog 0b 0p requeues 21941
maxpacket 3028 drop_overlimit 57408 new_flow_count 18890 ecn_mark 0 drop_overmemory 57408
new_flows_len 0 old_flows_len 0
qdisc fq_codel 0: dev eth0 parent :2 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
Sent 3975061781 bytes 3178735 pkt (dropped 0, overlimits 0 requeues 11281)
backlog 0b 0p requeues 11281
maxpacket 1514 drop_overlimit 0 new_flow_count 10068 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 5ms interval 100ms memory_limit 32Mb ecn drop_batch 64
Sent 5114594101 bytes 3862024 pkt (dropped 1, overlimits 0 requeues 11991)
backlog 0b 0p requeues 11991
maxpacket 9084 drop_overlimit 0 new_flow_count 8747 ecn_mark 0
new_flows_len 0 old_flows_len 0
qdisc cake 807f: dev eth1 root refcnt 5 bandwidth 36318Kbit besteffort dual-srchost nat nowash ack-filter split-gso rtt 100ms noatm overhead 42 mpu 84
Sent 70872648 bytes 120830 pkt (dropped 39, overlimits 219924 requeues 3)
backlog 0b 0p requeues 3
memory used: 611840b of 4Mb
capacity estimate: 36318Kbit
min/max network layer size: 28 / 1500
min/max overhead-adjusted size: 84 / 1542
average network hdr offset: 14
Tin 0
thresh 36318Kbit
target 5ms
interval 100ms
pk_delay 996us
av_delay 72us
sp_delay 2us
backlog 0b
pkts 120869
bytes 70879998
way_inds 4
way_miss 741
way_cols 0
drops 3
marks 0
ack_drop 36
sp_flows 1
bk_flows 1
un_flows 0
max_len 10819
quantum 1108
qdisc ingress ffff: dev eth1 parent ffff:fff1 ----------------
Sent 543371512 bytes 462385 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
qdisc mq 0: dev eth2 root
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
qdisc fq_codel 0: dev eth2 parent :4 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb 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 eth2 parent :3 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb 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 eth2 parent :2 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb 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 eth2 parent :1 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb 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 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 :4 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb 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 eth3 parent :3 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb 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 eth3 parent :2 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb 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 eth3 parent :1 limit 10240p flows 1024 quantum 1514 target 5ms interval 100ms memory_limit 32Mb 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 8080: dev ifb4eth1 root refcnt 2 bandwidth 1732Mbit besteffort dual-dsthost nat wash ingress no-ack-filter split-gso rtt 100ms noatm overhead 42 mpu 84
Sent 549894356 bytes 462384 pkt (dropped 1, overlimits 454532 requeues 0)
backlog 0b 0p requeues 0
memory used: 2735616b of 15140Kb
capacity estimate: 1732Mbit
min/max network layer size: 46 / 1500
min/max overhead-adjusted size: 88 / 1542
average network hdr offset: 14
Tin 0
thresh 1732Mbit
target 5ms
interval 100ms
pk_delay 16us
av_delay 7us
sp_delay 2us
backlog 0b
pkts 462385
bytes 549895850
way_inds 51
way_miss 1130
way_cols 0
drops 1
marks 0
ack_drop 0
sp_flows 0
bk_flows 1
un_flows 0
max_len 34822
quantum 1514
- Current SQM config
config queue 'eth1'
option enabled '1'
option interface 'eth1'
option download '1732000'
option upload '36318'
option qdisc 'cake'
option script 'piece_of_cake.qos'
option linklayer 'ethernet'
option debug_logging '0'
option verbosity '5'
option overhead '42'
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 'mpu 84 nat dual-dsthost ingress'
option eqdisc_opts 'mpu 84 nat dual-srchost ack-filter'