Re: [netmod] Alexey Melnikov's Discuss on draft-ietf-netmod-module-tags-07: (with DISCUSS)

"Rob Wilton (rwilton)" <rwilton@cisco.com> Mon, 17 February 2020 14:08 UTC

Return-Path: <rwilton@cisco.com>
X-Original-To: netmod@ietfa.amsl.com
Delivered-To: netmod@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id A673B120812; Mon, 17 Feb 2020 06:08:18 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.521
X-Spam-Level:
X-Spam-Status: No, score=-14.521 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, USER_IN_DEF_DKIM_WL=-7.5] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=cisco.com header.b=IPr7fOv4; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=CfYJsV+y
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 uth9sTNDTB06; Mon, 17 Feb 2020 06:08:13 -0800 (PST)
Received: from rcdn-iport-3.cisco.com (rcdn-iport-3.cisco.com [173.37.86.74]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 32D271200E5; Mon, 17 Feb 2020 06:08:11 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=7613; q=dns/txt; s=iport; t=1581948492; x=1583158092; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=n65WcRT7GU83hGfFUXtnjNwPFI6nFdGw16BH8ImxF9I=; b=IPr7fOv4O5gJYNPwqyMxEfCNDWahzIizZzZ7SxpEV+8wOFhpOdMY/nKC R1vvcXrAIHrVfNQYIvaP7k83QAcTDHbsUT/qj3KGiTaZ4k54MTCWR+zSh LMeJtLYKk6xRh6C3nO3glrw5l8Fym3iYG5R/Efi2pdZodi0UcL2oDY6rV Q=;
IronPort-PHdr: 9a23:NvCDLhVKFVOEMYjLyHpR6Vz0q87V8LGuZFwc94YnhrRSc6+q45XlOgnF6O5wiEPSA92J8OpK3uzRta2oGXcN55qMqjgjSNRNTFdE7KdehAk8GIiAAEz/IuTtankgA8VGSFhj13q6KkNSXs35Yg6arw==
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0DeAQDXnUpe/5NdJa1jAxsBAQEBAQEBBQEBAREBAQMDAQEBgXuBVFAFbFggBAsqCodQA4p5gl+JYo4vgUKBEANUCQEBAQwBARgLCgIEAQGDe0UCggEkOBMCAw0BAQUBAQECAQUEbYU3DIVmAQEBAQIBAQEQLgEBLAsBCwICAgEIEAEEAQEBLhsGBgsdCAIEDgUIEweDBYJKAw4gAQIMoFgCgTmIYoIngn8BAQWBQ0GDFQ0LggwDBgWBM4wkGoFBP4ERR4JMPoIbSQEBAQEBAYEsARIBIwUaEQYPgnuCLI1EBx2COocrl3FECoI6h02KVQSBY4JmgkmIFpA7l1mCKpAXAgQCBAUCDgEBBYFpImdYEQhwFTuCbFAYDY4dOIM7M4RhhT90AoEni0WBIgGBDwEB
X-IronPort-AV: E=Sophos;i="5.70,452,1574121600"; d="scan'208";a="710492482"
Received: from rcdn-core-11.cisco.com ([173.37.93.147]) by rcdn-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 17 Feb 2020 14:07:34 +0000
Received: from XCH-RCD-002.cisco.com (xch-rcd-002.cisco.com [173.37.102.12]) by rcdn-core-11.cisco.com (8.15.2/8.15.2) with ESMTPS id 01HE7Ym9004208 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Mon, 17 Feb 2020 14:07:34 GMT
Received: from xhs-aln-002.cisco.com (173.37.135.119) by XCH-RCD-002.cisco.com (173.37.102.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 17 Feb 2020 08:07:33 -0600
Received: from xhs-aln-001.cisco.com (173.37.135.118) by xhs-aln-002.cisco.com (173.37.135.119) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Mon, 17 Feb 2020 08:07:32 -0600
Received: from NAM12-MW2-obe.outbound.protection.outlook.com (173.37.151.57) by xhs-aln-001.cisco.com (173.37.135.118) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Mon, 17 Feb 2020 08:07:32 -0600
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IcIHdicuEoYJuE4jPBGdn6t6okvftD7iptXh2Z5K5JZjtzbiBfJbOX8aIkitp1CE5ZQd3U6RKx5p8oTtdivzfuOCmxjO4j6vjhCwBEugVpzTbmrtYfzyF7rS7okvRHaDqkQA29daqc587B2PqkOj7FRqIztewt6tOtCWXKPQBpN3S66etDy4/N8Rwk93XEYvt5l/G+b6evd2W79icTrkhiNGMYjTlQ6lQmgnpV8nKG6Y1b6zsEjfkgw1DTgI+VM+OAA940t73QVKX3H1+GcxcvazsasQrUnACNlwkC5rsX7Kjg2SCLH/P2rkCqo7HD4a2+J9k47C0L6+/pbeJbTtqQ==
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=yCNYvA+Uk9ouCk4Xpy3ixAtqX6BQ7hATjjooHO/fGxk=; b=ns6NBN6an6zI+HU4DL3oS4gzji1tsMj/rzaSs0aHG7Ih1Qu0xnwZaGMN4JCNT9th6vHuAp9XMA9s9NAK3HDrqxCexRMisJS+fXdDFxK1dPDOjL0RMr8gTIrMhpdFmBn20PJQGetAE4NkcFS8BpcJbj/gl1rRl9paxD+V0fAbqSLBiQulx5WlvfITDjpMx+fB1CqN/hQB6/4Sy/D+2AcxRVHpkch/xQv5RF2y+NArDH2u278jFJOH4GIXmYprFII6CLyrYZUGhKFOhuJyvE4OrjPGs3xOKo5+Zc/CkCoIoekWa/s25FTK7Xa/9jq1IA7xgMYktdM0Uw/7hNI22FC8DA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=cisco.com; dmarc=pass action=none header.from=cisco.com; dkim=pass header.d=cisco.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cisco.onmicrosoft.com; s=selector2-cisco-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=yCNYvA+Uk9ouCk4Xpy3ixAtqX6BQ7hATjjooHO/fGxk=; b=CfYJsV+ye079UbsD0brUM9YZWOgi7DCbT9H+BSjbl5nSp7mJOwbVtEZUCIpolgcEaggtp/UIrrtWbq6ywY1cSD6UlwiArISpuU6HelC2RDmjVyGLsRliggOVSXMd3oVwk3CpTK3R9t7MzsUKKG0TjD/HPZPKzNJwPZ42XP8exUg=
Received: from MN2PR11MB4366.namprd11.prod.outlook.com (52.135.38.209) by MN2PR11MB4112.namprd11.prod.outlook.com (20.179.150.16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2729.25; Mon, 17 Feb 2020 14:07:31 +0000
Received: from MN2PR11MB4366.namprd11.prod.outlook.com ([fe80::b9ce:1058:5fa6:44a1]) by MN2PR11MB4366.namprd11.prod.outlook.com ([fe80::b9ce:1058:5fa6:44a1%7]) with mapi id 15.20.2729.031; Mon, 17 Feb 2020 14:07:31 +0000
From: "Rob Wilton (rwilton)" <rwilton@cisco.com>
To: "Schönwälder, Jürgen" <J.Schoenwaelder@jacobs-university.de>
CC: Alexey Melnikov <aamelnikov@fastmail.fm>, "netmod@ietf.org" <netmod@ietf.org>, Joel Jaeggli <joelja@gmail.com>, Christian Hopps <chopps@chopps.org>, The IESG <iesg@ietf.org>
Thread-Topic: [netmod] Alexey Melnikov's Discuss on draft-ietf-netmod-module-tags-07: (with DISCUSS)
Thread-Index: AQHV4m8DGI058sprvkKdYtaQYpu786gZdNYAgAEFykCAAEcggIAEq79w
Date: Mon, 17 Feb 2020 14:07:30 +0000
Message-ID: <MN2PR11MB43665A773E4CF5C3F87B62BBB5160@MN2PR11MB4366.namprd11.prod.outlook.com>
References: <155499006434.22705.5858614581630974980.idtracker@ietfa.amsl.com> <7F3B9E7F-6AD8-4801-AE60-9F2D704DC69B@chopps.org> <2ee6b71c-bd2c-4676-9e14-cb240c6845c9@www.fastmail.com> <20200213183857.zhn2eiiztqipwsq3@anna.jacobs.jacobs-university.de> <MN2PR11MB43662F57700DFF1B0C29BE5AB5150@MN2PR11MB4366.namprd11.prod.outlook.com> <20200214143030.qfzhqdlk2gpd4tc3@anna.jacobs.jacobs-university.de>
In-Reply-To: <20200214143030.qfzhqdlk2gpd4tc3@anna.jacobs.jacobs-university.de>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=rwilton@cisco.com;
x-originating-ip: [173.38.220.42]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 2637e4f9-7f73-45d2-0315-08d7b3b2baa6
x-ms-traffictypediagnostic: MN2PR11MB4112:
x-microsoft-antispam-prvs: <MN2PR11MB411264720743991049D20DD6B5160@MN2PR11MB4112.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 0316567485
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(346002)(366004)(376002)(136003)(39860400002)(396003)(189003)(199004)(54906003)(4326008)(2906002)(53546011)(52536014)(5660300002)(71200400001)(33656002)(6506007)(966005)(186003)(478600001)(6916009)(55016002)(81166006)(81156014)(8676002)(316002)(8936002)(9686003)(66574012)(7696005)(86362001)(76116006)(26005)(64756008)(66946007)(66446008)(66476007)(66556008); DIR:OUT; SFP:1101; SCL:1; SRVR:MN2PR11MB4112; H:MN2PR11MB4366.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1;
received-spf: None (protection.outlook.com: cisco.com does not designate permitted sender hosts)
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: rPjo6zRirtVfdOccMgqvMtaC4O0qxMZhEow9ldi3VXMNjir4gOBgqDkURJiq3137dKizoG/MDBa4IOk7lTAwyaDlV9IoWCt7jKqO5DK09PdYfgIYHqeO8GhQI6BuZP5jBP3dD8Njfm6u3K+qDPqPptb7mgh/bUMxLq+NHBGMPTfmMdro9euojEmSk6BZWJiHpgBRJoSV7WGwMj9scioj3aLnwuZlyn8yHcViGcNEuLEoKV3PLu8SYozO09AOuWUBQjqMHfmJo6eC+as7QmZCWxW1+pBl0ElcviHTEavM/40Mz1IwECEmZKqSvPqoieHqoZ9FCIl5nadHmTNJ/6jYifv4six79Rj159WccxTQxdwRedactFVByMvBwetKNwFYUCfmDGVwhqF9Tp0TtwebDLweYX9PlLckvtkhKYRYW14OYH01v9ihv/N/B3yitV6Sm2DzB7Yo/ez1PYSO5NQZi6NV3NfPvUsIfj98073WawzITmI7mWAY54NPQQmuyr+ms2FftngtzjFNZVxWlzW7sw==
x-ms-exchange-antispam-messagedata: 7KLWRRDNuLaTKjC+ZoIWsEzYGVIrPNzol490xyb+5RZIH5yQoS6v5eB+MFZ/JfWqf8QwVrvSjCweQd3JB6ewVW9mWrH/hI0X5i+lHfmTG784Kr7e9TcSOe/LfQ7DA8v8sy9sQ0zU9Ztx2V2Apl7UOg==
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: 2637e4f9-7f73-45d2-0315-08d7b3b2baa6
X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Feb 2020 14:07:30.9948 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 5ae1af62-9505-4097-a69a-c1553ef7840e
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 1f8NC02Gnxwolf5QFBg04DI0BLJvecP8Qcd4gK+qYoeYHJ2AusWrxTFVEGMGs7i2cae7m8FKcE3LxEvm4zOFsQ==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR11MB4112
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.37.102.12, xch-rcd-002.cisco.com
X-Outbound-Node: rcdn-core-11.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/netmod/1GBOIpjVpbHXkoGjlI6AEv7CnUg>
Subject: Re: [netmod] Alexey Melnikov's Discuss on draft-ietf-netmod-module-tags-07: (with DISCUSS)
X-BeenThere: netmod@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: NETMOD WG list <netmod.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/netmod>, <mailto:netmod-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/netmod/>
List-Post: <mailto:netmod@ietf.org>
List-Help: <mailto:netmod-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/netmod>, <mailto:netmod-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 17 Feb 2020 14:08:19 -0000

Hi Juergen,

Please see inline ...

> -----Original Message-----
> From: Schönwälder, Jürgen <J.Schoenwaelder@jacobs-university.de>
> Sent: 14 February 2020 14:31
> To: Rob Wilton (rwilton) <rwilton@cisco.com>
> Cc: Alexey Melnikov <aamelnikov@fastmail.fm>; netmod@ietf.org; Joel
> Jaeggli <joelja@gmail.com>; Christian Hopps <chopps@chopps.org>; The IESG
> <iesg@ietf.org>
> Subject: Re: [netmod] Alexey Melnikov's Discuss on draft-ietf-netmod-
> module-tags-07: (with DISCUSS)
> 
> Rob,
> 
> I think there are two related issues here:
> 
> a) If we need normalized strings (to avoid comparison suprises), we
>    should have a common type for them; rfc6991-bis would be a proper
>    home. I am _not_ saying we should delay the tags document for this,
>    but we should think about providing a solution that can be easily
>    reused. Right now, we often use strings as part of keys, which can
>    lead to comparison issues.
[RW] 

I agree.  Note, I am also not proposing that we delay module-tags for rfc6991-bis.

RFC 7950 states that strings are not normalized by default (section 9.4.2).  Thinking about this some more, I think that it is reasonable to make it the client's responsibility to normalize strings, if required.

Chris, this would mean that no change to the typedef description is required.

> 
> b) It seems that normalized strings only solve part of the problem. If
>    an organization creates names for 'things', the organization likely
>    wants to further restrict the format of these names to something
>    sensible to avoid fun with different kinds of hyphens or emojis or
>    ... So while creative unicode characters may technically work,
>    there will likely be good reasons to avoid some of them. (There are
>    reasons why we have coding styles for most programming languages.)
>    These rules may, however, differ between organizations.
> 
> We should not confuse a) and b). If IANA needs additional guidelines for
> tags (their coding style for tags), then we should provide these
> guidelines, i.e., this is a type b) action. The type a) action is needed
> to technically ensure that comparisons do not lead to surprises. But a)
> won't be an answer for all type b) issues. Of course, we could give IANA a
> 'coding style' that avoids any normalization issues. This would make IANA
> assigned tags safe but would not avoid comparison surprises for other
> sources of tags.
[RW] 

