Re: Fix IPV6 literal notation?

Brian E Carpenter <brian.e.carpenter@gmail.com> Sat, 26 December 2020 23:25 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 D78A63A10B1; Sat, 26 Dec 2020 15:25:42 -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 Vdo5VDNCHmFE; Sat, 26 Dec 2020 15:25:41 -0800 (PST)
Received: from mail-pj1-x1032.google.com (mail-pj1-x1032.google.com [IPv6:2607:f8b0:4864:20::1032]) (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 494103A10B0; Sat, 26 Dec 2020 15:25:41 -0800 (PST)
Received: by mail-pj1-x1032.google.com with SMTP id lj6so4047498pjb.0; Sat, 26 Dec 2020 15:25:41 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:organization:cc:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=OnKVQtLUwOD49QLl1B4NSb66JuHodV6CukUqp0hnif0=; b=L1gp3O1L3C/V5Sci2Yg3PVtTqn36D6kSHhgVyaf1gzucVhikcC62eK6PyOqPGSThX1 6OaqLvXJ0k54S5LB9AsAOed+0oHZG+upPtXyexq2zSx4VusvRL3AR8tUdwPhhckbVjEp WkWKkOmrB1t5M7KDwxuQP/Caj6G0zgkQpWbBAj3w5RdbQN5UGg2v/BbjGu8shv1qiCCx R8YJceX6U8uRbLJBnmDEUbh9B+iOY5HYQpE3krXTVk0yeh0xl394BguhpyejcHkiKBTN l3VS7RJ/eLgIBy6ZO835lqccZzodRYeKornXF4AVc/APeWucBTWUwQJhg9XQa3D8Fgjz NB+A==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:organization:cc :message-id:date:user-agent:mime-version:in-reply-to :content-language:content-transfer-encoding; bh=OnKVQtLUwOD49QLl1B4NSb66JuHodV6CukUqp0hnif0=; b=Mwiu3d4G7JOJmPkrtkf0ak8zsspwgw11wpDAr3GyhUphNsoTSOBglBlNBflpwEuc8Y 7xF7rlWRwuw81SwCatNG6Pc42mpVGvi4F15QmgYC1GhCyMEgtt5WYrO6UcQ0B8LNfLW+ xjAXKvJJhDcPjtAS9dCenFiFiJa7NA4EI/BqEOrQs5c3oW57Kjlq19UnwMgaOohKjUTF 4x9lwX5TpLrg6OFX5kaoaTHK7eHn98fnu6QIwVMmkJ6PQFg6ece2sAtMBcb/vs2GjFC6 BWIJjIl9OHk/lvTferVaStYNapGnN+s4NPZ/ebbJ7t74L2dwQ3+k0mwBJAj/ZmQuxA4f 5SpQ==
X-Gm-Message-State: AOAM530wTDtskN66vJp6RSFziKexY4kGhXp7+S84fiNa6Z2caGG7ttiG C+vtRU8KLrACSliNi4LK7u1z/dE0YbUG+w==
X-Google-Smtp-Source: ABdhPJzn9ACK4PATGj5aJneU7bNJVDQ9LrQsNUeM8N0XjX9OKrDVYGxhfot6e3ORTGHUXXF3bxDpFg==
X-Received: by 2002:a17:902:8d97:b029:dc:313:ee70 with SMTP id v23-20020a1709028d97b02900dc0313ee70mr38572258plo.82.1609025140248; Sat, 26 Dec 2020 15:25:40 -0800 (PST)
Received: from [192.168.178.20] ([151.210.131.28]) by smtp.gmail.com with ESMTPSA id s10sm33571929pgg.76.2020.12.26.15.25.37 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 26 Dec 2020 15:25:39 -0800 (PST)
Subject: Re: Fix IPV6 literal notation?
To: Tim Bray <tbray@textuality.com>
References: <CAHBU6isQNkE0tmsn7v41Vptgf2OCTQ61gwMKDN4hmK4pBY-J9w@mail.gmail.com>
From: Brian E Carpenter <brian.e.carpenter@gmail.com>
Organization: University of Auckland
Cc: 6man <ipv6@ietf.org>
Message-ID: <d244ee54-5f5c-b3e9-bc98-15d59e4ecbe9@gmail.com>
Date: Sun, 27 Dec 2020 12:25:33 +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: <CAHBU6isQNkE0tmsn7v41Vptgf2OCTQ61gwMKDN4hmK4pBY-J9w@mail.gmail.com>
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/x04rKGL8oLWHt5GsOcKgvtLC0Kg>
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, 26 Dec 2020 23:25:43 -0000

Tim,

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:.)

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."

As for writing a parser, I'd expect the starting point to be the ABNF in RFC3986 (where the limitation to 4 hex digits is also clear).

Regards
   Brian Carpenter