From: Patrick Schaaf <bof@bof.de>
To: Martin Josefsson <gandalf@wlug.westbo.se>
Cc: Patrick Schaaf <bof@bof.de>,
Netfilter-devel <netfilter-devel@lists.samba.org>
Subject: Re: cttest-0.3
Date: Sun, 7 Jul 2002 17:53:39 +0200 [thread overview]
Message-ID: <20020707175339.N13116@oknodo.bof.de> (raw)
In-Reply-To: <1026054628.1283.170.camel@tux>; from gandalf@wlug.westbo.se on Sun, Jul 07, 2002 at 05:10:28PM +0200
> The rt hash doesn't do well at all on your data. The winner on your data
> is crc32 which is very robust in all tests on all data it seems. It's
> just a shame that it's so cpu-consuming compared to the other hashes.
The abcd hash also fares very well, if we disregard the results for
the (avoidable) bad bucket counts. abcd plus prime bucket counts would
be as good as crc32, if I did not overlook some result.
On the other hand, I would not dismiss one or the other function right
now. We lack a thorough understanding for plausible attack vectors.
> No real diffrence between crc32 and crc32_bof, crc32_bof is slightly
> more cpu-consuming but that's it.
I'm not really worried about the relative CPU usage of the functions
we have now; they are all faster than a single random memory reference.
And the crc32 could be optimized more. I'll probably work on that
for a bit, now.
> Have you tested crc32 with initial seed as well?
> crc32 + seed that's randomly generated at conntrack init would probably
> work well.
For the abcd hash, random generation of the multipliers is also an option.
This, together with the possibility to chose the bucket count as the
"randomly Nth smaller prime" than the value given by the user, should give
a potential attacker a pretty hard time.
But I'll stay undecided on the issue for some more time. We are still lacking
any data from genuine web servers, and we only have a vague feeling about
what an attacker may do.
best regards
Patrick
next prev parent reply other threads:[~2002-07-07 15:53 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-07 13:17 cttest-0.3 Patrick Schaaf
2002-07-07 15:10 ` cttest-0.3 Martin Josefsson
2002-07-07 15:53 ` Patrick Schaaf [this message]
2002-07-07 16:10 ` cttest-0.3 Patrick Schaaf
2002-07-07 17:37 ` cttest-0.4 Patrick Schaaf
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=20020707175339.N13116@oknodo.bof.de \
--to=bof@bof.de \
--cc=gandalf@wlug.westbo.se \
--cc=netfilter-devel@lists.samba.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.