Re: [tcpm] poll for adoption of draft-gont-tcpm-tcp-timestamps-03
Fernando Gont <fernando@gont.com.ar> Wed, 24 March 2010 18:13 UTC
Return-Path: <fernando@gont.com.ar>
X-Original-To: tcpm@core3.amsl.com
Delivered-To: tcpm@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id E27693A6CAA for <tcpm@core3.amsl.com>; Wed, 24 Mar 2010 11:13:20 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.654
X-Spam-Level:
X-Spam-Status: No, score=-0.654 tagged_above=-999 required=5 tests=[AWL=1.815, BAYES_00=-2.599, DNS_FROM_OPENWHOIS=1.13, RCVD_IN_DNSWL_LOW=-1]
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 L5gsJda2a+fY for <tcpm@core3.amsl.com>; Wed, 24 Mar 2010 11:13:20 -0700 (PDT)
Received: from smtp1.xmundo.net (smtp1.xmundo.net [201.216.232.80]) by core3.amsl.com (Postfix) with ESMTP id 988863A6A79 for <tcpm@ietf.org>; Wed, 24 Mar 2010 11:13:18 -0700 (PDT)
Received: from venus.xmundo.net (venus.xmundo.net [201.216.232.56]) by smtp1.xmundo.net (Postfix) with ESMTP id 478C46B65C1; Wed, 24 Mar 2010 15:13:38 -0300 (ART)
Received: from [192.168.0.102] (13-132-17-190.fibertel.com.ar [190.17.132.13]) (authenticated bits=0) by venus.xmundo.net (8.13.8/8.13.8) with ESMTP id o2OIDW4R004147; Wed, 24 Mar 2010 15:13:33 -0300
Message-ID: <4BAA564C.7080308@gont.com.ar>
Date: Wed, 24 Mar 2010 15:13:32 -0300
From: Fernando Gont <fernando@gont.com.ar>
User-Agent: Thunderbird 2.0.0.23 (Windows/20090812)
MIME-Version: 1.0
To: Joe Touch <touch@ISI.EDU>
References: <20100324031529.899D6BB39B1@lawyers.icir.org> <4BAA440C.9080707@isi.edu>
In-Reply-To: <4BAA440C.9080707@isi.edu>
X-Enigmail-Version: 0.96.0
OpenPGP: id=D076FFF1
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 7bit
X-Greylist: Sender succeeded SMTP AUTH authentication, not delayed by milter-greylist-3.0 (venus.xmundo.net [201.216.232.56]); Wed, 24 Mar 2010 15:13:37 -0300 (ART)
Cc: "tcpm@ietf.org" <tcpm@ietf.org>, mallman@icir.org
Subject: Re: [tcpm] poll for adoption of draft-gont-tcpm-tcp-timestamps-03
X-BeenThere: tcpm@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: TCP Maintenance and Minor Extensions Working Group <tcpm.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/tcpm>, <mailto:tcpm-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/tcpm>
List-Post: <mailto:tcpm@ietf.org>
List-Help: <mailto:tcpm-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/tcpm>, <mailto:tcpm-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 24 Mar 2010 18:13:21 -0000
Joe Touch wrote: > As per subsequent exchanges, the doc breaks into three separate issues: > > 1) random starting timestamp > 2) monotonically increasing timestamp > (required only per socket-pair) > 3) TIME_WAIT truncation > > Note that #1 interferes with #2, because selecting a timestamp in the > high end of the number space could present problems in maintaining #2 > over the long term for very busy hosts. I don't follow this. The timestamp clock can be initilized to a random value. Once initilized, it's simply incremented as a counter. How does this interfere with #2? > However, let's put that aside > for now, since we can easily say "pick something in the low 1/2 of the > range)" to address that issue. Timestamps are compared in the same way as sequence numbers, IIRC. So you don't need to implement this "low 1/2" magic.... > The issues with #1 being a protection have already been discussed. > Depending on how #1 is specified, there are varying implications. > > The current spec for #1 requires: > > a- a hash per socket pair (e.g., on receipt of a SYN) > > b- larger retained state during TIME_WAIT I don't follow "b". What's the additional state here? You just need to keep TS.Recent, as RFC1323 already requires -- there's no additional state. > c- retained state beyond TIME_WAIT (to enforce #2, > since the timestamp start is per-socketpair) I don't follow this one, either. With the current I-D, timestamps are generated in the same way ISNs are generated with RFC1948. So there's no requirement of "retained state beyond TIME-WAIT state". Actually, this is the beuty of the RFC1948 scheme. > (a) is expensive - 20 instructions per 32-bit word *in the critical > path*, or 520 instructions. Compare that to roughly 100-300 instructions > to process a TCP packet. You're more than doubling the cost for TCP > processing in just this one step; other steps (randomizing ISN, etc.) > make things worse. The only way around this is for everyone - client and > server - to keep per-socketpair timestamps around for a long time. Can you elaborate this statement a bit more? > (b) is no big deal > > (c), however, is huge. Busy servers already toss out TIME_WAITs early to > save space. There's very little reason to believe they'd keep > per-socketpair timestamps around to ensure monotonicity. There's no need for that. Servers can still toss the TIME-WAIT state as they currently do, with no harm. > So let's expect that (c) won't happen. That means (a) requires > computation, which is bad. > > The only way to recover this, AFAICT, is to claim that the > timestamp_start is selected by some arbitrary function, but reused > across connections. It can't - and doesn't need to be - per-connection > specific. If the current proposed scheme (i.e., RFC1948-like) is used, initialization doesn't matter: it's F() that provides the randomness. If we recommend "a global timestamp shared by all connections", you just initilize it to a random value at system boot time, just so that the system uptime is not leaked. -- and that's it. Thanks, -- Fernando Gont e-mail: fernando@gont.com.ar || fgont@acm.org PGP Fingerprint: 7809 84F5 322E 45C7 F1C9 3945 96EE A9EF D076 FFF1
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Alfred Hönes
- [tcpm] poll for adoption of draft-gont-tcpm-tcp-t… Eddy, Wesley M. (GRC-MS00)[ASRC AEROSPACE CORP]
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Mark Allman
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Anantha Ramaiah (ananth)
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Alfred Hönes
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… L.Wood
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Mark Allman
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Joe Touch
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Fernando Gont
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… John Heffner
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Joe Touch
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Fernando Gont
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Mark Allman
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Joe Touch
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Mark Allman
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Mark Allman
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Fernando Gont
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Mark Allman
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Fernando Gont
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Joe Touch
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Fernando Gont
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Mark Allman
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Joe Touch
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Fernando Gont
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Alexander Zimmermann
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Fernando Gont
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Alexander Zimmermann
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Joe Touch
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Fernando Gont
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Christian Huitema
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Fernando Gont
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Joe Touch
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Fernando Gont
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Joe Touch
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Fernando Gont
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Mark Allman
- Re: [tcpm] poll for adoption of draft-gont-tcpm-t… Fernando Gont
- Re: [tcpm] draft-ietf-tcpm-1323bis Scheffenegger, Richard