Re: HTB statistics

Linux Advanced Routing and Traffic Control

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

 



m.innocenti@xxxxxxxxx wrote:
Andy Furniss wrote:

    there is something I'm not able to understand about HTB statistics.
Why the qdisc show show how many packets are overlimits but in the
classes there are always 0 packets overlimits or dropped?

Overlimits is more a kernel thing then usefull as a traffic control figure and tc qdisc -s .. shows the root 1: htb but tc -s class doesn't.
You can see drops with tc -s class - but the default htb queue is too long in this test. Add a specific queue to the class 1:10 so you can specify length. eg.
tc qdisc add dev eth0 parent 1:10 handle 10: bfifo limit 64k


Thank you for your reply. So there is not a way to know that a specific class is actually shaping the traffic without attaching a qdisc to each class?


Well the fact you are backlogged shows queue length - just default length htb uses in this test is so long it doesn't drop.

If you had more classes they would be shorter and drop.

Adding a queue just lets you choose length - you won't really see any better stats though you see more with tc -s qdisc.

You can also use tc -s class and look at the borrowed/lended counts and see what you can deduce from those.

Andy.

_______________________________________________
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