Re: [Tsvwg] Port Randomization issues summary

Joe Touch <touch@ISI.EDU> Thu, 28 May 2009 22:04 UTC

Return-Path: <touch@ISI.EDU>
X-Original-To: tsvwg@core3.amsl.com
Delivered-To: tsvwg@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id F41243A711B for <tsvwg@core3.amsl.com>; Thu, 28 May 2009 15:04:00 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.347
X-Spam-Level:
X-Spam-Status: No, score=-2.347 tagged_above=-999 required=5 tests=[AWL=0.252, BAYES_00=-2.599]
Received: from mail.ietf.org ([64.170.98.32]) by localhost (core3.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id FOrnGkE7g5yS for <tsvwg@core3.amsl.com>; Thu, 28 May 2009 15:03:55 -0700 (PDT)
Received: from vapor.isi.edu (vapor.isi.edu [128.9.64.64]) by core3.amsl.com (Postfix) with ESMTP id 1DCC428C1F1 for <tsvwg@ietf.org>; Thu, 28 May 2009 15:01:21 -0700 (PDT)
Received: from [128.9.184.170] ([128.9.184.170]) by vapor.isi.edu (8.13.8/8.13.8) with ESMTP id n4SM1vfY023801; Thu, 28 May 2009 15:01:59 -0700 (PDT)
Message-ID: <4A1F09D5.5030305@isi.edu>
Date: Thu, 28 May 2009 15:01:57 -0700
From: Joe Touch <touch@ISI.EDU>
User-Agent: Thunderbird 2.0.0.21 (Windows/20090302)
MIME-Version: 1.0
To: Fernando Gont <fernando@gont.com.ar>
References: <20090415033307.F00C0CD585E@lawyers.icir.org> <4A037030.6040107@isi.edu> <0C53DCFB700D144284A584F54711EC58074EEED6@xmb-sjc-21c.amer.cisco.com> <4A1AB6EE.5080900@gont.com.ar> <0C53DCFB700D144284A584F54711EC58074EEF11@xmb-sjc-21c.amer.cisco.com> <4A1BF56D.3020709@isi.edu> <0C53DCFB700D144284A584F54711EC58074EF74C@xmb-sjc-21c.amer.cisco.com> <4A1D6F4E.2080005@isi.edu> <0C53DCFB700D144284A584F54711EC58075636B3@xmb-sjc-21c.amer.cisco.com> <4A1E10B9.3040408@isi.edu> <0C53DCFB700D144284A584F54711EC5807563761@xmb-sjc-21c.amer.cisco.com> <4A1E9922.2080007@isi.edu> <4A1EA0E7.4050309@isi.edu> <4A1EF737.20601@gont.com.ar> <4A1EF8D8.9050603@isi.edu> <4A1F0832.20305@gont.com.ar>
In-Reply-To: <4A1F0832.20305@gont.com.ar>
X-Enigmail-Version: 0.95.7
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
X-ISI-4-43-8-MailScanner: Found to be clean
X-MailScanner-From: touch@isi.edu
Cc: "James Polk (jmpolk)" <jmpolk@cisco.com>, "Anantha Ramaiah (ananth)" <ananth@cisco.com>, tsvwg <tsvwg@ietf.org>, mallman@icir.org
Subject: Re: [Tsvwg] Port Randomization issues summary
X-BeenThere: tsvwg@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: Transport Area Working Group <tsvwg.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tsvwg>, <mailto:tsvwg-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tsvwg>
List-Post: <mailto:tsvwg@ietf.org>
List-Help: <mailto:tsvwg-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tsvwg>, <mailto:tsvwg-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 28 May 2009 22:04:01 -0000

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



Fernando Gont wrote:
> Joe Touch wrote:
> 
>>>> 1) randomizing connection IDs helps protect against blind attacks
>>>>
>>>> 	- but ultimately the only way to avoid old segments
>>>> 	from interfering with new connections is to keep state
>>> Yes. But... what does this have to do with port randomization?
>> It underscores the need to keep state in the endpoints, rather than just
>> trust that randomization will provide safety.
> 
> Are you talking about the vtag randomization thing you were discussiing
> with Anantha?

Yes. I think you already have this in your draft, though. It differs
from what SCTP describes, but as you saw there's already a suggestion to
address that separately.

>>>> 	- randomness requires keeping more state at the endpoints
>>>> 	than sequential use of the ID space
>>> Why?
>> If IDs are used in sequence, and endpoint can keep track of "do not use"
>> ones using two IDs (representing the range to be avoided). If IDs are
>> used randomly, then the endpoint needs a copy of each value to avoid.
> 
> Again, I guess you msut be referring to some vtag-thing here, right?

Well, yes and no. This also refers to your solution; if you select
source ports in sequence, it may be simpler/faster/less state to avoid
reuse during the required period than to do randomization. The point is
that randomization may increase protection against blind attacks, but it
comes at a cost of additional state at the endpoints. I don't know if
you say that explicitly, but it seems worth noting.

Joe
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkofCdUACgkQE5f5cImnZrsHXQCfQiEOHotWfh7iMoxXz466ZYrx
qqwAoMx8WMIsg3kVGTtfl8EvFEtuvZkG
=SDi/
-----END PGP SIGNATURE-----