RE: Tools to get current bandwidth of queue or speed rate?

Linux Advanced Routing and Traffic Control

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

 



> On Monday 14 February 2005 19:50, Vincent wrote:
> > Hello,
> >
> > Does there exist any tool that can report the current bandwidth 
> > information that is managed by tc(traffic control) tool. I can use
the 
> > tool to get the current(or accumulated) bandwidth used by each tc 
> > queue.
> >
>> tc qdisc show
>> tc class show dev eth0
>> tc class show dev eth1
>> tc filter show dev eth0
>> tc filter show dev eth1
>>
> > But if I want to know what is the value of throughput on eth0/eth1 
> > currently. And the value of throughput will be refreshed 
> every period 
> > of time. How can I do??
> 
> You can always run `ifconfig eth0` and look at the TX line, 
> then do that again 
> in 10 seconds and calculate and graph the difference.  That's 
> your TX rate.  
> You can do the same thing for your qdiscs, too.
How to do the same thing for the qdisc (ifconfig eth0?) ??

Besides, the script of tc I am using is something like the following:
tc qdisc add dev eth0 root handle 1: htb default 10 r2q 100
tc class add dev eth0 parent 1: classid 1:1 htb rate 1mbps burst 2048k
tc qdisc add dev eth0 parent 1:1 handle 3: sfq perturb 100
tc filter add dev eth0 protocol ip parent 1:0 prio 1 handle 3 fw flowid
1:1

Here I want to get the information is the current throughput of tc class
in each nic.
It's a little like the following commands. But not the configuration of
bandwith on each class.
# tc class show dev eth0

I wan to know the throughput of run time on each class.

Thanks for your response
Vincent

_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

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