From: "David Luyer" <david@luyer.net>
To: "'Florian Weimer'" <fw@deneb.enyo.de>, <linux-kernel@vger.kernel.org>
Subject: RE: NetFlow export
Date: Fri, 14 Mar 2003 20:32:35 +1100 [thread overview]
Message-ID: <002a01c2ea0c$a5af9550$638317d2@pacific.net.au> (raw)
In-Reply-To: <87llzj8jmr.fsf@deneb.enyo.de>
Florian Weimer wrote:
> Jakob Oestergaard <jakob@unthought.net> writes:
>
> > You asked for netflow data export. Netramet can give you something
> > similar to netflow (I never used netflow, but from what I
> > hear, netramet is similar only more flexible).
>
> I need the NetFlow data format, not something else.
NetFlowMet is the NetFlow module for netramet. But it's only a
receiver, not a transmitter.
However, 'ntop' can generate NetFlow packets from a Linux system,
using libpcap.
I suggest you read http://www.switch.ch/tf-tant/floma/software.html
> > With 10 lines of Perl you could do full ASN-1 ;)
>
> NetFlow is not based on ASN.1. It's a completely different format (an
> industry standard which is implemented by quite a few vendors).
NetFlow interacts with SNMP a little though. The interface ID numbers
in NetFlow come from the SNMP interface index table.
> > Point being; if what you want is flow information from a
> > Linux router, excellent user space software (both "meter" and
> > retrieval/filtering tools) already exist for that.
>
> I fear the performance impact of copying all packet headers to user
> space.
It's only the headers, not the packets.
NetFlow in Cisco routers is a route caching path which happens to
keep counters that it can export as flow export packets. It can
also be used to do things such as caching policy routing (reducing
ACL lookups and so on). But chances are there are patents covering
the use of NetFlow route caching.
> > If you want something else, then I have completely misread
> > your mails. Please elaborate, in that case :)
>
> I'd like to see something which has virtually no impact on forwarding,
> so that it's a no-brainer to enable it. I doubt copying all the
> packet headers to user space falls into this category.
Maybe you should try ntop and see what impact it has (preferably in a
test lab first, if you have a performance testing lab)? If the impact
is too high, you could consider an alternate approach (eg, using some
form of kernel IP accounting and periodically scanning the accounting
table and exporting the flows as NetFlow packets).
Personally I considered once implementing a kernel *receiver* for
NetFlow packets as receiving NetFlow packets is an extremely critical
application for me. However in the end I wrote a userspace NetFlow
receiver that's a mix of assembler and C (but not using libc) and
is careful to accumulate data into 128k blocks before writing it to
a RAID array optimized for 128k writes, and it can receive an insane
amount of NetFlow data (compared to older utilities running on
mid-range DEC Alpha or Sun systems on commercial operating systems,
which had problems keeping up with one busy router, this runs on an
aging Intel ISP2150 and collects from over 50 busy routers, still
at low load) so I never had to actually go down the kernel path.
David.
prev parent reply other threads:[~2003-03-14 9:22 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-03-13 11:07 Florian Weimer
2003-03-13 11:48 ` Jakob Oestergaard
2003-03-13 11:57 ` Florian Weimer
2003-03-13 12:29 ` Jakob Oestergaard
2003-03-13 13:46 ` Florian Weimer
2003-03-13 16:45 ` Jakob Oestergaard
2003-03-14 9:32 ` David Luyer [this message]
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='002a01c2ea0c$a5af9550$638317d2@pacific.net.au' \
--to=david@luyer.net \
--cc=fw@deneb.enyo.de \
--cc=linux-kernel@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
all inboxes | Powered by JetHome®