Re: [homenet] A TOFU approach to naming things in the homenet (with code!)

Toke Høiland-Jørgensen <toke@toke.dk> Fri, 14 April 2017 14:16 UTC

Return-Path: <toke@toke.dk>
X-Original-To: homenet@ietfa.amsl.com
Delivered-To: homenet@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id ADEA7128792 for <homenet@ietfa.amsl.com>; Fri, 14 Apr 2017 07:16:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.001
X-Spam-Level:
X-Spam-Status: No, score=-2.001 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=toke.dk
Received: from mail.ietf.org ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id WosvzNBY6lwF for <homenet@ietfa.amsl.com>; Fri, 14 Apr 2017 07:16:24 -0700 (PDT)
Received: from mail.toke.dk (mail.toke.dk [52.28.52.200]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 227FE129445 for <homenet@ietf.org>; Fri, 14 Apr 2017 07:16:24 -0700 (PDT)
From: Toke Høiland-Jørgensen <toke@toke.dk>
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=toke.dk; s=20161023; t=1492179381; bh=FWHFH0K8UgMCyoGyp51h2/VYWSKe935FsyFwI7rNqRE=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=Q4HWyZc8TIluFtqEWH8+RUNWdgnULy5fXnt9x2xaK509wAf3MphlC9IkKI5crJ4ti zAllgo5BWb519RGZLYEuaZ0ZVhxenbQDWRr0FYR3diltRUxop/2ixiIJJSIqb9+rNP v9lSbxM/epfEd6m1hb2ff/Z8BJXkfZeYCHqu0y0iDVjqsffWKoX4metWH73loWI1mH FYqQAR7o7NIPCeh1S26BHDUmLzkoDc7TLqy7SfUj7w5SiTK+r6FQ4aKc2S1iqvEVPk Z4CPFw7cMsNjWLCzzZhqqlpAPD2hmH2nFiCxElC6/1e0YYPorORrPHDzs/GjAt3OQq 3ZP4zohq1iTmw==
To: Juliusz Chroboczek <jch@irif.fr>
Cc: homenet@ietf.org
References: <87r30vomax.fsf@alrua-x1> <87r30v3xn5.wl-jch@irif.fr>
Date: Fri, 14 Apr 2017 16:16:19 +0200
In-Reply-To: <87r30v3xn5.wl-jch@irif.fr> (Juliusz Chroboczek's message of "Fri, 14 Apr 2017 15:51:42 +0200")
X-Clacks-Overhead: GNU Terry Pratchett
Message-ID: <87h91rnkgc.fsf@alrua-x1>
MIME-Version: 1.0
Content-Type: text/plain
Archived-At: <https://mailarchive.ietf.org/arch/msg/homenet/obwSY-H_xDLeTeWYLYvtjn4tKJY>
Subject: Re: [homenet] A TOFU approach to naming things in the homenet (with code!)
X-BeenThere: homenet@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: IETF Homenet WG mailing list <homenet.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/homenet>, <mailto:homenet-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/homenet/>
List-Post: <mailto:homenet@ietf.org>
List-Help: <mailto:homenet-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/homenet>, <mailto:homenet-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 14 Apr 2017 14:16:26 -0000

Juliusz Chroboczek <jch@irif.fr> writes:

> Simple and elegant, solves a real problem without too much ideology.

Thank you! That is high praise, coming from you :)

>> If the name in a claim is not already taken by another nclient, the
>> client's claim will be successful and the daemon will cache the public
>> key and use it to verify subsequent update requests.
>
> Does this imply there's a single daemon in the Homenet?  How does the
> network elect it in case there are multiple claimants?  How does the
> client learn the address of the daemon?

In the current implementation, a single daemon per registration zone.
The client will query for a SRV at _nsreg._tcp.<zone> to find the
daemon, which can be anywhere, in principle (the daemon will only speak
TCP and limits initial registration to a list of configured subnets; I'm
currently running mine on a separate server rather than on my router).
For the multi-homed homenet case, I suppose each uplink could have a
separate zone?

I punted somewhat on how to discover the zone; the client will currently
take it as a command line parameter. But figure that can be distributed
via DHCP/RA?

In principle, there's nothing preventing the daemon state from being
replicated across the homenet routers, I suppose...

-Toke