Re: [Cbor] I-D Action: draft-ietf-cbor-network-addresses-04.txt

Alexandre Petrescu <alexandre.petrescu@gmail.com> Thu, 29 April 2021 19:36 UTC

Return-Path: <alexandre.petrescu@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 D40593A0887 for <ipv6@ietfa.amsl.com>; Thu, 29 Apr 2021 12:36:44 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: 0.668
X-Spam-Level:
X-Spam-Status: No, score=0.668 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_ADSP_CUSTOM_MED=0.001, FORGED_GMAIL_RCVD=1, FREEMAIL_FROM=0.001, NICE_REPLY_A=-0.001, NML_ADSP_CUSTOM_MED=0.9, SPF_HELO_NONE=0.001, SPF_SOFTFAIL=0.665, URIBL_BLOCKED=0.001] autolearn=no autolearn_force=no
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 cUWDGmBGYtOy for <ipv6@ietfa.amsl.com>; Thu, 29 Apr 2021 12:36:40 -0700 (PDT)
Received: from oxalide-smtp-out.extra.cea.fr (oxalide-smtp-out.extra.cea.fr [132.168.224.13]) (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 5CE343A0884 for <ipv6@ietf.org>; Thu, 29 Apr 2021 12:36:40 -0700 (PDT)
Received: from pisaure.intra.cea.fr (pisaure.intra.cea.fr [132.166.88.21]) by oxalide-sys.extra.cea.fr (8.14.7/8.14.7/CEAnet-Internet-out-4.0) with ESMTP id 13TJaahY019113 for <ipv6@ietf.org>; Thu, 29 Apr 2021 21:36:36 +0200
Received: from pisaure.intra.cea.fr (localhost [127.0.0.1]) by localhost (Postfix) with SMTP id 2279C205988 for <ipv6@ietf.org>; Thu, 29 Apr 2021 21:36:36 +0200 (CEST)
Received: from muguet2-smtp-out.intra.cea.fr (muguet2-smtp-out.intra.cea.fr [132.166.192.13]) by pisaure.intra.cea.fr (Postfix) with ESMTP id 18B2B205857 for <ipv6@ietf.org>; Thu, 29 Apr 2021 21:36:36 +0200 (CEST)
Received: from [10.14.1.152] ([10.14.1.152]) by muguet2-sys.intra.cea.fr (8.14.7/8.14.7/CEAnet-Internet-out-4.0) with ESMTP id 13TJaZ62013419 for <ipv6@ietf.org>; Thu, 29 Apr 2021 21:36:35 +0200
Subject: Re: [Cbor] I-D Action: draft-ietf-cbor-network-addresses-04.txt
To: ipv6@ietf.org
References: <12496.1619216560@localhost> <C3A4A868-4B39-4428-93AA-D0B88F79B9BD@employees.org> <14010.1619395579@localhost> <20BFAC30-05C3-4279-92A0-612D2304EE1E@tzi.org>
From: Alexandre Petrescu <alexandre.petrescu@gmail.com>
Message-ID: <0df7e95a-4ce2-0d6e-f77f-986aeb26812e@gmail.com>
Date: Thu, 29 Apr 2021 21:36:35 +0200
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.10.0
MIME-Version: 1.0
In-Reply-To: <20BFAC30-05C3-4279-92A0-612D2304EE1E@tzi.org>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: fr
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/WTDkfi_Vr5OdmgL3hgkWxFaQrag>
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: Thu, 29 Apr 2021 19:36:45 -0000


Le 26/04/2021 à 07:15, Carsten Bormann a écrit :
> On 26. Apr 2021, at 02:06, Michael Richardson <mcr+ietf@sandelman.ca> wrote:
>>
>>> - so you don’t want to support the commonly used shortcut of specifying
>>> both and address and a prefix in one?
>>
>> I don't understand your suggestion.
>>     X - address
>> [n,X] - prefix
> 
> Back in IPv4-land, we often said something like
> 
> “Configure the interface to 192.168.3.5/24”
> 
> Which is a short-cut for
> 
> “Configure the interface to address 192.168.3.5, prefix 192.168.3.0/24”
> 
> Since address/prefix is structurally similar to a prefix (but uses a full 32-bit address), it could be expressed by adding a third case
> 
>>     A - address
>> [n,P] - prefix
>> [A,n] - address/prefix
> 
> Where A is a 4-byte byte-string, P is a 0-to-4-byte byte string, and n is an unsigned integer 0 to 32.
> 
> This construct is less common in IPv6-land, because n is usually 64,

well, no, but I think it was said.

> so sending the address suffices, but there are exceptions to that here, too.

YEs, there are exceptions.  There is a VSLAAC I-D (V for Variable 
length) and open source linux kernel implementation which configures an 
IP address out of a prefix of any length, not only 64.  Manually it is 
also possible.  OpenBSD also has such code.

Alex
> 
> Grüße, Carsten
> 
> --------------------------------------------------------------------
> IETF IPv6 working group mailing list
> ipv6@ietf.org
> Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
> --------------------------------------------------------------------
>