Re: changes in draft-ietf-cbor-network-addresses-05.txt
Erik Kline <ek.ietf@gmail.com> Sat, 24 July 2021 22:42 UTC
Return-Path: <ek.ietf@gmail.com>
X-Original-To: ipv6@ietfa.amsl.com
Delivered-To: ipv6@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 43F313A08B8; Sat, 24 Jul 2021 15:42:20 -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, RCVD_IN_DNSWL_NONE=-0.0001, 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 9tHnK6hZCMmm; Sat, 24 Jul 2021 15:42:14 -0700 (PDT)
Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) (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 A40BC3A08B6; Sat, 24 Jul 2021 15:42:14 -0700 (PDT)
Received: by mail-ot1-x32d.google.com with SMTP id x15-20020a05683000cfb02904d1f8b9db81so5951370oto.12; Sat, 24 Jul 2021 15:42:14 -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=hRu2Zbg6XYeccLfdxV6qBshgwX+TIeZxzPr4hFjmCSI=; b=GZz00UEchORm6Xv/vSDfPb0TcCo8mIWIdz6KeN8hIq7vdyvSYS7PwsLtlK34UXsFDy R8KUgzka64whVwGSNd17ZXGvJDNcBDRQzXW2YCFoR5mof255fevpcjcydm4FZcEDE46s fPZLscjGGKfsJuPUOj+f4KE3NUN5TCtsr+3YlT6cni75blLGMi0x4ryefys4iVKThyWO Yl2Gq2qe2DJXa2JDHbHlLeE0zjGp26ztNuL5jAj4PY/gwytZfiIkPqjMVvxWbAcPIDgM DpnqkiF9wo6uzK52JRA9tBjuqj3nMRB/I7hJMLVss1sqou/KzjbFJE1mAt5II75cpnm2 VyEw==
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=hRu2Zbg6XYeccLfdxV6qBshgwX+TIeZxzPr4hFjmCSI=; b=f4RToD+sVHAAf9jq5lR1tGbMVtJLwTMyNQrZWI0ZDTE5YqKDgNSKSmypje46igxC5w zkCxqK1BjX0i493/wKPaqkFUDv+TIr8BGY5zo5Z/STj6nCCkuNvYZLyojTII4gNd54uS w+ME0j28/kf7688WSVMkNsRJhCJV7aFFjdaY2dbwcNMm4pkdHgrJCrDB4l5s//FMTifR Zy+R4GtMLWOHBB8DEHZnoNuccHCoR1uLgOmphqlgz57J5RTlIyzhUbMpZHqOI2RDAUd7 lvkSyJjBWiH/Si5B8XNaBqs7JRb7E/7QI266JIDzsrf0NCuW0kpkcq1vKT8RE8D4bA47 F8RA==
X-Gm-Message-State: AOAM530xaGwjNJho7SzugHK5NU4ZVfaQ9yZJZMQguPxQZva0FY/zJYDe lwj1Sx4a0ueFzpVsqRz69D5chQ2smZXR46VxK1C1tOIW314=
X-Google-Smtp-Source: ABdhPJwXgHFj0I3btPp7xHzpU4VRpAXDHKNLcfpR5cczF7N8kw0D/9jV2zyqndNHDD06E3APYx8WdzkhFLQ8YumD9E8=
X-Received: by 2002:a9d:5a18:: with SMTP id v24mr7239675oth.191.1627166533174; Sat, 24 Jul 2021 15:42:13 -0700 (PDT)
MIME-Version: 1.0
References: <162608928922.11086.12172415971165753394@ietfa.amsl.com> <29067.1626090045@localhost>
In-Reply-To: <29067.1626090045@localhost>
From: Erik Kline <ek.ietf@gmail.com>
Date: Sat, 24 Jul 2021 15:42:02 -0700
Message-ID: <CAMGpriUnfMjhk7teAN-A0j5SCK=BpyJEDC+NOCJtHzmF1BFeow@mail.gmail.com>
Subject: Re: changes in draft-ietf-cbor-network-addresses-05.txt
To: cbor@ietf.org
Cc: 6MAN <6man@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000003347e705c7e63b02"
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/OvrWd1VMF1YThKq4ENZ0psTsCQU>
X-BeenThere: ipv6@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "IPv6 Maintenance Working Group \(6man\)" <ipv6.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/ipv6>, <mailto:ipv6-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/ipv6/>
List-Post: <mailto:ipv6@ietf.org>
List-Help: <mailto:ipv6-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/ipv6>, <mailto:ipv6-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 24 Jul 2021 22:42:20 -0000
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? Obviously, it's possible to pair what you've described here together with extra interface information separately on an ad hoc basis. 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 > -------------------------------------------------------------------- >
- changes in draft-ietf-cbor-network-addresses-05.t… Michael Richardson
- Re: changes in draft-ietf-cbor-network-addresses-… Erik Kline
- Interface names (Re: [Cbor] changes in draft-ietf… Carsten Bormann
- Re: Interface names (Re: [Cbor] changes in draft-… Erik Kline
- Re: changes in draft-ietf-cbor-network-addresses-… Brian E Carpenter
- Re: [Cbor] changes in draft-ietf-cbor-network-add… Carsten Bormann
- Re: changes in draft-ietf-cbor-network-addresses-… Michael Richardson
- Re: [Cbor] changes in draft-ietf-cbor-network-add… Brian E Carpenter
- Re: changes in draft-ietf-cbor-network-addresses-… tom petch
- Re: [Cbor] Interface names (Re: changes in draft-… Christian Amsüss
- Re: [Cbor] Interface names (Re: changes in draft-… Brian E Carpenter
- Re: changes in draft-ietf-cbor-network-addresses-… Brian E Carpenter
- Re: changes in draft-ietf-cbor-network-addresses-… Jürgen Schönwälder
- Re: changes in draft-ietf-cbor-network-addresses-… Brian E Carpenter
- Re: changes in draft-ietf-cbor-network-addresses-… tom petch
- Re: changes in draft-ietf-cbor-network-addresses-… Brian E Carpenter
- Re: changes in draft-ietf-cbor-network-addresses-… Jürgen Schönwälder
- Re: [Cbor] changes in draft-ietf-cbor-network-add… Michael Richardson
- Re: [Cbor] changes in draft-ietf-cbor-network-add… Michael Richardson
- Re: changes in draft-ietf-cbor-network-addresses-… Brian E Carpenter
- Re: [Cbor] changes in draft-ietf-cbor-network-add… Carsten Bormann
- Re: [Cbor] changes in draft-ietf-cbor-network-add… Michael Richardson
- Re: [Cbor] changes in draft-ietf-cbor-network-add… Michael Richardson
- Re: [Cbor] changes in draft-ietf-cbor-network-add… Brian E Carpenter
- Re: [Cbor] changes in draft-ietf-cbor-network-add… Brian E Carpenter
- Re: [Cbor] changes in draft-ietf-cbor-network-add… Carsten Bormann
- Re: changes in draft-ietf-cbor-network-addresses-… Jürgen Schönwälder
- Re: changes in draft-ietf-cbor-network-addresses-… Brian E Carpenter
- RE: changes in draft-ietf-cbor-network-addresses-… Dave Thaler
- Re: changes in draft-ietf-cbor-network-addresses-… Jürgen Schönwälder
- Re: changes in draft-ietf-cbor-network-addresses-… Brian E Carpenter
- Re: changes in draft-ietf-cbor-network-addresses-… Erik Kline