From mboxrd@z Thu Jan 1 00:00:00 1970 From: xplorer Date: Tue, 03 Jul 2001 18:31:22 +0000 Subject: Re: [LARTC] TC statistics Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org Quoting "Nayak, Ramakrishna" : > 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 _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/