Re: [Anima] [core] ANIMA constrained-join proxy revision to use CoAP

Brian E Carpenter <brian.e.carpenter@gmail.com> Tue, 01 November 2022 19:58 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 2BF59C14CF0D; Tue, 1 Nov 2022 12:58:29 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.107
X-Spam-Level:
X-Spam-Status: No, score=-7.107 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=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 ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id DS02i4Noa62a; Tue, 1 Nov 2022 12:58:25 -0700 (PDT)
Received: from mail-pf1-x42e.google.com (mail-pf1-x42e.google.com [IPv6:2607:f8b0:4864:20::42e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 00A29C14F723; Tue, 1 Nov 2022 12:58:24 -0700 (PDT)
Received: by mail-pf1-x42e.google.com with SMTP id b29so14408157pfp.13; Tue, 01 Nov 2022 12:58:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=twTuJc+pSS8G6Kyldz8ke5lMXiyqecLYeugH2To114k=; b=Zq4fuTBCrmVI2o7GGXt2lQpxYypL3ZuJCzcO+E2jO/A7mYJmTWWWsWZR2gHqgHkXGe 8JjHpp6sq98D1JVvH4zbbBzJQVZDUzm/yld7zLAA0Jl4ZL5Twx+L5ma7uufx7KcWimqM uVRl9eype7OKjaVMzi67Up7gSrC+D56UikHXQvIktnS+lEx0Umyk7Pkb8yItDKWcl1JF 39dEUUElLPEPUzNU2rmq27Fb6Y7jjHzKWZKgY7lJ4htIeqFjOw3+d3++S4VvZblHi6WQ AObp2eitHRGAywCjSdaM020+Gci+1p+4biEIHLoTuFNqeQ0VKPUOt7ihOYmLFeXSLScB y52A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=twTuJc+pSS8G6Kyldz8ke5lMXiyqecLYeugH2To114k=; b=xId5CqhbvBo6Jt7I4lfkBhyBrRAwjqzl/5+mTfUweUMSS8jFWfFx+i0omx8lcstxGe llekJN11xJLGTVNE9Pm617ZD9kB8k9WvBn9/bpbi5PXpr2PlZVqsJIGCZKosaLkBg9rQ 9ud1XDNzKya6tbxc7Fr+y+DPcTdwHFpYWWYZVejmu4vsBr6CB8lKFvhL32VmQJ3t+lu3 KCpDol7ThBceCRhfDvEh+g1S66ayfxejlJqLFZ310mbLtDqzRa8y9PO4JhE/RpttpP0t 0Dr0870nUZI7rxUOMG33ZS1jU7M4iEmNO2ArMoMs8QGwh4vOHiY5d70vyfqxHBoeF6Kl kXWQ==
X-Gm-Message-State: ACrzQf2Nn8gytKuhROwqY84YDppMeVF86NLg1xTqO80RqWJlzerUvM5t 7F0bF0aFdCMRh+oF+Xz/vSGLqSfrGfrrLg==
X-Google-Smtp-Source: AMsMyM5D8By+w1bR7IFxmsdtE7gFJWjve3c1xZInQ14MOR1Wbjy6GFOgRhv1H54Whsqqxr68x1mpgw==
X-Received: by 2002:a65:5787:0:b0:46f:7b0f:5047 with SMTP id b7-20020a655787000000b0046f7b0f5047mr19115312pgr.336.1667332704097; Tue, 01 Nov 2022 12:58:24 -0700 (PDT)
Received: from ?IPV6:2406:e003:1124:9301:80b2:5c79:2266:e431? ([2406:e003:1124:9301:80b2:5c79:2266:e431]) by smtp.gmail.com with ESMTPSA id e15-20020a056a0000cf00b00550724f8ea0sm6891751pfj.128.2022.11.01.12.58.20 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Nov 2022 12:58:22 -0700 (PDT)
Message-ID: <ce1f273d-dfb5-ee9b-2ded-02c77360ab4b@gmail.com>
Date: Wed, 02 Nov 2022 08:58:16 +1300
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.10.0
Content-Language: en-US
To: Esko Dijk <esko.dijk@iotconsultancy.nl>, Michael Richardson <mcr+ietf@sandelman.ca>, Carsten Bormann <cabo@tzi.org>
Cc: "anima@ietf.org" <anima@ietf.org>, "core@ietf.org" <core@ietf.org>
References: <Yxd/oBl0dmbmUI8L@faui48e.informatik.uni-erlangen.de> <DU0P190MB1978F420D478B93CE29F36D3FD4C9@DU0P190MB1978.EURP190.PROD.OUTLOOK.COM> <1069641.1666559668@dyas> <1135706.1666576680@dyas> <DU0P190MB1978CB28B49E74237A238646FD309@DU0P190MB1978.EURP190.PROD.OUTLOOK.COM> <12548.1666795972@dyas> <DU0P190MB197834901144617C0B1D3DC1FD309@DU0P190MB1978.EURP190.PROD.OUTLOOK.COM> <5E758F92-9C1B-43BC-9FC0-063059A0A65E@tzi.org> <26048.1666805942@dyas> <DU0P190MB1978FDEB1B5FC820C5F73A71FD379@DU0P190MB1978.EURP190.PROD.OUTLOOK.COM>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
In-Reply-To: <DU0P190MB1978FDEB1B5FC820C5F73A71FD379@DU0P190MB1978.EURP190.PROD.OUTLOOK.COM>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/anima/y6Qn_617aptvIaGVizh312tvQxg>
Subject: Re: [Anima] [core] ANIMA constrained-join proxy revision to use CoAP
X-BeenThere: anima@ietf.org
X-Mailman-Version: 2.1.39
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: Tue, 01 Nov 2022 19:58:29 -0000

On 31-Oct-22 22:24, Esko Dijk wrote:
>>> cases where the Registrar would configure another resource (e.g. /j or
>>    > /join or whatever) and in such case a Uri-Path option would be needed.
>>
>> Okay, but I'd like to not do that :-)
> 
> Okay, I see your point - let's go for the '/' resource option and see if reviewers further down the line are okay with that. I just noticed that when GRASP discovery is used (service "BRSKI_RJP") the Join Proxy only discovers IP address and port so has to make an assumption on the URI resource name being '/'.

Two comments there:

1) It would be trivial to extend the definition of the BRSKI_RJP objective by giving
it a meaningful value field, such as a string defining the URI resource name. Like:

    objective-value   =  text      ; URI resource name

2) At the moment draft-ietf-anima-constrained-join-proxy cuts a corner in its definition of BRSKI_JP. Even if you want to save typing by citing Fig. 10 of RFC8995, you need to
add an IANA Consideration formally registering the objective (like section 8.7 of
RFC8995).

