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

Abhinav Srivastava <absrivas@gmail.com> Thu, 23 March 2023 14:27 UTC

Return-Path: <absrivas@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 C07AFC14CE2B for <rtg-bfd@ietfa.amsl.com>; Thu, 23 Mar 2023 07:27:25 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -7.097
X-Spam-Level:
X-Spam-Status: No, score=-7.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_HI=-5, 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 ruUM5kkD7fQ7 for <rtg-bfd@ietfa.amsl.com>; Thu, 23 Mar 2023 07:27:25 -0700 (PDT)
Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) (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 ED8C7C14CE44 for <rtg-bfd@ietf.org>; Thu, 23 Mar 2023 07:27:24 -0700 (PDT)
Received: by mail-ed1-x52e.google.com with SMTP id r11so87407385edd.5 for <rtg-bfd@ietf.org>; Thu, 23 Mar 2023 07:27:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679581643; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=n70OXK4Z9MOvfkipkvT+cdlwgdqVOqUyqDuHazck7xw=; b=NDKjRPn1Le5k2gETu3pw1s2BBBGIUhXXmPjJxCeOCd/jeO+4tYUFjQv58XlF/01X25 r52i2iVe6/IOb1L2D24Jzi/iQturZIXWANPHUB3ka9CAA5sBg+mOoswEy12PFhF9OlJH NZYJBN8B5CfRwDNAghHJN0KdkKZBfk83Xtq6AoTopbrw92qMK3e2segSAYV2ocpsR2oU ZowYc+gu6hH3/pC2biGix+vv9YH3H/+GcWXFmYyw2XqQRslUIUfhOlgDEDAtmN6gyCFv GuBTJme2mtBAvIIRA7MU38hNxSAY+/byf3A4hKZdrojBBeQlBwltcw729Snjek9Tf+YR 2kaA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679581643; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=n70OXK4Z9MOvfkipkvT+cdlwgdqVOqUyqDuHazck7xw=; b=DeKDmo76yoDnrMxtaL7PEBnEbDR+0dBc/1o56ItRv/gWyw4I4JA35jXPYV3NKfJEBg KdQMxv3UCKfjFz+TIyKHHWOpNZxZ2vQqEJ7GQPiVzVOTQ6wje2kvyg0iT2N0xOot4JJl bHM0SHRJ87QNQip6nEhVRurrg7W5ivt0eQvY2AAhHx1R4Yj9wHkwzeZfS+ckNVrTLbtv 0u1BYoT33H1PrRMKKyVeGNcFKYumgJ1GyFez3j8NKOzFX8u6bW+M+o+sMrMfr37TDNZj HUMHV7fGwhvjTWYerTl2pEtsQzpMJXrORoLL+8zPPtYCaHuUx0xGywE5hP0It8fEQFXz YMCQ==
X-Gm-Message-State: AO0yUKX1QAiiWvILdBVf6zEZaSg7irqfx6h0JeSogKgky3B82JyC6Lcl s1o8ERXpKCcWyUtGQemUWjnsrSWsH03yVdoxTbM=
X-Google-Smtp-Source: AK7set/mvTtEeeaWFJ1pxU+hahW90W5KOiAc+4HXEfkGQ6bBdWTN4oBppV2MDKuuqfB7YtdVx674RUflil5BJdyDa2Q=
X-Received: by 2002:a17:906:f9d1:b0:924:efbb:8a8b with SMTP id lj17-20020a170906f9d100b00924efbb8a8bmr5085757ejb.6.1679581643197; Thu, 23 Mar 2023 07:27:23 -0700 (PDT)
MIME-Version: 1.0
References: <CAL9v8R2iYMGjxF-A9SuDMcu2EF6h0isquTxjuAtNdqFwv_6etg@mail.gmail.com> <6DE166F3-5E02-446B-A105-0C6E2CC4E448@gmail.com> <PH0PR03MB63001AA73D3E6D8C93A27E99F6879@PH0PR03MB6300.namprd03.prod.outlook.com>
In-Reply-To: <PH0PR03MB63001AA73D3E6D8C93A27E99F6879@PH0PR03MB6300.namprd03.prod.outlook.com>
From: Abhinav Srivastava <absrivas@gmail.com>
Date: Thu, 23 Mar 2023 07:27:12 -0700
Message-ID: <CAL9v8R0imn-iteu8ZhDa4L+iR1hgOxOLPBKs54O+BPfdCdGgRA@mail.gmail.com>
Subject: Re: [EXTERNAL] Re: Can a BFD session change its source port to facilitate auto recovery
To: Alexander Vainshtein <Alexander.Vainshtein@rbbn.com>
Cc: Jeff Tantsura <jefftant.ietf@gmail.com>, rtg-bfd@ietf.org
Content-Type: multipart/alternative; boundary="00000000000036cf8a05f792131a"
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtg-bfd/YuL1wx7xZTfE8eqoJXwXlR8XgKM>
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: Thu, 23 Mar 2023 14:27:25 -0000

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.
>