Re: [LARTC] htb problem

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thursday 24 July 2003 16:26, Delcho wrote:
> Hello,
> I have a problem with my htb in linux gateway machine.
> Wana make this borrow to and from internet:
> every user must be shaped to 32Kbit,max number of users are 6 in one
> subnet /29
> and all subnet must be shaped to 92Kbit,e.i every user  will download
> with 32Kbit,but when
> all 6 user download do not over 92Kbit! I make some classes /attache
> them/ but every user download with 32Kbit and over many up 92Kbit.
> The script:
>
> tc qdisc add dev eth1 root handle 1: htb default 2
>  tc class add dev eth1 parent 1: classid 1:2 htb rate 100Mbit
> ceil 100Mbit burst 1k
>  tc class add dev eth1 parent 1:2 classid 1:11 htb rate
> 92Kbit ceil 92Kbit burst 1k
> tc qdisc add dev eth1 parent 1:11 handle 11 sfq perturb 10
>  tc class add dev eth1 parent 1:11 classid 1:30 htb rate
> 32Kbit ceil 32Kbit burst 1k
> tc qdisc add dev eth1 parent 1:30 handle 30 sfq perturb 10
>  tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32
> match ip dst 192.168.1.17 classid 1:30
>  tc class add dev eth1 parent 1:11 classid 1:40 htb rate
> 32Kbit ceil 32Kbit burst 1k
> tc qdisc add dev eth1 parent 1:40 handle 40 sfq perturb 10
>  tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32
> match ip dst 192.168.1.18 classid 1:40
> ........
>  tc class add dev eth1 parent 1:11 classid 1:80 htb rate
> 32Kbit ceil 32Kbit burst 1k
> tc qdisc add dev eth1 parent 1:80 handle 80 sfq perturb 10
>  tc filter add dev eth1 parent 1:0 protocol ip prio 1 u32
> match ip dst 192.168.1.22 classid 1:80
>
> May be there is mistake but where.....?
Take a look at the faq pages on docum.org.  There is a section with htb rules.  
The problem is that the rate is a minium and the parent ceil is not respected 
if the child classes are asking more then the ceil.

Stef

-- 

stef.coene@xxxxxxxxx
 "Using Linux as bandwidth manager"
     http://www.docum.org/
     #lartc @ irc.oftc.net



[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux