Table of Contents


PPSK with Bandwidth Limits

Options for a MDU deployment

SQM on OpenWrt

The following sections are a brief summary of information from this wiki page (https://openwrt.org/docs/guide-user/network/traffic-shaping/sqm) and from our own experiments.

Required Packages

Config File

config queue 'br_ex_v104'
    option interface 'br-ex_v104'
    option enabled '1'
    option script 'piece_of_cake.qos'
    option linklayer 'none'
    option verbosity '5'
    option upload '4096'
    option download '4096'
    option debug_logging '0'
    option qdisc 'cake'
config device                         
    option type 'bridge'          
    option name 'br-ex_v104'      
    option stp '0'                
    list ports 'eth1.104'         
                                      
config interface 'ex_v104'            
    option device 'br-ex_v104'    
    option proto 'static'         
    option ipaddr '10.200.105.1'  
    option netmask '255.255.255.0'

Now that we have covered the configuration of SQM, we can take a look at some practical commands under the heading

Troubleshooting

#You might first need to stop it before starting it:
/etc/init.d/sqm stop
SQM: Stopping SQM on br-ex_v104

#Start it
/etc/init.d/sqm start
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
#Real interface
ifconfig br-ex_v104
br-ex_v104 Link encap:Ethernet  HWaddr 08:00:27:EA:B7:D5  
    inet addr:10.200.105.1  Bcast:10.200.105.255  Mask:255.255.255.0
    inet6 addr: fe80::a00:27ff:feea:b7d5/64 Scope:Link
    UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:1000 
    RX bytes:0 (0.0 B)  TX bytes:1088 (1.0 KiB)
#Matching IFB
ifconfig ifb4br-ex_v104
ifb4br-ex_v104 Link encap:Ethernet  HWaddr AA:93:EE:2A:4D:E6  
    inet6 addr: fe80::a893:eeff:fe2a:4de6/64 Scope:Link
    UP BROADCAST RUNNING NOARP  MTU:1500  Metric:1
    RX packets:0 errors:0 dropped:0 overruns:0 frame:0
    TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
    collisions:0 txqueuelen:32 
    RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B
tc  -s qdisc show dev br-ex_v104