Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Dec 2006 09:48:38 +0000
From:      Chris <chrcoluk@gmail.com>
To:        "Jeremie Le Hen" <jeremie@le-hen.org>
Cc:        freebsd-net@freebsd.org, Andre Oppermann <andre@freebsd.org>, Anton Yuzhaninov <citrin@citrin.ru>
Subject:   Re: Automatic TCP send and receive socket buffer sizing
Message-ID:  <3aaaa3a0612210148n78b326a5wde5efa2e8dc4edb9@mail.gmail.com>
In-Reply-To: <20061220084515.GK48407@obiwan.tataz.chchile.org>
References:  <457F2D82.6000905@freebsd.org> <1299780826.20061214141629@citrin.ru> <458142DB.8000002@freebsd.org> <20061220084515.GK48407@obiwan.tataz.chchile.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On 20/12/06, Jeremie Le Hen <jeremie@le-hen.org> wrote:
> Hi Andre,
>
> Thank you for your work, it looks very exciting !
>
> On Thu, Dec 14, 2006 at 01:26:03PM +0100, Andre Oppermann wrote:
> > The
> > automatic send buffer is not perfect either and has some cases where
> > it may allocate too much resources of the host to a particular connection.
> > OTOH it does much better than the small fixed sized buffer we had before.
>
> This makes me think it makes easier the way to a DoS.  A malicious user
> with a big pipe may open several TCP connections and then manage
> each send buffer to reach the maximum size (which is eight time bigger
> the classical one by default).  This would mean it is eight time
> easier to exhaust kernel memory.  In this case, how one could prevent
> his box from being a potential victim of this ?
>
> Thank you.
> Best regards
> --
> Jeremie Le Hen
> < jeremie at le-hen dot org >< ttz at chchile dot org >
> _______________________________________________
> freebsd-net@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-net
> To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"
>

I think the opposite, without this patch my send window set to 256k
for 'all' connections to allow decent speeds.

With the patch most connections will be just 8k in size and some be 256k.

so worst case scenario with patch during a DOS they will all use 256k
windows but without the patch they would all use 256k regardless.

p.s. waiting still for releng 6 patch :)

Chris



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3aaaa3a0612210148n78b326a5wde5efa2e8dc4edb9>