LARTC
[Top] [All Lists]

[LARTC] tc actions and accounting

To: lartc <lartc@mailman.ds9a.nl>
Subject: [LARTC] tc actions and accounting
From: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Date: Thu, 23 Nov 2006 21:08:44 +0100
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 &amp; 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
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.7) Gecko/20060911 SUSE/1.0.5-1.1 SeaMonkey/1.0.5
Hi,

I'd like to account the data going out to an interface after shaping
and policing. At the moment, I'm using ipt_ACCOUNT for per-IP
accounting, but it counts packets regardless if they are dropped or
not. Using tc counters directly would force me to install one tc rule
per IP which I'd rather avoid.
My idea was to use tc actions with ipt_ACCOUNT, but I have no idea
what will be counted and how to specify an action for only some of
the data *after* shaping and policing.
The tc action documentation seems to suggest that the actions
happen at the time of PREROUTING/POSTROUTING in netfilter, so
that would not work for me.

As an alternative, I searched for a tc equivalent of ipt_ACCOUNT,
but I found nothing. My previous attempt to solve a similar problem
is here: http://mailman.ds9a.nl/pipermail/lartc/2005q2/016271.html

Regards,
Carl-Daniel
_______________________________________________
LARTC mailing list
LARTC@mailman.ds9a.nl
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

<Prev in Thread] Current Thread [Next in Thread>
  • [LARTC] tc actions and accounting, Carl-Daniel Hailfinger <=