From: Michael Zintakis <michael.zintakis@googlemail.com>
To: netfilter-devel@vger.kernel.org
Subject: Re: iptables nfacct match question
Date: Tue, 26 Feb 2013 19:23:16 +0000 [thread overview]
Message-ID: <512D0BA4.7060809@googlemail.com> (raw)
In-Reply-To: <20130226135529.GA9526@localhost>
Pablo Neira Ayuso wrote:
> Thanks for the explanation.
No problem.
> I think that, for most users, something
> like:
>
> nfacct list MiB
I can't speak for other people (it would be very foolish of me to do so on this occasion), but judging this from our own needs/experience, the traffic - both by type and volume - is quite different. One cannot simply shoe-horn all traffic under a single denominator and say "that's it" - it doesn't work like that.
> I'm still missing why different formatting according to the accounting
> object can be useful.
OK, I tried to explain this in my previous post, but if it wasn't clear I'll expand a bit further.
Different types of traffic, by their very nature, have different volume requirements. At the "low" end, we have DNS and authentication-type traffic (think RADIUS for example), where the denomination needs to be pretty "low" - in KiB or even "plain bytes" range.
At the other end of that scale you have much higher volume of traffic (think HD video streaming for example or private customers running their own PBXs, taking video/voice calls in their thousands), where the denomination needs to be much higher - in the GiB or even TiB range in some circumstances.
Not to mention that we have our own internal measurements, where we combine the total traffic counters of whole subnets where that denomination goes much much higher that "GiB".
On top of all that, you have the traffic which could be quite unpredictable (think someone running, or connecting to, a private VPN server for example), hence the need for a "dynamic" denomination, depending on the volume of that traffic, which is what I implemented with the "iec" and "si" options.
Not to mention that in your example above, the chosen measurement (MiB) would also apply to packet counters - that isn't very appropriate, since packet counters are much lower (by order of magnitude!) compared to the packet length.
One cannot simply brush it aside and design a one-size-fits-all measurement and apply it.
We've had this problem with the "old" iptables accounting and it is one of the reasons we moved on from that, because it simply wasn't flexible enough. What I did with nfacct provides for flexibility - it can be configured to fit quite a variety of scenarios and individual needs. I hope I've explained myself a bit better this time.
MZ
next prev parent reply other threads:[~2013-02-26 19:23 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-23 20:57 iptables nfacct match question Michael Zintakis
2013-02-25 15:48 ` Pablo Neira Ayuso
2013-02-25 20:20 ` Michael Zintakis
2013-02-26 13:55 ` Pablo Neira Ayuso
2013-02-26 19:23 ` Michael Zintakis [this message]
2013-02-26 21:47 ` Pablo Neira Ayuso
2013-02-27 20:57 ` Michael Zintakis
2013-03-23 12:12 ` Michael Zintakis
2013-04-04 20:37 ` Michael Zintakis
2013-04-04 21:46 ` Jozsef Kadlecsik
2013-04-05 19:10 ` Michael Zintakis
2013-04-05 19:24 ` Jozsef Kadlecsik
2013-04-05 19:34 ` Michael Zintakis
2013-04-05 21:01 ` Jozsef Kadlecsik
2013-04-06 16:14 ` Michael Zintakis
2013-04-05 19:27 ` Michael Zintakis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=512D0BA4.7060809@googlemail.com \
--to=michael.zintakis@googlemail.com \
--cc=netfilter-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).