lime
May 21, 2019, 6:40pm
1
Hi, i'm new to OpenWrt.
I'd like to use the SQM & Miniupnpd features i installed by software and wondered whether majority of these startups are "Disabled" or "Enabled" by default?
Please instruct me which way is right to leave these enabled. I also tried to test SQM feature and
barely noticed much difference with it Disabled or Enabled.
Also do i need the following other than LuCi-app-SQM?
*sqm-scripts
*sqm-scripts-extra
It does make a difference when installed but not much turning it off or on for me when checking for bufferbloat using dslreports.com test.
Is this the right way to go about it?
I think you can leave all these enabled, and click the "disabled" button next to the things you want and they will change to "enabled"
lime
May 21, 2019, 6:56pm
3
Ok, thanks. Might i have to place commands or anything so if my router reboots i might have to manually restart these or anything?
enabling them means they start up at boot time.
you will need to configure the packages... for example luci-app-sqm package will let you enter the configuration info for SQM in the LuCI gui. I don't know what is needed for upnp etc as I don't use it.
lime
May 21, 2019, 7:03pm
5
I've configured it to specification using Youtube Tutorials and OpenWrt guides.
then enable those services and a simple reboot is easiest way to get it all running. you can test after that.
Yes, but if you install luci-app-sqm sqm-scripts should be installed autimatically, sqm-scripts-extra is not needed at all.
But you need to configure sqm befoar you can expect any change in behavior.
Could you please post the output of the following commands (run from your router's command line):
cat /etc/config/sqm
tc -s qdisc
tc -d qdisc
SQM_VERBOSITY_MAX=8 /etc/init.d/sqm stop ; SQM_VERBOSITY_MAX=8 /etc/init.d/sqm start
Also please post a speedtest result without sqm enabled (follow the recommendations in https://forum.openwrt.org/t/sqm-qos-recommended-settings-for-the-dslreports-speedtest-bufferbloat-testing/2803 on how to do configure and post test results).
lime
May 21, 2019, 9:17pm
8
Sorry, I've been trying to find the commandline on the router for an hour and looking for tutorials and can't find it. Can you give me advice. I feel very computer illiterate right about now.
lime
May 21, 2019, 9:25pm
10
root@OpenWrt:~# cat /etc/config/sqm
config queue 'eth1'
option qdisc_advanced '0'
option enabled '1'
option interface 'eth0'
option debug_logging '0'
option verbosity '5'
option qdisc 'cake'
option script 'piece_of_cake.qos'
option linklayer 'ethernet'
option overhead '44'
option download '106250'
option upload '106250'
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 cake 8004: dev eth0 root refcnt 2 bandwidth 106250Kbit besteffort triple-isolate nonat nowash no-ack-filter split-gso rtt 100.0ms noatm overhead 44
Sent 1773253459 bytes 1986395 pkt (dropped 30, overlimits 2356325 requeues 1)
backlog 0b 0p requeues 1
memory used: 527Kb of 5188Kb
capacity estimate: 106250Kbit
min/max network layer size: 28 / 1500
min/max overhead-adjusted size: 72 / 1544
average network hdr offset: 14
Tin 0
thresh 106250Kbit
target 5.0ms
interval 100.0ms
pk_delay 124us
av_delay 66us
sp_delay 9us
backlog 0b
pkts 1986425
bytes 1773297112
way_inds 45892
way_miss 16678
way_cols 0
drops 30
marks 17709
ack_drop 0
sp_flows 4
bk_flows 1
un_flows 0
max_len 1514
quantum 1514
qdisc ingress ffff: dev eth0 parent ffff:fff1 ----------------
Sent 1735394228 bytes 2018511 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
qdisc cake 8005: dev ifb4eth0 root refcnt 2 bandwidth 106250Kbit besteffort triple-isolate nonat wash no-ack-filter split-gso rtt 100.0ms noatm overhead 44
Sent 1761699786 bytes 2017201 pkt (dropped 1311, overlimits 1616490 requeues 0)
backlog 0b 0p requeues 0
memory used: 5313152b of 5188Kb
capacity estimate: 106250Kbit
min/max network layer size: 46 / 1500
min/max overhead-adjusted size: 90 / 1544
average network hdr offset: 14
Tin 0
thresh 106250Kbit
target 5.0ms
interval 100.0ms
pk_delay 131us
av_delay 19us
sp_delay 5us
backlog 0b
pkts 2018512
bytes 1763653468
way_inds 73996
way_miss 35769
way_cols 55
drops 1311
marks 156139
ack_drop 0
sp_flows 0
bk_flows 2
un_flows 0
max_len 1514
quantum 1514
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 noqueue 0: dev eth0.2 root refcnt 2
Sent 0 bytes 0 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
root@OpenWrt:~# tc -d qdisc
qdisc noqueue 0: dev lo root refcnt 2
qdisc cake 8004: dev eth0 root refcnt 2 bandwidth 106250Kbit besteffort triple-isolate nonat nowash no-ack-filter split-gso rtt 100.0ms noatm overhead 44
qdisc ingress ffff: dev eth0 parent ffff:fff1 ----------------
qdisc cake 8005: dev ifb4eth0 root refcnt 2 bandwidth 106250Kbit besteffort triple-isolate nonat wash no-ack-filter split-gso rtt 100.0ms noatm overhead 44
qdisc noqueue 0: dev br-lan root refcnt 2
qdisc noqueue 0: dev eth0.1 root refcnt 2
qdisc noqueue 0: dev eth0.2 root refcnt 2
qdisc noqueue 0: dev wlan1 root refcnt 2
qdisc noqueue 0: dev wlan0 root refcnt 2
root@OpenWrt:~# sqm_verbosity_max=8 /etc/init.d/sqm stop ; sqm_verbosity_max=8 /etc/init.d/sqm start
SQM: Stopping SQM on eth0
SQM: Starting SQM script: piece_of_cake.qos on eth0, in: 106250 Kbps, out: 106250 Kbps
SQM: piece_of_cake.qos was started on eth0 successfully
Great, thanks,
I forgot to ask for the output of:
ifstatus wan | grep -e l3_device
to figure out the real wan device
lime
May 21, 2019, 10:07pm
12
root@OpenWrt:~# ifstatus wan | grep -e l3_device
"l3_device": "eth0.2",
lime:
"l3_device": "eth0.2",
Great, so you should use:
option interface 'eth0.2'
unless you use PPPoE in which case you should select pppoe-wan here. But note that a shaper on eth0 should also affect eth0.2 (but it is a long time I tried that, so this might be a case of bad memory). In the GUI (assuming your luci-app-sqm is modern enough) there is some annotation for the interface names in the interface drop down box, the idea is to select the one annotated as wan...