Re: [Hipsec] draft-ietf-hip-native-api-09-pre

Miika Komu <miika.komu@hiit.fi> Mon, 07 September 2009 14:23 UTC

Return-Path: <miika.komu@hiit.fi>
X-Original-To: hipsec@core3.amsl.com
Delivered-To: hipsec@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 25D6A3A6892 for <hipsec@core3.amsl.com>; Mon, 7 Sep 2009 07:23:58 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.854
X-Spam-Level:
X-Spam-Status: No, score=-1.854 tagged_above=-999 required=5 tests=[AWL=-0.744, BAYES_05=-1.11]
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 AnF9ODG77Fxp for <hipsec@core3.amsl.com>; Mon, 7 Sep 2009 07:23:57 -0700 (PDT)
Received: from argo.otaverkko.fi (argo.otaverkko.fi [212.68.0.2]) by core3.amsl.com (Postfix) with ESMTP id DA4FD3A692C for <hipsec@ietf.org>; Mon, 7 Sep 2009 07:23:56 -0700 (PDT)
Received: from ip104.infrahip.net (ip118.infrahip.net [193.167.187.118]) by argo.otaverkko.fi (Postfix) with ESMTP id DE09025ED26; Mon, 7 Sep 2009 17:24:23 +0300 (EEST)
Message-ID: <4AA51796.5030706@hiit.fi>
Date: Mon, 07 Sep 2009 17:24:22 +0300
From: Miika Komu <miika.komu@hiit.fi>
User-Agent: Thunderbird 2.0.0.23 (X11/20090817)
MIME-Version: 1.0
To: miika.komu@hiit.fi, hip WG <hipsec@ietf.org>
References: <4A8DBB16.3010705@hiit.fi> <0DF156EE7414494187B087A3C279BDB404AD7C73@XCH-NW-6V1.nw.nos.boeing.com> <4A8E25C6.1090100@hiit.fi> <0DF156EE7414494187B087A3C279BDB404AD7C75@XCH-NW-6V1.nw.nos.boeing.com> <4A930581.8080100@hiit.fi> <EAD6D1A8-EB90-4921-9428-1094BA00DAC0@indranet.co.nz> <0DF156EE7414494187B087A3C279BDB404AD7C7C@XCH-NW-6V1.nw.nos.boeing.com> <DED135E8-7FAD-49EE-B712-BFF2EDC53735@indranet.co.nz> <4A93966C.2000002@hiit.fi> <4A9635E4.2030703@hiit.fi> <4A9BD221.8030606@hiit.fi>
In-Reply-To: <4A9BD221.8030606@hiit.fi>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Cc: Stefan Götz <stefan.goetz@cs.rwth-aachen.de>
Subject: Re: [Hipsec] draft-ietf-hip-native-api-09-pre
X-BeenThere: hipsec@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: miika.komu@hiit.fi
List-Id: "This is the official IETF Mailing List for the HIP Working Group." <hipsec.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/listinfo/hipsec>, <mailto:hipsec-request@ietf.org?subject=unsubscribe>
List-Archive: <http://www.ietf.org/mail-archive/web/hipsec>
List-Post: <mailto:hipsec@ietf.org>
List-Help: <mailto:hipsec-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/hipsec>, <mailto:hipsec-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 07 Sep 2009 14:23:58 -0000

Miika Komu wrote:

Hi,

> Miika Komu wrote:
> 
> Hi,
> 
> a new preversion is here:
> 
> http://www.iki.fi/miika/docs/draft-ietf-hip-native-api-09-pre2.txt
> 
> it includes the future proofing changes in the sockaddr_hip structure in 
> section 4.1. I also wrote the ship_len explicitly to the structure since 
> we were discussing on size issues.

sorry for the delay, we have been discussing this offline with Jeff, 
Stefan, Andrew and Thomas. IMHO, I think the extension fields to the 
existing sockaddr_hip structure do not bring much easier upgrade 
benefits when you think about how they would be used in practice. So, I 
think sockaddr_hip2 structure and a new flag for getaddrinfo() seems 
like a better future proofing approach. Below is my attempt to recap the 
discussion.

I am going to remove the extra fields unless anyone finds a convincing 
story why having some extra fields in the structure is beneficial for 
future proofing of HITs. I'd like to post a new final version by the end 
of this week.

<snip>
Miika: seems to me that sockaddr_hip with some extra fields gives the 
following advantages:

* always fixed memory size due to maximum size (struct sockaddr_hip
my_hip; works)
* somewhat easier upgrade of the software to use longer HITs
* < more here? >

At the same time it is somewhat disappointing in the following things:

* transparent migration from shorter to longer HITs
* interoperability (memcmp etc) between shorter and longer HITs
* logging and storing in ACLs

There's also some uncertainty factors that need to be considered:

* do we really need longer HITs in the future (elliptic curves)
* getaddrinfo() is already becoming antique

So, is extending the existing sockaddr_hip structure worth the extra
complexity? Or should we just suggest sockaddr_hip2 structure and an
extra flag for the resolver as the future proofing approach?

</snip>