Re: [sfc] TTL field within the NSH base header

<mohamed.boucadair@orange.com> Tue, 02 May 2017 06:29 UTC

Return-Path: <mohamed.boucadair@orange.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 E1A4C129BC4 for <sfc@ietfa.amsl.com>; Mon, 1 May 2017 23:29:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -5.399
X-Spam-Level:
X-Spam-Status: No, score=-5.399 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-2.8, RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001] autolearn=ham autolearn_force=no
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 PYjSUE_0f7sj for <sfc@ietfa.amsl.com>; Mon, 1 May 2017 23:29:22 -0700 (PDT)
Received: from relais-inet.orange.com (mta241.mail.business.static.orange.com [80.12.66.41]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 8F8F3129B19 for <sfc@ietf.org>; Mon, 1 May 2017 23:26:32 -0700 (PDT)
Received: from opfedar05.francetelecom.fr (unknown [xx.xx.xx.7]) by opfedar27.francetelecom.fr (ESMTP service) with ESMTP id 36F4A60197; Tue, 2 May 2017 08:26:31 +0200 (CEST)
Received: from Exchangemail-eme3.itn.ftgroup (unknown [xx.xx.50.57]) by opfedar05.francetelecom.fr (ESMTP service) with ESMTP id 07B5160085; Tue, 2 May 2017 08:26:31 +0200 (CEST)
Received: from OPEXCNORMAD.corporate.adroot.infra.ftgroup ([fe80::f1a0:3c6b:bc7b:3aaf]) by OPEXCNORM71.corporate.adroot.infra.ftgroup ([fe80::d559:a7fd:890d:dd99%21]) with mapi id 14.03.0339.000; Tue, 2 May 2017 08:26:29 +0200
From: mohamed.boucadair@orange.com
To: Greg Mirsky <gregimirsky@gmail.com>
CC: James N Guichard <james.n.guichard@huawei.com>, Dave Dolson <ddolson@sandvine.com>, "sfc@ietf.org" <sfc@ietf.org>
Thread-Topic: [sfc] TTL field within the NSH base header
Thread-Index: AQHSwwhQhW5bvXGwSoCeYu3QIaIxxqHgkWYg
Date: Tue, 02 May 2017 06:26:28 +0000
Message-ID: <787AE7BB302AE849A7480A190F8B933009E5F37B@OPEXCNORMAD.corporate.adroot.infra.ftgroup>
References: <BF1BE6D99B52F84AB9B48B7CF6F17DA3DD5F8E@SJCEML701-CHM.china.huawei.com> <787AE7BB302AE849A7480A190F8B933009E5E3B9@OPEXCNORMAD.corporate.adroot.infra.ftgroup> <E8355113905631478EFF04F5AA706E98705BD0A0@wtl-exchp-1.sandvine.com> <787AE7BB302AE849A7480A190F8B933009E5E4BD@OPEXCNORMAD.corporate.adroot.infra.ftgroup> <BF1BE6D99B52F84AB9B48B7CF6F17DA3DD6993@SJCEML701-CHM.china.huawei.com> <787AE7BB302AE849A7480A190F8B933009E5F2A9@OPEXCNORMAD.corporate.adroot.infra.ftgroup> <CA+RyBmXD6gKDh4RViZR8CjbTWctSqWxdfxATYEGcJ_OF=gX9SQ@mail.gmail.com>
In-Reply-To: <CA+RyBmXD6gKDh4RViZR8CjbTWctSqWxdfxATYEGcJ_OF=gX9SQ@mail.gmail.com>
Accept-Language: fr-FR, en-US
Content-Language: fr-FR
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
x-originating-ip: [10.168.234.5]
Content-Type: multipart/alternative; boundary="_000_787AE7BB302AE849A7480A190F8B933009E5F37BOPEXCNORMADcorp_"
MIME-Version: 1.0
Archived-At: <https://mailarchive.ietf.org/arch/msg/sfc/nVoHlLd_r_eAqvl7oc16nkjMRsg>
Subject: Re: [sfc] TTL field within the NSH base header
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: Tue, 02 May 2017 06:29:26 -0000

Hi Greg,

Please see inline.

Cheers,
Med

De : Greg Mirsky [mailto:gregimirsky@gmail.com]
Envoyé : mardi 2 mai 2017 07:53
À : BOUCADAIR Mohamed IMT/OLN
Cc : James N Guichard; Dave Dolson; sfc@ietf.org
Objet : Re: [sfc] TTL field within the NSH base header

Hi Med, et. al,
I'm somewhat lost at the need to discuss egress SFF as special case in regard to TTL handling. I believe that we've agreed that:

  *   receiving TTL==0 is valid;
[Med] IMHO, this is only valid when received from a classifier.

  *   TTL is to be decremented by 1 before being forwarded to the next SFF.
[Med] Yes.
Special case - TTL of value 0. This case is handled as TTL equals 64 and thus packet is expected to be transmitted with TTL of 63;
[Med] Yes.

  *   egress SFF that terminates SFC, as I understand, removes NSH and the TTL altogether. SFC TTL does not play any part after SFC has been terminated.
[Med] The case I was concerned with is an NSH packet received with SHL=1. I wanted that packet is be presented to SFs attached to that SFF (and, once those SFs are consumed, strip nsh + forward to next-hop), not deleting it.
What have I missed? Appreciate your comments.

Regards,
Greg

On Mon, May 1, 2017 at 10:39 PM, <mohamed.boucadair@orange.com<mailto:mohamed.boucadair@orange.com>> wrote:
Hi Jim,

Yes, your wording is better: “SFFs that terminate a service chain MUST forward the packet even if SHL is decremented to 0”

Thank you.

Cheers,
Med

De : James N Guichard [mailto:james.n.guichard@huawei.com<mailto:james.n.guichard@huawei.com>]
Envoyé : lundi 1 mai 2017 16:22
À : BOUCADAIR Mohamed IMT/OLN; Dave Dolson; sfc@ietf.org<mailto:sfc@ietf.org>

Objet : RE: TTL field within the NSH base header

I don’t understand this sentence as if an SFF is terminating a service chain then it *wont* be forwarding the packets to attached SFs; Shouldn’t this sentence read “SFFs that terminate a service chain MUST forward the packet even if SHL is decremented to 0” ?

Jim

From: mohamed.boucadair@orange.com<mailto:mohamed.boucadair@orange.com> [mailto:mohamed.boucadair@orange.com]
Sent: Friday, April 28, 2017 10:38 AM
To: Dave Dolson <ddolson@sandvine.com<mailto:ddolson@sandvine.com>>; James N Guichard <james.n.guichard@huawei.com<mailto:james.n.guichard@huawei.com>>; sfc@ietf.org<mailto:sfc@ietf.org>
Subject: RE: TTL field within the NSH base header

Re-,

I see SHL as a means to prevent SFF loops. There is no value in deleting a packet after an SFF decrement the SHL to 0, but that packet is to be passed to SFs that are attached to this SFF. The packet will be forwarded after stripping the NSH header; no risk for SFF loops out there. No?

Cheers,
Med

De : Dave Dolson [mailto:ddolson@sandvine.com]
Envoyé : vendredi 28 avril 2017 16:29
À : BOUCADAIR Mohamed IMT/OLN; James N Guichard; sfc@ietf.org<mailto:sfc@ietf.org>
Objet : RE: TTL field within the NSH base header

Med,

“SFFs that terminate a service chain MUST forward the packet to attached SFs even if SHL is decremented to 0.”
I don’t think this is right.
If TTL/SHL is decremented to 0, this must not be forwarded as NSH.
I see that *receiving* a packet with SHL=1 can result in chain termination, i.e., NSH decapsulation. But not forwarding as NSH with SHL=0.

-Dave


From: sfc [mailto:sfc-bounces@ietf.org] On Behalf Of mohamed.boucadair@orange.com<mailto:mohamed.boucadair@orange.com>
Sent: Friday, April 28, 2017 9:36 AM
To: James N Guichard; sfc@ietf.org<mailto:sfc@ietf.org>
Subject: Re: [sfc] TTL field within the NSH base header

Hi Jim, all,

I have the following comments :

•         Change “TTL” to “SFF Hop Limit (SHL)” because this field is not about a time to live but about a limit of SFF hops to be crossed.

•         I don’t understand what is meant by “testing”.

•         I suggest to make this change to cover the following points:

o   SHL should be configurable by the control plane.

o   Packets can be forwarded to SFs even if SHL is decremented to 0 for the terminating SFF.

o   I don’t think it is a good idea to include “Decrementing by a value of 1 from 0 shall result in a TTL value of 63” because this will lead to a broken mechanism.

OLD:
TTL: Service plane time-to-live. An SFF MUST decrement the TTL by a value of 1 for all NSH packets it receives. Decrementing by a value of 1 from 0 shall result in a TTL value of 63. The default for originating an NSH packet is a TTL value of 63. The decrement SHALL occur before testing for 0. After decrement, if the TTL is 0, the NSH packet MUST NOT be forwarded.

NEW:
SHL (SFF Hop Limit): Indicates the maximum SFF hops for a service chain. The initial SHL value SHOULD be configurable via the control plane; the configured initial value can be specific to a chain or all chains. If no initial value is explicitly provided, the default initial SHL value 63 MUST be used. Each SFF involved in forwarding an NSH packet MUST decrement SHL value by 1. The packet MUST NOT be forwarded to a next hop SFF if SHL is decremented to zero. SFFs that terminate a service chain MUST forward the packet to attached SFs even if SHL is decremented to 0.

Thank you.

Cheers,
Med

De : sfc [mailto:sfc-bounces@ietf.org] De la part de James N Guichard
Envoyé : jeudi 27 avril 2017 20:54
À : sfc@ietf.org<mailto:sfc@ietf.org>
Objet : [sfc] TTL field within the NSH base header

Dear WG:

Having reviewed all of the email discussion on the mailing list it appears to the chairs that we have consensus to add a TTL field to the NSH base header. We would like to propose the following changes:

Section 3.2:
Update figure 2 as follows:

     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
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
    |Ver|O|R|    TTL    |   Length  |R|R|R|R|MD Type| Next Protocol |
    +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Add the following text after figure 2:

TTL: Service plane time-to-live. An SFF MUST decrement the TTL by a value of 1 for all NSH packets it receives. Decrementing by a value of 1 from 0 shall result in a TTL value of 63. The default for originating an NSH packet is a TTL value of 63. The decrement SHALL occur before testing for 0. After decrement, if the TTL is 0, the NSH packet MUST NOT be forwarded.

Section 3.4:
Update figure 4 to reflect the new base header format as per section 3.2 base header.

Section 3.5:
Update figure 5 to reflect the new base header format as per section 3.2 base header.

Section 12.2.1:
Current text is as follows:

   There are ten bits at the beginning of the NSH Base Header.  New bits
   are assigned via Standards Action [RFC5226].

   Bits 0-1 - Version
   Bit 2 - OAM (O bit)
   Bit 3 - Critical TLV (C bit)
   Bits 4-9 - Reserved

Replace entire text as follows:

   There are eight reserved bits in the NSH Base Header. New bits
   are assigned via Standards Action [RFC5226].

   Bits 0-1 - Version
   Bit 2 - OAM (O bit)
   Bit 3 - Reserved
   Bits 16-19 - Reserved

Section 12.2.3:
Current text has the MD-type as 8-bit values.

Update text for this section and table 1 to reflect 4-bit values *not* 8-bit values.

Please review carefully and indicate support for these changes (or any changes to the suggested text).

Thanks,

Jim & Joel






_______________________________________________
sfc mailing list
sfc@ietf.org<mailto:sfc@ietf.org>
https://www.ietf.org/mailman/listinfo/sfc