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

Loiseau lucien <loiseau.lucien@gmail.com> Tue, 01 September 2020 09:09 UTC

Return-Path: <loiseau.lucien@gmail.com>
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 6DB133A0E1C for <dtn@ietfa.amsl.com>; Tue, 1 Sep 2020 02:09:28 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 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, HTML_MESSAGE=0.001, 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=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 kIeosz86gdhP for <dtn@ietfa.amsl.com>; Tue, 1 Sep 2020 02:09:26 -0700 (PDT)
Received: from mail-qk1-x72d.google.com (mail-qk1-x72d.google.com [IPv6:2607:f8b0:4864:20::72d]) (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 660603A0E1B for <dtn@ietf.org>; Tue, 1 Sep 2020 02:09:26 -0700 (PDT)
Received: by mail-qk1-x72d.google.com with SMTP id p4so283824qkf.0 for <dtn@ietf.org>; Tue, 01 Sep 2020 02:09:26 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=gT7552UzI+t2nnd77pXEBXIg7PcXV01yFmpZrpWX578=; b=HZ0g3/LrfXWxpOqjA0jXHcoHVdpH8VncmbelWU3quQYz17Z8l4eUHObGGWqg8wPrWM D372FxZhTJqn1xQ6HGnRlcYSynwKdx2YHwRTZftC2VU67xhiyQI4iLo62zzlBDwe4FxA guXqoEbzvRBpI8usLxWTOMi85uHY+A9EO25YWOREfXYPDZEh6gO/pCuoV2zTaBqMKHVg bznUWhfdcSxUN2KpyOJ9EhSRqueuesQgdcmsm9Rumaq+iUWGZhfq772ONm/nq+pZyodU ceboDUa0rprXFAMT25a2eadhfswbCRiuxCBqdOQ5TM+gDrodrirKfag0O8/3e7rkGEdN BrXg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=gT7552UzI+t2nnd77pXEBXIg7PcXV01yFmpZrpWX578=; b=H9kKB2f1/ak/BWlHLt05aeM224c8T8Xd2dtPlplTM78u0R6hqGBK4LbmMJVi91cqnm h/XkFIaKsDtcLQ1s50KJc1/FnP4DShWKxOR238+H+X16BJ4wPb2iK++3dHs9FIw0KxXS IpRHUWkaxRXaOQrEJlOc3kVfLLJIiYSllLSZT7UnUWa3tboMm8pizCpffETJAB1mXV2c OrwzE6FjxzL5vVbljTF9MPcARWyJZzl/rxEWd8MF7CiOJRvLZFmcPTcRsqvKkz5teONX hvfOgPTAu+urbnmSX9Em+AttQPD0fBRAKsr8slBmSE5gZRBIkj7VtCu1L/4L/Bh5o5pE ALrA==
X-Gm-Message-State: AOAM531gpqcE4G6ElcD30QusR+0fx3KbYYJWkrZJ3BEUx7NoQkzniE1B fT8iwPIoeQD+JxfHl2uoL75xVYRHDuhEIAW74Id9RajGl+LBpA==
X-Google-Smtp-Source: ABdhPJxDm7tbGFJ50ERp/tYRoFuldF5mE+jSKwDXM/dGAdiCqrAEAcL3bl2U5Oxg3pPzVg5YzXE7MkiAqbeUQaL3Nlw=
X-Received: by 2002:a37:a443:: with SMTP id n64mr858370qke.288.1598951365449; Tue, 01 Sep 2020 02:09:25 -0700 (PDT)
MIME-Version: 1.0
References: <20200529145826.74fa3a09.post@0x21.biz>
In-Reply-To: <20200529145826.74fa3a09.post@0x21.biz>
From: Loiseau lucien <loiseau.lucien@gmail.com>
Date: Tue, 01 Sep 2020 17:09:14 +0800
Message-ID: <CANoKrvZjiAFidrVYoEMkE40H4FNguHoegt0dHbMoiF8oiboKaA@mail.gmail.com>
To: Alvar Penning <post@0x21.biz>
Cc: dtn@ietf.org
Content-Type: multipart/alternative; boundary="000000000000269c0205ae3ce07a"
Archived-At: <https://mailarchive.ietf.org/arch/msg/dtn/wHDJBsJV7ShNDaDhqSq9ILrI7bQ>
Subject: Re: [dtn] 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 09:09:28 -0000

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/
[2] https://www.ietf.org/rfc/rfc3986.txt

On Fri, May 29, 2020 at 8:58 PM Alvar Penning <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
> [1]:https://tools.ietf.org/html/rfc5234#section-3.1
> [2]:https://tools.ietf.org/html/rfc5234#section-3.9
>
> _______________________________________________
> dtn mailing list
> dtn@ietf.org
> https://www.ietf.org/mailman/listinfo/dtn
>


-- 
--
Lucien Loiseau