Setting up Sqm for Devices connected to Lan Port Only

I want to setup sqm on the devices connected by ethernet to my router only because currently it affects my wifi too.

For SQM to control your internet access link's bufferbloat it needs to control all traffic. But maybe you really do not care about bufferbloat and just want to slow down the LAN?

Anyway, please post the output of the following commands run from a ssh shell on the router:

ifstatus wan
cat /etc/config/sqm
tc -s qdisc
1 Like

root@OpenWrt:~# ifstatus wan
{
"up": true,
"pending": false,
"available": true,
"autostart": true,
"dynamic": false,
"uptime": 39957,
"l3_device": "eth0.2",
"proto": "dhcp",
"device": "eth0.2",
"updated": [
"data"
],
"metric": 0,
"dns_metric": 0,
"delegation": true,
"ipv4-address": [
{
"address": "hiding",
"mask": 20
}
],
"ipv6-address": [

],
"ipv6-prefix": [

],
"ipv6-prefix-assignment": [

],
"route": [
{
"target": "0.0.0.0",
"mask": 0,
"nexthop": "hiding",
"source": "hiding/hello"
}
],
"dns-server": [
"209.18.47.62",
"209.18.47.61"
],
"dns-search": [
"twcny.rr.com"
],
"neighbors": [

],
"inactive": {
"ipv4-address": [

],
"ipv6-address": [

],
"route": [

],
"dns-server": [

],
"dns-search": [

],
"neighbors": [

]
},
"data": {
"hostname": "OpenWrt",
"leasetime": 77382

root@OpenWrt:~# cat /etc/config/sqm

config queue 'eth1'
option qdisc_advanced '0'
option interface 'eth0.2'
option debug_logging '0'
option verbosity '5'
option linklayer 'ethernet'
option overhead '44'
option enabled '1'
option download '85000'
option upload '9500'
option qdisc 'fq_codel'
option script 'simple.qos'

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 fq_codel 0: dev eth0 root refcnt 2 limit 10240p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
Sent 639335598 bytes 2290850 pkt (dropped 0, overlimits 0 requeues 1)
backlog 0b 0p requeues 1
maxpacket 342 drop_overlimit 0 new_flow_count 7 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 noqueue 0: dev eth0.1 root refcnt 2
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
qdisc htb 1: dev eth0.2 root refcnt 2 r2q 10 default 0x12 direct_packets_stat 0 direct_qlen 1000
Sent 284146232 bytes 1736058 pkt (dropped 515, overlimits 57894 requeues 0)
backlog 0b 0p requeues 0
qdisc fq_codel 120: dev eth0.2 parent 1:12 limit 1001p flows 1024 quantum 300 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
Sent 282398811 bytes 1724429 pkt (dropped 515, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
maxpacket 18934 drop_overlimit 0 new_flow_count 134174 ecn_mark 4
new_flows_len 0 old_flows_len 2
qdisc fq_codel 130: dev eth0.2 parent 1:13 limit 1001p flows 1024 quantum 300 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 110: dev eth0.2 parent 1:11 limit 1001p flows 1024 quantum 300 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
Sent 1747421 bytes 11629 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
maxpacket 634 drop_overlimit 0 new_flow_count 10633 ecn_mark 0
new_flows_len 1 old_flows_len 45
qdisc ingress ffff: dev eth0.2 parent ffff:fff1 ----------------
Sent 5098382684 bytes 7819759 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
qdisc noqueue 0: dev wlan1 root refcnt 2
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
qdisc noqueue 0: dev wlan0 root refcnt 2
Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
qdisc htb 1: dev ifb4eth0.2 root refcnt 2 r2q 10 default 0x10 direct_packets_stat 0 direct_qlen 32
Sent 5523446565 bytes 7816570 pkt (dropped 2615, overlimits 1908965 requeues 0)
backlog 0b 0p requeues 0
qdisc fq_codel 110: dev ifb4eth0.2 parent 1:10 limit 1001p flows 1024 quantum 1514 target 5.0ms interval 100.0ms memory_limit 4Mb ecn
Sent 5523446565 bytes 7816570 pkt (dropped 2615, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
maxpacket 34862 drop_overlimit 0 new_flow_count 404830 ecn_mark 16
new_flows_len 0 old_flows_len 1

this and:

means you instantiated SQM on your wan link, it will shape any traffic traversing your WAN link independent of your internal source (wifi or wired). I would say SQM is doing what you tell it to do, and, if you want to control bufferbloat you really need to do that.
But please explain what your goal is?

1 Like

Lately it seemed Sqm has been making my speeds slower than they usually were for my wifi so I was trying to find a way to prevent this by seeing if i can just have sqm run on ethernet connected devices not devices connected by wifi.

That sounds like it will not work, unless SQM sees all traffic across an interface it can not counter act bufferbloat. So SQM on a LAN port will not fix bufferbloat on your internet access link if WiFi users also access the internet.

What internet speeds do you have and what router model?