Re: Several questions about the draft-ietf-bfd-unaffiliated-echo

Greg Mirsky <gregimirsky@gmail.com> Tue, 23 November 2021 21:17 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 38F273A07AF; Tue, 23 Nov 2021 13:17:29 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.098
X-Spam-Level:
X-Spam-Status: No, score=-2.098 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, 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 ([4.31.198.44]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 4qj_r-nwMwVZ; Tue, 23 Nov 2021 13:17:24 -0800 (PST)
Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6FBE73A07AE; Tue, 23 Nov 2021 13:17:24 -0800 (PST)
Received: by mail-ed1-x52f.google.com with SMTP id g14so689026edb.8; Tue, 23 Nov 2021 13:17:24 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=WUwg1ju04ezTuFi/FZCCO/EL5hmJGCze4zFH3p6mBPg=; b=OhRLmUEZM0ZSZrLSXc2GETySWV4GIn4qgwQkQo8UUXwvfU5/wudGLGl54d4nhQkGMy CT7SgeXi3a677T926R4EZzhiUjFpae7WE9w/2KRUCnV/7awb0BDlJ/iLngF5fEhanc8T 2o/H19Uo9bTveOLC1BujNW6ZlTTLNuCSxbnB7dWyh9JvqtbCeoyoYuLbtoKXYDoJJSfv shAAChXkSdGEvCrkfNI4vuz5yr8P4GhktOnLGg7tVNqo/ipNkQe2CNI4hbfyaEtvNkYf TSry0V4r0MMDJ9rNs0KZ1qAgMbXJzRXNZtW39cT3IOOf5YH5H/7M1o3JzLLdKQdhmFtS GVZw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=WUwg1ju04ezTuFi/FZCCO/EL5hmJGCze4zFH3p6mBPg=; b=nrdonEuyW1v5peIY/lD9ctqjvUtNQ/k5KVavdrbuEUDLxixoeW+2iEp5tgIHtFkaPR G8QYaThrl15ri/o1HAY08E3mMhwZzixmzMANit/Ty8HHTix2Hbo+VtZqjvrw5gfAiSOI SNiVuL+LIEe7+/cxY5FeHeRcCrD5pxW7/sLI8xCuGuvWR7i+Y2GYVPf0KOkS3G+/fj0a c+n+/e5qzVI3ewTpRGKMt7YIG7atsYflzK30QI+ns3PrrObP9ONx6pm3JB/2AXqEZb+a oJzbqz1mvvm+1qc2eP4r/VZxUjmDev+3L/mQouPHKnu0RGcMtPqs23PLBuZ6UrzOuMDr Lwyw==
X-Gm-Message-State: AOAM530uq6QGb/v5VRTqOdfVSryVn6U4cTsZY87UsKojd2nKhw0EFNjF Ez/GWv2rgH74G0G1zhEtOJ08UduQKISqjYeHJDU=
X-Google-Smtp-Source: ABdhPJxCpzycpfOKmHbDI8TZiDR8rgast41BcomSA7dXyVy6f1fUXgzc0X+HvgI25ZM+2iHMxys4QYb9DPTrgCdaRto=
X-Received: by 2002:a05:6402:4389:: with SMTP id o9mr14455742edc.138.1637702241174; Tue, 23 Nov 2021 13:17:21 -0800 (PST)
MIME-Version: 1.0
References: <CA+RyBmUmPVB5dHfbYHHS1=_sMGd9yXcxPs7ByuqC__iPWqpnTg@mail.gmail.com> <202111171700094780970@zte.com.cn> <CA+RyBmWOPmdMqEcGAeUJypGhfFhptryGg7gPSH5_2SKgHUKYxA@mail.gmail.com> <20211122221031.GB15104@pfrc.org> <CA+RyBmWsqsMbu+S6A5ff3EfgRZW5pKg0m+qv83NU8n8o1pus6A@mail.gmail.com> <20211123194324.GA23355@pfrc.org>
In-Reply-To: <20211123194324.GA23355@pfrc.org>
From: Greg Mirsky <gregimirsky@gmail.com>
Date: Tue, 23 Nov 2021 13:17:10 -0800
Message-ID: <CA+RyBmWd+btT_QgCwBH3xOUph=ggDav3iOR_hVppGcdKFu9osg@mail.gmail.com>
Subject: Re: Several questions about the draft-ietf-bfd-unaffiliated-echo
To: Jeffrey Haas <jhaas@pfrc.org>
Cc: Xiao Min <xiao.min2@zte.com.cn>, rtg-bfd WG <rtg-bfd@ietf.org>, draft-ietf-bfd-unaffiliated-echo@ietf.org
Content-Type: multipart/alternative; boundary="00000000000055492705d17b4447"
Archived-At: <https://mailarchive.ietf.org/arch/msg/rtg-bfd/-q2GfOOr0IiRngwJFVLV3O2e3-Q>
X-BeenThere: rtg-bfd@ietf.org
X-Mailman-Version: 2.1.29
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: Tue, 23 Nov 2021 21:17:29 -0000

Hi Jeff,
I agree that S-BFD may provide a more suitable architectural framework for
the Unaffiliated Echo (would that then be referred to as Unaffiliated S-BFD
Echo?). Though, reading the S-BFD Echo Function section in RFC 7880, I find
that the specification allows using standalone S-BFD Echo without
periodically transmitted S-BFD Control packets. It seems precisely what is
the Unaffiliated Echo.

Regards,
Greg

On Tue, Nov 23, 2021 at 11:43 AM Jeffrey Haas <jhaas@pfrc.org> wrote:

> Greg,
>
> On Tue, Nov 23, 2021 at 09:21:42AM -0800, Greg Mirsky wrote:
> > On Mon, Nov 22, 2021 at 2:10 PM Jeffrey Haas <jhaas@pfrc.org> wrote:
> > > The desired behavior is "obvious".  If you support BFD Echo, you'd
> like to
> > > turn on that code to the remote system and do so without letting Echo
> be
> > > initiated using the Async procedures.  However, since Echo is
> intentionally
> > > under-documented in the BFD RFCs and is expected to have a paired async
> > > session, this leaves the proposal missing quite a bit.
> > >
> > GIM>> I've proposed to consider using RFCs 8562/8563 as a starting
> point. A
> > MultipointHead operates in the Demand mode, does not use the three-way
> > handshake, and the BFD state machine is Up with the first transmitted BFD
> > Control packet. True, the use of the BFD Echo function is not described
> in
> > RFCs 8562/8563 but I don't expect it would present a serious problem to
> the
> > group. The advantage of making the unaffiliated BFD Echo an extension of
> > RFCs 8562/8563, in my opinion, is that the transmitted by MultipointHead
> > BFD Control packets, though go unprocessed, would nolt affect anything.
> The
> > rate of transmission can be one in an hour, one a day. And the BFD Echo
> > function is not required to bring the BFD session state Up but can be
> used
> > to detect the failure.
>
> A place where I consider the multipoint functionality to be an awkward fit
> is that there's expected to be two participant roles: the head and the
> tail.
> For an echo solution, the local system is BOTH head and tail.
>
> This is contrasted vs. S-BFD where the Initiator expects to hear its own
> stuff back from the reflector.
>
> Valid points of comparison include that with multipoint the packets are not
> expected to be changed, but S-BFD procedure requires that the Reflector
> flip
> the discriminators.
>
> It can be observed that the state machines for S-BFD and multipoint are
> largely the same, with a slight simplification for S-BFD not having to deal
> with the Down state.  IMO, the S-BFD state machine is closer to what we're
> looking for.
>
> Observations flipping through RFC 7880 with regard to what would likely
> need
> to change to be the basis for bfd-unaffiliated pdus:
>
> The roles of Initiator and Reflector are still clear - although reflector
> is
> more literal.
>
> You'd still want to have network-wide discriminator pools to help reduce
> diagnostic headache if an Initiator get someone else's packet
> inappropriately.
>
> We'd want a new SessionType
>
> We'd still want to set demand mode.
>
> The demultiplexing critieria would need to map to a session based on the
> transmitted discriminators.  HOWEVER, some normative text would be required
> on something we don't standardize - BFD Echo format in 5880, etc.  In
> particular, the Initiator has to make sure you can distinguish received
> Echo packets as being associated with a BFD unaffiliated session perhaps
> distinctly from other Echo packets.
>
> The responder/reflector procedure is largely eliminated - this is BFD Echo
> as per RFC 5880.
>
> Many of the initiator procedures need mild tweaks because we are talking to
> ourselves rather than an active reflector.
>
> The S-bfd echo function section provides some wisdom on the security issues
> with bfd unaffiliated.
>
> -- Jeff
>