Re: [hiprg] draft-ahrenholz-hiprg-dht-05

Ken Rimey <rimey@hiit.fi> Tue, 03 November 2009 19:19 UTC

Return-Path: <ken.rimey@gmail.com>
X-Original-To: hiprg@core3.amsl.com
Delivered-To: hiprg@core3.amsl.com
Received: from localhost (localhost [127.0.0.1]) by core3.amsl.com (Postfix) with ESMTP id 8A7F63A687C for <hiprg@core3.amsl.com>; Tue, 3 Nov 2009 11:19:37 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.934
X-Spam-Level:
X-Spam-Status: No, score=-1.934 tagged_above=-999 required=5 tests=[AWL=0.043, 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 Kpn0LwKwHMSe for <hiprg@core3.amsl.com>; Tue, 3 Nov 2009 11:19:36 -0800 (PST)
Received: from mail-ew0-f211.google.com (mail-ew0-f211.google.com [209.85.219.211]) by core3.amsl.com (Postfix) with ESMTP id 8613E3A681A for <hiprg@irtf.org>; Tue, 3 Nov 2009 11:19:36 -0800 (PST)
Received: by ewy7 with SMTP id 7so3951483ewy.7 for <hiprg@irtf.org>; Tue, 03 Nov 2009 11:19:55 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to:cc :content-type; bh=FdphTHwg+essfj6WIslKcMcgoPTncXI6tJhlW9J85yw=; b=snYzul14Mqqji5V1cAXt3AQU9Em+XldX0p+aFTWLzMMhhM3QUcrm63rE0k4eLnMT44 jvsq1kCFVDz80ybDtzO99EuuTnrXmzx6815PgnXn/6jnt5aCGoPOFbdo03IBi7BEe8CK nDhFrpz1LeFAvG0jbz+MSulsitiE8hAdgNrcw=
DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=pJgwwQ+DKqneKmRyejyljZLoHwhwrt7Z++8uL52YZTq9UgDrd8X2QWGNI3h3wzlf0O 5BEB/nb+u5mxHoplMPKXhsS05GJzEoCiN2cDbGF3S2IXHcq2z1DLTbaIB4YkwhLbFjjZ yHVsF/+JWamYwuFsdKj4K53F/aOOGRkckhkvs=
MIME-Version: 1.0
Sender: ken.rimey@gmail.com
Received: by 10.216.91.13 with SMTP id g13mr161681wef.36.1257275995165; Tue, 03 Nov 2009 11:19:55 -0800 (PST)
In-Reply-To: <FD98F9C3CBABA74E89B5D4B5DE0263B93780A28E36@XCH-NW-12V.nw.nos.boeing.com>
References: <AAF2CBF9D2573B45A7ED75C4FFD9883F4B9515A0E7@XCH-NW-10V.nw.nos.boeing.com> <4AE56537.9010309@hiit.fi> <cd486210910271245m22700713g3c66539614ca8589@mail.gmail.com> <FD98F9C3CBABA74E89B5D4B5DE0263B93780A28E36@XCH-NW-12V.nw.nos.boeing.com>
Date: Tue, 03 Nov 2009 21:19:54 +0200
X-Google-Sender-Auth: eeef2a22e064c92f
Message-ID: <cd486210911031119x3ab74a2frfbf8a524aff941ca@mail.gmail.com>
From: Ken Rimey <rimey@hiit.fi>
To: "Ahrenholz, Jeffrey M" <jeffrey.m.ahrenholz@boeing.com>
Content-Type: text/plain; charset="ISO-8859-1"
Cc: "hiprg@irtf.org" <hiprg@irtf.org>
Subject: Re: [hiprg] draft-ahrenholz-hiprg-dht-05
X-BeenThere: hiprg@irtf.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: "Host Identity Protocol \(HIP\) Research Group" <hiprg.irtf.org>
List-Unsubscribe: <https://www.irtf.org/mailman/listinfo/hiprg>, <mailto:hiprg-request@irtf.org?subject=unsubscribe>
List-Archive: <http://www.irtf.org/mail-archive/web/hiprg>
List-Post: <mailto:hiprg@irtf.org>
List-Help: <mailto:hiprg-request@irtf.org?subject=help>
List-Subscribe: <https://www.irtf.org/mailman/listinfo/hiprg>, <mailto:hiprg-request@irtf.org?subject=subscribe>
X-List-Received-Date: Tue, 03 Nov 2009 19:19:37 -0000

On Mon, Nov 2, 2009 at 7:28 PM, Ahrenholz, Jeffrey M
<jeffrey.m.ahrenholz@boeing.com> wrote:
> what is the ideal interface?
> ...that would be a great discussion for this list.

> ...we may need to include something like the SEQ TLV in the HDRR,
> so that each record has an update id; then clients may retrieve all
> available values and use the most recent one

A better interface (I won't dare to say ideal) would handle this on the
server side, so the client only sees the most recent update.

Another desirable thing, as made clear in the draft, would be for the
server to do the checking of signatures.

The following is not a sales pitch.  :-)

OpenLookup actually implements an interface like this for a second
datastore, separate from the OpenDHT-compatible store.  The data
model is a single-valued mapping from principal-label pairs to values
(where the label is analogous to the OpenDHT key).

The interface is based on HTTP, but not XML-RPC.

Instead of a sequence number, it simply uses the expiration time
to determine precedence between updates.

For HIP, unfortunately, the OpenLookup code would have to be
hacked to name principals using just the middle 100 bits of the
SHA-1 hash.

The interface also allows for queries, where the principal is a
wildcard.  This is useful for use cases like storing a name-to-HIT
mapping.  (I have doubts about such multivalued mappings being
viable in the real world, however.)

Ken