Re: [Detnet-dp-dt] detnet LSPs and PWs

Stewart Bryant <stewart.bryant@gmail.com> Wed, 15 February 2017 09:02 UTC

Return-Path: <stewart.bryant@gmail.com>
X-Original-To: detnet-dp-dt@ietfa.amsl.com
Delivered-To: detnet-dp-dt@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 7A9761294CD for <detnet-dp-dt@ietfa.amsl.com>; Wed, 15 Feb 2017 01:02:47 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.698
X-Spam-Level:
X-Spam-Status: No, score=-2.698 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_LOW=-0.7, 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=gmail.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 78KcLhEFq-yz for <detnet-dp-dt@ietfa.amsl.com>; Wed, 15 Feb 2017 01:02:45 -0800 (PST)
Received: from mail-wm0-x243.google.com (mail-wm0-x243.google.com [IPv6:2a00:1450:400c:c09::243]) (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 0D60912940E for <detnet-dp-dt@ietf.org>; Wed, 15 Feb 2017 01:02:44 -0800 (PST)
Received: by mail-wm0-x243.google.com with SMTP id c85so7107006wmi.1 for <detnet-dp-dt@ietf.org>; Wed, 15 Feb 2017 01:02:44 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to; bh=ybrkkK+/3J2/WTpIombMuByjEPmapBIlua1/dNU2kaY=; b=Yjw9AY9DDVwN9deioMeyiQhw7g8Rq05tgCw/+3cluy3DX3iTYGZYnV8W1/Erq+xXwQ oOM9J5N8qe4krx7Bnvb3TQftD/W8nvuNDaN2yeqpr085RNdst9DpPJTY0B6EnvrI9SAp swuj2P+YOz8wrvN/epgBMy35DszYcm+sheLmzt3YVnsoLJUqjqqjKmMvcIou7dNnWJ9e coafZ98l4xuG/wGFGFc3q2lAUMCNXV1gu/LHZmmZswjRUJYkneKpzs5PHvPHyNoqs06E r9sq+ntc6lM3CO3z1l1lFxrJSt1y6tXSHS7Jct6Jqdn2pBja8YyIA5GR6154EMo6lUhQ sQsw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to; bh=ybrkkK+/3J2/WTpIombMuByjEPmapBIlua1/dNU2kaY=; b=K9Yjix6BOWe8302e7upSYoaZHZ5sBvZS+JEf9ux9ry4ZLqleMmruGU064NZMc4Hojn Xhhj5xJPiQK2agyShpvM2gjcDpDBw/X3Foz0wKdJ+Nb9DRfAcpgiIoHNyVx9lWobsA4D HlZ7eTJZw6Mi7OGftp6EjNR62Uld/VW8ipuZ7/7CpaJqrWkroISh8nV3o+eLHOfsfZZq wy7+Ge4tHJ+IeXPpniM8Xt35+JZp0f4u/ZwK6fwzHgrhGIEMax5l+8FzgSeYRvzonyH2 XMsWXuqVDNpy5L5PH9kIVYvKUV8i/IkOgQkmgb2Hm6NNZRd92PgoQCyQu/pP/ShOSCe0 ixPg==
X-Gm-Message-State: AMke39n9xofZAUO+d6qeBns8sB/TQcS0THepwKygTIqkkDuS0k+oG3DXg1x5VPdE3mCVuQ==
X-Received: by 10.28.135.82 with SMTP id j79mr6738901wmd.19.1487149363348; Wed, 15 Feb 2017 01:02:43 -0800 (PST)
Received: from [192.168.2.126] (host213-123-124-182.in-addr.btopenworld.com. [213.123.124.182]) by smtp.gmail.com with ESMTPSA id w17sm4017561wra.28.2017.02.15.01.02.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 15 Feb 2017 01:02:42 -0800 (PST)
To: Norman Finn <norman.finn@mail01.huawei.com>, "Andrew G. Malis" <agmalis@gmail.com>, Loa Andersson <loa@pi.nu>
References: <017eafad-3d74-c8f7-19cb-00027dabea9a@pi.nu> <CAA=duU36fqem8M3W3CuFadwvcoHVx-sV2qR+TD3BKZuKcVtXvQ@mail.gmail.com> <bda3c5f9-0795-177a-49ef-8e831b7f05ed@gmail.com> <7e277354-5516-b2c9-2a5b-f9ea1117e709@gmail.com> <3DF0466E9510274382F5B74499ACD6F8C33496@dfwpml702-chm.exmail.huawei.com>
From: Stewart Bryant <stewart.bryant@gmail.com>
Message-ID: <f6600ea9-6e95-2d30-6cbe-057e04f6366d@gmail.com>
Date: Wed, 15 Feb 2017 09:02:41 +0000
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0
MIME-Version: 1.0
In-Reply-To: <3DF0466E9510274382F5B74499ACD6F8C33496@dfwpml702-chm.exmail.huawei.com>
Content-Type: multipart/alternative; boundary="------------891160D7F4DE2681702BB0C4"
Archived-At: <https://mailarchive.ietf.org/arch/msg/detnet-dp-dt/pfOB8r4Umcc8cEgpXbH-v5zbSuE>
Cc: "detnet-dp-dt@ietf.org" <detnet-dp-dt@ietf.org>
Subject: Re: [Detnet-dp-dt] detnet LSPs and PWs
X-BeenThere: detnet-dp-dt@ietf.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: DetNet WG Data Plane Design Team <detnet-dp-dt.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/detnet-dp-dt>, <mailto:detnet-dp-dt-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/detnet-dp-dt/>
List-Post: <mailto:detnet-dp-dt@ietf.org>
List-Help: <mailto:detnet-dp-dt-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/detnet-dp-dt>, <mailto:detnet-dp-dt-request@ietf.org?subject=subscribe>
X-List-Received-Date: Wed, 15 Feb 2017 09:02:47 -0000


On 15/02/2017 05:45, Norman Finn wrote:
> There is certainly a problem processing sequence numbers at very high 
> speed.  Unless/until the hardware is able to do that, this technique 
> probably won't be used at really high speed.  You can't do what you 
> can't do. In the meantime, it can be very useful for lower speeds.

If you can force the traffic to arrive at the same physical interface, 
for example by SR or RSVP-TE you are better off. I am not sure how this 
scales because you have to have the s/n in RAM that the forwarder can 
get to quickly, but this would be OK at the egress T-PE since you are 
bounded on the number of PWs, although I suppose that could be # ports * 
# VLANs

Depending on the PE architecture we might be able to do egress 
processing, although that is not a common feature in the platforms I 
have looked at in the past.

>
> Discarding out-of-order packets doesn't makes the whole exercise 
> pointless, but does decrease its utility.  There are two major classes 
> of use cases known:
>
>  1. "Intermittent flows": Where the difference in latency between 
> paths is smaller than the interval between transmissions.  This is a 
> typical case in machine control applications.  In this case, the 
> long-path repeated packet is received before the next short-path 
> packet.  Discarding out-of-order only has the usual issues with reset 
> transmitters.
>
>  2. "Bulk flows":  Where there are several packets more in flight 
> along the slow path than the fast path.  This is a typical case in 
> super high-definition video applications. Tossing out-of-order packets 
> makes the packet replication/elimination pointless; The object is to 
> receive every packet, even if out-of-order.

So in case 2, it is possibly better  to deliver up all the packets and 
let the device do the discard. In video there is usually a sequence 
number system that would permit that, assuming it was nit confused by 
the abnormally high number of duplicates.

Stewart


>
> -- Norm
>
> ------------------------------------------------------------------------
> *From:* Detnet-dp-dt [detnet-dp-dt-bounces@ietf.org] on behalf of 
> Stewart Bryant [stewart.bryant@gmail.com]
> *Sent:* Monday, February 13, 2017 4:56 AM
> *To:* Andrew G. Malis; Loa Andersson
> *Cc:* detnet-dp-dt@ietf.org
> *Subject:* Re: [Detnet-dp-dt] detnet LSPs and PWs
>
> Talking of corner residing elephants how to make sequence number 
> processing atomic at the egress detnet-T-PE?
>
> This is not a problem at the S-PEs because it does not matter if two 
> copies get through but it is critical at the egress T-PE.
>
> Also what do you plan to do if a later packet overtakes an earlier 
> one? Presumably declare all the late delivery packets as "lost" rather 
> than attempt to re-order.
>
> - Stewart
>
>
> On 13/02/2017 10:55, Stewart Bryant wrote:
>>
>> Hi,
>>
>> I was given some background information on your thoughts on 
>> detnet-PW, and pass on my thoughts in response.
>>
>> I think NSP issue  is a red herring. NSP can be NULL.
>>
>> An S-PE does no NSP, although in any case I suspect that you may need 
>> some processing function at the detnet-S-PE - see below.
>>
>> The underlying DETNET PW is an SS-PW in the diagram I was shown, in 
>> that the PW label is the same end to end, although of course it need 
>> not be, you could have an equivalence label set and run pure MS-PW. 
>> Indeed when you have multiple administrations you would like them to 
>> be different for administrative purposes (that is why we designed 
>> MS-PW like that).
>>
>> So if you create an equivalence relationship in the egress-PE, i.e. 
>> two entries in the global label table pointing to the same duplicate 
>> suppressor (sequencer), then you could use regular MS-PW for this.
>>
>> If the S-PEs are in the same administrative domain in both ingress 
>> and egress, you can also use a single label value on egress and on 
>> egress since you can give them the same label mappings, i.e. they 
>> have identical swap instructions programmed into the L-FIB.
>>
>> We don't have NSP at the S-PE's in the current PW architecture, in 
>> the data-plane it is essentially a simple MPLS LSR, swapping PW 
>> labels and forwarding the packet on a new LSP. What you will almost 
>> certainly want to do is to have the ability to replicate at nodes at 
>> the S-PEs, and that is new functionality.
>>
>> An approach I would look at is as follows:
>>
>> Create a new detnet-T-PE. On ingress this adds the sequence number, 
>> replicates and adds the PW label, which as I said above MAY be next 
>> hop detnet-S-PE dependent. Then it delivers the copies to the 
>> detnet-S-PEs over the LSPs. Now if you have an ECMP path between the 
>> detnet-T-PE and a detnet-S-PE, or you have SR or RSVP-TE available 
>> you can also deliver multiple copies to the detnet-S-PE and take 
>> advantage of the variability of transit time in the MPLS underlay.
>>
>> Now you create a new detnet-S-PE that operates as follows. On it's 
>> ingress side it looks for the first packet at a given sequence number 
>> on this PW (or PW set) and suppresses all future packets on that 
>> sequence number on that PW or PW-set. It then replicates the packet 
>> if required, swaps the PW label (note that it may also use multiple 
>> outgoing labels) and send the packet over the egress LSP set.
>>
>> At the egress T-PE it looks at the sequence number on this PW (or 
>> PW-set), trims all duplicates, applies any required egress processing 
>> and send the packet on it's way.
>>
>> In summary on ingress a detnet-T-PE replicates to multiple S-PEs 
>> using the PW label the detnet-S-PE expects and potentially sends the 
>> packet over multiple paths to the detnet-S-PEs. At egress a 
>> detnet-T-PE looks at the sequence numbers across the detnet-PW set 
>> and selects the first of the sequence number suppressing all others, 
>> and sends the underlying packet on its way. A detnet-S-PE is a back 
>> to back detnet-egress-T-PE and a detnet-ingress-T-PE with a PW label 
>> swap in the middle and no other PW processing.
>>
>> Now for the elephant in the corner of all of the schemes I have seen. 
>> If you have multiple paths to an X-PE, packets will likely arrive on 
>> different line cards. Sequence number co-ordination amongst different 
>> line cards, and at high speed even amongst different ports on the 
>> same line card is a hard problem. Indeed depending on the pipeline 
>> design on the line card, ANY sequence number processing can be hard. 
>> You could mitigate this (at the cost of availability) by requiring a 
>> common ingress port at any detnet X-PE. This would normally require 
>> an RSVP-TE or SR underlay.
>>
>> - Stewart
>>
>>
>>
>> On 13/02/2017 04:11, Andrew G. Malis wrote:
>>> Loa et al,
>>>
>>> To be clear, there’s currently no definition of PWs encapsulated in 
>>> PWs, and while it might be conceptually possible, such as an 
>>> Ethernet PW carried within a SONET/SDH PW, I couldn’t imagine a use 
>>> case for doing it as it’s very inefficient, and I asked Loa if he 
>>> had one. And if you were to do so, each PW in the hierarchy would 
>>> need NSP functionality and real or emulated CE access circuits at 
>>> the endpoints. Also, thinking about it some more, you couldn’t have 
>>> both PWs in the same label stack, since a PW emulates a physical 
>>> circuit. So there would need to be a separate label stack (and MPLS 
>>> LSP) inside the emulated circuit for the outer PW. By definition, PW 
>>> labels terminate a label stack.
>>>
>>> As I haven’t been following Detnet at all, I don’t have the context 
>>> for what you’re trying to accomplish. That said, I’ll take a look at 
>>> the slides and let you know if I have any comments.
>>>
>>> Cheers,
>>> Andy
>>>
>>>
>>> On Sun, Feb 12, 2017 at 8:31 PM, Loa Andersson <loa@pi.nu 
>>> <mailto:loa@pi.nu>> wrote:
>>>
>>>     Folks,
>>>
>>>     The mail from Yuanlong mmade me go back and check the PW
>>>     architecture and consult with Andy Malis and Stewart Bryant. So
>>>     I have one more thing
>>>     that we should discuss on "Tuesday".
>>>
>>>     What Yaunlong said was: "IMHO, multiple layers of PW is a break from
>>>     the PWE3 architecture, and all DP/CP/MP things will become more
>>>     complicated."
>>>
>>>     It is correct that multi-layer pw's is problematic, though Andy said
>>>     that "if you have a good use case, you can do it".
>>>
>>>     The problem is that there is a native service processing (NSP)
>>>     at the end of the PW. Multi-layer PWs will only do NSP at one
>>>     level. I think
>>>     we should replace the MS-PW with an LSP. I've added one slide
>>>     (9) and
>>>     change slide 8,9 and 11 in the earlier package. The other slides
>>>     arere
>>>     for reference
>>>
>>>     I want Andy and Stewart to have a chance to review this prior to
>>>     that
>>>     we commit too hard to it. Copied them.
>>>
>>>
>>>     /Loa
>>>     -- 
>>>
>>>
>>>     Loa Andersson                        email:
>>>     loa@mail01.huawei.com <mailto:loa@mail01.huawei.com>
>>>     Senior MPLS Expert loa@pi.nu <mailto:loa@pi.nu>
>>>     Huawei Technologies (consultant)     phone: +46 739 81 21 64
>>>     <tel:%2B46%20739%2081%2021%2064>
>>>
>>>
>>
>