Re: [LARTC] TC statistics

Linux Advanced Routing and Traffic Control

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

 



Quoting "Nayak, Ramakrishna" <rnayak@xxxxxxxx>:

> All,
> 
> What kind of statistics are available using tc?
> 
> I have the following rules and I want to see the statistics something
> like number of packets transmitted from each queue.
> 
> The rules:
> 
> tc qdisc add dev eth0 root handle 1: prio bands 3 priomap 0 1 2
> 
> tc qdisc add dev eth0 parent 1:1 handle 2: pfifo limit 1024
> tc qdisc add dev eth0 parent 1:2 handle 3: pfifo limit 1024
> tc qdisc add dev eth0 parent 1:3 handle 4: pfifo limit 1024
> 
> tc filter add dev eth0 parent 1:0 protocol ip prio 1 u32 divisor 1
> 
> tc filter add dev eth0 parent 1:0 prio 1 u32 match udp src 0x06B8 0xffff
> flowid 1:1
> tc filter add dev eth0 parent 1:0 prio 1 u32 match udp dst 0x06B8 0xffff
> flowid 1:1
> 
> I tried looking at the stats using:
> 
> tc -stats filter show dev eth0
> 
> and this just lists all the filters.
> 

you can view you bands by TC -S QDISC
BUT see description of PRIOMAP usage i have posted 2 days ago

Oh one more note: SRC and DST are define "Source IP" and "Destination IP"
for source port you must use SPORT, for destination port - DPORT.




---
This message contains no viruses. 
Guaranteed by Kaspersky Anti-Virus.
www.antivirus.lv



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