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

Joe Touch <touch@ISI.EDU> Tue, 29 July 2008 13:49 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 D0CC628C308; Tue, 29 Jul 2008 06:49:06 -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 0CFE928C308 for <tcpm@core3.amsl.com>; Tue, 29 Jul 2008 06:49:05 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.524
X-Spam-Level:
X-Spam-Status: No, score=-2.524 tagged_above=-999 required=5 tests=[AWL=0.075, 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 5uCQn4wyF3uV for <tcpm@core3.amsl.com>; Tue, 29 Jul 2008 06:49:04 -0700 (PDT)
Received: from vapor.isi.edu (vapor.isi.edu [128.9.64.64]) by core3.amsl.com (Postfix) with ESMTP id 0ED4928C302 for <tcpm@ietf.org>; Tue, 29 Jul 2008 06:49:04 -0700 (PDT)
Received: from [130.129.20.69] ([130.129.20.69]) by vapor.isi.edu (8.13.8/8.13.8) with ESMTP id m6TDkElo003193 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Tue, 29 Jul 2008 06:46:17 -0700 (PDT)
Message-ID: <488F1F06.4010508@isi.edu>
Date: Tue, 29 Jul 2008 06:45:42 -0700
From: Joe Touch <touch@ISI.EDU>
User-Agent: Thunderbird 2.0.0.16 (Windows/20080708)
MIME-Version: 1.0
To: YOSHIFUJI Hideaki / ???? <yoshfuji@linux-ipv6.org>
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>
X-Enigmail-Version: 0.95.6
X-ISI-4-43-8-MailScanner: Found to be clean
X-MailScanner-From: touch@isi.edu
Cc: tcpm@ietf.org
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-Transfer-Encoding: 7bit
Content-Type: text/plain; charset="us-ascii"; Format="flowed"
Sender: tcpm-bounces@ietf.org
Errors-To: tcpm-bounces@ietf.org

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1



YOSHIFUJI Hideaki / ???? wrote:
...
<what if we...>
|> Use 2 bits for the KID; 1 is insufficient, and 2 is more than sufficient
|> IMO.
|>
|> The MAC' is a half-word aligned MAC with the top 2 bits overwritten
|> (i.e., it is NOT shifted right); the KID occupies those top 2 bits.
|>
|> If a user wants word alignment, pick a MAC length of N-2 bytes.
|>
|> Wouldn't that be simpler and more space efficient?
|
| We have 256 keys, and it is not enough.

Can you explain this further? We're talking about the number of keys
used within a single TCP connection; there isn't a clear need (AFAICT)
for more than a very small number of these.

| And is NOT simple and more complex from implemntation point of view
| - eats a lot of cpu cycles.

It would consume only two additional cycles in the following:
	header && 0011111111.... || keyID

(store keyIDs as values 0, 64, 128, 192 so you don't need to shift them
in/out)

I.e., 2 opcodes to encode the bits in the location desired.

Joe
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkiPHwYACgkQE5f5cImnZruiYgCfQKKBKOf+WdLd8+6L06pppd99
KfEAoLOHaEFpvHaZik5EsN4vNNiuLtmE
=MUsL
-----END PGP SIGNATURE-----
_______________________________________________
tcpm mailing list
tcpm@ietf.org
https://www.ietf.org/mailman/listinfo/tcpm