Re: [Idr] draft-ietf-idr-segment-routing-te-policy Policy Name Sub-TLV considerations

"Ketan Talaulikar (ketant)" <ketant@cisco.com> Thu, 12 March 2020 12:21 UTC

Return-Path: <ketant@cisco.com>
X-Original-To: idr@ietfa.amsl.com
Delivered-To: idr@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 20B993A0EFB; Thu, 12 Mar 2020 05:21:40 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -9.598
X-Spam-Level:
X-Spam-Status: No, score=-9.598 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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=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=FaNyJiie; dkim=pass (1024-bit key) header.d=cisco.onmicrosoft.com header.b=F+zgbnbf
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 jRaAjzmf5Voh; Thu, 12 Mar 2020 05:21:38 -0700 (PDT)
Received: from rcdn-iport-9.cisco.com (rcdn-iport-9.cisco.com [173.37.86.80]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id E22853A0EF5; Thu, 12 Mar 2020 05:21:37 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=4896; q=dns/txt; s=iport; t=1584015698; x=1585225298; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-transfer-encoding:mime-version; bh=ndnjB+m5DH0AJ5rtxdMMgKXOZ+el3EThgmG+R7PnMms=; b=FaNyJiievq62k3GsFduIaDToUbqkY5yrTuPnRQC3EsIk65OpZQCtdgmD rls1Tk+Jz7kUY3Kl0f50rArpmaWTCoqFQ47u6KuIC2+wJuDFrafxUb1Xe JVO5nnkJp5xG/i82UthwsOio4i1gQVc/06v4o0Q92E2g/mPC29A/o08XB Q=;
IronPort-PHdr: 9a23:sYgsMhV/18JdugKU82PnoGA3QD7V8LGuZFwc94YnhrRSc6+q45XlOgnF6O5wiEPSANSJ8OpK3uzRta2oGXcN55qMqjgjSNRNTFdE7KdehAk8GIiAAEz/IuTtank5EdhLUkNN9HCgOk8TE8H7NBXf
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0CyAAAQKGpe/4wNJK1cChoBAQEBAQEBAQEDAQEBAREBAQECAgEBAQGBe4FUJCwFbFggBAsqCodQA4pvgl+YFoJSA1QJAQEBDAEBJQgCBAEBhEMCghYkOBMCAwEBCwEBBQEBAQIBBQRthVYMhWMBAQEBAxIoBgEBNwELBAIBCBEEAQEfEDIdCAIEAQ0FCA0NgwWCSgMuAQ6gMQKBOYhigieCfwEBBYUgGIIMAwaBOIUhDYcBGoFBP4ERR4JNPoJkAQECAYE1BSqDQYIsjgCJB5g8dgqCPIZqbI80mz6PAYkAklkCBAIEBQIOAQEFgWkigVhwFYMnUBgNjh0JGoNQhRSFQXQCAYEmik+BMgGBDwEB
X-IronPort-AV: E=Sophos;i="5.70,544,1574121600"; d="scan'208";a="650685602"
Received: from alln-core-7.cisco.com ([173.36.13.140]) by rcdn-iport-9.cisco.com with ESMTP/TLS/DHE-RSA-SEED-SHA; 12 Mar 2020 12:21:36 +0000
Received: from XCH-ALN-002.cisco.com (xch-aln-002.cisco.com [173.36.7.12]) by alln-core-7.cisco.com (8.15.2/8.15.2) with ESMTPS id 02CCLaTo027893 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=FAIL); Thu, 12 Mar 2020 12:21:36 GMT
Received: from xhs-aln-002.cisco.com (173.37.135.119) by XCH-ALN-002.cisco.com (173.36.7.12) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 12 Mar 2020 07:21:36 -0500
Received: from xhs-aln-003.cisco.com (173.37.135.120) by xhs-aln-002.cisco.com (173.37.135.119) with Microsoft SMTP Server (TLS) id 15.0.1473.3; Thu, 12 Mar 2020 07:21:35 -0500
Received: from NAM11-DM6-obe.outbound.protection.outlook.com (173.37.151.57) by xhs-aln-003.cisco.com (173.37.135.120) with Microsoft SMTP Server (TLS) id 15.0.1473.3 via Frontend Transport; Thu, 12 Mar 2020 07:21:35 -0500
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ZcUloElEexdIOVDrl/xNyLDSImtmLtfoT7GyhU9x/yms2T56HgJzTNEvX/sVhGkAQWejyGBCSXCph4aoS+ZvZFCF2FiZrLQA8YkNqLNZmRR0oGmfeAkDYVLWNOJLHb6L0+E8osZr3WRZ9XMPob17yY+jS9B28KiuTC8NaJHfHkRNIBIQFEHh4WzKn+Tyir02U0KULVyviAbIiBdpThP9BhrwjHf1zNcYIvzqmm7b1T+3oF0i87loSgBc0W0e/eaS3DE4/TbPQPxxOPfw3M+mYaZ4NrODgBJd5TyPTXfn2Bc5WpihSeya+uNz5wXYtQC7nZ+Cn+FrRNDbuhbzvaKC8g==
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=5BoCHov6Rx34tnAQYmtLT17ur4XlnRZODUmIHUNQ8JI=; b=HFiizA4jPGfnGLA5cp+TYm7RKuaz8k3xpzNO4jBuvDgMsow8u6ddPHVc2wKJrcwnzTbxyN01V5LpT9/jlOCfDJsnMuQmEH+qbw1UliGVkPa/knB13qJYttYNEyZeuXhsiUmfryBIeYRD95kOTFGaLe4Uj0gPSBgONKnlJljCIaGeYkxP4GnkKWHXSg6wECp6ZvZbx1nWUkObcVX8+r5VlfYUnsMf+M4FLsIVJxr7eMsfSt8VFjdN4BSc/H8NEJtrw7XOtAgvZuqzgPjlydSaCDhIYzYu8zVi9N5KxYczBZn4srq5G83YBBy1gF8PodwR7YFQ+MYxS1JdeQ1xeVKJ6w==
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=5BoCHov6Rx34tnAQYmtLT17ur4XlnRZODUmIHUNQ8JI=; b=F+zgbnbfuXbVbkchU8mU0aFLIMGnxWh9go0XLJN5tSzAPPcvXtMZuYv9IAt84eG/Rwxe483yByY1aK1UUk0WSSPaDh29jirQ9vxreHnjg3KLYZQlrdOengRaXaS4n4rtmZuVJ9inMSCl+BwAArpMMOzn6OOszBSz7TbiSBcXhaQ=
Received: from MW3PR11MB4570.namprd11.prod.outlook.com (2603:10b6:303:5f::22) by MW3PR11MB4617.namprd11.prod.outlook.com (2603:10b6:303:59::24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.2793.17; Thu, 12 Mar 2020 12:21:34 +0000
Received: from MW3PR11MB4570.namprd11.prod.outlook.com ([fe80::95ae:a984:9998:f2c8]) by MW3PR11MB4570.namprd11.prod.outlook.com ([fe80::95ae:a984:9998:f2c8%7]) with mapi id 15.20.2793.018; Thu, 12 Mar 2020 12:21:34 +0000
From: "Ketan Talaulikar (ketant)" <ketant@cisco.com>
To: "idr@ietf.org" <idr@ietf.org>, "spring@ietf.org" <spring@ietf.org>
CC: Alvaro Retana <aretana.ietf@gmail.com>, Jeffrey Haas <jhaas@pfrc.org>, "draft-ietf-idr-segment-routing-te-policy@ietf.org" <draft-ietf-idr-segment-routing-te-policy@ietf.org>
Thread-Topic: draft-ietf-idr-segment-routing-te-policy Policy Name Sub-TLV considerations
Thread-Index: AQHV4fnX9GqjNaH+OECMSUudeTzukagZZg2AgCujLxA=
Date: Thu, 12 Mar 2020 12:21:34 +0000
Message-ID: <MW3PR11MB4570FBEA8FF155159F98D47BC1FD0@MW3PR11MB4570.namprd11.prod.outlook.com>
References: <20200212231711.GB32507@pfrc.org> <CY4PR11MB158938E9C613B793782A27E1C11A0@CY4PR11MB1589.namprd11.prod.outlook.com>
In-Reply-To: <CY4PR11MB158938E9C613B793782A27E1C11A0@CY4PR11MB1589.namprd11.prod.outlook.com>
Accept-Language: en-GB, en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: spf=none (sender IP is ) smtp.mailfrom=ketant@cisco.com;
x-originating-ip: [72.163.220.23]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: e25c54a2-4f42-4f22-f7cc-08d7c67fe79d
x-ms-traffictypediagnostic: MW3PR11MB4617:
x-microsoft-antispam-prvs: <MW3PR11MB46171221A70C50B9BE896CADC1FD0@MW3PR11MB4617.namprd11.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-forefront-prvs: 0340850FCD
x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(4636009)(396003)(39860400002)(136003)(346002)(376002)(366004)(199004)(478600001)(966005)(26005)(2906002)(71200400001)(53546011)(6506007)(55016002)(5660300002)(52536014)(64756008)(66446008)(66946007)(76116006)(4326008)(66476007)(66556008)(9686003)(8676002)(81156014)(81166006)(8936002)(33656002)(86362001)(186003)(54906003)(7696005)(110136005)(316002); DIR:OUT; SFP:1101; SCL:1; SRVR:MW3PR11MB4617; H:MW3PR11MB4570.namprd11.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; 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: +codBL3ese16pFYaetnBePEYDgtctyZNMIby+pNDT9tH13x1kKhocpGoUvqC/0FQuaVZAB5XjU8nUPmSU4B7hOaprXNzDc8wnB/TIGYqn8HwbcHbvqmUJWoql+0PiyoGVOaiQUUgz6HHThl69xzz4Zjs5DHHQU8mRjK6S4kgKekWvEi2FR5NowiCmlyqG21m1k+FcgHI5Jb451G5nZWkWjcxiF4H7reYHo38O15PgC+zto3DD+eh2wZ3/cSq24d5k/c6BeCByE4SQXP90pukNYYw1kmQq/kZzJc1phUEAR+gf3WW1HEA6XsdeXg4HGFphdFJpnLOp/W4pG7QjUeeS+IyN8c++U5XWJKYq1VPodr+dOeB2zofICC+AvTpmV/6rHu/xLQrZyse52nbzYo2Rsvtplb8iIqe+v+A4jXvjU8gLgkGxt1kA4oB/5n486Rw+FJ6AkxNnPKdjikwhFozkUlICO3mWJkYseFBI+BdWKLHPcU7YT5TPslpEaR+a2wAP0TZG8TyMpcAjuU0RS/7lA==
x-ms-exchange-antispam-messagedata: K6NvgCiw2vYwEy/8EW7MluVy1cnfUYglPNDhlsVcuyqQeUYrm/A1b8TtQe9x+O7LeiN0nYpB7EG+KjiesyapX9t88jyOPS01G6lf15cq3761lAXdAx613XzsYEMkZMqCab9Q9V++LMUqno0lgsHPMg==
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-Network-Message-Id: e25c54a2-4f42-4f22-f7cc-08d7c67fe79d
X-MS-Exchange-CrossTenant-originalarrivaltime: 12 Mar 2020 12:21:34.2721 (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: lSJq0QnWeGH6fvwmsQ+IYNUdmxoQLqS3/2hQyHVwt6ixFRZvD5czq9xafMRCSLQRyZVyiVUK8hRB5JmdF7m4cA==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW3PR11MB4617
X-OriginatorOrg: cisco.com
X-Outbound-SMTP-Client: 173.36.7.12, xch-aln-002.cisco.com
X-Outbound-Node: alln-core-7.cisco.com
Archived-At: <https://mailarchive.ietf.org/arch/msg/idr/-zzr4EXNhQQb-_aHEbpnTyuXS3Q>
Subject: Re: [Idr] draft-ietf-idr-segment-routing-te-policy Policy Name Sub-TLV considerations
X-BeenThere: idr@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Inter-Domain Routing <idr.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/idr>, <mailto:idr-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/idr/>
List-Post: <mailto:idr@ietf.org>
List-Help: <mailto:idr-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/idr>, <mailto:idr-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 12 Mar 2020 12:21:40 -0000

Hello,

Would like to bring back this topic for discussion and inputs from the IDR & SPRING WGs. 

We need to ask if the "SR Policy Name" object is something that needs localization (i.e. we change the encoding from ASCII to UTF-8).

According to rfc6365 "Localization is the act of tailoring an application for a different language or script or culture."  The question then arises: would someone want to define a policy name in something other than a language supported by ASCII?  English is supported, but there are other languages which are not.

This object traces it roots to the draft-ietf-spring-segment-routing-policy document which indicates the use of "printable ASCII characters" : https://tools.ietf.org/html/draft-ietf-spring-segment-routing-policy-06#section-2.1
So any changes to the encoding would need to be reflected in this document (and other protocols and Yang models as an extension).

Further on, the equivalent object in PCEP has been already defined as using ASCII in the now published https://tools.ietf.org/html/rfc8231#section-7.3.2 

Based on the WG inputs, we can determine the next course of action.

Thanks,
Ketan

-----Original Message-----
From: Ketan Talaulikar (ketant) 
Sent: 13 February 2020 23:38
To: Jeffrey Haas <jhaas@pfrc.org>; draft-ietf-idr-segment-routing-te-policy@ietf.org; idr@ietf.org
Subject: RE: draft-ietf-idr-segment-routing-te-policy Policy Name Sub-TLV considerations

Hi Jeff,

I agree with you about the limits on the policy name size. 

I am not aware of any IETF standard that mandates the use of UTF-8 for encoding of string for names. The similar object in PCEP is encoded in ASCII - https://tools.ietf.org/html/rfc8231#section-7.3.2 

Thanks,
Ketan

-----Original Message-----
From: Jeffrey Haas <jhaas@pfrc.org> 
Sent: 12 February 2020 15:17
To: draft-ietf-idr-segment-routing-te-policy@ietf.org; idr@ietf.org
Subject: draft-ietf-idr-segment-routing-te-policy Policy Name Sub-TLV considerations

Authors,

In draft-ietf-idr-segment-routing-te-policy-08, Section 2.4.6 we have a TLV for Policy Name.  Its text is:

: 2.4.6.  Policy Name Sub-TLV
: 
:    An operator MAY set the Policy Name sub-TLV to attach a symbolic name
:    to the SR Policy candidate path.
: 
:    Usage of Policy Name sub-TLV is described in section 2 in
:    [I-D.ietf-spring-segment-routing-policy].
: 
:    The Policy Name sub-TLV may exceed 255 bytes length due to long
:    policy name.  Therefore a 2-octet length is required.  According to
:    [I-D.ietf-idr-tunnel-encaps], the first bit of the sub-TLV codepoint
:    defines the size of the length field.  Therefore, for the Policy Name
:    sub-TLV a code point of 128 or higher is used.
: 
:    The Policy Name sub-TLV is optional and it MUST NOT appear more than
:    once in the SR Policy TLV.
: 
:    The Policy Name sub-TLV has following format:
: 
:    0                   1                   2                   3
:     0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
:    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
:    |     Type      |   Length                      |   RESERVED    |
:    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
:    //                        Policy Name                          //
:    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
: 
:    Where:
: 
:       Type: 129.
: 
:       Length: Variable.
: 
:       RESERVED: 1 octet of reserved bits.  SHOULD be set to zero on
:       transmission and MUST be ignored on receipt.
: 
:       Policy Name: Symbolic name for the policy.  It SHOULD be a string
:       of printable ASCII characters, without a NULL terminator.

draft-ietf-spring-segment-routing-policy-06, Section 2.1 discusses this
Sub-TLV:

:    An implementation MAY allow assignment of a symbolic name comprising
:    of printable ASCII characters to an SR Policy to serve as a user-
:    friendly attribute for debug and troubleshooting purposes.  Such
:    symbolic names may identify an SR Policy when the naming scheme
:    ensures uniqueness.

There are two observations I'd like to make:
1. A 65K length isn't very likely in BGP. :-)  I suggest that greater guidance for shorter names should be offered. For example, perhaps limit the length to 1K.  Alternatively, offer advice such as: "Implementations may choose to truncate long Policy Names".

2. The guidance about "printable ASCII" is rather old-style and likely to run askance of IESG review for internationalization considerations.  I'd suggest that the field be encoded in UTF-8 and make reference to print-safety similar to RFC 8203 (BGP Administrative Shutdown) in its Security Considerations.

-- Jeff