LARTC
[Top] [All Lists]

Re: [LARTC] tc questions

To: Alejandro Ramos Encinosa <alex@uh.cu>
Subject: Re: [LARTC] tc questions
From: Andy Furniss <lists@andyfurniss.entadsl.com>
Date: Wed, 04 Apr 2007 23:01:22 +0100
Cc: LARTC@mailman.ds9a.nl
Delivered-to: sp-com-lists@consult.net
Delivered-to: lartc-list@securepoint.com
Delivered-to: lartc@outpost.ds9a.nl
In-reply-to: <200704040502.19649.alex@uh.cu>
List-archive: <http://mailman.ds9a.nl/pipermail/lartc>
List-help: <mailto:lartc-request@mailman.ds9a.nl?subject=help>
List-id: "Mailinglist of the Linux Advanced Routing &amp; Traffic Control project" <lartc.mailman.ds9a.nl>
List-post: <mailto:lartc@mailman.ds9a.nl>
List-subscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=subscribe>
List-unsubscribe: <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=unsubscribe>
References: <200704040502.19649.alex@uh.cu>
Reply-to: lists@andyfurniss.entadsl.com
Sender: lartc-bounces@mailman.ds9a.nl
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-GB; rv:1.8.1.2) Gecko/20070227 SeaMonkey/1.1.1
Alejandro Ramos Encinosa wrote:
Hi to all of you!!!

I am a Computer Science student trying to do the pre-grade thesis. I am trying to develop a free software tool to help administrators to control the traffic. Right now this tool is based on tc and iptables.
I am having some problems trying to understand tc and tc examples:
- Why in almost every list of tc rules based on htb class, there is a "tc qdisc dev ... root ... htb default ..." as a root node? Is it mandatory to work with htb class? - I understood that every class node has its own qdisc attached (fifo by default, right?). If that is the case, why when I do "tc qdisc show ..." it JUST shows me those qdisc I explicitly attached to classes without any child class?
- What should I expect if I run something like this?

tc qdisc add dev eth0 root handle 1: htb default 10
tc class add dev eth0 parent 1: classid 1:1 htb rate 100mbit
tc class add dev eth0 parent 1:1 classid 1:10 htb rate 90mbit
tc class add dev eth0 parent 1:1 classid 1:20 htb rate 1kbit
tc class add dev eth0 parent 1:20 classid 1:21 htb rate 10mbit

I guessed the traffic redirected to 1:21 should have 1kbit of rate at most (because of its parent 1:20), but when I ran this, I got a higher rate (because of the 10mbit rate, I guess). Why? Shouldn't parent classes restrict children's rate?

Thanks in advance. Regards, Ale.


In addition to what Christian said - have you seen the docs on the htb homepage -

http://luxik.cdi.cz/~devik/qos/htb/

and Steph Coene's work -

http://www.docum.org

Andy.

_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

<Prev in Thread] Current Thread [Next in Thread>