Re: [core] Interface names (Re: [Cbor] changes in draft-ietf-cbor-network-addresses-05.txt)

Erik Kline <ek.ietf@gmail.com> Sat, 24 July 2021 23:36 UTC

Return-Path: <ek.ietf@gmail.com>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 693AB3A0B21; Sat, 24 Jul 2021 16:36:42 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -0.854
X-Spam-Level:
X-Spam-Status: No, score=-0.854 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, NORMAL_HTTP_TO_IP=0.001, NUMERIC_HTTP_ADDR=1.242, 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 pPs7qjqEYuzi; Sat, 24 Jul 2021 16:36:36 -0700 (PDT)
Received: from mail-oi1-x22b.google.com (mail-oi1-x22b.google.com [IPv6:2607:f8b0:4864:20::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 9E8053A0B1F; Sat, 24 Jul 2021 16:36:36 -0700 (PDT)
Received: by mail-oi1-x22b.google.com with SMTP id z26so6423375oih.10; Sat, 24 Jul 2021 16:36:36 -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=EZgTWwv1bnlNwmAMcLVGlZiCBkCRb5jFSMWTlzPml30=; b=fRgQVY6m0dF6Xl5uTul3dFf+HPDK87FgFZmA9yTGPCKao6e1V6MHvfKmey/wyOYI1X p+zxS86VtDbUbirjESV5qIgvPO1aA96+kwXG1pCyw0d9/ydywFKTgBcUFrw2RFffUeUG t0oAM7WSPw6aRZBTkTujcIgyDnCrvkmrr6RduSpElaAqrNAdwvoXh50aZo3EGGUJdlls Mg0PAvBcnqvBPWPT9i8RmidbKuEQRkPu5s9wCaXGAy4L4eUOk4sVM5qPkUjR5CbZ1fiw oNC9IVGvTaOYPJpW3mjLjCNTWkIRcB/Z/y8N+faH8UYO4Ujc3ZiGoodaWVl199rM70PK vDMQ==
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=EZgTWwv1bnlNwmAMcLVGlZiCBkCRb5jFSMWTlzPml30=; b=NYzS5DvkBQMXpw7v8INL/Ul+LxbWo25jCqdrVg5LID+QiTheZG0qDdHssCMqcyz30E jzG0J6bTlEA0HopY7M2cPsjdNYG8y/y4pR9jCy/jnRN6fZVABh6Mj6JbSarZFPFldWxm KAGNHXYGQ85PB6rs1xTiIQMDaku60O+D/pwm/Ol8/rK4X/XlLbibpBYK7cHmhqIYTzKo M5Jymo1bSkoR+YL+Gqc6AZtv/RHQopk9LzipabXtFE+h3/9dqVMKGexIbyacXGkUJOxp aZZwYwyJViabWseWAFi5sLbHFF4sDsWZWqH4p0e82ZykLfpYaQ/B65+y4ULpaFKPN5Cw 23dA==
X-Gm-Message-State: AOAM531Q1FQNSBB7niSEs5EdA3TR7jCGMR29RPwDAQsiDceupCnvAv7Q kL5s91QyGvUYPnNR528SPvdz5tqgssXaWvh4V/o=
X-Google-Smtp-Source: ABdhPJy0RqWV8kptk+eGwVMpmnT1p/S+GOVaeutkZw2Ghb8+lZ4ysiOkr6UlMInMZhro8C5cSL0TixtICV+ZLEGWNlY=
X-Received: by 2002:aca:2b07:: with SMTP id i7mr13207449oik.97.1627169795194; Sat, 24 Jul 2021 16:36:35 -0700 (PDT)
MIME-Version: 1.0
References: <162608928922.11086.12172415971165753394@ietfa.amsl.com> <29067.1626090045@localhost> <CAMGpriUnfMjhk7teAN-A0j5SCK=BpyJEDC+NOCJtHzmF1BFeow@mail.gmail.com> <BF4E8691-CC71-43D2-8F56-C9567B7BFDD6@tzi.org>
In-Reply-To: <BF4E8691-CC71-43D2-8F56-C9567B7BFDD6@tzi.org>
From: Erik Kline <ek.ietf@gmail.com>
Date: Sat, 24 Jul 2021 16:36:24 -0700
Message-ID: <CAMGpriXx61GAmVEY1a2yi9JDSvSkGN4SOWLuAWhHgHb07cikHg@mail.gmail.com>
To: Carsten Bormann <cabo@tzi.org>
Cc: cbor@ietf.org, 6MAN <6man@ietf.org>, core WG <core@ietf.org>
Content-Type: multipart/alternative; boundary="000000000000a1c1c805c7e6fd38"
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/h7VEoyxmOUaOB18I_G_Q1RnvncI>
Subject: Re: [core] Interface names (Re: [Cbor] changes in draft-ietf-cbor-network-addresses-05.txt)
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 24 Jul 2021 23:36:43 -0000

Ah, your point about interchange between systems seems important.
Following YAGNI
<https://en.wikipedia.org/wiki/You_aren%27t_gonna_need_it>, maybe
this is not necessary until there's a use case for something within a node
(some CBOR-encoded communication among processes on the same box, perhaps).

If it keeps coming up though, maybe it's just worth a sentence to say why
it's left for some other time/document (confession: I haven't read -05).

Thanks though!

On Sat, Jul 24, 2021 at 4:13 PM Carsten Bormann <cabo@tzi.org> wrote:

>
>
> > On 2021-07-25, at 00:42, Erik Kline <ek.ietf@gmail.com> wrote:
> >
> > Michael,
> >
> > Thanks for the update.
> >
> > Was there any interest in figuring out a representation for link-local
> addresses (e.g. 169.254.x.y, fe80::zed, ff02::pqr, ...) that included
> either an interface name or index as part of a structured unit?  Perhaps
> some generic {address_info, interface_info} pairing that could be used the
> same way?
>
> Interesting.  We just discussed this in the design team for
> draft-ietf-core-href, which is maybe the more likely case where an IP
> address is paired with an interface name.  This can be added, but we didn’t
> quite see such a strong use case.  Interface names are local, so it doesn’t
> make a lot of sense to carry them around between systems, which is where
> CBOR is mostly used these days.
>
> > Obviously, it's possible to pair what you've described here together
> with extra interface information separately on an ad hoc basis.
>
> Yes, but somehow, this question has come up often enough now that I’ll add
> a design to draft-ietf-core-href-06.  We can always delete that feature
> again later.
>
> Grüße, Carsten
>
>
> >
> > Curious,
> > -ek
> >
> > On Mon, Jul 12, 2021 at 4:41 AM Michael Richardson <
> mcr+ietf@sandelman.ca> wrote:
> >
> > internet-drafts@ietf.org wrote:
> >     >         Title : CBOR tags for IPv4 and IPv6 addresses and prefixes
> >     > Authors : Michael Richardson Carsten Bormann
> >     > draft-ietf-cbor-network-addresses-05.txt Pages : 8 Date :
> 2021-07-12
> >
> >     > Abstract: This document describes two CBOR Tags to be used with
> IPv4
> >     > and IPv6 addresses and prefixes.
> >
> >     > The IETF datatracker status page for this draft is:
> >     >
> https://datatracker.ietf.org/doc/draft-ietf-cbor-network-addresses/
> >
> >     > There is also an HTML version available at:
> >     >
> https://www.ietf.org/archive/id/draft-ietf-cbor-network-addresses-05.html
> >
> >     > A diff from the previous version is available at:
> >     >
> https://www.ietf.org/rfcdiff?url2=draft-ietf-cbor-network-addresses-05
> >
> > The major differences since -04 is that we now have three forms:
> >
> > 1) IPv4 or IPv6 address.
> > 2) IPv4-prefix/len or IPv6-prefix/len
> > new: 3) IPv4-addr/len or IPv6-addr/len
> >
> > The difference between (2) and (3) is that (2) is just the prefix, and
> the
> > bits to the right MUST be zero, and MAY be omitted. (A bit win for
> IPv6/32 or
> > Ipv6/48s..).
> > In the case of (3), this is more of an interface definition, like:
> >    2001:db8::1234/64  the "::1234" is to the right of the /64.
> >    192.0.1.4/24     ".4" is to the right of the /24, and is the
> interface definition.
> >
> > Cases (2) and (3) are distinguished by order of data vs prefix.
> > (2) is:   [64, h'20010db8']
> > (3) is:   [h'20010db8_00000000_00000000_00001234', 64]
> > We can do this in CBOR, because it is self-describing.
> > Note that (2) is much shorter than (3), because trailing zeroes are
> omitted.
> > (3) is always 18 or 19 bytes long. (1 byte for CBOR array prefix)
> >
> > Prefix longer than 24 require two bytes to encode the integer.
> > (I guess we could have made the prefixlen be length-24, and then up to
> /48
> > would fit into a single byte integer.  We could also have made the
> negative
> > integers represent multiples of -4 perhaps)
> >
> > I don't personally have a use case today for (3), but there were not many
> > objections to including it.
> >
> > --
> > Michael Richardson <mcr+IETF@sandelman.ca>   . o O ( IPv6 IøT
> consulting )
> >            Sandelman Software Works Inc, Ottawa and Worldwide
> > --------------------------------------------------------------------
> > IETF IPv6 working group mailing list
> > ipv6@ietf.org
> > Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
> > --------------------------------------------------------------------
> > _______________________________________________
> > CBOR mailing list
> > CBOR@ietf.org
> > https://www.ietf.org/mailman/listinfo/cbor
>
>