Re: [EXTERNAL] Can a BFD session change its source port to facilitate auto recovery
Jeff Tantsura <jefftant.ietf@gmail.com> Sun, 26 March 2023 16:28 UTC
Return-Path: <jefftant.ietf@gmail.com>
X-Original-To: rtg-bfd@ietfa.amsl.com
Delivered-To: rtg-bfd@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1FD5FC151530 for <rtg-bfd@ietfa.amsl.com>; Sun, 26 Mar 2023 09:28:54 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.097
X-Spam-Level:
X-Spam-Status: No, score=-2.097 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-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 ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sxekgVh_XUXg for <rtg-bfd@ietfa.amsl.com>; Sun, 26 Mar 2023 09:28:51 -0700 (PDT)
Received: from mail-pl1-x62c.google.com (mail-pl1-x62c.google.com [IPv6:2607:f8b0:4864:20::62c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id C8E6BC14CE22 for <rtg-bfd@ietf.org>; Sun, 26 Mar 2023 09:28:49 -0700 (PDT)
Received: by mail-pl1-x62c.google.com with SMTP id f22so2140372plr.0 for <rtg-bfd@ietf.org>; Sun, 26 Mar 2023 09:28:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679848129; x=1682440129; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=az0EBPg+SWycdE/ZK9oZCDylNWbo9XtwwVYVxcNjpu8=; b=BM17km2zHI4ARs7cbWddx11X4DfG9hbguwbH6EAuhLEPPK+HMa+AMruzeQl64J994J sRRjNLs5QSCPBRx5VDB+j2sDRiL3HaWlvK5f4ky6iOOrxo18NVzAHXfMvpksoaEMoVG+ ecc62Q+YQ2Or5ve26LOCyx4Q465PTf9sz67cEPguwwhwT19HfhJ0luYVAK7B6HjynQfT MH5pMip0TYYHg0F1XfciCerZUAfPsuj+Dl9jEYBBp68fuMgvy51WtAIL0HXM2UfwSKv1 iLqWBJrp2m6W8PdegcAYLTQFFt/f5QyJ+lhpmvqWNm1fPsA+3PQ+W6wubLINq4l64PRu q2oA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679848129; x=1682440129; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=az0EBPg+SWycdE/ZK9oZCDylNWbo9XtwwVYVxcNjpu8=; b=AWPkwTvsUuwdx+LdWo2do5KKu1AQyUS0cV6BDUfXYjFQ+JLF7uG+VM2VMMdPj/NZwr rydCm3+fZSdCDJBGxlPyfoC3WzZvNjYc8uMJhQ/0zXWHkB/+R98xOzZ2hhwN+FMsvEFE 432sRBadSzgUKA9dybQhdTNMTZYNYXVzEhsY/guVbd+6m7W9XHh0L2RnpPCJF9BY+0Uk aoM0dI+JmdcODO8l7dtjX69/illmxqC/f8mULkWE9WbUtsMA/3ZKuDDwI+913UBTnyuz JNnCvXnXwl2Jif8YesQ21k3/LnwiFV11jy5FrN17RdfGfkMy9ADIfbLuagTkAD1kfn07 +w1w==
X-Gm-Message-State: AO0yUKVbd4XaictMf5Z9IABRqf80Ghz1OJdAk9dftobSWV2yWJHGevB5 Ks5GBIthjqWTxaxTeX8d3Ck=
X-Google-Smtp-Source: AK7set9XiD6YaT1HYl3uJw9WiltvCNl+cgsYYrEo84s5z0ymu+a+WFzAZzuhZOzohI/4j7sGDrE7mw==
X-Received: by 2002:a05:6a20:4985:b0:de:5e0b:caa8 with SMTP id fs5-20020a056a20498500b000de5e0bcaa8mr7688241pzb.52.1679848128967; Sun, 26 Mar 2023 09:28:48 -0700 (PDT)
Received: from smtpclient.apple (c-73-63-232-212.hsd1.ca.comcast.net. [73.63.232.212]) by smtp.gmail.com with ESMTPSA id s17-20020a62e711000000b00575d1ba0ecfsm17328834pfh.133.2023.03.26.09.28.48 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Mar 2023 09:28:48 -0700 (PDT)
From: Jeff Tantsura <jefftant.ietf@gmail.com>
Message-Id: <D885E2C5-8BF7-4FCA-8E8A-1EE6FAA5ECF3@gmail.com>
Content-Type: multipart/alternative; boundary="Apple-Mail=_3AC4174B-E414-4D2C-AEAC-05C43B738095"
Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.400.51.1.1\))
Subject: Re: [EXTERNAL] Can a BFD session change its source port to facilitate auto recovery
Date: Sun, 26 Mar 2023 09:28:37 -0700
In-Reply-To: <202303250843265569167@zte.com.cn>
Cc: Abhinav Srivastava <absrivas@gmail.com>, Alexander.Vainshtein@rbbn.com, rtg-bfd@ietf.org
To: Xiao Min <xiao.min2@zte.com.cn>
References: <202303241426070747451@zte.com.cn, 35A7640A-D0B9-4CBF-98EF-18256EBEE3EC@gmail.com> <202303250843265569167@zte.com.cn>
X-Mailer: Apple Mail (2.3731.400.51.1.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtg-bfd/XzfdKSXndzYOG-vJrdHjyqEa714>
X-BeenThere: rtg-bfd@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: "RTG Area: Bidirectional Forwarding Detection DT" <rtg-bfd.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/rtg-bfd>, <mailto:rtg-bfd-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/rtg-bfd/>
List-Post: <mailto:rtg-bfd@ietf.org>
List-Help: <mailto:rtg-bfd-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/rtg-bfd>, <mailto:rtg-bfd-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 26 Mar 2023 16:28:54 -0000
Hi Xiao, please see inline > On Mar 24, 2023, at 5:43 PM, <xiao.min2@zte.com.cn> <xiao.min2@zte.com.cn> wrote: > > Jeff, > > > > Please see inline... > > Original > From: JeffTantsura <jefftant.ietf@gmail.com> > To: 肖敏10093570; > Cc: absrivas@gmail.com <absrivas@gmail.com>;Alexander.Vainshtein@rbbn.com <Alexander.Vainshtein@rbbn.com>;rtg-bfd@ietf.org <rtg-bfd@ietf.org>; > Date: 2023年03月24日 16:48 > Subject: Re: [EXTERNAL] Re: Can a BFD session change its source port to facilitate auto recovery > That’s not going to fly, number of ECMP paths in today’s networks could be anywhere between 2 and 500+, how many of these would you exercise, how would you know that you have covered all of them? > > [XM]>>> The number of links/LAGs seems much higher than the number of ECMP paths. If otherwise I have to run SH BFD on each link/LAG, why not try to run MH BFD on each ECMP path? :-) As to the coverage, BFD+IOAM may help, because IOAM can tell you the path BFD packet really takes. > [jeff] the number of p2p connections between 2 directly attached IP end-points is rarely larger than 32 (either LAG or ECMP), SH BFD sessions are distributed across the path traversed and coherency between IP connectivity matrix and BFD sessions between any given pair of directly connected IP end-points can easily be guaranteed, end2end (MH BFD) is between non directly attached end-points and is subject to network topology and routing, and has to be re-evaluated on any change. INT doesn’t really help here, hashing decisions are local, any changes (local or global) might change the hashing results, unless you build a full mesh of source routed paths… but then, why BFD at all, you could use INT only instead, take a look at HPCC draft > The role of MH BFD is to verify reachability between 2 non directly connected IP end-points, not to monitor every path available. > > [XM]>>> IMHO BFD for SR Policy does care about the path, and some SP's networks require bidirectional path consistency while employing BFD. > [jeff] how did we get to SR here? If you have got a strict source routed path, you only need to validate that path, if it is loose however, same issues > > Best Regards, > > Xiao Min > > > > As a viable solution, run SH BFD on each link/LAG, MH BFD end2end and make sure your timers are aligned and not interact with each other in funny ways. > > Cheers, > Jeff > >> On Mar 24, 2023, at 09:26, xiao.min2@zte.com.cn wrote: >> >> >> Hi Abhinav, >> >> >> >> When I come across your problem, the first idea coming into my mind is not trying to change the source port for a BFD session, but to run multiple BFD sessions between the two peers, using each BFD session to monitor a respective ECMP path, and then the application would not be declared in failure unless all the BFD sessions go down. >> >> >> >> Best Regards, >> >> Xiao Min >> >> >> > > From: AbhinavSrivastava <absrivas@gmail.com> > To: Alexander Vainshtein <Alexander.Vainshtein@rbbn.com>; > Cc: rtg-bfd@ietf.org <rtg-bfd@ietf.org>; > Date: 2023年03月23日 22:27 > Subject: Re: [EXTERNAL] Re: Can a BFD session change its source port to facilitate auto recovery > Agree that deletion and recreation (possibly automatically) by associated protocol is a good alternative, instead of inbuilt BFD recovery. > > Thanks > Abhinav > > On Thu, 23 Mar, 2023, 3:08 am Alexander Vainshtein, <Alexander.Vainshtein@rbbn.com <mailto:Alexander.Vainshtein@rbbn.com>> wrote: >> Abhinav, Jeff and all, >> >> FWIW I concur with Jeff. >> >> >> In my experience, MH IP BFD sessions are typically used to monitor peering between iBGP neighbors, and when the MH IP BFD session goes down, BGP treats this as if its session has gone – and deletes the MH IP BFD session in question. >> >> >> I.e., fast recovery of such a session will not happen until BGP would not re-create it. >> >> >> Regards, >> >> Sasha >> >> >> From: Rtg-bfd <rtg-bfd-bounces@ietf.org <mailto:rtg-bfd-bounces@ietf.org>> On Behalf Of Jeff Tantsura >> Sent: Thursday, March 23, 2023 8:27 AM >> To: Abhinav Srivastava <absrivas@gmail.com <mailto:absrivas@gmail.com>> >> Cc: rtg-bfd@ietf.org <mailto:rtg-bfd@ietf.org> >> Subject: [EXTERNAL] Re: Can a BFD session change its source port to facilitate auto recovery >> >> >> Abhinav, >> >> >> Let’s clarify a couple of points. >> >> What you are trying to do is to change entropy to change local hashing outcome, however for hashing to even be relevant there has to he either ECMP or LAG in the path to the destination otherwise shortest path will be he used regardless, so statistically, some of the flows between a given pair of end points (5 tuple) will be traversing the (partially)broken link, would you really like BFD to “pretend“ that everything is just fine? >> >> Moreover, by far, in case of congestion - most applications won’t change their ports but have their TX rate reduced. >> >> There’s work done by Tom Herbert for IPv6/TCP (kernel patch upstreamed a few years ago) - had beeb presented in RTGWG pre-Covid, that on RTO changes flow label value (that some might or might not include in hashing), which is strongly not recommended to be used outside of a tightly controlled homogenous environment (think within DC). >> >> Outside of what BFD spec tells us (don’t), the above should provide enough motivation not to do this. >> >> Cheers, >> >> Jeff >> >> >> >> >> On Mar 23, 2023, at 05:44, Abhinav Srivastava <absrivas@gmail.com <mailto:absrivas@gmail.com>> wrote: >> >> >> >> Multi-hop BFD would be the mechanism that detects the failure on the path it happens to be using for the session. I wasn't thinking of another mechanism. Detection timer expiry would be the trigger for recovery which could be augmented with few other possible criteria like how long session hasn't been able to come back up or prolonged flapping. >> >> >> Thanks >> >> Abhinav >> >> >> On Wed, 22 Mar, 2023, 3:05 pm Greg Mirsky, <gregimirsky@gmail.com <mailto:gregimirsky@gmail.com>> wrote: >> >> Hi Abhinav, >> >> thank you for presenting an interesting scenario for a discussion. I have several questions to better understand it: >> >> · How the network failure that triggers the recovery process is detected? >> >> · If the failure detection mechanism is not multi-hop BFD, what is the relationship between the detection intervals of heat mechanism and the multi-hop BFD session? >> >> Regards, >> >> Greg >> >> >> On Wed, Mar 22, 2023 at 4:36 PM Abhinav Srivastava <absrivas@gmail.com <mailto:absrivas@gmail.com>> wrote: >> >> Hi all, >> >> >> I needed clarification around whether source port can be changed for a BFD session in case of multi hop BFD. The ability to change BFD source port when BFD session goes down helps BFD session to recover if its stuck on a network path where there is some intermittent but significant packet loss. >> >> >> In such cases, normally without BFD, end to end application traffic would eventually settle down on a good path as applications typically change source port after experiencing disconnection or failures. But if BFD is being used to monitor some part of a path which is experiencing significant but not 100% packet loss, it will start causing next hop list of associated static route or the associated BGP sessions to start flapping forever, as BFD packets would be stuck to that partial lossy path forever (until BFD session is deleted and recreated by admin action). This may also hinder the typical application recovery strategy of changing source port on failure. >> >> >> Ability to dynamically change BFD source port can help BFD recover in such cases. Is this something that is allowed as per RFC? The RFC5881, section 4 (for single hop) case states that – >> >> “The source port MUST be in the range 49152 through 65535. The same UDP source port number MUST be used for all BFD Control packets associated with a particular session” >> >> >> Thanks >> >> Abhinav >> >> >> Notice: This e-mail together with any attachments may contain information of Ribbon Communications Inc. and its Affiliates that is confidential and/or proprietary for the sole use of the intended recipient. Any review, disclosure, reliance or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please notify the sender immediately and then delete all copies, including any attachments. > >
- Can a BFD session change its source port to facil… Abhinav Srivastava
- Re: Can a BFD session change its source port to f… Alan DeKok
- Re: Can a BFD session change its source port to f… Greg Mirsky
- Re: Can a BFD session change its source port to f… Abhinav Srivastava
- Re: Can a BFD session change its source port to f… Jeff Tantsura
- RE: [EXTERNAL] Re: Can a BFD session change its s… Alexander Vainshtein
- Re: Can a BFD session change its source port to f… Abhinav Srivastava
- Re: [EXTERNAL] Re: Can a BFD session change its s… Abhinav Srivastava
- Re: Can a BFD session change its source port to f… Reshad Rahman
- Re: Can a BFD session change its source port to f… Jeffrey Haas
- Re: Can a BFD session change its source port to f… Reshad Rahman
- Re: Can a BFD session change its source port to f… Reshad Rahman
- Re: Can a BFD session change its source port to f… Jeffrey Haas
- Re: Can a BFD session change its source port to f… Greg Mirsky
- Re: [EXTERNAL] Re: Can a BFD session change its s… xiao.min2
- Re: [EXTERNAL] Re: Can a BFD session change its s… Jeff Tantsura
- Re: [EXTERNAL] Re: Can a BFD session change its s… xiao.min2
- Re: [EXTERNAL] Can a BFD session change its sourc… Jeff Tantsura
- RE: [EXTERNAL] Can a BFD session change its sourc… Alexander Vainshtein
- Re: [EXTERNAL] Can a BFD session change its sourc… xiao.min2
- Re: [EXTERNAL] Can a BFD session change its sourc… xiao.min2