Re: [tcpm] TCP-AO Option Layout - Alignment and Padding

Stefanos Harhalakis <v13@v13.gr> Tue, 29 July 2008 13:10 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 F1CF63A6937; Tue, 29 Jul 2008 06:10:08 -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 9C50428C165 for <tcpm@core3.amsl.com>; Tue, 29 Jul 2008 06:10:07 -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=[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 JCyTw1x+js6r for <tcpm@core3.amsl.com>; Tue, 29 Jul 2008 06:10:06 -0700 (PDT)
Received: from mx-out.forthnet.gr (mx-out.forthnet.gr [193.92.150.104]) by core3.amsl.com (Postfix) with ESMTP id A74473A6923 for <tcpm@ietf.org>; Tue, 29 Jul 2008 06:09:54 -0700 (PDT)
Received: from mx-av-06.forthnet.gr (mx-av.forthnet.gr [193.92.150.27]) by mx-out-05.forthnet.gr (8.14.3/8.14.3) with ESMTP id m6TDA3OV017793; Tue, 29 Jul 2008 16:10:03 +0300
Received: from MX-IN-05.forthnet.gr (mx-in-05.forthnet.gr [193.92.150.32]) by mx-av-06.forthnet.gr (8.14.3/8.14.3) with ESMTP id m6TDA3v2025746; Tue, 29 Jul 2008 16:10:03 +0300
Received: from hell.hell.gr (adsl31-182.lsf.forthnet.gr [79.103.158.182]) by MX-IN-05.forthnet.gr (8.14.3/8.14.3) with ESMTP id m6TDA0wv017752; Tue, 29 Jul 2008 16:10:02 +0300
Authentication-Results: MX-IN-05.forthnet.gr smtp.mail=v13@v13.gr; spf=neutral
Authentication-Results: MX-IN-05.forthnet.gr header.from=v13@v13.gr; sender-id=neutral
From: Stefanos Harhalakis <v13@v13.gr>
To: tcpm@ietf.org
Date: Tue, 29 Jul 2008 16:09:51 +0300
User-Agent: KMail/1.9.9
References: <20080729.060448.112613043.yoshfuji@linux-ipv6.org> <488EF15F.4070302@isi.edu> <20080729.065149.22600370.yoshfuji@linux-ipv6.org>
In-Reply-To: <20080729.065149.22600370.yoshfuji@linux-ipv6.org>
MIME-Version: 1.0
Content-Disposition: inline
Message-Id: <200807291609.52235.v13@v13.gr>
Cc: touch@isi.edu
Subject: Re: [tcpm] TCP-AO Option Layout - Alignment and Padding
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="utf-8"
Content-Transfer-Encoding: base64
Sender: tcpm-bounces@ietf.org
Errors-To: tcpm-bounces@ietf.org

On Tuesday 29 July 2008, YOSHIFUJI Hideaki / 吉藤英明 wrote:
> > If we want to reduce padding and keep the MAC aligned, the best option
> > is:
> >
> > ~                 +---------+---------+---------+---------+
> > ~                 | Kind=?? | Length  |  KeyID  |   0     |
> > ~                 +---------+---------+---------+---------+
> > ~                 ...
> > ~                 ...
> > ~                 +---------------------------------------+
> > ~                 |       MAC...                          |
> > ~                 +---------------------------------------+
>
> I support this.
>
> > I.e., pad ourselves. We suggest that the option start word-aligned. This
> > wastes space, IMO.
>
> I don't think this is a waste of space and good thing to have -
> to save CPU cycle(s).

Please don't do this. Leave the padding as an issue for the OS implementation 
just like all other TCP options do. Any OS implementation may add a NOP at 
the begging and solve this problem (if it actually exists).

Also, noone can say whether there will be a 5 bytes option in the future that 
will be able to be effectively combined with this one.

Btw, how sure can you be that *all* TCP implementations out there (PCs, 
Non-PCs, small-embedded, mobiles etc) benefit from exactly 32bit writes? 

IMHO, when talking about thinks like this one, the underlying hardware should 
not be considered at all.
_______________________________________________
tcpm mailing list
tcpm@ietf.org
https://www.ietf.org/mailman/listinfo/tcpm