Re: [Tsvwg] WGLC for Port Randomization starts now (April 1st)

Randy Stewart <randall@lakerest.net> Thu, 28 May 2009 15:22 UTC

Return-Path: <randall@lakerest.net>
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 0F6513A6E21 for <tsvwg@core3.amsl.com>; Thu, 28 May 2009 08:22:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.699
X-Spam-Level:
X-Spam-Status: No, score=-1.699 tagged_above=-999 required=5 tests=[AWL=-0.300, BAYES_00=-2.599, J_CHICKENPOX_15=0.6, J_CHICKENPOX_17=0.6]
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 ptPbJPa4PhG7 for <tsvwg@core3.amsl.com>; Thu, 28 May 2009 08:21:59 -0700 (PDT)
Received: from lakerest.net (unknown [IPv6:2001:240:585:2:213:d4ff:fef3:2d8d]) by core3.amsl.com (Postfix) with ESMTP id 7B20D3A6D12 for <tsvwg@ietf.org>; Thu, 28 May 2009 08:21:58 -0700 (PDT)
Received: from [10.1.150.171] (rrcs-24-106-179-126.se.biz.rr.com [24.106.179.126]) (authenticated bits=0) by lakerest.net (8.14.3/8.14.3) with ESMTP id n4SFNN5k078474 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Thu, 28 May 2009 11:23:24 -0400 (EDT) (envelope-from randall@lakerest.net)
DKIM-Signature: a=rsa-sha1; c=simple/simple; d=lakerest.net; s=mail; t=1243524205; h=Cc:Message-Id:From:To:In-Reply-To:Content-Type: Content-Transfer-Encoding:Mime-Version:Subject:Date:References: X-Mailer; b=GKl3+jtd79kgdC3aYRdjToH/EKTNCCqf7idOw8XNoxBFoZLOOfLPxYe YWuwKGEJ5pjZCF5UqQ/G+2PpQQYX4Kw==
Message-Id: <3A6AB130-8F0C-48B9-8BFD-C94C6525AB19@lakerest.net>
From: Randy Stewart <randall@lakerest.net>
To: Joe Touch <touch@ISI.EDU>
In-Reply-To: <4A1EAA93.1050701@isi.edu>
Content-Type: text/plain; charset="US-ASCII"; format="flowed"; delsp="yes"
Content-Transfer-Encoding: 7bit
Mime-Version: 1.0 (Apple Message framework v935.3)
Date: Thu, 28 May 2009 11:23:17 -0400
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> <D3F996EE-AF45-4E38-8DA8-5C43E98A3112@lakerest.net> <4A1E0FBD.8080308@isi.edu> <B7B119C5-F1C8-4F95-95E3-A5BC90967038@lakerest.net> <4A1EAA93.1050701@isi.edu>
X-Mailer: Apple Mail (2.935.3)
Cc: "James Polk (jmpolk)" <jmpolk@cisco.com>, "Anantha Ramaiah (ananth)" <ananth@cisco.com>, tsvwg <tsvwg@ietf.org>, mallman@icir.org, Fernando Gont <fernando@gont.com.ar>
Subject: Re: [Tsvwg] WGLC for Port Randomization starts now (April 1st)
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 15:22:05 -0000

On May 28, 2009, at 11:15 AM, Joe Touch wrote:

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> See below; now I'm really confused:
>
> Randy Stewart wrote:
>>
>> On May 28, 2009, at 12:14 AM, Joe Touch wrote:
>>
>> Randy Stewart wrote:
>>>>> Not getting into the details of vtags.. I think you hit
>>>>> upon the key point. If you are doing time-wait.. you are
>>>>> doing time-wait on vtags... aka: 32 bit numbers.
>>>>>
>>>>> An IP address/Port is NEVER blocked from re-use right away
>>>>> like it can be in TCP due to time-wait. This was always
>>>>> one of the most irritating things I did not like in TCP.
>>
>> Sorry, maybe I'm missing this.
>>
>> Let A=srcIP, X=srcport, B=dstIP, Y=dstport.
>>
>> In TCP, if I use A,X->B,Y, then close the connection, I cannot use it
>> for another 2 minutes.
>>
>> In SCTP, if I use A,X->B,Y with Vtag Q, then close the connection,
>> clearly I cannot use A,X->B,Y with Vtag Q again for some  
>> (unspecified,
>> AFAICT, in the specs) period of time.
>>
>> You appear to be claiming that what SCTP does is block Vtag Q for  
>> that
>> period of time _for all_ socket pairs. That's strictly worse than TCP
>> was doing.
>>
>> E.g., TCP has 32 + 16 + 32 + 16 bits to play with for connections  
>> as a
>> whole, i.e., 96 bits. SCTP would have only 32. A large server with  
>> a lot
>> of short connections could easily have vtag collisions in that  
>> situation.
>>
>>
>>> No actually Q is blocked ONLY for the socket pair
>>> A,X -> B,Y for 2MSL.
>
> I don't see 2MSL anywhere in the SCTP spec.
>
> Your earlier note said you blocked Q for all sockets; this says you
> block only within the socket pair -- which is basically what I've been
> saying all along - you block on the full connection ID, i.e.,  
> [A,X,B,Y,Q].


I did not describe where the time wait is kept... I just said
I keep it ;-)

Vtag Q is blocked for the socket.. its not the full connection id.
So A/X/Q is blocked (assuming A is the IP and X is the port). We
can establish a new association with B/Y as long as we have
a different vtag i.e. Q'.

At the same time, some other socket on machine A ... lets say A/X'
can have a association to the same peer with vtag Q as well.
i.e.

A+X+Q <------assoc ---> B+Y+T

and

A+Y+Q <----- asoc ---> B+Y+U

The key is that when A+X+Q stops and starts a new association, for 2MSL
it can't use vtag Q...  i.e. it must use Q'


R


>
>
> Joe
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iEYEARECAAYFAkoeqpMACgkQE5f5cImnZrufNQCgi/9fCaS/wk4Yhc9oo3quwBEq
> DzoAoOgTAdS7b5jkYIFbgT2jp9sQrgc6
> =dlHs
> -----END PGP SIGNATURE-----
>

-----
Randall Stewart
randall@lakerest.net