Re: Re: tc questions

Linux Advanced Routing and Traffic Control

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

 



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@xxxxx>
Fac. Matemática Computación
Universidad de La Habana
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc


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