Re: [tcpm] tcp-auth-opt issue: replay protection

"Caitlin Bestler" <Caitlin.Bestler@neterion.com> Wed, 06 August 2008 16:55 UTC

Return-Path: <tcpm-bounces@ietf.org>
X-Original-To: tcpm-archive@megatron.ietf.org
Delivered-To: ietfarch-tcpm-archive@core3.amsl.com
Received: from [127.0.0.1] (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id C71393A67D4; Wed, 6 Aug 2008 09:55:10 -0700 (PDT)
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 88D4E3A67D4 for <tcpm@core3.amsl.com>; Wed, 6 Aug 2008 09:55:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.599
X-Spam-Level:
X-Spam-Status: No, score=-2.599 tagged_above=-999 required=5 tests=[AWL=0.000, 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 XrKPgmspWnh8 for <tcpm@core3.amsl.com>; Wed, 6 Aug 2008 09:55:08 -0700 (PDT)
Received: from owa.neterion.com (mx.neterion.com [72.1.205.142]) by core3.amsl.com (Postfix) with ESMTP id A28BA3A63CB for <tcpm@ietf.org>; Wed, 6 Aug 2008 09:55:08 -0700 (PDT)
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Date: Wed, 06 Aug 2008 12:55:13 -0400
Message-ID: <78C9135A3D2ECE4B8162EBDCE82CAD7704042099@nekter>
In-Reply-To: <396556a20808060848g40df6251hf02467697ec44925@mail.gmail.com>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
Thread-Topic: [tcpm] tcp-auth-opt issue: replay protection
Thread-Index: Acj329JZzoyPLViyRVqPCPWjBInMKwACIyCw
References: <20080728042451.C7A174B7AD3@kilo.rtfm.com><20080730213253.B347F4D52E1@kilo.rtfm.com> <4890E9AE.3000607@isi.edu><20080731001609.6511C4D5E34@kilo.rtfm.com> <489175BD.6040201@isi.edu><396556a20807311010k78c22981xa0eebd1b46e9f619@mail.gmail.com><48935983.80701@isi.edu><3FBA635A-0473-4B58-86E2-C7523A35CE24@nokia.com><20080806133734.7721D527252@kilo.rtfm.com> <4899BD4A.9040509@isi.edu> <396556a20808060848g40df6251hf02467697ec44925@mail.gmail.com>
From: Caitlin Bestler <Caitlin.Bestler@neterion.com>
To: Adam Langley <agl@imperialviolet.org>, Joe Touch <touch@isi.edu>
Cc: tcpm@ietf.org
Subject: Re: [tcpm] tcp-auth-opt issue: replay protection
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: <https://www.ietf.org/mailman/private/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>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tcpm-bounces@ietf.org
Errors-To: tcpm-bounces@ietf.org

Adam Langley wrote:
> 
> On Wed, Aug 6, 2008 at 8:03 AM, Joe Touch <touch@isi.edu> wrote:
> > Does anyone know what happens to other options? I.e., aren't
> timestamps
> > recomputed, SACK options recalculated, etc.? It seems like the
> options
> > need to be revisited when a segment goes out the door anyway, and a
> > stack that just replays segments is what might be considered
> "broken"...
> 
> I can speak for the Linux stack:
> 
> Buffers are kept around for retransmissions, but the buffers only
> maintain the segment data. TCP and IP headers are recreated without
> any reference to any previous transmissions.
> 
> 

That's also true of most TCP offload solutions I've seen.
Fundamentally, it is easier for almost all implementations
to keep a descriptor of a transmitted segment around (and
not allow the client to re-use its buffer) than it is to
keep a full copy of the formed TCP segment around. After
all, even in networks with atrocious drop rates the typical
TCP segment will NOT be retransmitted. Since retransmission
is the exception MOST implementations would rather redo
the TCP header construction than use memory to remember
exactly what they did last time. It's easier to just remember
enough so that you will generate the same output.

Specialized designs and/or prototypes are more likely to
do things like follow strict layering where they might
actually store the entire frame to simplify interfaces.
But those designs, in my experience, will be the exception.

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