All of lore.kernel.org
 help / color / mirror / Atom feed
From: don-nf@isis.cs3-inc.com (Don Cohen)
To: Patrick Schaaf <bof@bof.de>
Cc: netfilter-devel@lists.samba.org
Subject: Re: performance issues (nat / conntrack)
Date: Sun, 23 Jun 2002 23:54:20 -0700	[thread overview]
Message-ID: <15638.49692.902811.4513@isis.cs3-inc.com> (raw)
In-Reply-To: <20020624084836.R5183@oknodo.bof.de>

Patrick Schaaf writes:
 > Don,
 > 
 > (hope you don't mind me replying on-list)
No, I just hope the rest of the list doesn't mind.

 > The relative slowness of conntrack vs. nonconntrack doesn't matter in the
 > real world. I can reproduce it in artificial tests, but in reality, the
 > arrival rates for new connections are lower. The reason, at least for me,
 > is that I parallelize on multiple boxes long before conntrack reaches its
 > breaking point, and I do that for different reasons (resilience and the
 > other workload the boxes tend to have, like user level proxying.)
It seems to me like a real problem when you're under attack.
It means that a syn flood at a relatively low rate is effective.
But I don't think that the hash function is the problem in that case.
In fact, there is no hash function that solves that problem, since the
attacker can always feed you data that ruins the hash function, unless
of course you want the function to differ from one machine to the next
and in effect be another secret.
I suggest instead that the hash lookup be limited to a small number of
probes.  If not found in, say, 10 probes, act like it's not there and
the table is full.  The attacker can still attack some particular
bucket(s) (which doesn't do a lot of good - he's denying service to
some small number of customers but has no control over which ones),
but not the whole machine. 

 > >  > As for theories, the last time, we almost agreed that the hash function
 > >  > is very bad. Nobody did confirm that feeling, though.
 > > What's wrong with the hash function?
 > 
 > It's suspected to be bad. Chains are suspected to become long. Bucket
 > occupation is suspected to have high variance. Nobody checked, or at
 > least nobody reported the results of such checking.
To me something like the sum of IP's and ports all mod something
that is not a multiple of 2 seems ideal.  I suppose it's something
like that.

  reply	other threads:[~2002-06-24  6:54 UTC|newest]

Thread overview: 46+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <20020623132739.12D52455E@lists.samba.org>
2002-06-24  4:46 ` performance issues (nat / conntrack) Don Cohen
2002-06-24  6:06   ` Patrick Schaaf
     [not found]     ` <15638.48245.84830.480715@isis.cs3-inc.com>
2002-06-24  6:48       ` Patrick Schaaf
2002-06-24  6:54         ` Don Cohen [this message]
2002-06-24  7:13           ` Patrick Schaaf
2002-06-24 15:18             ` Don Cohen
2002-06-25  2:44               ` Harald Welte
     [not found] <20020625151007.980D14140@lists.samba.org>
2002-06-25 17:00 ` Don Cohen
2002-06-25 21:47   ` Jean-Michel Hemstedt
2002-06-26 14:50     ` Harald Welte
2002-06-26 18:04       ` Jean-Michel Hemstedt
     [not found] <20020621132640.2C326472B@lists.samba.org>
2002-06-21 17:35 ` Don Cohen
2002-06-21 18:26   ` Jean-Michel Hemstedt
2002-06-23  9:14   ` Jean-Michel Hemstedt
2002-06-25 10:38     ` Jozsef Kadlecsik
2002-06-25 11:11       ` Jean-Michel Hemstedt
2002-06-25 11:48         ` Jozsef Kadlecsik
2002-06-20 19:48 Jean-Michel Hemstedt
2002-06-22 16:51 ` Harald Welte
2002-06-23  9:15   ` Jean-Michel Hemstedt
2002-06-25 11:33     ` Jozsef Kadlecsik
2002-06-25 12:47       ` Harald Welte
2002-06-25 14:23         ` Jozsef Kadlecsik
     [not found]         ` <025001c21c50$763fa880$0489cb8a@etbx180>
2002-06-25 16:07           ` Harald Welte
2002-06-25 21:08         ` Jozsef Kadlecsik
2002-06-25 13:21       ` Jean-Michel Hemstedt
2002-06-25 13:51         ` Harald Welte
2002-06-25 14:33           ` Jozsef Kadlecsik
2002-06-25 14:51           ` Jean-Michel Hemstedt
2002-06-25 16:11             ` Harald Welte
2002-06-25 13:52         ` Patrick Schaaf
2002-06-25 14:53         ` Jozsef Kadlecsik
2002-06-25 15:22           ` Balazs Scheidler
2002-06-25 10:35 ` Jozsef Kadlecsik
2002-06-25 12:42   ` Jean-Michel Hemstedt
2002-06-25 13:50     ` Patrick Schaaf
2002-06-25 19:03       ` Harald Welte
2002-06-25 13:56     ` Alex Bennee
2002-06-25 14:17     ` Jozsef Kadlecsik
2002-06-25 15:13       ` Balazs Scheidler
2002-06-25 19:06         ` Harald Welte
2002-06-26  8:18           ` Balazs Scheidler
2002-06-27  2:21       ` Andrew Smith
2002-06-27 11:24         ` Harald Welte
2002-06-29  5:25           ` Andrew Smith
2002-06-25 19:01     ` Harald Welte

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=15638.49692.902811.4513@isis.cs3-inc.com \
    --to=don-nf@isis.cs3-inc.com \
    --cc=bof@bof.de \
    --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.