Re: [tcpm] WGLC for UTO

Joe Touch <touch@ISI.EDU> Wed, 31 October 2007 15:55 UTC

Return-path: <tcpm-bounces@ietf.org>
Received: from [127.0.0.1] (helo=stiedprmman1.va.neustar.com) by megatron.ietf.org with esmtp (Exim 4.43) id 1InFue-0008Qt-7Q; Wed, 31 Oct 2007 11:55:24 -0400
Received: from tcpm by megatron.ietf.org with local (Exim 4.43) id 1InFud-0008Qk-0Z for tcpm-confirm+ok@megatron.ietf.org; Wed, 31 Oct 2007 11:55:23 -0400
Received: from [10.91.34.44] (helo=ietf-mx.ietf.org) by megatron.ietf.org with esmtp (Exim 4.43) id 1InFuc-0008Qc-ML for tcpm@ietf.org; Wed, 31 Oct 2007 11:55:22 -0400
Received: from vapor.isi.edu ([128.9.64.64]) by ietf-mx.ietf.org with esmtp (Exim 4.43) id 1InFuV-0004nU-WB for tcpm@ietf.org; Wed, 31 Oct 2007 11:55:22 -0400
Received: from [192.168.1.44] (pool-71-106-89-188.lsanca.dsl-w.verizon.net [71.106.89.188]) by vapor.isi.edu (8.13.8/8.13.8) with ESMTP id l9VFt7Kv022916; Wed, 31 Oct 2007 08:55:07 -0700 (PDT)
Message-ID: <4728A553.2020300@isi.edu>
Date: Wed, 31 Oct 2007 08:54:59 -0700
From: Joe Touch <touch@ISI.EDU>
User-Agent: Thunderbird 2.0.0.6 (Windows/20070728)
MIME-Version: 1.0
To: Lars Eggert <lars.eggert@nokia.com>
Subject: Re: [tcpm] WGLC for UTO
References: <20071015161355.CDC992CA32C@lawyers.icir.org> <44C4AF94-CC5D-4702-914E-764583E2AADA@nokia.com> <78C9135A3D2ECE4B8162EBDCE82CAD77026345DE@nekter> <4717E7D6.7000407@isi.edu> <14C200C0-73DE-4550-A1E2-5B43BEE29BAF@nokia.com> <472756CC.8070809@isi.edu> <582A6F13-12CC-4B5C-8415-CBDAD73116AA@nokia.com>
In-Reply-To: <582A6F13-12CC-4B5C-8415-CBDAD73116AA@nokia.com>
X-Enigmail-Version: 0.95.4
X-ISI-4-43-8-MailScanner: Found to be clean
X-MailScanner-From: touch@isi.edu
X-Spam-Score: 0.0 (/)
X-Scan-Signature: 932cba6e0228cc603da43d861a7e09d8
Cc: tcpm@ietf.org
X-BeenThere: tcpm@ietf.org
X-Mailman-Version: 2.1.5
Precedence: list
List-Id: TCP Maintenance and Minor Extensions Working Group <tcpm.ietf.org>
List-Unsubscribe: <https://www1.ietf.org/mailman/listinfo/tcpm>, <mailto:tcpm-request@ietf.org?subject=unsubscribe>
List-Post: <mailto:tcpm@ietf.org>
List-Help: <mailto:tcpm-request@ietf.org?subject=help>
List-Subscribe: <https://www1.ietf.org/mailman/listinfo/tcpm>, <mailto:tcpm-request@ietf.org?subject=subscribe>
Content-Type: multipart/mixed; boundary="===============2087192506=="
Errors-To: tcpm-bounces@ietf.org


Lars Eggert wrote:
> On 2007-10-30, at 18:07, ext Joe Touch wrote:
>> Lars Eggert wrote:
>>> The intent was to make UTO work with SYN cookie implementations that
>>> can't encode whether a UTO option was present in the cookie, by
>>> including the option also in the first non-SYN packets.
>>
>> That should be deemed non-compliant. The point of the SYN cookie is to
>> reestablish the entirety of state that would have been established by
>> the SYN; if the cookie can't do that, a cookie should not be used.
> 
> Well, if the SYN requests (many) options and the receiver cannot encode
> them all in the cookie, it can always reply with a SYN-ACK that only
> echoes those that it can and does encode. That's compliant, no?

It is, but only if current SYN cookie responses for stacks that don't
support UTO could be detected. I'm not sure that's possible.

>> TCP has no provisions for post-SYN establishment of new connection state
>> AFAIK. Requiring this of this option would be new, and, IMO, a bit
>> confusing for designers. What happens if the post-SYN packet lacks the
>> option? do you declare state mis-synchronization and drop it?
> 
> No - the UTO option is purely advisory and not transmitted reliably. We
> had a long thread a while ago on the list that boiled down to that
> consensus. (I can dig it up if you like me to.) The gist was that it
> should be OK these days to send new options during a connection, even if
> the SYN exchange didn't negotiate their use.

Then there's no point in having the SYN cookie encode anything.
Receivers that implement SYN cookies MAY drop the option; senders
sending UTO have no reason to resend, since it's 'advisory and not
transmitted reliably'.

I.e., you can't have it both ways. If this is truly unreliable, then
there is NO reason to ever retransmit it.

...
> We can add that TCP should try for a few segments to include a TO option
> if it wants to send one, but I don't think notifying the application on
> failure is necessary, because UTO options are advisory and not
> transmitted reliably. Not being able to include it locally is equivalent
> to having the segment that it was included on being dropped in the network.

Again, if that's the case, then try to send it ONCE. Never retry -
there's no point.

...
>> Can someone on the path do something you don't want to your connection
>> by tacking this option on?
> 
> So that's a different question than your original one, which was
> changing the value very frequently.
> 
> An attacker that adds or modifies the content of UTO options may be able
> to affect how long the ends keep the connection alive. Since UTO is
> advisory, an attacker can't really do anything to the connection that
> couldn't happen anyway. 

I'm not sure that's true; even though it's advisory, it can cause a
change in behavior - if not, then there's no point in sending it. An
attacker could cause large UTOs for receivers that act on the option,
which could cause a DOS opportunity.

> And the security properties of UTO are similar
> to other TCP options (window scaling, timestamps), in that none of them
> are authenticated or encrypted.

Yes, but the implications of changing these others are different - and
each should be explained in their respective security sections. This
security section should say what happens when an attacker changes THIS
option.

...
>>>> About retransmission, IMO, it SHOULD be done - or else what's the point
>>>> of this?
>>>
>>> Is this related to your previous comment? If so, there was consensus to
>>> not make UTO reliable, i.e., retransmit lost options.
>>
>> I have no idea what the point of an unreliable option on a reliable
>> transport protocol means. IMO, options should be retransmitted when
>> their associated segments are. The control protocol ought to be at least
>> as robust as the data. Although I appreciate that UTO isn't as critical
>> as some other options or flags, introducing nondeterminism at this level
>> doesn't seem appropriate, IMO.
> 
> We had a long discussion on this a year or two ago on this list. The
> outcome was that because UTO is advisory, a simple, unreliable
> transmission is sufficient. We can certainly revisit this decision, but
> I'd personally would like to see strong WG consensus on changing this
> pretty central assumption behind UTO this late in the game.

Agreed.

Thanks,

Joe

_______________________________________________
tcpm mailing list
tcpm@ietf.org
https://www1.ietf.org/mailman/listinfo/tcpm