Ok, here is the situation. Linux box, that is connected to internet via ADSL line with 256kbps bandwith -> internal LAN behind it. I managed to limit the downloading speeds (internet ->linux -> internal lan) with CBQ and it _does_ work. The upload speeds (internal lan -> linux -> internet) however remains untouched. I use cbq.init script and here is what I get from the tc statistics:
# tc -s -d qdisc show dev eth0
Code:
qdisc tbf 115: rate 40Kbit burst 10Kb/8 mpu 0b lat 1.2s
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
qdisc tbf 113: rate 40Kbit burst 10Kb/8 mpu 0b lat 1.2s
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
qdisc tbf 111: rate 40Kbit burst 10Kb/8 mpu 0b lat 1.2s
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
qdisc tbf 109: rate 40Kbit burst 10Kb/8 mpu 0b lat 1.2s
Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
Sent: zero bytes, zero packets... If I take a look on eth1's stats I see real numbers different from 0 (zero).
Here are two example classes that I use:
cbq-112
Code:
DEVICE=eth1,10Mbit,1Mbit
RATE=40Kbit
WEIGHT=4Kbit
PRIO=5
RULE=10.10.10.8
cbq-113
Code:
DEVICE=eth0,10Mbit,1Mbit
RATE=40Kbit
WEIGHT=4Kbit
PRIO=5
RULE=10.10.10.8,
This upload shaping is very vital, becouse the ADSL line has very limited upload speeds (about 64kbps) and starts droping packets if that is exceeded.