Re: [sfc] clarification on Service Path ID for draft-penno-sfc-packet

"Kent Leung (kleung)" <kleung@cisco.com> Sun, 16 July 2017 11:37 UTC

Return-Path: <kleung@cisco.com>
X-Original-To: sfc@ietfa.amsl.com
Delivered-To: sfc@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 8398112F3CB for <sfc@ietfa.amsl.com>; Sun, 16 Jul 2017 04:37:53 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -14.522
X-Spam-Level:
X-Spam-Status: No, score=-14.522 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-0.001, SPF_HELO_PASS=-0.001, 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
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 8GV82TBj2rxU for <sfc@ietfa.amsl.com>; Sun, 16 Jul 2017 04:37:51 -0700 (PDT)
Received: from alln-iport-3.cisco.com (alln-iport-3.cisco.com [173.37.142.90]) (using TLSv1.2 with cipher DHE-RSA-SEED-SHA (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 36130126CD8 for <sfc@ietf.org>; Sun, 16 Jul 2017 04:37:51 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=22151; q=dns/txt; s=iport; t=1500205071; x=1501414671; h=from:to:subject:date:message-id:references:in-reply-to: mime-version; bh=GL5JXWQOd1vDvfM6e6/h1MLz8Gj93fbZRzUKxSootb8=; b=V183vkOmxMSqcC/V605EipU/qLZOn7NbZLqoBKTDKdiWfBy+8Hhl2Ae2 bhRo1Qa3TG3Ymhh9z1BNnjSTNtn/zMJoAnbxomtod1bK0IS9IRk7hN3X4 o6NPLl0umdLHn8tneWqMM9vKIF+l671UEaFfeQFaPwKSVUtlMikRaVijP U=;
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: A0DOAADkTmtZ/5hdJa1cGgEBAQECAQEBAQgBAQEBgm8+LWSBFAeOBJFflgSCEYVHAoNxPxgBAgEBAQEBAQFrKIUYAQEBAQMtXAIBCBEEAQEhBwcyFAkIAQEEARIIE4kwZLAdixMBAQEBAQEBAQEBAQEBAQEBAQEBAQEdgyiDTYUFhSCFPgWKUIxyh3ICixKIeZI4lVYBHziBCnUVh192AYdIgQ0BAQE
X-IronPort-AV: E=Sophos;i="5.40,368,1496102400"; d="scan'208,217";a="455657924"
Received: from rcdn-core-1.cisco.com ([173.37.93.152]) by alln-iport-3.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Jul 2017 11:37:49 +0000
Received: from XCH-RTP-009.cisco.com (xch-rtp-009.cisco.com [64.101.220.149]) by rcdn-core-1.cisco.com (8.14.5/8.14.5) with ESMTP id v6GBbnZr028321 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Sun, 16 Jul 2017 11:37:49 GMT
Received: from xch-rtp-006.cisco.com (64.101.220.146) by XCH-RTP-009.cisco.com (64.101.220.149) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Sun, 16 Jul 2017 07:37:48 -0400
Received: from xch-rtp-006.cisco.com ([64.101.220.146]) by XCH-RTP-006.cisco.com ([64.101.220.146]) with mapi id 15.00.1210.000; Sun, 16 Jul 2017 07:37:48 -0400
From: "Kent Leung (kleung)" <kleung@cisco.com>
To: James N Guichard <james.n.guichard@huawei.com>, Dave Dolson <ddolson@sandvine.com>, "sfc@ietf.org" <sfc@ietf.org>
Thread-Topic: clarification on Service Path ID for draft-penno-sfc-packet
Thread-Index: AdL8yGj6ijlxPpxFQhyonVi4uiBr2QABYlRQAACi1WAACSYE0ABL+q8g
Date: Sun, 16 Jul 2017 11:37:48 +0000
Message-ID: <be86de5fc01b47a6ab90bfdb23c1e89f@XCH-RTP-006.cisco.com>
References: <91d8a4564df24299a24bee2688c9f6a6@XCH-RTP-006.cisco.com> <BF1BE6D99B52F84AB9B48B7CF6F17DA3EF0D62@SJCEML702-CHM.china.huawei.com> <E8355113905631478EFF04F5AA706E98A9060316@wtl-exchp-2.sandvine.com> <BF1BE6D99B52F84AB9B48B7CF6F17DA3EF0DF8@SJCEML702-CHM.china.huawei.com>
In-Reply-To: <BF1BE6D99B52F84AB9B48B7CF6F17DA3EF0DF8@SJCEML702-CHM.china.huawei.com>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-ms-exchange-transport-fromentityheader: Hosted
x-originating-ip: [10.24.105.89]
Content-Type: multipart/alternative; boundary="_000_be86de5fc01b47a6ab90bfdb23c1e89fXCHRTP006ciscocom_"
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/sfc/ORLrRLI3O0bE5zbqZGEi5IHHE9Y>
Subject: Re: [sfc] clarification on Service Path ID for draft-penno-sfc-packet
X-BeenThere: sfc@ietf.org
X-Mailman-Version: 2.1.22
Precedence: list
List-Id: Network Service Chaining <sfc.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/sfc>, <mailto:sfc-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/sfc/>
List-Post: <mailto:sfc@ietf.org>
List-Help: <mailto:sfc-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/sfc>, <mailto:sfc-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 16 Jul 2017 11:37:53 -0000

Good discussion. I hope to correctly capture the preference of folks who had chimed in on this topic. It doesn't seem we've reached rough consensus.

Sect 5.4.1 (one service path ID, service index indicates flow direction):


-          Sumandra, Jim, Kent, Renaldo

Sect 5.4.2 (two service path IDs, each indicate flow direction):


-          Dave, Joel

BTW, I think both methods can support asymmetric paths as described in sect. 4.

Kent


From: James N Guichard [mailto:james.n.guichard@huawei.com]
Sent: Saturday, July 15, 2017 1:09 AM
To: Dave Dolson <ddolson@sandvine.com>; Kent Leung (kleung) <kleung@cisco.com>; sfc@ietf.org
Subject: RE: clarification on Service Path ID for draft-penno-sfc-packet

Yes understood but I was assuming no manipulation of the SI and my point was more from an operational perspective; if I use the same path ID in both directions then I cannot immediately tell in which direction the packets are flowing unless I go one step deeper and look at the SI leading to a correlation of SPI + SI to be able to figure out my traffic matrix. Not so if the SPI is uni-directional.

Jim

From: Dave Dolson [mailto:ddolson@sandvine.com]
Sent: Friday, July 14, 2017 2:51 PM
To: James N Guichard <james.n.guichard@huawei.com<mailto:james.n.guichard@huawei.com>>; Kent Leung (kleung) <kleung@cisco.com<mailto:kleung@cisco.com>>; sfc@ietf.org<mailto:sfc@ietf.org>
Subject: RE: clarification on Service Path ID for draft-penno-sfc-packet

There is not actually forwarding ambiguity, since SFF forwarding depends on *both* SPI and SI.
So for example, there is no ambiguity in forwarding to use SI in the range [0,127] of up-link and range [128,255] for down-link, on the same SPI.
The limitation is ~127 SFs per path instead of ~255.

As I see it, Kent's question is one of aesthetics. Do folks like the same SPI used for two directions?

Personally, I find use of a single SPI to be more elegant,  consuming only one path ID instead of two. (section 5.4.1).
It may make debugging easier as well.

Also, for what it's worth, we demonstrated this method of section 5.4.1 at a previous IETF hackathon.

-Dave


From: sfc [mailto:sfc-bounces@ietf.org] On Behalf Of James N Guichard
Sent: Friday, July 14, 2017 2:25 PM
To: Kent Leung (kleung); sfc@ietf.org<mailto:sfc@ietf.org>
Subject: Re: [sfc] clarification on Service Path ID for draft-penno-sfc-packet

Hi Kent,

[personal opinion ...] I have always assumed that the service path ID would be uni-directional given that it would be difficult to avoid collision in all forwarding scenarios. If you look at a basic SFC a-b-c and the service index is set to 255 at the classifiers a & c (which imho will be the normal practice) then at b you would have a conflict if the same service path ID is used in both directions.

Jim

From: sfc [mailto:sfc-bounces@ietf.org] On Behalf Of Kent Leung (kleung)
Sent: Friday, July 14, 2017 1:58 PM
To: sfc@ietf.org<mailto:sfc@ietf.org>
Subject: [sfc] clarification on Service Path ID for draft-penno-sfc-packet

Hi. We are working on a revision for this draft. There were 4 proposed solution options in section 5. During some discussions, most folks seem to favor the use of algorithmic method in section 5.4. However, there are 2 sub-options. One is based on same Service Path ID and using Service Index to determine flow direction (sect. 5.4.1). The other is based on setting high order bit on Serve Path ID, which determines flow direction (sect. 5.4.2). There are mixed opinions. One reason is that there may be the assumption the Service Path ID is uni-directional. No explicit wording of that nature has been encountered in the RFCs, maybe we missed something?

If Serve Path ID is required to be uni-directional, then the answer is easy (=> 5.4.2). We would like to solicit WG comments to get rough consensus and revised the next version with that solution. This problem is critical to address for Service Function that generate packet in reverse direction, especially security service functions as mentioned in draft-wang-sfc-ns-use-cases.

Thanks.

Kent