Re: [tcpm] I-D Action:draft-ietf-tcpm-tcp-auth-opt-01.txt
"Adam Langley" <agl@imperialviolet.org> Wed, 16 July 2008 23:08 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 CD29B3A68EA; Wed, 16 Jul 2008 16:08:49 -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 67FE93A68EF for <tcpm@core3.amsl.com>; Wed, 16 Jul 2008 16:08:48 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.977
X-Spam-Level:
X-Spam-Status: No, score=-1.977 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, FM_FORGED_GMAIL=0.622]
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 6d43NZcvykV1 for <tcpm@core3.amsl.com>; Wed, 16 Jul 2008 16:08:47 -0700 (PDT)
Received: from py-out-1112.google.com (py-out-1112.google.com [64.233.166.181]) by core3.amsl.com (Postfix) with ESMTP id 8CCB03A68EA for <tcpm@ietf.org>; Wed, 16 Jul 2008 16:08:47 -0700 (PDT)
Received: by py-out-1112.google.com with SMTP id x19so3311315pyg.24 for <tcpm@ietf.org>; Wed, 16 Jul 2008 16:09:15 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=doD99jYtiFk9AnhRKgQbyus2MZ2VE5DaS+VPM2gWnwE=; b=VNw07rE8COe5oMckthCXz+r6ZZOIMSQk3D9LYDiBvke0TBnjj/FtEqIhIlmVUD/kfH Y96YyNHpjWmrxlwuxOZHUyuhhfX/Kn54t2kTuledknHcK+PmFsSvDrFivh3G2oDsesfm uaNVv+kyp+aWGImopbZV/JzevX9twULzqNcMo=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=qKOS2fg3bVC7rWDToFzg01e/C/J9drlCho1mISC9EOWsweuqwy1MF0V3qEKxQuwZSG r7Ewrjd9c4ldNIH8Jvs5Y/23pzJeqcsg5UUeEZ0N9wOVDC3BjaEx5ym9U9dyk6HF+xI6 y4ZNaIKFmj3sOhBV1NIvfFDed3h/KAjeA1Bgg=
Received: by 10.141.49.6 with SMTP id b6mr726194rvk.223.1216249755199; Wed, 16 Jul 2008 16:09:15 -0700 (PDT)
Received: by 10.141.186.3 with HTTP; Wed, 16 Jul 2008 16:09:15 -0700 (PDT)
Message-ID: <396556a20807161609x455948f8qa40414799b64de72@mail.gmail.com>
Date: Wed, 16 Jul 2008 16:09:15 -0700
From: Adam Langley <agl@imperialviolet.org>
To: Joe Touch <touch@isi.edu>
In-Reply-To: <487E7859.3090409@isi.edu>
MIME-Version: 1.0
Content-Disposition: inline
References: <20080714234502.AC4793A69F4@core3.amsl.com> <396556a20807151736k35564e19h9fc6699e489c94fb@mail.gmail.com> <396556a20807161040s21a6a081i326af08add5d7f4e@mail.gmail.com> <487E6475.30107@isi.edu> <396556a20807161454g14346470g89ce7d87ff4379c9@mail.gmail.com> <487E7859.3090409@isi.edu>
X-Google-Sender-Auth: 810e2838a43748f7
Cc: tcpm@ietf.org
Subject: Re: [tcpm] I-D Action:draft-ietf-tcpm-tcp-auth-opt-01.txt
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
On Wed, Jul 16, 2008 at 3:38 PM, Joe Touch <touch@isi.edu> wrote: > Both of these seem strange. They end up making the end of the option align, > but disturb the front of the option. Why don't they pad at the end? So here's my hypothesis (and it's only a guess really): It's good to write in 32-bit words for speed reasons. Also, some architectures make writing non-aligned 32-bit words hard. Now, consider the SACK and timestamp options, you want to write a 32-bit header followed by a payload (2 32-bit words for timestamp and 2*n words for SACK). So you want the payload to be 32-bit aligned for both writing and reading. So you end up with: uint32_t *ptr; *ptr++ = htonl((NOP << 24) | (NOP << 16) | (TCP_OPT_TS << 8) | length) *ptr++ = htonl(timestamp_1) *ptr++ = htonl(timestamp_2) and, from the timestamp and SACK options all the others keep the same style of padding with NOPs before the option. AGL -- Adam Langley agl@imperialviolet.org http://www.imperialviolet.org _______________________________________________ tcpm mailing list tcpm@ietf.org https://www.ietf.org/mailman/listinfo/tcpm
- [tcpm] I-D Action:draft-ietf-tcpm-tcp-auth-opt-01… Internet-Drafts
- Re: [tcpm] I-D Action:draft-ietf-tcpm-tcp-auth-op… Adam Langley
- Re: [tcpm] I-D Action:draft-ietf-tcpm-tcp-auth-op… Joe Touch
- Re: [tcpm] I-D Action:draft-ietf-tcpm-tcp-auth-op… Adam Langley
- Re: [tcpm] I-D Action:draft-ietf-tcpm-tcp-auth-op… Joe Touch
- Re: [tcpm] I-D Action:draft-ietf-tcpm-tcp-auth-op… Adam Langley
- Re: [tcpm] I-D Action:draft-ietf-tcpm-tcp-auth-op… Joe Touch
- Re: [tcpm] I-D Action:draft-ietf-tcpm-tcp-auth-op… Adam Langley
- Re: [tcpm] I-D Action:draft-ietf-tcpm-tcp-auth-op… Joe Touch
- Re: [tcpm] I-D Action:draft-ietf-tcpm-tcp-auth-op… Adam Langley
- Re: [tcpm] I-D Action:draft-ietf-tcpm-tcp-auth-op… Joe Touch
- Re: [tcpm] I-D Action:draft-ietf-tcpm-tcp-auth-op… Adam Langley
- Re: [tcpm] I-D Action:draft-ietf-tcpm-tcp-auth-op… Joe Touch
- Re: [tcpm] I-D Action:draft-ietf-tcpm-tcp-auth-op… Stefanos Harhalakis
- Re: [tcpm] I-D Action:draft-ietf-tcpm-tcp-auth-op… Adam Langley
- Re: [tcpm] I-D Action:draft-ietf-tcpm-tcp-auth-op… Stefanos Harhalakis
- Re: [tcpm] I-D Action:draft-ietf-tcpm-tcp-auth-op… touch
- Re: [tcpm] I-D Action:draft-ietf-tcpm-tcp-auth-op… Adam Langley
- Re: [tcpm] I-D Action:draft-ietf-tcpm-tcp-auth-op… Joe Touch