I'm trying set traffic shaping with
tbf qdisk on my wireless interface, to limit download bandwidth.
By now I successfully wrote
wondershaper, which uses HTB. I'd like to use classless shaping, and read that the right qdisk for this job is TBF.
But when I try to set it, it has no effect: download keeps going fast.
I tried different ways to do it, but it never worked:
tc qdisc add dev wlan0 root tbf rate 0.5mbit burst 5kb latency 70ms peakrate 1mbit minburst 1540 tc qdisc add dev wlan0 handle 1:0 root dsmark indices 1 default_index 0 tc qdisc add dev wlan0 handle 2:0 parent 1:0 tbf burst 20480 limit 20480 mtu 1514 rate 32000bps tc qdisc add dev wlan0 root tbf rate 10Mbit burst 10kb latency 5ms tc qdisc add dev wlan0 root tbf rate 220kbit latency 50ms burst 1540
Can anyone give me any advice on how to do it, or what I'm doing wrong??