Re: Fix IPV6 literal notation?

tom petch <ietfc@btconnect.com> Tue, 29 December 2020 11:36 UTC

Return-Path: <ietfc@btconnect.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 6E5A73A1382 for <ipv6@ietfa.amsl.com>; Tue, 29 Dec 2020 03:36:52 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.901
X-Spam-Level:
X-Spam-Status: No, score=-1.901 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=btconnect.onmicrosoft.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 0G-m_dFBBKkI for <ipv6@ietfa.amsl.com>; Tue, 29 Dec 2020 03:36:50 -0800 (PST)
Received: from EUR05-VI1-obe.outbound.protection.outlook.com (mail-vi1eur05on2099.outbound.protection.outlook.com [40.107.21.99]) (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 BF3F93A1381 for <ipv6@ietf.org>; Tue, 29 Dec 2020 03:36:47 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TT108WjTgqVXv/S/zNvlF4Us/PyMH+TQh5psiQFR1JaxOvCEu3YMybBrAYE0H3cDaA51bE/+z3eXV4e9uL7hJjYc081ZTygsorzr3jdt/vG16BqXRSI5+TdrmV0QiWPfotwuftOILrtkppYX2bccKLbBeOyHqwTLLh0occLVUSz3XkEylVsV/OyFnBX2BCj5COmyAijRwF+riGGSxdUTvwd6G4/F2atFnuYhf8C7PFS7bzPm8zKuWnEwszhlcCQlnwxo3o1D3X/xbvQfN7q9M2VFwdbk0YbK1EI1Ywh1RCCq6CWnwDWW7r2kbhV4fN4Cwqzkm3SW9+7oXuVKxhhfxw==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=N9nXlCjXxWgU0XYLE2oE7d5xXHMHrjbVkOkZKCVRTZI=; b=bLfxmTYceoYV8HDaqceLxttTo/cQvnNEJiyyYsfsNqcczwrCY2okqCVIxhYfOkE9Z880FcVuyHED0k8X52mH+Hz2mnB7CXSEEruLPNbOaLrK6SGtUo1UYzre/CDL+xN6n3Qs/v2u5qqFQvKWLQ4ga9NZ7x4bTspjDPF/3+E0CeZKKDWXPSCP2ypQZxt44KXg58p1B+IIkNAGMV/eEaqtobt7o1uXMiwouzl6+lPeQiVCDTfzhN/n9rOlPcz9t9yja5HhR0myDXuSJC5yHP+FQZA/TWyENAPRFXe5KugCTqiHmZGgNzTC8RkbiXtC8vfeH7mtVyxdTk8Ma9GQIkJ+oA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=btconnect.com; dmarc=pass action=none header.from=btconnect.com; dkim=pass header.d=btconnect.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=btconnect.onmicrosoft.com; s=selector2-btconnect-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=N9nXlCjXxWgU0XYLE2oE7d5xXHMHrjbVkOkZKCVRTZI=; b=qkJ36jWMiYKQ3uPs4x+xWW2RPnlDNAHzh772rFSDuqaWRbGbGj4hwRyvQwR2SqbCHj41EGCOuz7TTY64ypVrLXTJ/4Z25O63gkL65Se48x+8FrxvZtdyx39Cs8tACKz8JX74mST3ltkX9MXVTcwFNQHVG26TcJ/x2gGBiIy3wNg=
Received: from AM7PR07MB6248.eurprd07.prod.outlook.com (2603:10a6:20b:134::11) by AS8PR07MB7366.eurprd07.prod.outlook.com (2603:10a6:20b:2a1::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3721.19; Tue, 29 Dec 2020 11:36:45 +0000
Received: from AM7PR07MB6248.eurprd07.prod.outlook.com ([fe80::6d46:4f3c:643:4849]) by AM7PR07MB6248.eurprd07.prod.outlook.com ([fe80::6d46:4f3c:643:4849%5]) with mapi id 15.20.3721.019; Tue, 29 Dec 2020 11:36:45 +0000
From: tom petch <ietfc@btconnect.com>
To: Alexandre Petrescu <alexandre.petrescu@gmail.com>, "ipv6@ietf.org" <ipv6@ietf.org>
Subject: Re: Fix IPV6 literal notation?
Thread-Topic: Fix IPV6 literal notation?
Thread-Index: AQHW2959Hah3CamTv0WXMBtz8ydkm6oN81yAgAACCVs=
Date: Tue, 29 Dec 2020 11:36:45 +0000
Message-ID: <AM7PR07MB6248267E39A923C36C704963A0D80@AM7PR07MB6248.eurprd07.prod.outlook.com>
References: <CAHBU6isQNkE0tmsn7v41Vptgf2OCTQ61gwMKDN4hmK4pBY-J9w@mail.gmail.com> <d244ee54-5f5c-b3e9-bc98-15d59e4ecbe9@gmail.com>, <26f9d61c-00b2-03d9-1587-4d9155428993@gmail.com>
In-Reply-To: <26f9d61c-00b2-03d9-1587-4d9155428993@gmail.com>
Accept-Language: en-GB, en-US
Content-Language: en-GB
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: gmail.com; dkim=none (message not signed) header.d=none;gmail.com; dmarc=none action=none header.from=btconnect.com;
x-originating-ip: [86.146.121.140]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 6dce4d77-8007-42c2-abb9-08d8abee057f
x-ms-traffictypediagnostic: AS8PR07MB7366:
x-microsoft-antispam-prvs: <AS8PR07MB73661CF7768D26E1EFFA89DFA0D80@AS8PR07MB7366.eurprd07.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:9508;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: YILsvJG7K2nAl9KiqD693hUJTGzDF/Cxei6JcUTRCKFQqerN4oa46+iclcbvVc/aqTfQYZGg3yx2wROX37Sb3htnV5wwAxgLpuLn7flLMrkbpEojmYY2abt6hYHsJLGB+EPxkCwXE/zc3GFuffQbQoiid24LSxu6gXa3MWEfij3/O0PxkkrKENAfK82lP4Mzy2hHGQ0OuiceE9TWXLe4LaP8a1mr3J2vTzau8Vj1EP1zMk7Zw7mhoW9qAwsKDDuAw/sBBxLl4TgGof9W23RiG5PCrQKPa03aUkb9Q18Ec4BD6TaF/RWjUzEmLvr6CqAYOoF7q4MzAYl7nQHhQrNYLY27JN+cQkNu5zgwUneNpg6530ZLE+rBpV+ovAv8GgHWdD78APhIyZ83JON5hx9H5cnoEtk/wEw8CpOph9ocCeQl98wzms46zmjhvrNT/QS6C3nuSf9xX97sAEEfbwTr/g==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM7PR07MB6248.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(366004)(396003)(376002)(136003)(39860400002)(346002)(110136005)(83380400001)(7696005)(966005)(71200400001)(8676002)(316002)(2906002)(478600001)(52536014)(64756008)(186003)(76116006)(66446008)(66556008)(86362001)(66946007)(26005)(66476007)(91956017)(33656002)(8936002)(53546011)(9686003)(55016002)(6506007)(5660300002); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata: DduYTubcKvG0wv2m5GZS2cpbK6oznAQFrSL631fYS7FGMzkjL7vSMK2arSaOTClTjz8xrZyBKaeeTInTuCWDg7aMiGksZLAqWGQA4lu+P23HxpGouh3sbj/lLjMTrbe0dtW4EVix243p4AeuM5Ntr2jLV/Eq7hp/0FuaZfel2PXNx/Q0jjf2ZITgFSjPyKh5v1qdq2gRs7/vMDD2g4G9N79eziUvJ9B8/Lh6vl4awyjbKnTyDzKY68mQOyF3o2qRBauUvpAUQos7JCVXalQWKymR6levqaarb0cLc9Ym6DRRJFY6fe6H45gt+6iHL/UrIGdX9PP55IjorUti9vLpwaon/byZxMEnSnMUSUh3AQFQa5Tfe3P530OIcVpkvdu7iMlovNF02tcDyb8T4M/8vz6t8BiubVdnopayGJwvig6J24cjEcS9ZGnDXh7wx6OtpRKfckGC7gjD17YG+ENF9oP+PhPUe4860mfklrA3W6sT1Vo62gZzgnDA21yezEyWggj/dYP433urkl5VSvQKEipfdZlMrpzA+jWpvavEmIPjJm70a4frwSMORAbsznpYWFNY8YMsUJOgRJnVnmH4+soDBKS+DC374STARIBoSj/n2ykOH+jwi3LwR362wxPM/y4PkSJwYG1A01V4v0K47Rex0Vzen2Zf3IDB44HWYVS0bGwgOqqmpIc2ZlGyllmlPyDpT7UOTtVRzW35CotONkFlQaVD5kuYSKJiITRVfjnlA1rIOPP0keAsuJIb/NtuIFyfIfyWPQP/y5Kfai1hb5Lvs2ol6iWMWIakVoV8PbyJMF46F+mFxJvRQkH9qCbuBKpWMzNlOLUnyiaNyZhoBJ+BT3rPmAxORvngRydNNmNx82L2xYh1nIogX/zpUXrqVMn39FgA6JcIqLdlcMfhq9Bj5q/CgO6bdew9Jy6zO3FolQ59+4Cb4SEjOfNt89+wUIXfpGnnSVFL56pPL8DGK8PBtRQb82npBk3vvsR4yDY=
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="Windows-1252"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-OriginatorOrg: btconnect.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: AM7PR07MB6248.eurprd07.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 6dce4d77-8007-42c2-abb9-08d8abee057f
X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Dec 2020 11:36:45.4549 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: cf8853ed-96e5-465b-9185-806bfe185e30
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: mevmwSloratBq3Vim4m+pHn7lEvILdvWQJRU5bGFkuR+/+bAXRaR/II1yH5PpssUhN5WASXUHIF+tE9BtiN7FQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR07MB7366
Archived-At: <https://mailarchive.ietf.org/arch/msg/ipv6/DEV7usRbrzpnXGKjOiHww1VCFWI>
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: Tue, 29 Dec 2020 11:36:52 -0000

From: ipv6 <ipv6-bounces@ietf.org> on behalf of Alexandre Petrescu <alexandre.petrescu@gmail.com>
Sent: 29 December 2020 11:27

Le 27/12/2020 à 00:25, Brian E Carpenter a écrit :
> 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."

But there is also that notation in a certain RFC which says that
1::1.1.1.1 is a valid notation too.

So combining the two might indeed lead to 1::01.1.1.1 being a
potentially valid notation as well.

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

One might wonder why ABNF (A Backus Naur Form) and not other notations
for grammar descriptions, such as ASN.1 (Abstract Syntax Notation number 1)?

<tp>
Augmented Backus Naur 
RFC5234 (which seems like a good enough reason to me)
Tom Petch




But the idea of a reference parser would be great.  One might start with
the parsers that are open source in BSD and in linux.

A reference parser implementation might help avoid incompatible IP
literal address notations.

Alex

>
> Regards Brian Carpenter
>
>
> --------------------------------------------------------------------
>  IETF IPv6 working group mailing list ipv6@ietf.org Administrative
> Requests: https://www.ietf.org/mailman/listinfo/ipv6
> --------------------------------------------------------------------
>

--------------------------------------------------------------------
IETF IPv6 working group mailing list
ipv6@ietf.org
Administrative Requests: https://www.ietf.org/mailman/listinfo/ipv6
--------------------------------------------------------------------