Re: [Anima] IPIP in draft-ietf-anima-bootstrapping-keyinfra-07

Brian E Carpenter <brian.e.carpenter@gmail.com> Thu, 06 July 2017 01:43 UTC

Return-Path: <brian.e.carpenter@gmail.com>
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 BDED112EBFF for <anima@ietfa.amsl.com>; Wed, 5 Jul 2017 18:43:35 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com
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 OIyer_CJ-5pp for <anima@ietfa.amsl.com>; Wed, 5 Jul 2017 18:43:33 -0700 (PDT)
Received: from mail-pf0-x22b.google.com (mail-pf0-x22b.google.com [IPv6:2607:f8b0:400e:c00::22b]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 3649A129B49 for <anima@ietf.org>; Wed, 5 Jul 2017 18:43:33 -0700 (PDT)
Received: by mail-pf0-x22b.google.com with SMTP id q86so3146814pfl.3 for <anima@ietf.org>; Wed, 05 Jul 2017 18:43:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:organization:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=iPjzDwi465hea4JsKIZB9yyAqtPSzm17apRgEyhKyu0=; b=Hoyf7FZ/Z9m7IOZvgxgwXaleOzrBNiqs4++D27F8FJ/woqrB3l1TxUOlBibfuCW03p 54OHEi6XZKd8LJV/I0uwjdmpjbbFelpTzfutao4ViogyPQoPYPrV27JFLkPSOmPgIKGE vb/9ZH0wF3VdoL3zoIVyvxR30l/+aR7fvtK1AD2Uvv2e1D6NdvAUucEYYxt4AyOHx64W jNIc8D+pprQ/a7nDN9tMjjotL87BrdawJZYuKFY3yUj9hi48eTv3MWYUpiXAfJ2fEdKy cgOz/Dj5hoinw+VSTE6mwQPKfUoGSWEcZd+kWbC3/tu6y4VCVpdiOaj1yPMJ+9C0BNND pOxA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:organization :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=iPjzDwi465hea4JsKIZB9yyAqtPSzm17apRgEyhKyu0=; b=CVJqcYdiutVTQ0gJ106Gwlww3yCO1ixb240cMqmJHdkiNcGKioa+sjivRY0xHFefDY V7YEmDWygFK2q3awo7PBjtFcwUJdWMPNhkS+eJNudwRls0WUpzuW5h07GQLFQCTscjn2 bZ4/kL+dBWrrNWvawOxChMKdrDKBf2T+eO5PE4buGLlIT12H1LjUrjHw8JJTMd7VrX6z 9H8YpL5XnDFHj+nV290vAOmrHtt1AzhmR+9z3n4XFnxfeZtcTdXWpIwOeeZubWGsDieZ 2nrhtNJP76TFRUh6oLVv3Wn8yN9kDsgoEXcripahwxUXfxCA9WzhYYmw/J/osjWZHjcy AV3w==
X-Gm-Message-State: AIVw113j0/wnisBJsOc8NHZoNYKOYP0Mh6Thbf6VCnEfDhPHA30933vL xu/dZWiJyD8efrDn
X-Received: by 10.84.238.206 with SMTP id l14mr25181195pln.280.1499305412440; Wed, 05 Jul 2017 18:43:32 -0700 (PDT)
Received: from ?IPv6:2406:e001:3f46:1:28cc:dc4c:9703:6781? ([2406:e001:3f46:1:28cc:dc4c:9703:6781]) by smtp.gmail.com with ESMTPSA id j14sm626701pgt.7.2017.07.05.18.43.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Jul 2017 18:43:31 -0700 (PDT)
To: Toerless Eckert <tte@cs.fau.de>
Cc: Anima WG <anima@ietf.org>
References: <a933b9fc-bc89-f86d-c87a-ac6d5c453724@gmail.com> <20170705230553.GB14122@faui40p.informatik.uni-erlangen.de>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Organization: University of Auckland
Message-ID: <a47bdca7-7f7f-5206-7404-781821bed83f@gmail.com>
Date: Thu, 06 Jul 2017 13:42:29 +1200
User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1
MIME-Version: 1.0
In-Reply-To: <20170705230553.GB14122@faui40p.informatik.uni-erlangen.de>
Content-Type: text/plain; charset="utf-8"
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/anima/lTLqFTiW_xMUSeDrF8kAM2Tmpew>
Subject: Re: [Anima] IPIP in draft-ietf-anima-bootstrapping-keyinfra-07
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: Thu, 06 Jul 2017 01:43:36 -0000

On 06/07/2017 11:05, Toerless Eckert wrote:
> Brian,
> 
> 1. I think the conclusions about IP-in-IP where that it should be in an appendix
>    because it would not be MTI (Mandatory to implement). 

That makes sense. But the text is still a bit confusing because it doesn't make that
clear in the main text. However, before we resolve that, I need to understand
how it's really supposed to work.

> 
> 2./3.  This was addressed in my shepherd review BRSKI where i folded in the information from
> your ani-objectives draft. See my other mail about the status of that review.
> 
> You can find the last integrated version of the ani objective text for BRSKI 
> in section 3.4 of:
> 
> https://raw.githubusercontent.com/anima-wg/anima-bootstrap/toerless_review_section3_20160606/dtbootstrap-anima-keyinfra.txt
> 
> This was done in may/june. Like for acp-07, i would like to improve this though:
> 
> -> I did very much like what the original BRSKI text had, eg: showing also the addresses
>    in an example (independent of the fact that as you explain below the examples are not
>    correct).
> 
>    - Because the addresses are not in the objective field but in the locator-option,
>      your proposed text in ani-objectives does not show it. In result i could only
>      understand ani-objectives going back and forth with the grasp draft. I think that
>      makes it quite unreadable. Thats why the text i put into acp-07 does show the
>      whole M_FLOOD format including the location-option and objective.

I understand that; showing example packets is an excellent idea. (But the reader
must understand GRASP anyway.) The reason I'm trying to figure out exactly what
happens in IPIP is exactly so that I can generate example packets from code; if they
don't agree with what you expect, we would then have a real problem to solve.
> 
>    - I think your concern was a bit about consistency and duplication. I am not worried
>      about consistency given how GRASP is out the door (i hope ;-), and i am happy
>      to invest the time for the few additional lines in BRSKI and ACP to make the GRASP explanations
>      in BRSKI and ACP be readable (and verifyable for functionality) standalone.
>      Especially because of this IMHO confusing bit of scatter-gather encoding that we ended
>      up with in GRASP: The name of the service is a parameter to the
>      objective, but the address information of the service is in the locator-option field
>      outside of the objective...
> 
> -> in ani-objectives, the service is called "method", but in grasp-14 it's called
>    now objective-value.

Right. It's the value of the objective, which is a generic concept in GRASP. But what
the value actually is depends on the syntax and semantic of the individual objective.
That's actually your fault ;-) because it's the flexibility of CBOR that allows it.

So what's confusing is that every objective has a value, and (the way I wrote it)
the value of the "AN__join_proxy" is simply named "method". Perhaps I should not
use a short cut in the CDDL; would this be clearer:

  proxy-objective = ["AN_join_proxy", objective-flags, loop-count,
                     objective-value]
  
  objective-flags = ; as in the GRASP specification
  loop-count = 1    ; limit to link-local operation
  objective-value = method
  method = "BRSKI-TCP" / "BRSKI-UDP"

I'll come back separately with my musings about how I understand IPIP to work.

Regards
    Brian

> 
> Cheers
>     Toerless
> 
> On Tue, Jul 04, 2017 at 05:32:06PM +1200, Brian E Carpenter wrote:
>> Hi,
>>
>> I am still trying to figure out what you really want to say in sections 3.1.1. Proxy Discovery Protocol Details and 3.1.2. Registrar Discovery Protocol Details.
>>
>> 1. Why doesn't section 3.1.1 mention IP-in-IP (protocol 41)? Surely the pledge needs to know about it?
>>
>> 2. The description is wrong anyway; see https://tools.ietf.org/html/draft-carpenter-anima-ani-objectives-02#section-2.3 for something that can work.
>>
>> 3. In section 3.1.2, as I already pointed out, the proposal is really a misuse of the GRASP discovery response message. Not a problem, we simply replace it with a synchronization response; see https://tools.ietf.org/html/draft-carpenter-anima-ani-objectives-02#section-2.2. 
>> But regardless of that, I am confused by the example locators:
>>     locator1  = [O_IPv6_LOCATOR, fd45:1345::6789, 6,  443]
>>     locator2  = [O_IPv6_LOCATOR, fd45:1345::6789, 17, 5683]
>>     locator3  = [O_IPv6_LOCATOR, fe80::1234, 41, nil]
>>
>> The first two are OK. The ports announced by the proxy to the pledges may be different. If the registrar sends  [O_IPv6_LOCATOR, fd45:1345::6789, 6,  443], the proxy might announce [O_IPv6_LOCATOR, fe80::4321, 6, 9999] - the proxy's link-local address and a different port chosen by the proxy.
>>
>> But the third locator sent by the Registrar indicates a meaningless link-local address, because it could come from many hops away. At first I thought this was a confusion with the previous (proxy-to-pledge) case, where all addresses must be link-local. But no: this text is just confused, I think:
>>
>>    A protocol of 41 indicates that packets may be IPIP proxy'ed.  In the
>>    case of that IPIP proxying is used, then the provided link-local
>>    address MUST be advertised on the local link using proxy neighbour
>>    discovery.  The Join Proxy MAY limit forwarded traffic to the
>>    protocol (6 and 17) and port numbers indicated by locator1 and
>>    locator2.  The address to which the IPIP traffic should be sent is
>>    the initiator address (an ACP address of the Registrar), not the
>>    address given in the locator.
>>
>> A link local address provided by the Registrar is completely invalid except on the relevant link connected directly to the Registrar. So it definitely must not be given to anybody off that link. At the moment I have no idea how the IP-in-IP is supposed to work. Appendix C doesn't help much. Apart from anything else, it mentions a non-existent GRASP message type. I can sort of see what you want to do, but it isn't a codable spec at the moment.
>>
>> Maybe you can provide a complete example of the packet flow, where the pledge has link-local address Lp, the proxy has link-local address Lx and ACP address Ax, and the registrar has ACP address Ar. And to make my concern clear, the registrar has the link-local address Lp, by chance the same as the pledge, although on a different LAN.
>>
>> Regards
>>    Brian
>>
>> _______________________________________________
>> Anima mailing list
>> Anima@ietf.org
>> https://www.ietf.org/mailman/listinfo/anima
>