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

Brian E Carpenter <brian.e.carpenter@gmail.com> Wed, 02 November 2022 00:49 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 75FD7C1524C8; Tue, 1 Nov 2022 17:49:37 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.105
X-Spam-Level:
X-Spam-Status: No, score=-2.105 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_BLOCKED=0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, 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 d8tMWzGSMjuw; Tue, 1 Nov 2022 17:49:33 -0700 (PDT)
Received: from mail-pl1-x632.google.com (mail-pl1-x632.google.com [IPv6:2607:f8b0:4864:20::632]) (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 D13CCC14CE22; Tue, 1 Nov 2022 17:49:33 -0700 (PDT)
Received: by mail-pl1-x632.google.com with SMTP id d24so15125392pls.4; Tue, 01 Nov 2022 17:49:33 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=AWQkuEvaJsCMFxw3N45YwfZtqfi+V+GhL7d3HIBiIIA=; b=Okl4MWBYLU+xROMiGSpC/SwfnJDKDeo1tMHVWGFspar7isb0NE2P+gOxa0/P7iwNhe j2F6BgLkLUQVjA4zsCJ4yDja3kHWLN3hB7ZUPTu/c0HP5lk+VptNjbE2PFT21LJE9X6C YaDXOm/aDAP1bopM6zlZy7W/KleIbjKZRmm033u3VRH3VOh6EFMaNNDViMmOWXyL3pJ/ dQpiWkoCHKlghIr9xjaSHwU3+8VzXCFygBRRIJ4A12OYOlWsCvabu6daQRdS0sSfimHq ZZSYyTCD4m/VxdqOBi10nZEA93ZJBkFChYiydrd9gReq1xVq37kVTt5Tejcpnhl4xCvH k+tg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:in-reply-to:references:cc:to:from :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=AWQkuEvaJsCMFxw3N45YwfZtqfi+V+GhL7d3HIBiIIA=; b=siIb9GwASRVq9RDdduZgLu3falhF3mcghLH9C1yVQvKoPfYGpqTeeVAMIwKRFzyPz9 zQ5vCcieKBSi/ySaKtMuNsm01LvUfGbhEuQ72VWNOBTZTgNxdYnYeXL4apCSk/8lk4lT tAXEkM7XJIthNyDBeYre/tT+ve8DuCxza2/CR0HfiHyKA+7GmhbgcWv8dlt2uYfjJiUu 4iRnmRZ20vkI9m4X/ED/YfFQj7JSp3CBAz4PWUVOvAhn5+jExynlLKx7uSnGz7VVNXH+ 5RLIXBeoQLZ+lLK59qstT8FjJFELL+b7VaIbWXOp4lML9I3FgH5CYIsDiIzcKsV7KRrW jjTQ==
X-Gm-Message-State: ACrzQf05/WmL14RJRS4FX5rOov1Ew45pp1DVkaU1i3B/+1PWP8jGleT0 DrQcb6l/qaGBTYtZSHzVDNM=
X-Google-Smtp-Source: AMsMyM7zNpNJou1N9FZbFbW7C7OsC4Ransho3RHXXeEHWdwnHeXD7GfInGz84rUvd25/VQZ9FmAKsg==
X-Received: by 2002:a17:903:246:b0:179:96b5:1ad2 with SMTP id j6-20020a170903024600b0017996b51ad2mr21725269plh.37.1667350173254; Tue, 01 Nov 2022 17:49:33 -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 e14-20020a630f0e000000b004597e92f99dsm6330274pgl.66.2022.11.01.17.49.30 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 01 Nov 2022 17:49:32 -0700 (PDT)
Message-ID: <f9ab6d80-b461-2e05-f028-bf8adb93c0a0@gmail.com>
Date: Wed, 02 Nov 2022 13:49:27 +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
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
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> <ce1f273d-dfb5-ee9b-2ded-02c77360ab4b@gmail.com>
In-Reply-To: <ce1f273d-dfb5-ee9b-2ded-02c77360ab4b@gmail.com>
Content-Type: text/plain; charset="UTF-8"; format="flowed"
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/anima/yickIYAkVpicqAHPmDSD7-rU3fM>
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: Wed, 02 Nov 2022 00:49:37 -0000

P.S. to that, following an off-list comment:

By "URI resource name", do you mean "URI path component"? "Path" seems to be the official name for what follows the host in a URI, according to RFC3986.

"Resource name" is confusing because a URN is different: RFC8141.

Regards
    Brian Carpenter

On 02-Nov-22 08:58, Brian E Carpenter wrote:
> 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