Re: [EXTERNAL] Re: Can a BFD session change its source port to facilitate auto recovery

xiao.min2@zte.com.cn Fri, 24 March 2023 06:26 UTC

Return-Path: <xiao.min2@zte.com.cn>
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 7FD2DC14CE47 for <rtg-bfd@ietfa.amsl.com>; Thu, 23 Mar 2023 23:26:52 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -6.897
X-Spam-Level:
X-Spam-Status: No, score=-6.897 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_HI=-5, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, UNPARSEABLE_RELAY=0.001] autolearn=ham autolearn_force=no
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 HoqiocnG8tvu for <rtg-bfd@ietfa.amsl.com>; Thu, 23 Mar 2023 23:26:51 -0700 (PDT)
Received: from mxhk.zte.com.cn (mxhk.zte.com.cn [63.216.63.35]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B8A2EC14CF1A for <rtg-bfd@ietf.org>; Thu, 23 Mar 2023 23:26:49 -0700 (PDT)
Received: from mxct.zte.com.cn (unknown [192.168.251.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mxhk.zte.com.cn (FangMail) with ESMTPS id 4PjXKz4SfFz6FK2c for <rtg-bfd@ietf.org>; Fri, 24 Mar 2023 14:26:47 +0800 (CST)
Received: from mse-fl1.zte.com.cn (unknown [10.5.228.132]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mxct.zte.com.cn (FangMail) with ESMTPS id 4PjXKN5j5Cz501Qh; Fri, 24 Mar 2023 14:26:16 +0800 (CST)
Received: from njy2app03.zte.com.cn ([10.40.13.14]) by mse-fl1.zte.com.cn with SMTP id 32O6Q4kT044877; Fri, 24 Mar 2023 14:26:05 +0800 (+08) (envelope-from xiao.min2@zte.com.cn)
Received: from mapi (njy2app02[null]) by mapi (Zmail) with MAPI id mid201; Fri, 24 Mar 2023 14:26:07 +0800 (CST)
Date: Fri, 24 Mar 2023 14:26:07 +0800
X-Zmail-TransId: 2afa641d427fffffffffc02-2b556
X-Mailer: Zmail v1.0
Message-ID: <202303241426070747451@zte.com.cn>
In-Reply-To: <CAL9v8R0imn-iteu8ZhDa4L+iR1hgOxOLPBKs54O+BPfdCdGgRA@mail.gmail.com>
References: CAL9v8R2iYMGjxF-A9SuDMcu2EF6h0isquTxjuAtNdqFwv_6etg@mail.gmail.com, 6DE166F3-5E02-446B-A105-0C6E2CC4E448@gmail.com, PH0PR03MB63001AA73D3E6D8C93A27E99F6879@PH0PR03MB6300.namprd03.prod.outlook.com, CAL9v8R0imn-iteu8ZhDa4L+iR1hgOxOLPBKs54O+BPfdCdGgRA@mail.gmail.com
Mime-Version: 1.0
From: xiao.min2@zte.com.cn
To: absrivas@gmail.com
Cc: Alexander.Vainshtein@rbbn.com, rtg-bfd@ietf.org
Subject: Re: [EXTERNAL] Re: Can a BFD session change its source port to facilitate auto recovery
Content-Type: multipart/mixed; boundary="=====_001_next====="
X-MAIL: mse-fl1.zte.com.cn 32O6Q4kT044877
X-Fangmail-Gw-Spam-Type: 0
X-Fangmail-Anti-Spam-Filtered: true
X-Fangmail-MID-QID: 641D42A7.000/4PjXKz4SfFz6FK2c
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtg-bfd/B9a1whG9R_q7GCCCPKs0X3NtKK0>
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: Fri, 24 Mar 2023 06:26:52 -0000

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









Original



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> 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> On Behalf Of Jeff Tantsura
 Sent: Thursday, March 23, 2023 8:27 AM
 To: Abhinav Srivastava <absrivas@gmail.com>
 Cc: 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> 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> 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> 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.