Re: htb bandwith

Linux Advanced Routing and Traffic Control

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

 



On Monday 03 May 2004 13:54, derbel hajer wrote:
> Hi,
>
> tc qdisc add dev eth0 root handle 1: htb
>
> tc class add dev eth0 parent 1:0 classid 1:1 htb rate 2000Kbit  ceil
> 2000kbit
> tc class add dev eth0 parent 1:1 classid 1:2 htb rate 1200Kbit ceil
> 2000kbit
> tc class add dev eth0parent 1:1 classid  1:3 htb rate 800Kbit ceil 2000kbit
> tc class add dev eth0 parent 1:2 classid 1:21 htb rate 600Kbit ceil
> 2000kbit
> tc class add dev eth0 parent 1:2 classid 1:22 htb rate 300Kbit ceil
> 2000kbit
> tc class add dev eth0 parent 1:2 classid 1:23  htb rate 200Kbit ceil
> 2000kbit
> tc class add dev eth0 parent 1:2 classid 1:24 htb rate 100Kbit ceil
> 2000kbit
>
>  tc class add dev eth0 parent 1:3 classid 1:31 htb rate 400Kbit ceil
> 2000kbit
> tc class add dev eth0 parent 1:3 classid 1:32 htb rate 300Kbit ceil
> 2000kbit
> tc class add dev eth0 parent 1:3 classid 1:33 htb rate 100Kbit ceil
> 2000kbit
>
> By using this script, the class 1: 2 can it borrow of the
> bandwidth not used by the class 1: 3 (the classes 1:2 and
> 1:3 can she borrow of the busy band among them).
Classes with the same parent, can borrow unused bandwidth from the parent.  
First, each class can send it's rate if they want.  After that, remainig 
bandwidth is distributed proportional to the quantum which is proportional to 
the rate.

> I want to control the used and free busy band during time.
> For it there, I used the command: tc ?s class ls dev eth0.
> Which are the information supplied by this command, which I
> should control to draft my interpretations on the use of the bandwidth.
Try this page:
http://www.docum.org/stef.coene/qos/faq/cache/33.html

Stef

-- 
stef.coene@xxxxxxxxx
 "Using Linux as bandwidth manager"
     http://www.docum.org/
_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/


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