> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of
> Michael Gale
> Sent: Wednesday, February 18, 2004 6:36 PM
> To: [EMAIL PROTECTED]
> Subject: Re: [Ntop] Packet dumping or mirroring
>
>
>
> Oh ... my mistake, so it is not ntop and it is libcap that can
> not keep up. I
> did read the ring buffer doc, I guess I should of refreshed my memory.

Strictly honest, it CAN be ntop that fails, but separate 'failure to
capture' scenarious in the NIC card driver or in libpcap are also possible -
and this can be invisible, as some of the failure modes don't count
ANYTHING.  (So you see ntop losing 2% of the packets and think it's all
ntop's fault - and miss the ifconfig showing you 25% loss in the NIC card.
Or pcap_stats() sets the counter to zero, regardless of whether it has lost
packets).

> >From the ring doc it seems like the network drive / module would
> have to support
> the ring buffer driver ? If so would that not cause a problem if
> all the network
> modules have to be modified ?

Yes.  And that gets you into some really tough things, as many older network
cards simply can't keep up.  Plus a lot of Luca's changes appear to be in
the bottom half interrupt handler and that's one place you don't want to
delay things.  So I have my doubts these drivers would be acceptable in the
mainstream kernel.

> Using ULogd I can capture all packets or only headers and place
> them in the RAM
> drive.

If you capture all the headers, you're really doing data compression, which
makes it easier for ntop to keep up.  If you're ok with that, you should
look into netFlow instead.

> And since NTOP can read pcap files we are all set.

Probably not.  Once ntop sees the EOF, it stops reading.  This may mean that
it's going to have problems if the read blocks waiting for data.  libpcap is
not thread-safe, so it may be taking the 'easy' way out and block the whole
thread group.

You're certainly toast under FreeBSD with it's userland threads - read the
stuff between Stanley, Michal and myself over the last 2 weeks for lots
about that...

>
> Michael.
>
>
> On Wed, 18 Feb 2004 16:32:33 -0600
> "Burton M. Strauss III" <[EMAIL PROTECTED]> wrote:
>
> > What do I think?  It's bogus.  What you're really talking about
> is to buffer
> > packets.  ntop already does that - check the stats in textinfo.html.
> >
> > (Especially if you turn off the packet decoders), ntop keeps up with
> > 100BaseT just fine - ASSUMING it gets fed the packets.
> >
> > It's not ntop per se that can't keep up, it's libpcap.  Read
> the articles in
> > docs/FAQ and Luca's paper on ring-buffer driver mods for the skinny.
> >
> >
> > -----Burton
> >

-----Burton



_______________________________________________
Ntop mailing list
[EMAIL PROTECTED]
http://listgateway.unipi.it/mailman/listinfo/ntop

Reply via email to