[LARTC] Re: tc questions
Marco Aurelio
marco.casaroli at gmail.com
Tue Apr 10 05:55:10 CEST 2007
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 at 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 at uh.cu>
> Fac. Matemática Computación
> Universidad de La Habana
> _______________________________________________
> LARTC mailing list
> LARTC at mailman.ds9a.nl
> http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
>
--
Marco
More information about the LARTC
mailing list