From: Alejandro Ramos Encinosa Date: Wed, 04 Apr 2007 04:57:55 +0000 Subject: [LARTC] tc questions Message-Id: <200704040502.19649.alex@uh.cu> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: lartc@vger.kernel.org Hi to all of you!!! I am a Computer Science student trying to do the pre-grade thesis. I am try= ing=20 to develop a free software tool to help administrators to control the=20 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=20 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=20 default, right?). If that is the case, why when I do "tc qdisc show ..." it= =20 JUST shows me those qdisc I explicitly attached to classes without any chil= d=20 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=20 (because of the 10mbit rate, I guess). Why? Shouldn't parent classes restri= ct=20 children's rate? Thanks in advance. Regards, Ale. --=20 Alejandro Ramos Encinosa Fac. Matem=E1tica Computaci=F3n Universidad de La Habana _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc