Re: [spring] to drop or to forward unlabelled (Re: Question on RFC8660)

Martin Horneffer <maho@lab.dtag.de> Fri, 04 September 2020 14:57 UTC

Return-Path: <maho@lab.dtag.de>
X-Original-To: spring@ietfa.amsl.com
Delivered-To: spring@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id E250A3A0C31 for <spring@ietfa.amsl.com>; Fri, 4 Sep 2020 07:57:13 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.645
X-Spam-Level:
X-Spam-Status: No, score=-2.645 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, NICE_REPLY_A=-0.948, SPF_HELO_NONE=0.001, SPF_NONE=0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=neutral reason="invalid (public key: not available)" header.d=lab.dtag.de
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 QU6V8HH3KkQ6 for <spring@ietfa.amsl.com>; Fri, 4 Sep 2020 07:57:11 -0700 (PDT)
Received: from OldBailey.lab.dtag.de (OldBailey.lab.DTAG.DE [194.25.1.220]) (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 E7AC43A0C1E for <spring@ietf.org>; Fri, 4 Sep 2020 07:57:09 -0700 (PDT)
Received: from [127.0.0.1] (localhost [127.0.0.1]) by localhost (Mailerdaemon) with ESMTPSA id 0937BCB992; Fri, 4 Sep 2020 16:57:00 +0200 (CEST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lab.dtag.de; s=dkim; t=1599231421; h=from:subject:date:message-id:to:mime-version:content-type: content-transfer-encoding:in-reply-to:references; bh=UW2q5/CFs1kLWWR8yfXh5O32trKvT8MCpA2WafpD+h8=; b=dMV98QEKZ/s5VApGrVjDLoWfd+PbSctw6jG9NGiVZi4LOyg1vl+c3GlY77SbqtDhEiSvTb BCDT3s7xnzmUX8EQT5DkOQQbcNd5WiQ/eR9HxMyOJrERBeCrUmwqsBX+WQyAfSX87+xz8M FJSoHqpuFru39ekuK1GzI72yXLa9r+pEjy7VjiggpcoIW3c3NAG9ERNNEvKaz1Twp6Pb8D 6QWaLjdkv5+rmDXWWe7yxmIG0QY142roKxp/V/2GmkNCeLqlx0NDRdv/K881Xb7uAlnkpB +Q/onbmJDvJhvvkvdPLLEMkAbDhiX1vFYlO2KCtn9fJuq3kqRBwnYY80B9N30A==
To: Tarek Saad <tsaad.net@gmail.com>, "spring@ietf.org" <spring@ietf.org>
References: <15389fb7-d7d5-2f28-2869-4ee9fb84fccb@lab.dtag.de> <52be9fc3-0764-93ec-9dca-64291f2f62ab@lab.dtag.de> <DM5PR1901MB21503856C598C1BCC0B931B3FC500@DM5PR1901MB2150.namprd19.prod.outlook.com>
From: Martin Horneffer <maho@lab.dtag.de>
Message-ID: <f1a8d357-4aac-b810-344a-0fd4220470a1@lab.dtag.de>
Date: Fri, 04 Sep 2020 16:56:59 +0200
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:68.0) Gecko/20100101 Thunderbird/68.12.0
MIME-Version: 1.0
In-Reply-To: <DM5PR1901MB21503856C598C1BCC0B931B3FC500@DM5PR1901MB2150.namprd19.prod.outlook.com>
Content-Type: text/plain; charset="utf-8"; format="flowed"
Content-Transfer-Encoding: 8bit
X-Last-TLS-Session-Version: TLSv1.3
Archived-At: <https://mailarchive.ietf.org/arch/msg/spring/Q52xAlX9yU2Bbed9jGkWKkmZDoc>
Subject: Re: [spring] to drop or to forward unlabelled (Re: Question on RFC8660)
X-BeenThere: spring@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Source Packet Routing in NetworkinG \(SPRING\)" <spring.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/spring>, <mailto:spring-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/spring/>
List-Post: <mailto:spring@ietf.org>
List-Help: <mailto:spring-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/spring>, <mailto:spring-request@ietf.org?subject=subscribe>
X-List-Received-Date: Fri, 04 Sep 2020 14:57:14 -0000

Hi Tarek,

1) it's a good question what to do label stack has more than one label 
left, e.g. more SR-MPLS segments. Or a service label. Or both...
So far I was considering two possibilities:
a) Only one label is dumped. In case of SR-MPLS this means that one 
sgement can be skipped. In case of a folloowing service label, this 
could theoretically put the packet in a wrong context.
b) The packets is only forwarded if the label was the last, i.e. 
bottom-of-stack set.
Any of the two possibilities would help in the relevant case of an IP 
packet with a single label (which is the transport label).

2) My assumption would be that the last path information is being used.
I.e. if a packets arrives at a router R with a single label. Based on 
the label R determines a next-hop. If the next-hop does not provide a 
label for this FEC, then the router effectively performs a POP 
operations, but still forwards.
If the packets arrives at R as plain IP, and the routes can successfully 
do a route lookup and determine a next-hop, then it sends the packets 
WITHOUT doing a PUSH operation.
If I understood it correctly, this is the way LDP behaves.

