Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

I'm trying set traffic shaping with tc and 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??

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.