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

Nandan Saha <nandan@arista.com> Thu, 12 March 2020 15:37 UTC

Return-Path: <nandan@arista.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 95A483A0C7C for <idr@ietfa.amsl.com>; Thu, 12 Mar 2020 08:37:34 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level:
X-Spam-Status: No, score=-2.099 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (2048-bit key) header.d=arista.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 w9PLF1Yl68ZT for <idr@ietfa.amsl.com>; Thu, 12 Mar 2020 08:37:32 -0700 (PDT)
Received: from mail-oi1-x22c.google.com (mail-oi1-x22c.google.com [IPv6:2607:f8b0:4864:20::22c]) (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 281F03A0C4C for <idr@ietf.org>; Thu, 12 Mar 2020 08:37:32 -0700 (PDT)
Received: by mail-oi1-x22c.google.com with SMTP id k18so5904179oib.3 for <idr@ietf.org>; Thu, 12 Mar 2020 08:37:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=arista.com; s=googlenew; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=a0peoQui5lslwtrN3Oxwox7Ja0XfeSO45kqRyu/9bgk=; b=IbyYdEuE67XrYY+3X19QmJV+ttmiyhJ1iDaVHhJWuu23xL30A3tPjUtVGooIfsNt1q 87efNV/aI5aRdByfS6U20rIAMfxoO3V0GA3yc76jjGdn91Kzo0Kc4sDZjrpTNsU/D6id BPsHOf8A1p0mZT+X2s3bqq46++Q1hKE/6kRXdosqhTyxGn0LgPvUKOd6ACNT8H5HrIsF wsK5myIRrKv9F7PLkApVpGTQFp3HI4AVGLl9GyKgRBHhSGc009Kk4KKGNyC+PYCUBW9N hGBP/y1dPJ2nJ1I9ruzCdRAhXFPpoY8NkP3xuIni19RZjw/cMMjZ6XIBsrPAwE/n4ew5 yRoA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=a0peoQui5lslwtrN3Oxwox7Ja0XfeSO45kqRyu/9bgk=; b=CRMxGsChdUAbyhNlJe6mBNdGpcLGwhw/q+KfkQaOlwJc9PEbeP+F6WMTOKb++EHKmg cnHOXgad0ZUJMUaTqQgXv9uR1VXXnKjFvna3cOFqPluKbM7y3FeL+FTMsrz4bcT9YqNa wRv7fbhkQJndOz4pP9e1+TW6UEazHIvHtotOXiFe0GKK10I2f21yAcFtaaCxURQ7tOSU kVq0G+TrVZLfSTBXtsfqAF3FmIhuoAtemDxJKFmDqU8g5XIqLCfnN93THgfl/ZWPXCqy tYlCHN/6NJrFUBYnbo0wzh6yDdxiX7hkDwMo/lQkz9QlLh5Ryprmky5ilUv4ON4ZxaTn EBoA==
X-Gm-Message-State: ANhLgQ3rH7QzE9sl8GU3uqa24t6d2MHws452ZEE+Oup+3hQmG5W9FUQB EiWlt2f7e/d1l3xLMwMJok95aZ3ABzSEScqWr/Sq1Q==
X-Google-Smtp-Source: ADFU+vtWyTm7gUxo6Zry/WEeUN50l0E7xf1BLB4pKztaqnj32S83eScDGtdngl+P3Qkl8Ijd4rmiQQAZtcJgOI1Aftg=
X-Received: by 2002:aca:b7d5:: with SMTP id h204mr2955991oif.130.1584027451315; Thu, 12 Mar 2020 08:37:31 -0700 (PDT)
MIME-Version: 1.0
References: <20200212231711.GB32507@pfrc.org> <CY4PR11MB158938E9C613B793782A27E1C11A0@CY4PR11MB1589.namprd11.prod.outlook.com> <MW3PR11MB4570FBEA8FF155159F98D47BC1FD0@MW3PR11MB4570.namprd11.prod.outlook.com> <DBBPR03MB541560C419E5DBED917B8891EEFD0@DBBPR03MB5415.eurprd03.prod.outlook.com>
In-Reply-To: <DBBPR03MB541560C419E5DBED917B8891EEFD0@DBBPR03MB5415.eurprd03.prod.outlook.com>
From: Nandan Saha <nandan@arista.com>
Date: Thu, 12 Mar 2020 21:07:19 +0530
Message-ID: <CAE+itjccvXbCsQSDOrRdK2hBkg-Kp15ca-qQ6-GNWTeRFpEavA@mail.gmail.com>
To: Andrew Alston <Andrew.Alston@liquidtelecom.com>
Cc: "Ketan Talaulikar (ketant)" <ketant=40cisco.com@dmarc.ietf.org>, idr wg <idr@ietf.org>
Content-Type: multipart/alternative; boundary="0000000000008d039305a0aa213b"
Archived-At: <https://mailarchive.ietf.org/arch/msg/idr/PYuRS2nEGnliWjpihWtJpBUGhuU>
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 15:37:42 -0000

On a slight tangent, can we please call the sub tlv "Candidate path name"
or some such. It's more accurate than "policy name" since the candidate
path is signalled in bgp, not a policy.

On Thu, Mar 12, 2020 at 5:57 PM Andrew Alston <
Andrew.Alston@liquidtelecom.com> wrote:

> I would be quite happy to stick to ascii here – it makes writing
> implementations simpler – and while I’ve seen one hardware vendor that had
> an entire cli in Cyrillic -  I’m not entirely sure that it justifies such a
> change.
>
>
>
> Then again – I’m a native English speaker so I’m biased – and the
> preference here isn’t really strong on my side.
>
>
>
> Andrew
>
>
>
>
>
> *From:* spring <spring-bounces@ietf.org> *On Behalf Of *Ketan Talaulikar
> (ketant)
> *Sent:* Thursday, 12 March 2020 15:22
> *To:* idr@ietf.org; spring@ietf.org
> *Cc:* Jeffrey Haas <jhaas@pfrc.org>;
> draft-ietf-idr-segment-routing-te-policy@ietf.org; Alvaro Retana <
> aretana.ietf@gmail.com>
> *Subject:* Re: [spring] draft-ietf-idr-segment-routing-te-policy Policy
> Name Sub-TLV considerations
>
>
>
> 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
>
> _______________________________________________
> spring mailing list
> spring@ietf.org
> https://www.ietf.org/mailman/listinfo/spring
> _______________________________________________
> Idr mailing list
> Idr@ietf.org
> https://www.ietf.org/mailman/listinfo/idr
>