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

Greg Mirsky <gregimirsky@gmail.com> Wed, 22 March 2023 22:05 UTC

Return-Path: <gregimirsky@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 9149EC151522 for <rtg-bfd@ietfa.amsl.com>; Wed, 22 Mar 2023 15:05:34 -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 U_Kl8XAKY53U for <rtg-bfd@ietfa.amsl.com>; Wed, 22 Mar 2023 15:05:32 -0700 (PDT)
Received: from mail-yb1-xb2a.google.com (mail-yb1-xb2a.google.com [IPv6:2607:f8b0:4864:20::b2a]) (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 403C9C14CE55 for <rtg-bfd@ietf.org>; Wed, 22 Mar 2023 15:05:32 -0700 (PDT)
Received: by mail-yb1-xb2a.google.com with SMTP id x198so13061459ybe.9 for <rtg-bfd@ietf.org>; Wed, 22 Mar 2023 15:05:32 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1679522731; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=qtYmXCDeP3xBMRwC9wGN+FYTuMAOK2xlLixsohQ2FyM=; b=FlB1lkDpcc91JB8k3WksWe0tq3oHBO0J2CHOpSUUWfxwIk6P+cQV9GATuaCquLLOCi +KYLgELXNq8yGH1vgZZnfnETDycebn+iJy3L2nQbUaSRnxFmSA/Oqxq8JAR5n1fVvwl9 3NeJL+lF0IQ7U29iKEHRJBFCLylczBgva1xzQ+1mM83KwwhkkvfW3AvvA4/hp1B4GuFA baO+VMiUAwuOa7gMF+dymR6kq1zV4BiBzUW2H3Z3AcIkuKbIUdqjqGmE+5FccowkMiAM ezdXSAZc/3co9YWs8cpcaDcmP5KDvSMhlxiTocdiB//Gdtu3/lUBD4OeMZunSK2IUTPW GMJg==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679522731; 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=qtYmXCDeP3xBMRwC9wGN+FYTuMAOK2xlLixsohQ2FyM=; b=abPIFEFEZrPQpEIdvnVrsVvv/M9vQeLRGc9A+G4lVcFt60aJa2XgZEJGm4nouFxUEn ABr+3wpppl6v1FFsrRhk3ov/bIqxjjAcKeqJpSTvEGuXduxAZEz5XXJpQI26pvgYEm5R qQ+5pI2bCnphDLm5DkXX4B2zX09+ybYh+BBAg1bOFFfLiV1r+rTPOpTc6hQdut1p76gT jZYLEXLwszC2zpr3uzz2G5KwAmk9JLS//sLZutmNaW/R0ConWbjObR1UuGncbwXb50B8 xyhGrq0zo8piHr811jxvmeB2gLARl5sS3ZTK2egDUFd67nj+qZGswExpvvCNPIptTEz0 WU3Q==
X-Gm-Message-State: AAQBX9fn12IScJ2iLxKjopPYgforNTKriGBR3gAtpoGWbM6dbMj/xeyt Zj7rvJT1f+TIbirr5QhixxeW/q2lSJ5RQaHAQCBIR9qL
X-Google-Smtp-Source: AKy350aOXAb6PvyCtrE4V9/I++2lBH1XlbARqBe5qqBUFLPntdqx9nzTLoXhIyzGjQQbI5L5EFv159/1Eb5GqXjZxlE=
X-Received: by 2002:a25:e054:0:b0:b6b:d3f3:45af with SMTP id x81-20020a25e054000000b00b6bd3f345afmr280612ybg.1.1679522731062; Wed, 22 Mar 2023 15:05:31 -0700 (PDT)
MIME-Version: 1.0
References: <CAL9v8R0Nv6VrdU3gdk8uJ+_K_tehGLXQSor_gBeYq90Tf4WL=Q@mail.gmail.com>
In-Reply-To: <CAL9v8R0Nv6VrdU3gdk8uJ+_K_tehGLXQSor_gBeYq90Tf4WL=Q@mail.gmail.com>
From: Greg Mirsky <gregimirsky@gmail.com>
Date: Wed, 22 Mar 2023 17:05:20 -0500
Message-ID: <CA+RyBmWQ8upd1SmxwbWiQwyxRmx4ZE07rg18_C7wbX1dtA7J8g@mail.gmail.com>
Subject: Re: Can a BFD session change its source port to facilitate auto recovery
To: Abhinav Srivastava <absrivas@gmail.com>
Cc: rtg-bfd@ietf.org
Content-Type: multipart/alternative; boundary="000000000000c6fb5d05f7845bd2"
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtg-bfd/lKTD0tjyTqxM5bnWifvYy7jbsZU>
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: Wed, 22 Mar 2023 22:05:34 -0000

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
>