Re: [homenet] How many people have installed the homenet code?

Juliusz Chroboczek <jch@pps.univ-paris-diderot.fr> Mon, 25 April 2016 20:35 UTC

Return-Path: <jch@pps.univ-paris-diderot.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 A3CC512D197 for <homenet@ietfa.amsl.com>; Mon, 25 Apr 2016 13:35:11 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001] 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 uhPODCBERye2 for <homenet@ietfa.amsl.com>; Mon, 25 Apr 2016 13:35:09 -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 421E112D117 for <homenet@ietf.org>; Mon, 25 Apr 2016 13:35:09 -0700 (PDT)
Received: from potemkin.univ-paris7.fr (potemkin.univ-paris7.fr [IPv6:2001:660:3301:8000::1:1]) by korolev.univ-paris7.fr (8.14.4/8.14.4/relay1/56228) with ESMTP id u3PKYkd6020437 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Mon, 25 Apr 2016 22:34:46 +0200
Received: from mailhub.math.univ-paris-diderot.fr (mailhub.math.univ-paris-diderot.fr [81.194.30.253]) by potemkin.univ-paris7.fr (8.14.4/8.14.4/relay2/56228) with ESMTP id u3PKYkgP006445; Mon, 25 Apr 2016 22:34: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 149036202B; Mon, 25 Apr 2016 22:34: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 XUdlej-4g4UI; Mon, 25 Apr 2016 22:34:44 +0200 (CEST)
Received: from trurl.pps.univ-paris-diderot.fr (col75-1-78-194-40-74.fbxo.proxad.net [78.194.40.74]) (Authenticated sender: jch) by mailhub.math.univ-paris-diderot.fr (Postfix) with ESMTPSA id B891E62042; Mon, 25 Apr 2016 22:34:43 +0200 (CEST)
Date: Mon, 25 Apr 2016 22:34:43 +0200
Message-ID: <87bn4xctr0.wl-jch@pps.univ-paris-diderot.fr>
From: Juliusz Chroboczek <jch@pps.univ-paris-diderot.fr>
To: Tim Coote <tim+ietf.org@coote.org>
In-Reply-To: <1A925EC1-97C4-49D6-A6A0-4EFC6F1B70F9@coote.org>
References: <6E709688-414A-4AFB-AEAE-56BAE0469583@coote.org> <87oa93vz8e.wl-jch@pps.univ-paris-diderot.fr> <917CFE11-2386-4B0D-8A81-F87764AC09A4@coote.org> <87lh47vtpe.wl-jch@pps.univ-paris-diderot.fr> <02CF43FB-CF81-4C0C-84E1-A8DFB27B3F8C@coote.org> <87lh44fff7.wl-jch@pps.univ-paris-diderot.fr> <1A925EC1-97C4-49D6-A6A0-4EFC6F1B70F9@coote.org>
User-Agent: Wanderlust/2.15.9
MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue")
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (korolev.univ-paris7.fr [IPv6:2001:660:3301:8000::1:2]); Mon, 25 Apr 2016 22:34:46 +0200 (CEST)
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (potemkin.univ-paris7.fr [194.254.61.141]); Mon, 25 Apr 2016 22:34:46 +0200 (CEST)
X-Miltered: at korolev with ID 571E7F66.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)!
X-Miltered: at potemkin with ID 571E7F66.000 by Joe's j-chkmail (http : // j-chkmail dot ensmp dot fr)!
X-j-chkmail-Enveloppe: 571E7F66.000 from potemkin.univ-paris7.fr/potemkin.univ-paris7.fr/null/potemkin.univ-paris7.fr/<jch@pps.univ-paris-diderot.fr>
X-j-chkmail-Enveloppe: 571E7F66.000 from mailhub.math.univ-paris-diderot.fr/mailhub.math.univ-paris-diderot.fr/null/mailhub.math.univ-paris-diderot.fr/<jch@pps.univ-paris-diderot.fr>
X-j-chkmail-Score: MSGID : 571E7F66.000 on korolev.univ-paris7.fr : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000
X-j-chkmail-Score: MSGID : 571E7F66.000 on potemkin.univ-paris7.fr : j-chkmail score : . : R=. U=. O=. B=0.000 -> S=0.000
X-j-chkmail-Status: Ham
X-j-chkmail-Status: Ham
Archived-At: <http://mailarchive.ietf.org/arch/msg/homenet/-VM6aL3eIc9-tsjJ3ZqGkfwqkg0>
Cc: homenet@ietf.org
Subject: Re: [homenet] How many people have installed the homenet code?
X-BeenThere: homenet@ietf.org
X-Mailman-Version: 2.1.17
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: Mon, 25 Apr 2016 20:35:11 -0000

> So my next question is ‘what is External and what is Internal?’

  - External: connected to the ISP's (non-Homenet) router.

  - Internal: interior link within your Homenet, connected to other
    Homenet routers and to (unmodified) hosts.

Here's a possible topology, where interfaces are marked "e" for External
and umarked for Internal.  A, B, C and D are Homenet routers, "+" are
(layer 2) switches.

                    B -- Host
                    |
                    |
            e       |       e
  ISP A ----- A ----+---- D ----- ISP B
                \       /
                 \     /
                  \   /--Host
                    C
                    |
                    |
            Host ---+--- Host

On an Internal link, we speak HNCP and Babel.  On an External link, we
speak neither HNCP nor Babel.

(The OpenWRT implementation additionally sets static routing, NAT and
firewall rules on External links, but shncpd doesn't.)

> How is this topolgical aspect identified and the ‘shared, agreed
> topology’ communicated between routing entities

The difference between External and Internal is defined statically -- the
expectation is that you have a dedicated Ethernet port to your ISP, which
is statically configured as External.  A useful mental model is that of
a router with one Ethernet port marked Wan being External, and four
Ethernet ports marked LAN being Internal.

(The OpenWRT implementation has the ability to automatically detect
External ports, but it relies on acting as a DHCPv6-PD and DHCPv4 client,
so it's not implemented in shncpd yet.)

> Or is it expected that the user nominates the topology and it’s static?

HNCP and Babel only run on Internal ports, so only the Internal topology
is detected automatically.  You can add and remove Internal cables at
will, and this will be detected within a few seconds, but you cannot
switch a port between Internal and External without reconfiguration.

> I think that I read in the homenet documentation that directed graph
> topologies are anticipated,

We don't require an acyclic graph (see figure above).  Arbitrary Internal
topologies are supported, and HNCP and Babel cooperate to do The Right Thing.

-- Juliusz