[LARTC] cbq.init - Some strange behavior / small question

Christoph Petersen lists@peterschen.de
Mon, 11 Oct 2004 13:47:48 +0200


Hi,

I've a small question about the cbq.init script.
For a gateway I want to shape connections from special
IP addresses to limit their bandwith.

In my test environment I've too machines. One testclient
with the IP 192.168.1.19. On my "shaper" (192.168.1.251) runs
cbq.init with following config file:

orthanc:/etc/sysconfig/cbq# cat cbq-4.ws-019
DEVICE=eth0,100Mbit,10Mbit
RATE=10Kbit
WEIGHT=1Kbit
PRIO=5
LEAF=tbf
ISOLATED=yes
BOUNDED=yes
RULE=192.168.1.19/32

When I have a single scp upload to the server my bandwith is limited to 
10Kbit/s.
But when I have serveral uploads (I've had five in my test) I have an 
overall bandwith
of 20.1Kbit/s.

How can I say my class to limit the overall traffic to max 10Kbit/s?

Thanks in advance
Greets
Christoph