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

"Joel M. Halpern" <jmh@joelhalpern.com> Fri, 14 July 2017 20:37 UTC

Return-Path: <jmh@joelhalpern.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 182A81316E5 for <sfc@ietfa.amsl.com>; Fri, 14 Jul 2017 13:37:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.702
X-Spam-Level:
X-Spam-Status: No, score=-2.702 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_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=joelhalpern.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 8byRwszG9taH for <sfc@ietfa.amsl.com>; Fri, 14 Jul 2017 13:37:48 -0700 (PDT)
Received: from maila2.tigertech.net (maila2.tigertech.net [208.80.4.152]) (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 32E7412EB13 for <sfc@ietf.org>; Fri, 14 Jul 2017 13:37:48 -0700 (PDT)
Received: from localhost (localhost [127.0.0.1]) by maila2.tigertech.net (Postfix) with ESMTP id 1C478D60394; Fri, 14 Jul 2017 13:37:48 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=joelhalpern.com; s=1.tigertech; t=1500064668; bh=EQFYiu7Ix0o4814v7u0LrNfFYfS3dFVxzfwh4InBR+Y=; h=Subject:To:References:From:Date:In-Reply-To:From; b=ClNZVj4iu7tni5oQgAGJ9zzpvpxxHuJsaCGmUABkXfoEczTqlowJZbEjAH7SNjLzX GZrbarwUMndCsFD/UTeRnM4PbwL5f01STyeadUx9eBoa40umEx/4RuzG9/bZjbCy+5 GfghlhS9UNYGbKYR4FWaQzyvwPM6m9kdojQJntLY=
X-Virus-Scanned: Debian amavisd-new at maila2.tigertech.net
Received: from Joels-MacBook-Pro.local (unknown [50.225.209.67]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by maila2.tigertech.net (Postfix) with ESMTPSA id 8F21F240412; Fri, 14 Jul 2017 13:37:46 -0700 (PDT)
To: Sumandra Majee <S.Majee@F5.com>, Dave Dolson <ddolson@sandvine.com>, James N Guichard <james.n.guichard@huawei.com>, "Kent Leung (kleung)" <kleung@cisco.com>, "sfc@ietf.org" <sfc@ietf.org>
References: <47E28E62-CE9E-47D4-989C-CFA81E6092B7@f5.com>
From: "Joel M. Halpern" <jmh@joelhalpern.com>
Message-ID: <05b0cf67-5d75-57d5-c15e-55d5d796b013@joelhalpern.com>
Date: Fri, 14 Jul 2017 16:37:45 -0400
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.2.1
MIME-Version: 1.0
In-Reply-To: <47E28E62-CE9E-47D4-989C-CFA81E6092B7@f5.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Language: en-US
Content-Transfer-Encoding: 8bit
Archived-At: <https://mailarchive.ietf.org/arch/msg/sfc/lxRAV9c-_O6Bm6aA7iDrZ0pI8Sc>
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: Fri, 14 Jul 2017 20:37:50 -0000

The current architecture and the current NSH document both avoid any 
discussion of or implication of using a MASK applied to the SP-ID.  It 
is a large field because of the range of use cases that were requested 
to be supported (some of which use a large number of service function paths.

Evne this use is compatible with using the full SP-ID and SI as the 
lookup keys for the forwarding decision.

Yours,
Joel

On 7/14/17 4:28 PM, Sumandra Majee wrote:
> Fundamentally it is all about how divide up the SPI+SI space.
> 
> However, we like the service path SPI to be unique per direction. If the 
> forward and reverse path reversing the order of traversal then use a bit 
> flag (simple algorithmic) to derive the reverse SPI. This is sort of how 
> our implementation works today.
> 
> While we are at SPI bitfield allocation topic, 24 bit is quite a lot, 
> apologies if it has been disused earlier.
> 
> I am sure implementers would use many of those bits for various other 
> things, in that case SFF needs to know the MASK flag to separate out 
> forwarding table pointer.
> 
> SPI-fwding-tablePtr = SP & MASK
> 
> *From: *sfc <sfc-bounces@ietf.org> on behalf of Dave Dolson 
> <ddolson@sandvine.com>
> *Date: *Friday, July 14, 2017 at 11:50 AM
> *To: *James N Guichard <james.n.guichard@huawei.com>, "Kent Leung 
> (kleung)" <kleung@cisco.com>, "sfc@ietf.org" <sfc@ietf.org>
> *Subject: *Re: [sfc] 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
> *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
> 
> 
> 
> _______________________________________________
> sfc mailing list
> sfc@ietf.org
> https://www.ietf.org/mailman/listinfo/sfc
>