Re: Fix IPV6 literal notation?

Brian E Carpenter <brian.e.carpenter@gmail.com> Mon, 28 December 2020 20:44 UTC

Return-Path: <brian.e.carpenter@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 D7A933A0DBF for <ipv6@ietfa.amsl.com>; Mon, 28 Dec 2020 12:44:51 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.1
X-Spam-Level:
X-Spam-Status: No, score=-2.1 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, NICE_REPLY_A=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-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 VuStTcNeWcTd for <ipv6@ietfa.amsl.com>; Mon, 28 Dec 2020 12:44:50 -0800 (PST)
Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) (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 4202B3A0DBE for <ipv6@ietf.org>; Mon, 28 Dec 2020 12:44:50 -0800 (PST)
Received: by mail-pl1-x629.google.com with SMTP id b8so6177411plx.0 for <ipv6@ietf.org>; Mon, 28 Dec 2020 12:44:50 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=Vy43OPsbiacUVOh865o5LMKBz51M6Lr4dF2boPQMMKo=; b=EcVGPW1+qxO9VM0/VgWopvChtZccNPJzVINs2mZTZ+EzWc2yBESGSctzV5luAs3cL2 ae5pYkuQzKTv9I6HKJCZck4xlqlGQ4Qt9v3TchLBmg+cVtGDRj6SSGpYcv4VqeDsKHZq +UT/p2xJOmU7bCyu0rpAhJe1mlweKeIVa2nCSv6xdWmRqOvhhsCVa/YJUSlpd9ogvTkk BJztHLrCjqA2c/I2CIV1+SYFKofFb6wmenSIewCQAbJu88mSglN2jUqJX9UPYPOQ1RZC YZ2Fxz0KpH46DAn0WdLwD3PPEL7K6pL1Onj/XUYSF0pRl6aHgrzeDtF+iN+TI1dbvVCO NBzg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=Vy43OPsbiacUVOh865o5LMKBz51M6Lr4dF2boPQMMKo=; b=HUvyl7PyExYbK8EmjJt/TNxj3+uFPfOr9Ah12CTbjFKRN1XGMQR9WadJ9/evHNZW+Y 0/zFx0PKYxfZ/7S5A+rH7cL4EGega1nLsLsxDJAhmg3+J78S5ePVA1yjhZoTymvo3Pbr kwFJ2gQza+0cZCNLlvw2qtz9xxMKbzMTR4Mm6lBTprsz6wyCOBau939MuUnIFzeGujpk HK/m0W+DPyj5VMRsmdT/A0aY4HVHQ6QX+5k2c1kvuKh7kMrb+V99vswMiOAuaFSCEGmP NKGeI+drOJjzQqXgLhrh1eaolkxofC6Tc3SZ/NKYhHfrawrhCTy1qaEZaBxq5KMWhftn vQ3A==
X-Gm-Message-State: AOAM533pqf4TYcc61jpAlFr7Yhv0tG/WJI67amBRL+bInTQ9/koOztDT xKlQycjIUpvPPjxAjJGg48gA35X2XAcAlg==
X-Google-Smtp-Source: ABdhPJyS3Pu7eFbnWCywHeFF4wMubH6UtU57rGZgtGoqVFwJOrz5F6oH9AGQs1bhjfOlyAEEBXpU0Q==
X-Received: by 2002:a17:90a:520e:: with SMTP id v14mr643852pjh.9.1609188289246; Mon, 28 Dec 2020 12:44:49 -0800 (PST)
Received: from [192.168.178.20] ([151.210.131.28]) by smtp.gmail.com with ESMTPSA id k7sm36775139pfh.201.2020.12.28.12.44.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 28 Dec 2020 12:44:48 -0800 (PST)
Subject: Re: Fix IPV6 literal notation?
To: Ofer Inbar <cos@aaaaa.org>
Cc: Tim Bray <tbray@textuality.com>, 6man <ipv6@ietf.org>
References: <CAHBU6isQNkE0tmsn7v41Vptgf2OCTQ61gwMKDN4hmK4pBY-J9w@mail.gmail.com> <d244ee54-5f5c-b3e9-bc98-15d59e4ecbe9@gmail.com> <20201228185754.GO2544@miplet.aaaaa.org>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Message-ID: <20e22378-e8ae-f20e-8667-664b8bc67e09@gmail.com>
Date: Tue, 29 Dec 2020 09:44:44 +1300
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1
MIME-Version: 1.0
In-Reply-To: <20201228185754.GO2544@miplet.aaaaa.org>
Content-Type: text/plain; charset="utf-8"
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/znAmLu1k4pdoE3i6dYsXM5QGp80>
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: Mon, 28 Dec 2020 20:44:52 -0000

On 29-Dec-20 07:57, Ofer Inbar wrote:
> On Sun, Dec 27, 2020 at 12:25:33PM +1300,
> Brian E Carpenter <brian.e.carpenter@gmail.com> wrote:
>> On 27-Dec-20 11:16, Tim Bray wrote:
>>> See https://twitter.com/dave_universetf/status/1342685822286360576 to which I heartily concur. IPV6 addresses are neither easy for humans to read, nor easy for software to parse.
>>>
>>> *If* someone has a better idea, there???s no good reason not to standardize it, the old approach would still work.   Does anyone have a better idea?
>>
>> I have no idea if there's a proposal in that sequence of Twitter messages, but if there is, it should be written up as an I-D aimed at the 6man WG and discussed there. (Hence I have changed the IETF list to a Bcc: and added the 6man list in Cc:.)
>>
> 
> It's clearly not a proposal for changing anything, because the
> majority of the weirdness that thread describes is address forms that
> are no longer actively in use, but still appear in various places -
> old threads, documents, databases, config files, archives, etc.  Any
> change made to specifications now will only affect what forms people
> produce addresses in in the future, so it would have no effect on
> this.  IPv6 address formats are reasonably specified for the present
> and future, and changing specs won't affect artifacts of the past.
> 
>> I can say that this much is wrong:
>>
>>> Oh, and the leading zero debate also infects IPv6, to some extent! The specs tried to specify the textual representation of IPv6, but it failed to be complete. So it's unclear if 000001::00001.00002.00003.00004 is a valid IPv6 address
>>
>> It's quite clear that it is invalid. RFC4291 section 2.2 says:
>>
>>   "1. The preferred form is x:x:x:x:x:x:x:x, where the 'x's are one to
>>       four hexadecimal digits of the eight 16-bit pieces of the address."
>>
> 
> That's not clear at all, since it doesn't address validity, only what
> is "preferred". 

RFC4291 doesn't use RFC2119 language, but to me that sentence is a clear
specification. 02001:0:0:0:0:0:0:1 doesn't conform.

I also cited the ABNF, which is prescriptive for address literals in URIs,
but we all know that it applies generally.

> So if there is one thing in that thread that might
> call for a change, it's to clarify that IPv6 addresses are expected
> not to pad with leading zeros beyond 4 hex characters, and that it is
> invalid to write them with more digits.
> 
> I'd support that change, unless someone can show it's already very
> clearly spelled out somewhere.

I think that's really not needed. As a matter of curiosity, I think
the IPv4 format is pretty much undocumented. A few minutes of research
found this:

   One commonly used notation for internet host addresses divides the
   32-bit address into four 8-bit fields and specifies the value of each
   field as a decimal number with the fields separated by periods.  This
   is called the "dotted decimal" notation.  For example, the internet
   address of ISIF in dotted decimal is 010.002.000.052, or 10.2.0.52.

which first appeared in RFC820 (January 1983) and last appeared in
RFC990 (November 1986). Note that leading zeroes are allowed and do not
signal octal. 

    Brian