Regards
     Brian


> If any other CoAP resource would be possible as well, then that resource name would have to be advertised in GRASP too. We could say that because our service is being discovered on a particular port (typically differing from the default CoAP port as shown in Section 5.1.1 example) we don't have the issue that we would interfere with other resources using name "/".
> 
>> So, no Uri-Path option is equivalent to /?
> Yes! It's also equivalent to the same URI without the trailing slash, which is the format we show in Section 5.1.1.
> 
> Regards
> Esko
> 
> 
> -----Original Message-----
> From: Michael Richardson <mcr+ietf@sandelman.ca>
> Sent: Wednesday, October 26, 2022 19:39
> To: Carsten Bormann <cabo@tzi.org>
> Cc: Esko Dijk <esko.dijk@iotconsultancy.nl>; anima@ietf.org; core@ietf.org
> Subject: Re: [Anima] [core] ANIMA constrained-join proxy revision to use CoAP
> 
> 
> Carsten Bormann <cabo@tzi.org> wrote:
>      >> I'm not 100% sure if for a resource at the root (/), one Uri-Path
>      >> Option with 0 length is needed or if 0 Uri-Path Options can be used.
>      >> Or if both methods would be valid.
> 
>      > That is a well-known idiosyncracy in the URI format.
> 
>      > Have a look at: https://www.rfc-editor.org/rfc/rfc7252#section-6.4
> 
>      > Step 8 treats coap://foo and coap://foo/ in the same way:
> 
>      >        If the value of the <path> component of |url| is empty or
>      > consists of a single slash character (U+002F SOLIDUS "/"), then move to
>      > the next step.
> 
> So, no Uri-Path option is equivalent to /?
> 
> 
> --
> Michael Richardson <mcr+IETF@sandelman.ca>, Sandelman Software Works
>   -= IPv6 IoT consulting =-
> 
> 
> 
> _______________________________________________
> Anima mailing list
> Anima@ietf.org
> https://www.ietf.org/mailman/listinfo/anima