Re: [Hipsec] ROUTE_VIA and _DST support for HIP native API

Ari Keränen <ari.keranen@nomadiclab.com> Wed, 29 July 2009 21:13 UTC

Return-Path: <ari.keranen@nomadiclab.com>
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 BE8D33A6BD9 for <hipsec@core3.amsl.com>; Wed, 29 Jul 2009 14:13:27 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.299
X-Spam-Level:
X-Spam-Status: No, score=-2.299 tagged_above=-999 required=5 tests=[BAYES_00=-2.599, MIME_8BIT_HEADER=0.3]
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 xXvZnjmQm+tA for <hipsec@core3.amsl.com>; Wed, 29 Jul 2009 14:13:27 -0700 (PDT)
Received: from n2.nomadiclab.com (n2.nomadiclab.com [IPv6:2001:14b8:400:101::2]) by core3.amsl.com (Postfix) with ESMTP id C48303A6A8D for <hipsec@ietf.org>; Wed, 29 Jul 2009 14:13:26 -0700 (PDT)
Received: from n2.nomadiclab.com (localhost [127.0.0.1]) by n2.nomadiclab.com (Postfix) with ESMTP id 9AFCB1EF2A1; Thu, 30 Jul 2009 00:13:26 +0300 (EEST)
Received: from inside.nomadiclab.com (inside.nomadiclab.com [193.234.219.2]) by n2.nomadiclab.com (Postfix) with ESMTP id 39D051EF28F; Thu, 30 Jul 2009 00:13:26 +0300 (EEST)
Date: Thu, 30 Jul 2009 00:13:26 +0300
From: Ari Keränen <ari.keranen@nomadiclab.com>
To: Miika Komu <miika.komu@hiit.fi>
In-Reply-To: <4A707308.2090209@hiit.fi>
Message-ID: <Pine.NEB.4.64.0907292347540.3972@inside.nomadiclab.com>
References: <4A64469A.2020402@ericsson.com> <4A704868.5030404@nomadiclab.com> <4A707308.2090209@hiit.fi>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset="US-ASCII"; format="flowed"
X-Virus-Scanned: ClamAV using ClamSMTP
Cc: HIP <hipsec@ietf.org>
Subject: Re: [Hipsec] ROUTE_VIA and _DST support for HIP native API
X-BeenThere: hipsec@ietf.org
X-Mailman-Version: 2.1.9
Precedence: list
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: Wed, 29 Jul 2009 21:13:27 -0000

On Wed, 29 Jul 2009, Miika Komu wrote:
> Ari Keranen wrote:
>> Sorry that this comes a bit late in the process, but I think it would make 
>> sense to have support for the source routing & route recording ROUTE_DST 
>> and ROUTE_VIA parameters [1] in the HIP native API. They are needed for HIP 
>> BONE but likely they have use also in other contexts and then an 
>> application would need an API for using them.
>> 
>> Maybe the API that RFC 2292 [2] defines for IPv6 routing header could be 
>> re-used for this purpose.
>> 
>> 
>> Cheers,
>> Ari
>> 
>> [1] http://tools.ietf.org/html/draft-camarillo-hip-via-00
>> [2] http://tools.ietf.org/html/rfc2292#section-8
>
> I had a brief look a the routing header options and I think this would 
> require a lot more work. I think we just can't tell "use IPv6 routing header 
> for route recording" because we need to dig out the differences with orchid 
> vs. IPv6 routing and flesh out all the details. The current time schedule is 
> quite tight for this too.
>

Actually my idea was not that you would use IPv6 routing header for the 
route recording, but you could perhaps re-use the API -- if it makes 
sense. The actual (HIP) route recording and source routing would be done 
with the ROUTE_{VIA,DST} parameters. If some other API than what RFC 2292 
proposes is better, that's perfectly fine for me. Based on your comments, 
some other form of API is probably better.

Essentially an application would need to be able to give a HIP socket a 
list of HITs (for source routing), set option to enable route recording 
and symmetric routing, and be able to read a recorded route (i.e., a list 
of HITs). I think a quite simple API extension would be sufficient for 
this.

But by tight schedule are you referring to WGLC? I guess it's OK to 
postpone that a couple of days/weeks, if necessary?

> Currently, the native API draft defines "Basic Socket Interface Extensions 
> for Host Identity Protocol (HIP)". I believe the hiccups extensions belong to 
> the category of "advanced" and the reference to [2] is also "Advanced Sockets 
> API for IPv6".
>
> I would propose that we'd introduce another document for orchid routing or 
> add them to the VIA draft. Please comment this proposal ASAP so that I'll 
> have more time to hack this over the night if people want to see the changes 
> in the native API.
>

This is not really a HICCUPS extension, but I see your point. If we have 
more "advanced" features, a new API draft could make sense, but probably 
not for just this extension. Also the VIA draft does not seem like a right 
place for API documentation.


Cheers,
Ari