| To: | lartc@mailman.ds9a.nl |
|---|---|
| Subject: | [LARTC] Re: dropped bytes in "tc -s class" output |
| From: | Christian Benvenuti <christian.benvenuti@libero.it> |
| Date: | Sun, 20 May 2007 22:56:23 +0200 |
| Delivered-to: | sp-com-lists@consult.net |
| Delivered-to: | lartc-list@securepoint.com |
| Delivered-to: | lartc@outpost.ds9a.nl |
| List-archive: | <http://mailman.ds9a.nl/pipermail/lartc> |
| List-help: | <mailto:lartc-request@mailman.ds9a.nl?subject=help> |
| List-id: | "Mailinglist of the Linux Advanced Routing & Traffic Control project" <lartc.mailman.ds9a.nl> |
| List-post: | <mailto:lartc@mailman.ds9a.nl> |
| List-subscribe: | <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=subscribe> |
| List-unsubscribe: | <http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc>, <mailto:lartc-request@mailman.ds9a.nl?subject=unsubscribe> |
| Sender: | lartc-bounces@mailman.ds9a.nl |
Hi,
>Hi All
>
>Is there any output that counts the number of dropped bytes
>(not packets) just as in "Sent" in "tc -s class" output?
No.
A simple workaround (for simple configurations) consists of redirecting
all the traffic you want to drop to a dedicated class and attach a
blackhole qdisc (i.e., drop everything) to it.
Supposing you redirect to class 1:12 all the traffic that is to be
dropped, all you need is:
tc qdisc add dev eth1 parent 1:12 handle 12: blackhole
The counters of class 1:12 are what you are looking for:
class htb 1:12 parent 1:1 leaf 12: prio 0 quantum 1600 rate 128000bit
ceil 128000bit burst 1664b/8 mpu 0b overhead 0b cburst 1664b/8 mpu 0b
overhead 0b level 0
Sent 2352 bytes 24 pkt (dropped 0, overlimits 0 requeues 0)
^^^^^^^^^^^^^^^^^^^^^^
qdisc blackhole 12: dev eth1 parent 1:12
Sent 0 bytes 0 pkt (dropped 24, overlimits 0 requeues 0)
^^^^^^^^^^
>I have an HTB arrangement here I can see "dropped" in father/mother 1:0
qdisc
>but NOT in each class (they are all zeroes).
>These dropped are packets or bytes?
Number of packets.
>Why these "drops" do not show thenselves in its own class(es) under its
>qdisc?
>
>Any patch perhaps??
>Regards
Regards
/Christian
[http://benve.info]
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [LARTC] dropped bytes in "tc -s class" output, Ethy H. Brito |
|---|---|
| Next by Date: | [LARTC] Re: statistics and calc bandwidth traffic using tc -s qdisc show, Christian Benvenuti |
| Previous by Thread: | [LARTC] dropped bytes in "tc -s class" output, Ethy H. Brito |
| Next by Thread: | Re: [LARTC] Re: dropped bytes in "tc -s class" output, Ethy H. Brito |
| Indexes: | [Date] [Thread] [Top] [All Lists] |