Re: [hiprg] RG last call on the DHT draft

Ari Keranen <ari.keranen@nomadiclab.com> Fri, 16 July 2010 13:38 UTC

Return-Path: <ari.keranen@nomadiclab.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 D11843A6A0B for <hiprg@core3.amsl.com>; Fri, 16 Jul 2010 06:38:16 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.211
X-Spam-Level:
X-Spam-Status: No, score=-2.211 tagged_above=-999 required=5 tests=[AWL=-0.212, BAYES_00=-2.599, J_CHICKENPOX_47=0.6]
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 DNIiff9SsXMX for <hiprg@core3.amsl.com>; Fri, 16 Jul 2010 06:38:15 -0700 (PDT)
Received: from gw.nomadiclab.com (unknown [IPv6:2001:14b8:400:101::2]) by core3.amsl.com (Postfix) with ESMTP id 1AF8A3A68FC for <hiprg@irtf.org>; Fri, 16 Jul 2010 06:38:14 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by gw.nomadiclab.com (Postfix) with ESMTP id 3B9B54E6D5; Fri, 16 Jul 2010 16:38:23 +0300 (EEST)
X-Virus-Scanned: amavisd-new at nomadiclab.com
Received: from gw.nomadiclab.com ([127.0.0.1]) by localhost (inside.nomadiclab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id fagSm6LE2t7e; Fri, 16 Jul 2010 16:38:22 +0300 (EEST)
Received: from [IPv6:2001:14b8:400:101:21c:23ff:fe45:a6c1] (unknown [IPv6:2001:14b8:400:101:21c:23ff:fe45:a6c1]) by gw.nomadiclab.com (Postfix) with ESMTP id E177C4E6BF; Fri, 16 Jul 2010 16:38:21 +0300 (EEST)
Message-ID: <4C4060CD.4040306@nomadiclab.com>
Date: Fri, 16 Jul 2010 16:38:21 +0300
From: Ari Keranen <ari.keranen@nomadiclab.com>
User-Agent: Thunderbird 2.0.0.24 (X11/20100411)
MIME-Version: 1.0
To: "Henderson, Thomas R" <thomas.r.henderson@boeing.com>, "Ahrenholz, Jeffrey M" <jeffrey.m.ahrenholz@boeing.com>
References: <7CC566635CFE364D87DC5803D4712A6C4CE9716436@XCH-NW-10V.nw.nos.boeing.com>
In-Reply-To: <7CC566635CFE364D87DC5803D4712A6C4CE9716436@XCH-NW-10V.nw.nos.boeing.com>
Content-Type: text/plain; charset="ISO-8859-1"; format="flowed"
Content-Transfer-Encoding: 7bit
Cc: "hiprg@irtf.org" <hiprg@irtf.org>
Subject: Re: [hiprg] RG last call on the DHT draft
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: Fri, 16 Jul 2010 13:38:17 -0000

On 07/12/2010 07:55 PM, Henderson, Thomas R wrote:
> All, This is the last call for comments on the HIP DHT Interface
> (draft-irtf-hiprg-dht-00). 
> http://tools.ietf.org/html/draft-irtf-hiprg-dht-00
> 
> The last call expires on July 26, 2010.  Please provide your input by
> then.  The goal is to prepare this document for IRSG review for
> publication as an IRTF stream RFC.
> 

Here's some comments on the draft. I read it only up to section 4, but I 
can see if I have time later to read the remaining sections too.


Cheers,
Ari

---

Abbreviations in the title and abstract are not expanded.


2. The OpenDHT interface

    While the Bamboo
    project provides the actual software running on the servers, here we
    will refer only to OpenDHT, which uses a certain defined interface
    for the XML-RPC calls.

s/provides/provided/ ?


    The definitions below are taken from
    <http://opendht.org/users-guide.html>.

Should also some explaining text be taken from there since that user 
guide doc may not be available later on?


     The return code 3
     indicates "failure" and is used for a modified OpenDHT server that
                  performs signature and HIT verification.

I think this needs more details (or a reference to the section with more 
details).


      The server replies with an integer -- 0 for "success", 1 if it is
               "over capacity", and 2 indicating "try again".

What does "over capacity" imply? Try again later?


3.1. HIP name to HIT lookup

          put(SHA-1("name", HDRR([CERT]), [SHA-1(secret)])

I suppose there should be a closing parenthesis after "name". And same 
issue with rm?

By the way, why is SHA-1 of HDRR needed in remove? Some OpenDHT specific 
feature?


    If a certificate is included in this HIT record, the name used for
    the DHT key should be listed in the certificate.

Should define which certificate field should be used for the DHT key.

    The ttl_sec field specifies the number of seconds requested by the
    client that the entry should be stored by the DHT server, which is
    implementation dependent.

Could the TTL be also policy dependent?


3.2. HIP address lookup

          HDRR(LOCATOR, SEQ, HOST_ID, [CERT], HIP_SIG) = get(HIT_KEY)
          put(HIT_KEY, HDRR(LOCATOR, SEQ, HOST_ID, [CERT], HIP_SIG),
              [SHA-1(secret)])
          rm(HIT_KEY, SHA-1(HDRR), secret)

These API descriptions are a bit hard to parse if you are not familiar 
with the syntax. Perhaps having a short paragraph after each operation 
would help (slightly edited second paragraph of this section would be OK 
for the get).


Wouldn't the HIT_KEY be better simply defined as "last 100 bits of the 
HIT appended with 60 zero bits"? The current text with RFC4843 
definitions seems a bit confusing for such a simple thing.

Overall, the definition of the "key" and HIT_KEY are somewhat confusing. 
The next table seems to imply that HIT_KEY simply the 100 bits but later 
in the section (after the tables) it is explained again.


    |                | pusblished contained in the LOCATOR    |         |

typo: pusblished


    The application and client_library fields are used for logging in
    OpenDHT.  The client_library may vary between different
    implementations, specifying the name of the XML-RPC library used or
    the application that directly makes XML-RPC calls.

This note would be better already in the (end of?) section 2 where the 
"application" and "client_library" are used the first time.


4. HDRR - the HIP DHT Resource Record

      HIP Header:
        Packet Type = 20 DHT Resource Record (this value is TBD)

This should probably be added to the IANA considerations section.


    The Responder
    HIT (Receiver's HIT, DST HIT) MUST be NULL (all zeroes) since the
    data is intended for any host.

RFC 2119 language without the "terminology section". This could also be 
problematic considering the informational status of the draft.