Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| technical:ppsk-sqm [2024/08/08 08:29] – [Config File] system | technical:ppsk-sqm [2024/08/08 10:11] (current) – system | ||
|---|---|---|---|
| Line 24: | Line 24: | ||
| ====== SQM on OpenWrt ====== | ====== SQM on OpenWrt ====== | ||
| - | The following sections are a short summary of information from this Wiki page (https:// | + | The following sections are a brief summary of information from this wiki page (https:// |
| ===== Required Packages ===== | ===== Required Packages ===== | ||
| - | * For SQM to be available in OpenWrt, you need the **sqm-scripts** | + | * To make SQM available in OpenWrt, you need the package |
| - | * If you also have Luci on the OpenWrt device, it is recommended to install the additional **luci-app-sqm** | + | * If you also have Luci on the OpenWrt device, it is recommended to install the additional |
| - | * This will install the Luci SQM package which is well developed and offer you an intuitive way to apply SQM on selected interfaces | + | * This will install the Luci SQM package which is well developed and provides |
| ===== Config File ===== | ===== Config File ===== | ||
| - | * Essentially the SQM application in Luci manipulates the **/ | + | * Essentially, the SQM application in Luci manipulates the UCI-based configuration file **/ |
| - | * Lets look at a snippet of the sqm config | + | * Let's take a look at an excerpt from the sqm configuration |
| <code bash> | <code bash> | ||
| Line 46: | Line 46: | ||
| </ | </ | ||
| - | * Some items of note on this snippet: | + | * Some notes on this snippet: |
| - | * The Queue discipline is CAKE. There is also other options like **fq_codel** which you can use should | + | * The queue discipline is CAKE. There are also other options like fq_codel |
| - | * The upload and download values are in kbps so this snippet limits | + | * The upload and download values are in kbps, so this snippet limits |
| - | * The script | + | * The script to set up the SQM (based on the settings in the / |
| - | * The SQM section is applied to the **br-ex_v104** interface which is actually a bridge. | + | * The SQM section is applied to the **br-ex_v104** interface, which is actually a bridge. |
| - | * Lets look at the / | + | * Let us take a look at the / |
| < | < | ||
| Line 66: | Line 66: | ||
| option netmask ' | option netmask ' | ||
| </ | </ | ||
| - | * The word interface in the / | + | * Although the word //interface// is used intuitively |
| - | * In our case the br-ex_104 bridge has one port, eth1.104. This port will receive | + | * In our case, the br-ex_104 bridge has one port, eth1.104. This port receives |
| - | * Traffic going through | + | * The data traffic that runs via this bridge |
| + | |||
| + | Now that we have covered the configuration of SQM, we can take a look at some practical commands under the heading | ||
| ===== Troubleshooting ===== | ===== Troubleshooting ===== | ||
| + | * To start and stop SQM: | ||
| + | < | ||
| + | #You might first need to stop it before starting it: | ||
| + | / | ||
| + | SQM: Stopping SQM on br-ex_v104 | ||
| + | |||
| + | #Start it | ||
| + | / | ||
| + | SQM: Starting SQM script: piece_of_cake.qos on br-ex_v104, in: 4096 Kbps, out: 4096 Kbps | ||
| + | SQM: piece_of_cake.qos was started on br-ex_v104 successfully | ||
| + | </ | ||
| + | |||
| + | * SQM creates a matching IFB interface with the convention // | ||
| + | |||
| + | <code bash> | ||
| + | #Real interface | ||
| + | ifconfig br-ex_v104 | ||
| + | br-ex_v104 Link encap: | ||
| + | inet addr: | ||
| + | inet6 addr: fe80:: | ||
| + | UP BROADCAST RUNNING MULTICAST | ||
| + | RX packets:0 errors:0 dropped:0 overruns:0 frame:0 | ||
| + | TX packets:8 errors:0 dropped:0 overruns:0 carrier:0 | ||
| + | collisions: | ||
| + | RX bytes:0 (0.0 B) TX bytes:1088 (1.0 KiB) | ||
| + | #Matching IFB | ||
| + | ifconfig ifb4br-ex_v104 | ||
| + | ifb4br-ex_v104 Link encap: | ||
| + | inet6 addr: fe80:: | ||
| + | UP BROADCAST RUNNING NOARP MTU: | ||
| + | RX packets:0 errors:0 dropped:0 overruns:0 frame:0 | ||
| + | TX packets:0 errors:0 dropped:0 overruns:0 carrier:0 | ||
| + | collisions: | ||
| + | RX bytes:0 (0.0 B) TX bytes:0 (0.0 B | ||
| + | </ | ||
| + | * To get stats on SQM, you can use the tc command: | ||
| + | <code bash> | ||
| + | tc -s qdisc show dev br-ex_v104 | ||
| + | </ | ||
| + | |||
| + | * This brings us to the end of SQM's section in OpenWrt. | ||
| + | * In RADIUSdesk we have taken this knowledge and created the SQM Profiles applet, which makes managing SQM in MESHdesk and APdesk a breeze. | ||
| + | * There is a special page for SQM Profiles that allows you to apply limits in no time at all. | ||