Best regards, Martin


Am 30.08.20 um 02:36 schrieb Tarek Saad:
> Hi Martin,
>
> See inline for some comments.
>
> On 8/27/20, 6:35 AM, "spring on behalf of Martin Horneffer" <spring-bounces@ietf.org on behalf of maho@lab.dtag.de> wrote:
>
>      Hello everyone,
>
>      may I come back the the question below? Or rather let me update it a little:
>
>      In case an SR-MPLS path is broken, should a node rather drop the packet,
>      or forward it?
>
>      This can happen whenever the IGP points to a certain next hop, but that
>      neither supplies a valid SID, nor allows LDP-stitching for whatever
>      reason. For PUSH as well as for CONTINUE.
>
>      We have been using MPLS transport and a BGP free core since about two
>      decades now, using LDP. In the analog case, LDP creates "unlabelled"
>      entries in the LFIB, does the equivalent of a POP operation and forwards
>      the packet to the next-hop as chosen by the IGP.
>
>      This behavior obviously breaks any traffic that relies on a service
>      label, but it can protect some traffic.
>      In our case a huge percentage of all traffic still is public IPv4. This
>      needs MPLS only for a transport label, be it LDP or SR-MPLS. If this
>      traffic gets forwarded unlabelled, it follows an IGP default route to a
>      central device, where it is 1) redirected to the correct destination and
>      2) counted in a way that operators can quickly see whether and where
>      this kind of failure occurs at some point in the network.
>
> [TS]: The SR Path may be composed of multiple SIDs (i.e. label stack) -- where the top SID destination is not the SR Path endpoint.. I sense from "gets forwarded unlabelled " as you will discard the full label stack (?) and forward the packet unlabeled to the central device? Or are you encapsulating the remaining MPLS packet over IP and IP routing packet to the central device to be inspected? In either case, I expect somehow the packet to be ultimately delivered to the original SR Path endpoint/egress?
>
>      After more operational experience and several internal discussions we
>      agreed that we want packets to be forwarded unlabelled rather than
>      dropped. Anyone to share, or oppose this position?
> [TS]: again, I'm not clear on when you say "forward unlabelled" - do you mean packets will follow the top SID's the IP IGP route? Or are you peaking into the destination IP (public IPv4) of packet encapsulated in MPLS to determine how to forward it?
>
> Regards,
> Tarek
>
>      Best regards, Martin
>
>
>      Am 31.01.20 um 16:50 schrieb Martin Horneffer:
>      > Hello everyone,
>      >
>      > again it seems the interesting questions only show up when applying
>      > something to the live network...
>      >
>      > We ran into something that poses a question related to RFC8660: What
>      > is the exact meaning of section 2.10.1, "Forwarding for PUSH and
>      > CONTINUE of Global SIDs", when the chosen neighbor doesn't provide a
>      > valid MPLS path?
>      >
>      > The relevant sections reads:
>      >
>      >       -  Else, if there are other usable next hops, use them to forward
>      >          the incoming packet.  The method by which the router "R0"
>      >          decides on the possibility of using other next hops is beyond
>      >          the scope of this document.  For example, the MCC on "R0" may
>      >          chose the send an IPv4 packet without pushing any label to
>      >          another next hop.
>      >
>      > Does the part "send an IPv4 packet without pushing any label" apply to
>      > PUSH and CONTINUE, or just to PUSH?
>      > Does R0 have to validate that neighbor N can correctly process to
>      > packet? Or can it forward the packet regardless?
>      >
>      > The reason for asking is that we are now seeing issues similar to ones
>      > we had when starting with LDP based MPLS about two decades ago:
>      > traffic being black holed even though a path to the destination
>      > exists, because the MPLS path is interrupted somewhere in the middle.
>      >
>      > With LDP we know the case of LFIBentries called "unlabelled". While
>      > this does break connectivity for many kinds of service, e.g. those
>      > relying on an additional service labels, it still works for plain
>      > IP(v4) traffic. In our cases, this works perfectly fine for all
>      > internal routing and control traffic. And even for IPv4 traffic that
>      > gets collected by a central router that injects a default route.
>      >
>      > However, depending on the exact interpretation of the above paragraph,
>      > an implementor might feel obliged to chose the next paragraph:
>      >
>      >       -  Otherwise, drop the packet.
>      >
>      > Which is, at least in our case, very unfortunate...
>      >
>      > Any advice or opinion appreciated!
>      >
>      >
>      > Best regards, Martin
>      >
>      >
>      >
>      >
>      > _______________________________________________
>      > spring mailing list
>      > spring@ietf.org
>      > https://www.ietf.org/mailman/listinfo/spring
>
>      _______________________________________________
>      spring mailing list
>      spring@ietf.org
>      https://www.ietf.org/mailman/listinfo/spring