Re: [v6ops] Scope of Unique Local IPv6 Unicast Addresses (Fwd: New Version Notification for draft-gont-6man-ipv6-ula-scope-00.txt)

Fernando Gont <fgont@si6networks.com> Sat, 13 February 2021 20:33 UTC

Return-Path: <fgont@si6networks.com>
X-Original-To: v6ops@ietfa.amsl.com
Delivered-To: v6ops@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 654833A0CB4 for <v6ops@ietfa.amsl.com>; Sat, 13 Feb 2021 12:33:41 -0800 (PST)
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, NICE_REPLY_A=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham 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 Qh37zQIOzaWl for <v6ops@ietfa.amsl.com>; Sat, 13 Feb 2021 12:33:35 -0800 (PST)
Received: from fgont.go6lab.si (fgont.go6lab.si [IPv6:2001:67c:27e4::14]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 66AFF3A0CB3 for <v6ops@ietf.org>; Sat, 13 Feb 2021 12:33:35 -0800 (PST)
Received: from [IPv6:2800:810:464:2b9:1c77:acfc:e6a8:1311] (unknown [IPv6:2800:810:464:2b9:1c77:acfc:e6a8:1311]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by fgont.go6lab.si (Postfix) with ESMTPSA id B98352802D4; Sat, 13 Feb 2021 20:33:29 +0000 (UTC)
To: Brian E Carpenter <brian.e.carpenter@gmail.com>, Ted Lemon <mellon@fugue.com>
Cc: v6ops@ietf.org, Fernando Gont <fernando@gont.com.ar>
References: <160989494094.6024.7402128068704112703@ietfa.amsl.com> <6fe3a45e-de65-9f88-808d-ea7e2abdcd16@si6networks.com> <F4E00812-E366-4520-AE17-7BB46E28D575@gmail.com> <b2e51a89-e8a7-9ddb-643d-63a98569b03c@si6networks.com> <CB9EA5F4-A241-46A4-A371-B2A1BFB8C72F@fugue.com> <dff93a2e-f4f8-01c9-ce88-c2dbb20a04f1@si6networks.com> <759637FF-77C7-41EA-8671-73988AD48873@fugue.com> <6ab2d348-6220-6744-9585-1f99e23a7ee0@gont.com.ar> <EFF8F0BB-D147-4D99-B17A-892825835590@fugue.com> <dd7c8d97-3f1c-e82e-4b7a-431f727adeec@si6networks.com> <B7E3D476-C4AE-425A-945E-FBCBAE1E4037@fugue.com> <9a5c8db7-3d6f-060d-33f2-1f63499a2c8e@si6networks.com> <971635b5-81c9-594a-0200-23a71d3b1f4b@gmail.com>
From: Fernando Gont <fgont@si6networks.com>
Message-ID: <8ef4a730-5403-8384-e85f-bcf9e3a92ef4@si6networks.com>
Date: Sat, 13 Feb 2021 17:33:00 -0300
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1
MIME-Version: 1.0
In-Reply-To: <971635b5-81c9-594a-0200-23a71d3b1f4b@gmail.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-US
Content-Transfer-Encoding: 7bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/v6ops/d1l-VknB7mWV1Ch3Bi6A0ZAib0E>
Subject: Re: [v6ops] Scope of Unique Local IPv6 Unicast Addresses (Fwd: New Version Notification for draft-gont-6man-ipv6-ula-scope-00.txt)
X-BeenThere: v6ops@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: v6ops discussion list <v6ops.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/v6ops>, <mailto:v6ops-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/v6ops/>
List-Post: <mailto:v6ops@ietf.org>
List-Help: <mailto:v6ops-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/v6ops>, <mailto:v6ops-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sat, 13 Feb 2021 20:33:41 -0000

Hi, Brian,

On 13/2/21 17:18, Brian E Carpenter wrote:
[....]
>> ---- cut here ----
>> 5.1.  Address Attributes in Programming Languages
>>
>>      Python's ipaddress library [Python-ipaddr] defines 'IPv6Address'
>>      objects that have a number of attributes, including:
>>
>>      o  'True' if the address is allocated for private networks.
>>
>>      o  'True' if the address is allocated for public networks.
>>
>>      For ULAs, the is_private attribute is 'True', while the is_global
>>      attribute is 'False'.  This contradicts the definition of ULAs as
>>      having "global scope" [RFC4291] [RFC4193], but is in line with the
>>      specification update performed by this document (see Section 6).
>> ---- cut here ----
>>
>> (this one is documented in our draft, but credit goes to Brian for
>> spotting it).
> 
> The fact is that I spotted it due to an issue with running code.
> Just for fun, here is the test for ULAness according to the Python
> ipaddress module's semantics:
> 
> def is_ula(a):
>      """Test for ULA"""
>      return (a.is_private and not a.is_link_local
>               and not a.is_loopback
>               and not a.is_unspecified)

IIRC, I don't remember seeing a "is_ula" attribute. -- will recheck.



>> Are the is_private and is_global attributes employed by such library
>> correct? Do they match our specs? Do they match the obvious
>> interpretation of such attributes?  Should they be changed? Why, or why not?
> 
> A bit off topic, but I think the .is_private attribute is a very poor
> choice, because it might be misunderstood as implying privacy properties.

I believe the name attribute is borrowed from the IPv4 world (i.e., 
RFC1918).

Thanks,
-- 
Fernando Gont
SI6 Networks
e-mail: fgont@si6networks.com
PGP Fingerprint: 6666 31C6 D484 63B2 8FB1 E3C4 AE25 0D55 1D4E 7492