So, solving B seems reasonable for the IANA defined module tags, following Alexey's suggestion of referencing RFC 5198 for normalization.

Thanks,
Rob


> 
> /js
> 
> On Fri, Feb 14, 2020 at 10:30:50AM +0000, Rob Wilton (rwilton) wrote:
> > Hi Juergen,
> >
> > This sounds potentially useful to me, although should this be for
> general unicode strings (e.g. ones that might include spaces), or just
> identifiers (without any spaces)?.  Is this something that could/should go
> into rfc6991-bis, or at least be discussed in that context?
> >
> > I would have thought that normalization would be required wherever a
> configurable unicode string is used as a list key, or leaf-list.
> >
> > Thanks,
> > Rob
> >
> >
> > > -----Original Message-----
> > > From: iesg <iesg-bounces@ietf.org> On Behalf Of Schönwälder, Jürgen
> > > Sent: 13 February 2020 18:39
> > > To: Alexey Melnikov <aamelnikov@fastmail.fm>
> > > Cc: netmod-chairs@ietf.org; draft-ietf-netmod-module-tags@ietf.org;
> > > netmod@ietf.org; Joel Jaeggli <joelja@gmail.com>; Christian Hopps
> > > <chopps@chopps.org>; The IESG <iesg@ietf.org>
> > > Subject: Re: [netmod] Alexey Melnikov's Discuss on
> > > draft-ietf-netmod-
> > > module-tags-07: (with DISCUSS)
> > >
> > > And a longer term solution might be to define a YANG Net-Unicode
> > > string datatype that can be used in all situations where
> > > non-normalized strings may cause problems. The problem (if one
> > > agrees it is one) is likely much bigger than just YANG tags, there
> > > likely are many uses of YANG strings where normalization would be
> desirable.
> > >
> > > /js
> > >
> > > On Thu, Feb 13, 2020 at 01:10:02PM +0000, Alexey Melnikov wrote:
> > > > Hi Christian,
> > > >
> > > > On Thu, Feb 13, 2020, at 12:30 AM, Christian Hopps wrote:
> > > > > The intent in the document is to place as few restrictions on
> > > > > tags as possible to allow for future-proofing and organic growth
> > > > > of use both within and outside of SDOs. For standard tags we
> > > > > trust IANA (and the human behind the process) to make the call
> > > > > on whether a tag is already present. :)
> > > >
> > > > And the problem with that is that because there might be multiple
> > > > ways
> > > to encode in Unicode visually indistinguishable tags IANA would end
> > > up asking IESG for help.
> > > >
> > > > So you need to at minimum specify a Unicode normalization form to
> > > > use. I
> > > suggest you normatively reference RFC 5198 here.
> > > >
> > > > > Having worked for a company where a lot of XML string data was
> > > > > non-ascii I find limiting to ascii to be rather restrictive.
> > > >
> > > > Best Regards,
> > > > Alexey
> > > >
> > > > >
> > > > > Thanks,
> > > > > Chris.
> > > > >
> > > > > > On Apr 11, 2019, at 9:41 AM, Alexey Melnikov via Datatracker
> > > <noreply@ietf.org> wrote:
> > > > > >
> > > > > > Alexey Melnikov has entered the following ballot position for
> > > > > > draft-ietf-netmod-module-tags-07: Discuss
> > > > > >
> > > > > > When responding, please keep the subject line intact and reply
> > > > > > to all email addresses included in the To and CC lines. (Feel
> > > > > > free to cut this introductory paragraph, however.)
> > > > > >
> > > > > >
> > > > > > Please refer to
> > > > > > https://www.ietf.org/iesg/statement/discuss-criteria.html
> > > > > > for more information about IESG DISCUSS and COMMENT positions.
> > > > > >
> > > > > >
> > > > > > The document, along with other ballot positions, can be found
> here:
> > > > > > https://datatracker.ietf.org/doc/draft-ietf-netmod-module-tags
> > > > > > /
> > > > > >
> > > > > >
> > > > > >
> > > > > > --------------------------------------------------------------
> > > > > > ----
> > > > > > ----
> > > > > > DISCUSS:
> > > > > > --------------------------------------------------------------
> > > > > > ----
> > > > > > ----
> > > > > >
> > > > > > This is generally a fine document, but after checking RFC 7950
> > > > > > syntax for strings I question why you think you need non ASCII
> > > > > > tags. There are so many problems that can arise from that. For
> > > > > > example, how would IANA be able to enforce uniqueness of
> > > > > > Unicode tags written in different Unicode canonicalisation
> forms?
> > > > > >
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > > _______________________________________________
> > > > netmod mailing list
> > > > netmod@ietf.org
> > > > https://www.ietf.org/mailman/listinfo/netmod
> > >
> > > --
> > > Juergen Schoenwaelder           Jacobs University Bremen gGmbH
> > > Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
> > > Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>
> >
> 
> --
> Juergen Schoenwaelder           Jacobs University Bremen gGmbH
> Phone: +49 421 200 3587         Campus Ring 1 | 28759 Bremen | Germany
> Fax:   +49 421 200 3103         <https://www.jacobs-university.de/>