Re: [Anima] Is this how BRSKI/IPIP works?

Michael Richardson <mcr+ietf@sandelman.ca> Wed, 12 July 2017 15:57 UTC

Return-Path: <mcr@sandelman.ca>
X-Original-To: anima@ietfa.amsl.com
Delivered-To: anima@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 910CD1316FF for <anima@ietfa.amsl.com>; Wed, 12 Jul 2017 08:57:27 -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, 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 y0W_qhhDII86 for <anima@ietfa.amsl.com>; Wed, 12 Jul 2017 08:57:23 -0700 (PDT)
Received: from relay.sandelman.ca (relay.cooperix.net [176.58.120.209]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 41CFD1316DA for <anima@ietf.org>; Wed, 12 Jul 2017 08:57:22 -0700 (PDT)
Received: from dooku.sandelman.ca (unknown [IPv6:2607:f0b0:f:b:a11:96ff:fe01:81e0]) by relay.sandelman.ca (Postfix) with ESMTPS id 370971F8FB; Wed, 12 Jul 2017 15:57:21 +0000 (UTC)
Received: by dooku.sandelman.ca (Postfix, from userid 179) id 5222CEBA; Wed, 12 Jul 2017 11:57:19 -0400 (EDT)
From: Michael Richardson <mcr+ietf@sandelman.ca>
To: Anima WG <anima@ietf.org>
In-reply-to: <3a2a138d-df80-8231-918e-b7dd33ff4fd6@gmail.com>
References: <467b3a9b-6fe0-c01f-6165-18e6e290a28c@gmail.com> <14885.1499820271@dooku.sandelman.ca> <3a2a138d-df80-8231-918e-b7dd33ff4fd6@gmail.com>
Comments: In-reply-to Brian E Carpenter <brian.e.carpenter@gmail.com> message dated "Wed, 12 Jul 2017 14:02:44 +1200."
X-Mailer: MH-E 8.6; nmh 1.6; GNU Emacs 24.5.1
MIME-Version: 1.0
Content-Type: multipart/signed; boundary="=-=-="; micalg="pgp-sha1"; protocol="application/pgp-signature"
Date: Wed, 12 Jul 2017 11:57:19 -0400
Message-ID: <25643.1499875039@dooku.sandelman.ca>
Archived-At: <https://mailarchive.ietf.org/arch/msg/anima/rDFxKKmsxOw_h6xjbZQtLqBH1ZU>
Subject: Re: [Anima] Is this how BRSKI/IPIP works?
X-BeenThere: anima@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Autonomic Networking Integrated Model and Approach <anima.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/anima>, <mailto:anima-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/anima/>
List-Post: <mailto:anima@ietf.org>
List-Help: <mailto:anima-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/anima>, <mailto:anima-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 12 Jul 2017 15:57:28 -0000

Brian E Carpenter <brian.e.carpenter@gmail.com> wrote:
    >> Brian E Carpenter <brian.e.carpenter@gmail.com> wrote: > Is the
    >> following correct?
    >>
    >> > Topology (ASCII art):
    >>
    >> Topology is essentially correct.  As you point out, RFC7217 is the
    >> recommendation going forward, so having a a big IEEE OUI allocation
    >> isn't necessary anymore.
    >>
    >> But, the problem is you have a single Ax for the device.  The ACP
    >> needs to allocate Ax1 for LAN1, and Ax2 for LAN2, etc.

    > Yes, that would disambiguate it. But in general it isn't necessary for
    > a node to have multiple ACP addresses just because it has multiple
    > interfaces, is it?

We need a way to distinguish the different links (and scoope of the LL
address) in a way that can be communicated easily and cheaply to the
Registrar.    I've asked for the "V"irtualization bit to be bigger, and I see
no purpose for the Zone-ID myself.

    >> That's why I wanted a /96 or so provided by the ACP to each device.

    > That would be one way, but it will create noise in 6man.  In any case
    > if the requirement is one address per proxy+interface I'm sure it can
    > be done somehow; IPv6 addresses are cheap.

It's not a subnet for the device to announce, it's a large bag of /128s.

    >> Instead, I have two suggestions, not entirely mutually exclusive: 1)
    >> the Registrar says, "I accept IPIP on Address Ar, use Lr for
    >> connections"

    > I don't understand where Lr would be used. The LL messages are all
    > between the pledge and the proxy, which have perfectly fine LL
    > addresses of their own.

Assume a TCP connection from the Pledge to the Registrar.
It looks like, as you wrote:

   Pledge sends to proxy [Lp, Lx1, 17, TCP-PAYLOAD1]

On the registrar, when it emerges from the IPIP tunnel, this is what the
registrar sees.   If we do nothing, the Registrar says, "Lx1"? What's that
it's not me. Drop.  So we have to do something. Options are:

1) Registrar accepts any Lx1 as local.
2) We pick a well-known Lx value (a LL anycast).
3) We have the Registrar tell the proxy an Lx value to use.


1) Registrar accepts any Lx1 as local.
   There is no precedent in v6 APIs to open such a socket, but this actually
   supported on many platforms.  It's used for nasty stuff like transparent
   application layer proxies, forced HTTP proxying, and the like.

2) We pick a well-known Lx value (a LL anycast).
   The pledge has to do something slightly funky where it forces a particular
   L2 address for the anycast LL, because if there are multiple proxies on
   the network, straight ND will get one at random, and the Pledge actually
   wants to be specific about which one it uses. (since it wants to try them all)

3) We have the Registrar tell the proxy an Lx value to use.
   I chose to put this option into the protocol, because we can always
   set Lx= Lanycast in the future, and perhaps we can set it to ::
   if we want case (1).

    >> > registrar, it simply forwards the packets as-is in both directions,
    >> > encapsulating and decapsulating accordingly. The pledge knows
    >> nothing > about IPIP.
    >>
    >> It needs to know it's IPIP,

    > Why? The IPIP encapsulation and decapsulation can happen inside the
    > proxy (and the registrar). Why does the pledge care?

Sorry. "Proxy" vs "Pledge"
"IT" above referred to Proxy, but in fact it says "pledge". Typo.

    >> As for Toerless' notion that we should invent a new UDP-based
    >> encapsulation

    > IPv6-over-UDP isn't exactly a new invention. It's been used in Teredo,
    > TSP (RFC5572) and SixXs
    > (https://tools.ietf.org/html/draft-massar-v6ops-ayiya-02).  More to the
    > point, draft-ietf-intarea-gue is in progress.

    > All the same, if straight IPIP works, so much the better.

I resorted to using Ar as an additional signaling mechanism to "store" the
ifindex where the request was coming from rather than try to find some bits
in some other protocol like one you mention above.
TSP is too complex for our needs.

Teredo has some space for additional stuff. It should be straight forward to
define it over IPv6 rather than v4. Seems a bit weird to me though.

--
Michael Richardson <mcr+IETF@sandelman.ca>, Sandelman Software Works
 -= IPv6 IoT consulting =-