> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
> Behalf Of Luigi Rizzo
> Sent: Thursday, May 03, 2001 09:50
> To: Gunther Schadow
> Cc: Darren Reed; [EMAIL PROTECTED]; [EMAIL PROTECTED];
> [EMAIL PROTECTED]; [EMAIL PROTECTED];
> [EMAIL PROTECTED]; [EMAIL PROTECTED]
> Subject: [altq 839] Re: The future of ALTQ, IPsec & IPFILTER playing
> together ...
>
>
> > is fast, as fast as it gets. It is my understanding that BPF
> > is very fast
>
> wrong. It is an interpreted bytecode, much slower than,
> say, approaches which translate individual filters into
> native machine code (DPT/DPF ? don't remember the exact reference,
> it was some usenix/sigcomm paper).

BPF+ has a JIT.
We made several tests with an experimental version of a JIT for Win32 and we
were able to improve speed by a factor 10. If I remeber well, this is the
same result of BPF+ people.
However a JIT for BPF is *really* very simple ==> BPF could be seen as
really fast packet filter.
(by the way, we should include a JIT in our future releases of WinPcap).


> >               and that BPF scales very well for even complex
> > expressions.
>
> this is more a ruleset compiler issue, where you try to analyse

Not only.
BPF does not support:
- stateful inspection
- multiple return values (only 1/0)
- multiple outputs (I want to know, for example the amount of traffic IP
*and* TCP)

Even a really good compiler cannot avoid these problems.

==> BPF is fast; it is not powerful enough for other apps but capturing
packets.

Cheers,

        fulvio

> the whole ruleset and find out what are the important
> field to look at, build a tree/trie to drive your
> searches, use lookup and hash tables, etc.e tc. -- there is a lot of
> recent literature on the topic of fast packet classification.
>
>       cheers
>       luigi
>
> > would want a number representing the class. Also, it's beenong
> > noted before, the BPF machine needs some state awareness between
> > packets.
> >
> > regards
> > -Gunther
> >
> > --
> > Gunther Schadow, M.D., Ph.D.                    [EMAIL PROTECTED]
> > Medical Information Scientist      Regenstrief Institute for Health Care
> > Adjunct Assistent Professor        Indiana University School of Medicine
> > tel:1(317)630-7960                         http://aurora.regenstrief.org
> >
>
>


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-net" in the body of the message

Reply via email to