LARTC
[Top] [All Lists]

Re: [LARTC] Re: tc questions

To: "Alejandro Ramos Encinosa" <alex@uh.cu>, lartc@mailman.ds9a.nl
Subject: Re: [LARTC] Re: tc questions
From: "Marco Aurelio" <marco.casaroli@gmail.com>
Date: Tue, 10 Apr 2007 00:55:10 -0300
Delivered-to: sp-com-lists@consult.net
Delivered-to: lartc-list@securepoint.com
Delivered-to: lartc@outpost.ds9a.nl
Dkim-signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=ElbAlGovdmcw51/ZgjsYaUlbE6y4IxRFlnRPBkaAHxd6t1pCWsYGR0YIgSSJP+vtyeq9Rv9JDPY2jtfVec59kHkgSQYEsoTUEWDF3Hdg3BpZhysSJuEc1A4FLP+5Qa4FqCk8vTHRjuBCL0Xir9PhSP3A14GFKlbEnMZzyE/p7ho=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=pOE5TGzNLle/SxpbmvvXa0rbPDfFetjOOmNKOS5PFfRtaBg8IggVpoRc/YM9OHmGNEj6XroxULyNT+QhNHenKUqPJj3bkDdKwq4enRqhUbafONQ8J8Gsj0N2UWz2ELJ0TI2+BQ9E6E0/YF0xmWrfrowUxyobQlyq1a15GBEvlec=
In-reply-to: <200704092349.09428.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: <1175788853.3947.6.camel@benve-laptop> <200704051836.54856.alex@uh.cu> <200704092349.09428.alex@uh.cu>
Sender: lartc-bounces@mailman.ds9a.nl
Hello.

I may be misunderstanding what you are trying to do, but I think

tc -s class ls dev eth1

shows the stats you want.

note on the "class" word

On 4/9/07, Alejandro Ramos Encinosa <alex@uh.cu> wrote:
Hi to all.

>>>> why when I do "tc qdisc show ..." it JUST shows me those qdisc I
>>>> explicitly attached to classes without any child class?
>
>>> The default pFIFO qdisc that get attached to the classes are not
>>> shown by the above command.
>
>>...and which is the command that will show them??
>
> There is no command that does that.
> If you really want to see them, you can explicitly attach a pFIFO
> queue to the classes.
I have a little question here:
If I understood well, if I want to see a classless qdisc statistics I must
explicity attach the qdisc to the classful qdisc. However, I have (for
example) the following configuration and I still don't get the statistics for
120: (just for 1: and 121:):

----------------------------8<--------------------------------8<-----------------------------
tc qdisc add dev eth1 root handle 1: htb default 10

tc class add dev eth1 parent 1: classid 1:1 htb rate 100mbit

tc class add dev eth1 parent 1:1 classid 1:10 htb rate 2mbit
tc class add dev eth1 parent 1:1 classid 1:20 htb rate 98mbit
tc qdisc add dev eth1 parent 1:20 handle 120: sfq perturb 10

tc class add dev eth1 parent 1:20 classid 1:21 htb rate 49mbit
tc qdisc add dev eth1 parent 1:21 handle 121: sfq perturb 10

tc filter add dev eth1 protocol ip parent 1: prio 1 u32 match ip dst 10.6.70.1
flowid 1:20
tc filter add dev eth1 protocol ip parent 1:20 prio 1 u32 match ip sport 80
0xffff flowid 1:21
---------------------------->8-------------------------------->8-----------------------------

If I run `tc -s qdisc show dev eth1' then I will get something like

----------------------------8<--------------------------------8<-----------------------------
qdisc htb 1: r2q 10 default 10 direct_packets_stat 0
 Sent 2284 bytes 7 pkt (dropped 0, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0
qdisc sfq 121: parent 1:21 limit 128p quantum 1514b perturb 10sec
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0
---------------------------->8-------------------------------->8-----------------------------

i.e. not 120: at all!!! and I need to get that flow.
Worth of that is that if I run `tc -s class show dev eth1' then I will get
this for class 1:20

----------------------------8<--------------------------------8<-----------------------------
class htb 1:20 parent 1:1 rate 98000Kbit ceil 98000Kbit burst 50580b cburst
50580b
 Sent 0 bytes 0 pkt (dropped 0, overlimits 0 requeues 0)
 rate 0bit 0pps backlog 0b 0p requeues 0
 lended: 0 borrowed: 0 giants: 0
 tokens: 4229 ctokens: 4229
---------------------------->8-------------------------------->8-----------------------------

and I am sure I am generating traffic that matchs its filter. Can any of you
to help me?

PS: what I really want is a way to obtain statistics for each qdisc.
--
Alejandro Ramos Encinosa <alex@uh.cu>
Fac. Matemática Computación
Universidad de La Habana
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc



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

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