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

Juliusz Chroboczek <jch@irif.fr> Fri, 14 April 2017 15:05 UTC

Return-Path: <jch@irif.fr>
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 B65F713012A for <homenet@ietfa.amsl.com>; Fri, 14 Apr 2017 08:05:49 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
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 2nfWA8bUfh-4 for <homenet@ietfa.amsl.com>; Fri, 14 Apr 2017 08:05:48 -0700 (PDT)
Received: from korolev.univ-paris7.fr (korolev.univ-paris7.fr [IPv6:2001:660:3301:8000::1:2]) (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 67F50131440 for <homenet@ietf.org>; Fri, 14 Apr 2017 08:05:48 -0700 (PDT)
Received: from mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [81.194.30.253]) by korolev.univ-paris7.fr (8.14.4/8.14.4/relay1/56228) with ESMTP id v3EF5k7X008924; Fri, 14 Apr 2017 17:05:46 +0200
Received: from mailhub.math.univ-paris-diderot.fr (localhost [127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTP id 4B1B1D798C; Fri, 14 Apr 2017 17:05:46 +0200 (CEST)
X-Virus-Scanned: amavisd-new at math.univ-paris-diderot.fr
Received: from mailhub.math.univ-paris-diderot.fr ([127.0.0.1]) by mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [127.0.0.1]) (amavisd-new, port 10023) with ESMTP id qEM2logng4xv; Fri, 14 Apr 2017 17:05:45 +0200 (CEST)
Received: from lanthane.pps.univ-paris-diderot.fr (unknown [172.23.36.54]) (Authenticated sender: jch) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTPSA id 63DC2D79B2; Fri, 14 Apr 2017 17:05:44 +0200 (CEST)
Received: from localhost ([::1] helo=lanthane.irif.fr) by lanthane.pps.univ-paris-diderot.fr with esmtp (Exim 4.88) (envelope-from <jch@irif.fr>) id 1cz2nA-0007mI-3B; Fri, 14 Apr 2017 17:05:44 +0200
Date: Fri, 14 Apr 2017 17:05:44 +0200
Message-ID: <7i8tn3xc53.wl-jch@irif.fr>
From: Juliusz Chroboczek <jch@irif.fr>
To: Toke Høiland-Jørgensen <toke@toke.dk>
Cc: homenet@ietf.org
In-Reply-To: <87h91rnkgc.fsf@alrua-x1>
References: <87r30vomax.fsf@alrua-x1> <87r30v3xn5.wl-jch@irif.fr> <87h91rnkgc.fsf@alrua-x1>
User-Agent: Wanderlust/2.15.9
MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue")
Content-Type: text/plain; charset="US-ASCII"
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (korolev.univ-paris7.fr [194.254.61.138]); Fri, 14 Apr 2017 17:05:46 +0200 (CEST)
X-Miltered: at korolev with ID 58F0E54A.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)!
X-j-chkmail-Enveloppe: 58F0E54A.000 from mailhub.math.univ-paris-diderot.fr/mailhub.math.univ-paris-diderot.fr/null/mailhub.math.univ-paris-diderot.fr/<jch@irif.fr>
X-j-chkmail-Score: MSGID : 58F0E54A.000 on korolev.univ-paris7.fr : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000
X-j-chkmail-Status: Ham
Archived-At: <https://mailarchive.ietf.org/arch/msg/homenet/0QS5uAxz09GXsIcqeMB4r8vymg0>
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 15:05:49 -0000

> In the current implementation, a single daemon per registration zone.

Right.  Either it could be elected by HNCP, or the daemons could run an
election among themselves.

> 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).

Makes sense.  The list of prefixes could be configured by HNCP.

> For the multi-homed homenet case, I suppose each uplink could have a
> separate zone?

Don't know.  I suppose so.

> 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?

Or put it in DNS under dot-home?  Since the client already knows how to
speak DNS, this avoids yet another coupling between protocols.

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

I think it's more complicated and more fragile than having an election.
I'm not too keen on adding another flooding protocol to the Homenet stack.

-- Juliusz