Re: [dtn] [EXTERNAL] Re: draft-ietf-dtn-bpbis-25: ABNF "dtn" URI scheme

"Burleigh, Scott C (US 312B)" <scott.c.burleigh@jpl.nasa.gov> Tue, 01 September 2020 14:22 UTC

Return-Path: <scott.c.burleigh@jpl.nasa.gov>
X-Original-To: dtn@ietfa.amsl.com
Delivered-To: dtn@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 5382D3A0935 for <dtn@ietfa.amsl.com>; Tue, 1 Sep 2020 07:22:56 -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, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FROM_GOV_DKIM_AU=-0.001, HTML_MESSAGE=0.001, HTTPS_HTTP_MISMATCH=0.1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=jpl.nasa.gov
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 jZLLML4tR_eH for <dtn@ietfa.amsl.com>; Tue, 1 Sep 2020 07:22:54 -0700 (PDT)
Received: from ppa02.jpl.nasa.gov (ppa02.jpl.nasa.gov [128.149.137.113]) (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 2F00B3A090E for <dtn@ietf.org>; Tue, 1 Sep 2020 07:22:54 -0700 (PDT)
Received: from pps.filterd (ppa02.jpl.nasa.gov [127.0.0.1]) by ppa02.jpl.nasa.gov (8.16.0.27/8.16.0.27) with SMTP id 081EK5MP026257; Tue, 1 Sep 2020 07:22:48 -0700
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=jpl.nasa.gov; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : mime-version; s=InSight1906; bh=HFlhUD+82v8qiND6xO5P4UuAiaHpMDb52nmTYJHX62w=; b=qT5gp/XsyZy4EZYGd1+ZaM/2kmMdTsPdE6IWkZ2khQIBHRNKnLofLLB8FIbqYLCMU7ck RnCzw2XR5kgfx3ks2hPg9WOfH1Oxz6tI5jme3JCqHrRIgyyjN40fbkIeWf0wQmZBmDxK TTon3Ooz2TWawr0YzBcFTtjj2JGboN4ENI9dD3vFf5VncpvzNLJ72xZGQCrUkhpM0QIg 5MMDJAY3BFHLGIjGA2fD5nems8xCNOilVjSpZgoVSjKc19S5f69JKbGdlAeUPsLA5pLB Ex9ImE388cgxRA/K+j7hgTFz/DTIm5GODILs2cHVrnEDSdOsB/Dk4tJ3+TOwipqNflpH 0Q==
Received: from mail.jpl.nasa.gov (altphysenclup02.jpl.nasa.gov [128.149.137.53]) by ppa02.jpl.nasa.gov with ESMTP id 337p6ta3yf-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Tue, 01 Sep 2020 07:22:48 -0700
Received: from ap-embx16-sp60.RES.AD.JPL (ap-embx16-sp60.jpl.nasa.gov [128.149.137.141]) by smtp.jpl.nasa.gov (Sentrion-MTA-4.3.1/Sentrion-MTA-4.3.1) with ESMTP id 081EMlqE012548 (using TLSv1.2 with cipher ECDHE-RSA-AES128-SHA256 (128 bits) verified FAIL); Tue, 1 Sep 2020 07:22:48 -0700
Received: from ap-embx16-sp10.RES.AD.JPL (2002:8095:8953::8095:8953) by ap-embx16-sp60.RES.AD.JPL (2002:8095:898d::8095:898d) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1979.3; Tue, 1 Sep 2020 07:22:47 -0700
Received: from ap-embx16-sp10.RES.AD.JPL ([fe80::4:f430:47b5:767b]) by ap-embx16-sp10.RES.AD.JPL ([fe80::4:f430:47b5:767b%17]) with mapi id 15.01.1979.003; Tue, 1 Sep 2020 07:22:47 -0700
From: "Burleigh, Scott C (US 312B)" <scott.c.burleigh@jpl.nasa.gov>
To: Loiseau lucien <loiseau.lucien@gmail.com>, Alvar Penning <post@0x21.biz>
CC: "dtn@ietf.org" <dtn@ietf.org>
Thread-Topic: [EXTERNAL] Re: [dtn] draft-ietf-dtn-bpbis-25: ABNF "dtn" URI scheme
Thread-Index: AQHWgD+oRX3xUD5wf0G+Auj+YD+oc6lT0GFw
Date: Tue, 01 Sep 2020 14:22:47 +0000
Message-ID: <7fc290abcb5e42709cd8b311d8884352@jpl.nasa.gov>
References: <20200529145826.74fa3a09.post@0x21.biz> <CANoKrvZjiAFidrVYoEMkE40H4FNguHoegt0dHbMoiF8oiboKaA@mail.gmail.com>
In-Reply-To: <CANoKrvZjiAFidrVYoEMkE40H4FNguHoegt0dHbMoiF8oiboKaA@mail.gmail.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [207.151.104.72]
Content-Type: multipart/alternative; boundary="_000_7fc290abcb5e42709cd8b311d8884352jplnasagov_"
MIME-Version: 1.0
X-Source-IP: ap-embx16-sp60.jpl.nasa.gov [128.149.137.141]
X-Source-Sender: scott.c.burleigh@jpl.nasa.gov
X-AUTH: Authorized
X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.235, 18.0.687 definitions=2020-09-01_08:2020-09-01, 2020-09-01 signatures=0
X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1011 lowpriorityscore=0 mlxscore=0 impostorscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2006250000 definitions=main-2009010121
Archived-At: <https://mailarchive.ietf.org/arch/msg/dtn/M3WnrRbei2PEbzII1enSRFCPabA>
Subject: Re: [dtn] [EXTERNAL] Re: draft-ietf-dtn-bpbis-25: ABNF "dtn" URI scheme
X-BeenThere: dtn@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Delay Tolerant Networking \(DTN\) discussion list at the IETF." <dtn.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/dtn>, <mailto:dtn-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/dtn/>
List-Post: <mailto:dtn@ietf.org>
List-Help: <mailto:dtn-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/dtn>, <mailto:dtn-request@ietf.org?subject=subscribe>
X-List-Received-Date: Tue, 01 Sep 2020 14:22:56 -0000

Weirdly, I don’t remember reading Alvar’s email of May 29 and I don’t have it in my records.  I certainly agree with his suggestion regarding the definition of dtn-hier-part.

The intent of the dtn scheme ABNF in the bpbis specification was simply to document the syntax that has long been common practice, and I have no doubt that this documentation can be improved.  The introduction of a new authority concept was not intended, nor the establishment of a structured hierarchy among DTN operators.  In practice, though, I think the node names used in dtn-scheme EIDs are usually DNS names that conform to these semantics, so perhaps we are already implicitly aligned.  Addressing these semantic points explicitly could be time-consuming and even contentious, so I would prefer that the bpbis specification remain generally silent on them.

But I agree with the suggestion to revise the definition of node-name.

Scott

From: dtn <dtn-bounces@ietf.org> On Behalf Of Loiseau lucien
Sent: Tuesday, September 1, 2020 2:09 AM
To: Alvar Penning <post@0x21.biz>
Cc: dtn@ietf.org
Subject: [EXTERNAL] Re: [dtn] draft-ietf-dtn-bpbis-25: ABNF "dtn" URI scheme

Hi all,

I am bumping libdtn [1] to upgrade it with latest development (currently version 26)
 and I have the same question as Alvar. Can we have clarification for the dtn uri specification?

Also, thinking about the implications of this update for the dtn scheme, the RFC 3986
states that the double slash should only be used if authority is present.


> URI         = scheme ":" hier-part [ "?" query ] [ "#" fragment ]

>

>       hier-part   = "//" authority path-abempty

>                   / path-absolute

>                   / path-rootless

>                   / path-empty

>

>    [..] When authority is not present, the path cannot begin with two slash

>    characters ("//").

An authority carries a sense of hierarchy as it creates a namespace:

> 3.2.  Authority

>

>    Many URI schemes include a hierarchical element for a naming

>    authority so that governance of the name space defined by the

>    remainder of the URI is delegated to that authority (which may, in

>    turn, delegate it further).
So I wonder about the motivation for this update, because until recently the dtn eid did not carry any semantic,
but now it does carry a sense of authority,  is the goal to create a structured hierarchy among dtn operators ?

Also another question maybe for Ed, with the introduction of DTN authorities, should BPSEC be updated to be
able to carry a certificate that would authenticates a source EID? This could be done with the common-name
field in the X.509 format that encompasses all dtn eid that belongs to a certain namespace. For instance,
a Common Name: myauthority that apply to all the bundle whose source EID starts with dtn://myauthority/

pushing it further, we could have a hierarchy *.myauthority covering all the possible sub-namespace:

dtn://sub1.myauthority/
dtn://sub2.myauthority/

also node-name is specified as at list of at least 1 VCHAR which is the set of all visible character,
The VCHAR set does include the '/' which is used for the name-delim so that we won't be able to
separate the node-name from the demux without making assumptions.
Given this, I suggest to change the specification of node-name to prevent ambiguity with the slash:

node-name = 1* ( ALPHA / DIGIT / "-" / "." / "_"  )

Regards,
Lucien

[1] https://github.com/DisruptedSystems/Terra/<https://urldefense.us/v3/__https:/github.com/DisruptedSystems/Terra/__;!!PvBDto6Hs4WbVuu7!esNuxLhIPWgsslEXSHFsrjNvlfDe9F3oxwrgXcLK6dloeJlVpAvfiuNXDpGQWo46uAMAOpRd0RI$>
[2] https://www.ietf.org/rfc/rfc3986.txt<https://urldefense.us/v3/__https:/www.ietf.org/rfc/rfc3986.txt__;!!PvBDto6Hs4WbVuu7!esNuxLhIPWgsslEXSHFsrjNvlfDe9F3oxwrgXcLK6dloeJlVpAvfiuNXDpGQWo46uAMAmDogEN0$>

On Fri, May 29, 2020 at 8:58 PM Alvar Penning <post@0x21.biz<mailto:post@0x21.biz>> wrote:
Dear all,

thanks for releasing the 25th draft of the Bundle Protocol. As I read
the changes, I found the Augmented Backus-Naur Form of the URI schemas
quite useful. However, I have a question about this.

In section 4.1.5.1.1[0] a straight forward ABNF is defined for the
"dtn" URI scheme:

> dtn-uri = "dtn:" dtn-hier-part
> dtn-hier-part = "//" node-name name-delim demux ; a path-rootless
> node-name = 1*VCHAR
> name-delim = "/"
> demux = *VCHAR

Some `dtn-uri` is defined as the concatenation[1] of "dtn:" and a
`dtn-hier-part`. A `dtn-hier-part` starts with two leading slashes
("//") and one slash ("/", `name-delim`) follows a nonempty
`node-name`. Various characters might follow. The line ends with a
comment[2].

Thus, some "dtn" URI has at least the following form: "dtn://NODE-NAME/"

The following paragraph within this section defines the null endpoint as
"dtn:none". However, as far as I understand this does not fit the ABNF
defined above.

If I am not wrong on this, I would like to suggest a new rule for the
"none" `dtn-hier-part`. This could look like the following:

> dtn-hier-part =  "none"
> dtn-hier-part =/ "//" node-name name-delim demux

Otherwise, the null endpoint could be renamed to "dtn://none/" to match
the current ABNF. Note, a node named "none" and the null endpoint may
get mixed up.

I would be pleased about comments in this regard.

Best regards,
Alvar


[0]:https://tools.ietf.org/html/draft-ietf-dtn-bpbis-25#section-4.1.5.1.1<https://urldefense.us/v3/__https:/tools.ietf.org/html/draft-ietf-dtn-bpbis-25*section-4.1.5.1.1__;Iw!!PvBDto6Hs4WbVuu7!esNuxLhIPWgsslEXSHFsrjNvlfDe9F3oxwrgXcLK6dloeJlVpAvfiuNXDpGQWo46uAMAcIILQZc$>
[1]:https://tools.ietf.org/html/rfc5234#section-3.1<https://urldefense.us/v3/__https:/tools.ietf.org/html/rfc5234*section-3.1__;Iw!!PvBDto6Hs4WbVuu7!esNuxLhIPWgsslEXSHFsrjNvlfDe9F3oxwrgXcLK6dloeJlVpAvfiuNXDpGQWo46uAMAZdR4jr4$>
[2]:https://tools.ietf.org/html/rfc5234#section-3.9<https://urldefense.us/v3/__https:/tools.ietf.org/html/rfc5234*section-3.9__;Iw!!PvBDto6Hs4WbVuu7!esNuxLhIPWgsslEXSHFsrjNvlfDe9F3oxwrgXcLK6dloeJlVpAvfiuNXDpGQWo46uAMAgtylS2U$>

_______________________________________________
dtn mailing list
dtn@ietf.org<mailto:dtn@ietf.org>
https://www.ietf.org/mailman/listinfo/dtn<https://urldefense.us/v3/__https:/www.ietf.org/mailman/listinfo/dtn__;!!PvBDto6Hs4WbVuu7!esNuxLhIPWgsslEXSHFsrjNvlfDe9F3oxwrgXcLK6dloeJlVpAvfiuNXDpGQWo46uAMAMgrCwKY$>


--
--
Lucien Loiseau