Re: [Idr] locator length : draft-li-idr-flowspec-srv6

Huaimo Chen <huaimo.chen@futurewei.com> Mon, 15 March 2021 14:26 UTC

Return-Path: <huaimo.chen@futurewei.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 8C2833A12ED for <idr@ietfa.amsl.com>; Mon, 15 Mar 2021 07:26:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.089
X-Spam-Level:
X-Spam-Status: No, score=-2.089 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, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, T_SPF_PERMERROR=0.01, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=futurewei.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 dS_OkbzLDTlz for <idr@ietfa.amsl.com>; Mon, 15 Mar 2021 07:26:07 -0700 (PDT)
Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on2107.outbound.protection.outlook.com [40.107.92.107]) (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 31FC93A12E9 for <idr@ietf.org>; Mon, 15 Mar 2021 07:26:07 -0700 (PDT)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=TNKMcrc/E1IaI0ISCiIT8DI2eFT2+YwhsPLv8hAXztjcPNycV/v7b87tqmc/v63PVtMEW0cuaJLtOC7wHEwow5NUDCuCodZsllTYjV1XhzYJrakkH7i5iF6GsIUJ3ssuDFFHlnFklDQlV0X+UML7NDR3prf4310PQwl7guGLxTl7uFCBmKihgUyQYykTmAzhCwpNY9/ccYaGfQAkfunLY1Hp71La/NrG81EMuDCZmwScAzCDqRPajsr0qCs7R7xzidzGq+OItVcFJUfli5+G7f2x+h9JmBRagVK+UsejJjNgrEu8R+Qiiu3zLBMpmdIXX0pZXbwTiuX4QPjjNz7zQA==
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=L/4RWJxH1M3gD8Yr7d7eH22Qz+6cEKJCzYUupFVGhGw=; b=RBfnrK6+foO0FxNuldFD27m/7kFn5zaoP+Visrld9NITKVazFly/AgXWU1eXkWVzko10uhdiUowyAXbdlpPvcd12ti5Ryz4DRrZVoKJ7ZBjZtIPOK9INIWdum6YY1vGrD9gEEwGbbM/wDjUmFSAOLKnHt3gYX2Mrhcpp8+oBDd1KbB6N1E+Mp4NXr33MixJOJPCLM7znLfsem6jqnE9zBztbX9w3/Zv3eClB3Diyf6upP8OA2PIzV9J6mI+IINAp4y9zj584BR2Sy43fkFBp1d+q3R3XJLIAB7ZGlJzeG+cMq8QMGAx0kohgaH0Kil6Y9S2+/TwIoHpBELnIx7Gf9g==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=futurewei.com; dmarc=pass action=none header.from=futurewei.com; dkim=pass header.d=futurewei.com; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Futurewei.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=L/4RWJxH1M3gD8Yr7d7eH22Qz+6cEKJCzYUupFVGhGw=; b=FxfS9146C14+6m/lRvtJEESB6IWScI0X5QG8LeUzcGoJCJKwFY51Ck8H5V1D/93ONmNRkCIwCPw1/ZlYxsS4TnfFrPNoN9sI+MbLn5bgBlDwxKZZPU8ByOglXZlMlEPNzKJ+PYRDq+CYt0DbMrm4Hms+Hj77aN4sfw1dSt9ZB6I=
Received: from MN2PR13MB4087.namprd13.prod.outlook.com (2603:10b6:208:263::16) by MN2PR13MB4005.namprd13.prod.outlook.com (2603:10b6:208:263::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3955.11; Mon, 15 Mar 2021 14:26:04 +0000
Received: from MN2PR13MB4087.namprd13.prod.outlook.com ([fe80::8cbf:200a:c112:a4b3]) by MN2PR13MB4087.namprd13.prod.outlook.com ([fe80::8cbf:200a:c112:a4b3%9]) with mapi id 15.20.3955.013; Mon, 15 Mar 2021 14:26:04 +0000
From: Huaimo Chen <huaimo.chen@futurewei.com>
To: "Joel M. Halpern" <jmh@joelhalpern.com>
CC: "idr@ietf.org" <idr@ietf.org>, Lizhenbin <lizhenbin@huawei.com>
Thread-Topic: locator length : draft-li-idr-flowspec-srv6
Thread-Index: AQHXF02tikGQcIMfGU6yjuwVAdoH0KqAcZQAgAAdKIaAAAH1gIAAN6eBgAAFuYCABFAXmg==
Date: Mon, 15 Mar 2021 14:26:03 +0000
Message-ID: <MN2PR13MB4087A47EBF88A2F69C0D9840F26C9@MN2PR13MB4087.namprd13.prod.outlook.com>
References: <MN2PR13MB40876899246382264C393D06F26F9@MN2PR13MB4087.namprd13.prod.outlook.com> <89430d8e-58c1-7854-27a5-b01a4cf9c43f@joelhalpern.com> <MN2PR13MB4087266ED6ECE72F5F281E86F26F9@MN2PR13MB4087.namprd13.prod.outlook.com> <41feb923-eeba-d7db-a048-1b335bf8f92b@joelhalpern.com> <MN2PR13MB40874FC93A03CCDE2A012ECBF26F9@MN2PR13MB4087.namprd13.prod.outlook.com>, <ad81e08a-09ab-ef9a-3295-ab3cf58b740d@joelhalpern.com>
In-Reply-To: <ad81e08a-09ab-ef9a-3295-ab3cf58b740d@joelhalpern.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: joelhalpern.com; dkim=none (message not signed) header.d=none;joelhalpern.com; dmarc=none action=none header.from=futurewei.com;
x-originating-ip: [73.114.233.24]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 456a6c2d-793a-4f01-b68b-08d8e7be43cd
x-ms-traffictypediagnostic: MN2PR13MB4005:
x-microsoft-antispam-prvs: <MN2PR13MB4005AC5A06CD71E99E818F84F26C9@MN2PR13MB4005.namprd13.prod.outlook.com>
x-ms-oob-tlc-oobclassifiers: OLM:6108;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: tTzHiW58V9eE9Rcmper8ErBfbucCBTKL5iSueae9qGRKtPs4EfwMxJAw/EMltqdqyIKEZ97fQWvsN07JJOKnmEI3gBbw+aQOhnJrVWnshP4YJu6/H1zQ40joK1vRX5VAfrPBYrU9ZRqRhCntZA231dZ24DfkgCNg0JmtFv4qbqmPfXg7iDaBozhle3VKvCR2sDumpJkDTaNr6R0exMugJsbgopjaHgMbBhvmzwZsseQbVzzZ+pp7yHFCbsCdP6cs1vlp26/py1Lm4h8uevR8hquiupyAfT1abilR8tzpyLpp02xb+aBjfdz+NCtET8inxWUxIr3zpLHWHbvp6Ml1LlE5ghk6lx3id3u93mBZKbER4b+h8dBSldQ/quDWDQpF2C7w61czhX2yhF9G+vQZRzmFJfmEU8ExHCIFMLb6Q9Z14Q3o7ti9C0zDtqLEGdjkatPwa8oF3oYvpn6F60GTNW9UuV5lR6+PLFzDeloTt+0XF4n/L3EitjsVvC6Z9p30ZltfDg+VuRyIUG2RbKwKu7dXcD5mlubaTl7LAw5JxhoxNgW1Gg3eZHdK6Z5BRLyO
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:MN2PR13MB4087.namprd13.prod.outlook.com; PTR:; CAT:NONE; SFS:(4636009)(396003)(39830400003)(376002)(366004)(346002)(136003)(52536014)(8676002)(4326008)(55016002)(33656002)(186003)(53546011)(83380400001)(316002)(5660300002)(6506007)(71200400001)(9686003)(54906003)(8936002)(64756008)(76116006)(2906002)(6916009)(26005)(86362001)(66476007)(66446008)(66556008)(66946007)(44832011)(478600001)(7696005)(19627405001); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata: iVCtxu6mfurKneYntuvYVWWJmyJabp6dttrrdBmp2fDT1/gHyc0cvQn2W9ILlFM5QInUYk+LPnEXR9rKQf8d8KNjpjx21OIXEChat9rZHo8ZcDT+FpHNs05IDjBU3z8uqRE/DS1zfi+dKQJbz+hRy8JR+UHbu7vpJxlNQjbP1YVD07b+b1VbbRAz7rx7kVXV7jw+IQ/+TrV/bOxaAoWLMzg9bdoH1VlxPubbDiI9PskA+RB+Uao2+w97aLQKbJed4svMjPWgcWDVpMGyDBP+aWMFowO0fFAztH/mc7aA4XC6UL8Sl8f8a76Uh36FST1hbtTyzL4VpRtH2g3gh49FZT1dU72GjBfkCw1lEfWBnXn7F6vCIpE6ojk3SnwPqrmUDO1e9ks4c1UFEBmzOD31WlTuWG9XZkrZ1CAHm82C23uLMin5r1qBIfBVfnHzzFYm4AsVb8LNEOpUQI8rhMVp1HOXCt/J6Fka3l5N2BVH+Vnc+g7ecbGWqq+dqtp2NEVR3n9/bW7kxlqabQB6jAvlZKNFv3bwqo05P3cNttc39dV1zw1bmfbSJzS/jxP7TIzc9YfGry+3D4JuH/zfz4OVQ9Z5//Uye4AugVx/Qvvk/f/NeNiLF/ZhNauIFNeXgqq3HOdCMUNI7VMfNE5fUZ6AN9aycHneWSpJDTlHICw+i4CO5sUFFl5OvPVjPLnhluEblg5IWW7yK02v01A0S+C3i6sIXE1RYI2EoVfZqljyvpCoSf5j9fxeiqAxEcVcInkqvfg4eY0HT5aNkwqE61CKn2KPtEX2u2WPGX61z98XbJkZ1aqqP33vYm5sur62ybS6M+J2VCnv4zv3lF+nySuApZgMka9X+BSR/QyRQ1Vf3NlgKydEj7rZaiTatAMR9pBiRyev0ofL78Phz0GC6YIANhCh/I3YrsPPl9jePJx/n/mgu1wnMPoeZuKPiY6pmNlMZhNcTllTkUBUVxrMOAsQ5PvUtdaD928/IbMDvZDCoSjsIF/MjIL+UfXd+6ktOqOyS2CJhKtO46ajIJ+bXNu3A4VV+zm5x4GfofSRzqaONvWXCKEP2wz6Ve5xtW8H9fG9+7ktvyRFFoHQG6HOfqH1sgc9lwpbyJX0lfbrF4LKRsDN6pKZlT4jE2ry8rwtfUyxcA0u1GQCr1fITpRM+/e+8EBMVS7P2DM5/X82WhPe/onhV4w1AZVSX4FnGSs1npPpZrUS87RpWKCcUFG3ypKEaQrMN8vbgGqLWXuye6fWCLi4okyoVZAOKfbiu0hA0i8e5C17XHGh/5HoKR4nMPxJ/F+yUd6KPPVjslJGFrjbciM=
x-ms-exchange-transport-forked: True
Content-Type: multipart/alternative; boundary="_000_MN2PR13MB4087A47EBF88A2F69C0D9840F26C9MN2PR13MB4087namp_"
MIME-Version: 1.0
X-OriginatorOrg: Futurewei.com
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: MN2PR13MB4087.namprd13.prod.outlook.com
X-MS-Exchange-CrossTenant-Network-Message-Id: 456a6c2d-793a-4f01-b68b-08d8e7be43cd
X-MS-Exchange-CrossTenant-originalarrivaltime: 15 Mar 2021 14:26:03.8052 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 0fee8ff2-a3b2-4018-9c75-3a1d5591fedc
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: 6zRxYiIeyaMZSXfS1KOm9hIO6nTHs9SNkC+v74SlUuv5lPYAjGytMRraaVqVZhlhyRlDCrOXlMlummd0/U5ckg==
X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR13MB4005
Archived-At: <https://mailarchive.ietf.org/arch/msg/idr/pJ1djUc2qvYHtEG7h_6TVuZPC8c>
Subject: Re: [Idr] locator length : draft-li-idr-flowspec-srv6
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: Mon, 15 Mar 2021 14:26:10 -0000

Hi Joel,

    Thanks much for your further comment.

    In the existing flow specification defined in RFC 8955 and 8956,
the operations lt (less than) and gt (greater than) are defined and
can be used on port.

    It seems that applying operations lt (less than) and gt (greater than)
on FUNC is similar to applying them on port.

Best Regards,
Huaimo

________________________________
From: Joel M. Halpern <jmh@joelhalpern.com>
Sent: Friday, March 12, 2021 3:29 PM
To: Huaimo Chen <huaimo.chen@futurewei.com>
Cc: idr@ietf.org <idr@ietf.org>; Lizhenbin <lizhenbin@huawei.com>
Subject: Re: locator length : draft-li-idr-flowspec-srv6

I have to disagree with your basic premise.  At least for LOC and FUNC
bits, less than and greater than are NOT meaningful comparisons.

Even for ARG bits, the only defined usage for the bits is such that
comparisons other than equal to / not equal to are meaningless.

Yours,
Joel

On 3/12/2021 3:19 PM, Huaimo Chen wrote:
> Hi Joel,
>
>      Thanks much for your further comment.
>
>      It seems that using loc, func and args in SID is simpler than using
> address prefix of SID for SRv6 flow specification. For matching/filtering
> on an IP destination address prefix, it seems that there is just bitwise
> pattern matching. For matching/filtering on a SID (loc, func and args in
> SID),
> there are a few operators such as eq, lt and gt (and combinations of them).
>
>      For flow specification(s) to match a range of functions such as
> from function value F1 to F1+1, to F1+n (where n > 1) in SID,
> using IP address prefix seems need (n+1) flow specifications, each of
> which is for one function value and would have two (type 1) components:
> one component for matching the locator and the other for matching the
> function value. Using loc and func in SID needs just one flow specification
> having one (type TBD) component with three <op, value> pairs. The first pair
> is for matching the locator and the other two for the range.
>
> Best Regards,
> Huaimo
>
> ------------------------------------------------------------------------
> *From:* Joel Halpern Direct <jmh.direct@joelhalpern.com>
> *Sent:* Friday, March 12, 2021 11:49 AM
> *To:* Huaimo Chen <huaimo.chen@futurewei.com>
> *Cc:* idr@ietf.org <idr@ietf.org>; Lizhenbin <lizhenbin@huawei.com>
> *Subject:* Re: locator length : draft-li-idr-flowspec-srv6
> Given that you have to check loc before func and check loc and func
> before arg, it would seem simpler to just use an address prefix.  Gets
> around all of the knowledge problems.
>
> Note that a UI for creating flowspec filters can allow the user to
> specify it in all sorts of ways.  that does not mean we need to put all
> of them in the protocol when they are equivalent.
>
> Yours,
> Joel
>
> On 3/12/2021 11:44 AM, Huaimo Chen wrote:
>> Hi Joel,
>>
>>      Thanks much for your further comment.
>>
>>      Just checking the FUNC bits should be limited. We will add some
>> text to state that in order to check the FUNC bits, the LOC needs to
>> be examined and matched first.
>>
>> Best Regards,
>> Huaimo
>>
>> ------------------------------------------------------------------------
>> *From:* Joel Halpern Direct <jmh.direct@joelhalpern.com>
>> *Sent:* Friday, March 12, 2021 9:58 AM
>> *To:* Huaimo Chen <huaimo.chen@futurewei.com>; Joel M. Halpern
>> <jmh@joelhalpern.com>
>> *Cc:* idr@ietf.org <idr@ietf.org>; Lizhenbin <lizhenbin@huawei.com>
>> *Subject:* Re: locator length : draft-li-idr-flowspec-srv6
>> An operator can assign B::/48 and C::?46  for Locators.  Sure, it would
>> usually be a single prefix with a single length.  But that is not required.
>>
>> When one is examining the LOC, sure, you can use the value length to
>> handle it.
>> But the way the mechanism is described, one could try to check just the
>> FUNC bits, without matching the LOC.
>> First, that has the problem of needing exogenous information about the
>> LOC length.
>>
>> And it is actually worse than that.  Testing the FUNC bits of the
>> destination field of an IP packet without checking the LOC bits is
>> actually meaningless.  You don't even know if the DA is an SRv6 SID.
>>
>> An yet further, there is no requirement that the encoding of the FUNC in
>> different SIDs uses the same value representation.  The standardized
>> values are for advertising in routing protocols, not for the packets.
>>
>> Net: I don't think having the field identification works.
>>
>> Yours,
>> Joel
>>
>> On 3/12/2021 9:51 AM, Huaimo Chen wrote:
>>> Hi Joel,
>>>
>>>      Thank you very much for your comment during the IETF 110.
>>>
>>>      Regarding to the lengths of locator(LOC)s and function(FUNCT)s in
>>> SIDs,
>>> RFC8986 says that the locator length, is flexible, and an operator is free
>>> to use the locator length of their choice. This seems indicating that the
>>> operator can select the length for the locator. After their selection, the
>>> the locator length is determined/fixed. This is illustrated by examples
>>> in RFC8986.
>>>
>>>      One example in the beginning of section 3.2 is as follows:
>>>         For example, a network operator may:
>>>            Assign block B::/48 to the SR domain
>>>            Assign a unique B:N::/64 block to each SRv6-enabled node in
>>> the domain.
>>> After this assignment, the length of the locators of the SIDs in the domain
>>> is 64 bits.
>>>
>>>      In the end of section 3.2, the text shows the Function fields of SIDs.
>>> The length of function(FUNCT)s is 16 bits.
>>>
>>>      When a SID is used in the domain, its locator length and function
>>> length
>>> should have been determined.
>>>
>>>      When an operator configures a SRv6 flow specification, involving
>>> a SID or a group of SIDs, s/he should have known the locator length and
>>> function length in the SID(s).
>>>
>>> Best Regards,
>>> Huaimo