Re: [Detnet] Martin Duke's Discuss on draft-ietf-detnet-pof-08: (with DISCUSS and COMMENT)

Martin Duke <martin.h.duke@gmail.com> Thu, 04 January 2024 18:53 UTC

Return-Path: <martin.h.duke@gmail.com>
X-Original-To: detnet@ietfa.amsl.com
Delivered-To: detnet@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 145BFC05E053; Thu, 4 Jan 2024 10:53:48 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.104
X-Spam-Level:
X-Spam-Status: No, score=-2.104 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_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01, URIBL_BLOCKED=0.001, URIBL_DBL_BLOCKED_OPENDNS=0.001, URIBL_ZEN_BLOCKED_OPENDNS=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 7aIRKuXodEbt; Thu, 4 Jan 2024 10:53:43 -0800 (PST)
Received: from mail-vk1-xa2a.google.com (mail-vk1-xa2a.google.com [IPv6:2607:f8b0:4864:20::a2a]) (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 66834C05DDCE; Thu, 4 Jan 2024 10:53:43 -0800 (PST)
Received: by mail-vk1-xa2a.google.com with SMTP id 71dfb90a1353d-4b74a9a9d4cso271069e0c.1; Thu, 04 Jan 2024 10:53:43 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1704394422; x=1704999222; darn=ietf.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=vgSpBmhndxdjjty7v298bFBcqZN3NA1lMk3kS3U4Z1o=; b=h1if69t+lrAYa1o5ebTuZbSND0CeDYr7AFxa8gvixXd1nE1XDsjwOW6uMC0J2peEoR OumeGvy/QgWgd9h8sYndQ9mNYpslvhbb2zpdsLtwEFHLt3A91VkYVsIXLZihb40p5kfA 0xFiPZbUMn1zex+szg9YOWHWYERWuexDZUxYOmyD+L0b5NUgtf6mYhQkdCR0e+HjmWzU 9t/zB8JkplSboelM2qGgFo1PA5+aZSNVVDb/NZci0hbEXXNDy71l+1oNLXWSZpoxsFKk kJfDnYf/66T+VJ5eIapKSD8YxWAEwmom+gzF3Flbtpx8y1G/z1+E0cphHupIpXql+CX0 nc3g==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704394422; x=1704999222; 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=vgSpBmhndxdjjty7v298bFBcqZN3NA1lMk3kS3U4Z1o=; b=ucAl4THdDjtX8MesCMLVyPAf7ccPWKpr6YLB7kloSIJsOB+rAKN6djdSgvVpr+iKsH 4HVz1CYiqCABgTbbcYEC6eWf95W3ur6XNFU5pSLulqW1aaTZrC803rpN83CLI9hyVI63 rdwxbi/hEho1n+mU2a0guJ4fhI4hAhUDmRiCwXrFJ0QPgVSlwCNBIcBW7cpXpZIilxZF WSGIvTQrpTwU9a1QhIG7+NRVsRdlxUf1EvMj+zYkph6acfWIXQN6zzD47r8di0Qw9YzN AjLbNJ7ajxsVc8Yb2KYcX2d7UlZho/s67MNBd2+QflVBQi4gTT9ZMVxgOZHHHa7W+u/J zuKw==
X-Gm-Message-State: AOJu0Yyrki+xAYUoH0Iqe1NSILjbgRfVEK7TYT4cqLYFgCB/JL7CBEwV GFIWTlZrRhAMsUN6UbCfm3sCDpEOIKRYVi69oAfXKfz3
X-Google-Smtp-Source: AGHT+IFumXXT90x7RquIUir1hcevflgzWnuWlTmGuIlY1YfXHTnyvRNl0yMHtmcJfDg9xuH049hfSBCZLKhVTYuNE6o=
X-Received: by 2002:a05:6122:2988:b0:4b6:c9fb:b185 with SMTP id fn8-20020a056122298800b004b6c9fbb185mr949212vkb.23.1704394421725; Thu, 04 Jan 2024 10:53:41 -0800 (PST)
MIME-Version: 1.0
References: <170423216554.32458.15020828942077789896@ietfa.amsl.com> <AM0PR07MB534720E827C873D4733264DEAC602@AM0PR07MB5347.eurprd07.prod.outlook.com> <CAM4esxSHzs6j7NKJjsf1R7XqCkJMPb8vwFhsRQTSLbpU5u-AnQ@mail.gmail.com> <AM0PR07MB53477272CB3D4763682D968FAC672@AM0PR07MB5347.eurprd07.prod.outlook.com>
In-Reply-To: <AM0PR07MB53477272CB3D4763682D968FAC672@AM0PR07MB5347.eurprd07.prod.outlook.com>
From: Martin Duke <martin.h.duke@gmail.com>
Date: Thu, 04 Jan 2024 10:53:29 -0800
Message-ID: <CAM4esxSWbkOAmZmhmASN7e-Gfgp+bak6e1oax0UHFA=O2rSEyQ@mail.gmail.com>
To: Balázs Varga A <balazs.a.varga@ericsson.com>
Cc: The IESG <iesg@ietf.org>, "draft-ietf-detnet-pof@ietf.org" <draft-ietf-detnet-pof@ietf.org>, "detnet-chairs@ietf.org" <detnet-chairs@ietf.org>, "detnet@ietf.org" <detnet@ietf.org>, "lberger@labn.net" <lberger@labn.net>
Content-Type: multipart/alternative; boundary="0000000000001073af060e2340d0"
Archived-At: <https://mailarchive.ietf.org/arch/msg/detnet/6q25wChsdcH0grNJUujfONkZ24w>
Subject: Re: [Detnet] Martin Duke's Discuss on draft-ietf-detnet-pof-08: (with DISCUSS and COMMENT)
X-BeenThere: detnet@ietf.org
X-Mailman-Version: 2.1.39
Precedence: list
List-Id: Discussions on Deterministic Networking BoF and Proposed WG <detnet.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/detnet>, <mailto:detnet-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/detnet/>
List-Post: <mailto:detnet@ietf.org>
List-Help: <mailto:detnet-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/detnet>, <mailto:detnet-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 04 Jan 2024 18:53:48 -0000

The changes mostly look good.

I gather the other ADs would like to think about this guarantee of in-order
delivery bit. If we end up sticking with the current design, I would insist
that the document be clearer that the POF is not actually ensuring in-order
delivery, in order to reduce packet loss.

On Thu, Jan 4, 2024 at 5:25 AM Balázs Varga A <balazs.a.varga@ericsson.com>
wrote:

> Hi Martin, further replies inline [BV]. Thanks Bala’zs
>
>
>
> *From:* Martin Duke <martin.h.duke@gmail.com>
> *Sent:* Wednesday, January 3, 2024 8:14 PM
> *To:* Balázs Varga A <balazs.a.varga@ericsson.com>
> *Cc:* The IESG <iesg@ietf.org>; draft-ietf-detnet-pof@ietf.org;
> detnet-chairs@ietf.org; detnet@ietf.org; lberger@labn.net
> *Subject:* Re: Martin Duke's Discuss on draft-ietf-detnet-pof-08: (with
> DISCUSS and COMMENT)
>
>
>
> HI Balazs,
>
>
>
> Replies inline.
>
>
>
> On Wed, Jan 3, 2024 at 6:57 AM Balázs Varga A <balazs.a.varga@ericsson.com>
> wrote:
>
> Hi Martin,
>
> Thanks for your review. Please find clarifications below:
>
> 1. Sequencing of PRF, PEF, and POF functions.
> <Reply> Implementation of PRF and PEF are not defied in details in IETF. A
> possible implementation
> of an Elimination (PEF) functionality is described in the IEEE
> 802.1CB-2017 standard. PEF has its own
> internal states and various elimination algorithms (e.g., vector recovery,
> match recovery) can be
> used. If PRF and PEF are not designed and configured correctly, then PEF
> may result in duplicate
> packet delivery (e.g., match recovery is used for bulk flows).
> In section 4.1 the intention was to highlight, that POF cannot repair such
> scenarios.
>
> POF is usually the last thing before egress, but not always. It may be
> located within the DetNet
> network if PREOF is designed so.
>
>
>
> [MD] Fair enough. Perhaps you could make this change:
>
> OLD
>
> Error cases in which the POF is presented duplicate packets can lead to
> out of
> order delivery of duplicate packets as well as to increased delays.
>
>
>
> NEW
>
> Error cases in which the PRF or PEF implementation errors present
> duplicate packets to the POF can lead to out of
> order delivery of duplicate packets as well as to increased delays.
>
>
>
> [BV] Not only implementation errors can lead to duplicate packets,
>
> so a somewhat finetuned change as per your comment:
>
> OLD
>
> Error cases in which the POF is presented duplicate packets can lead to
> out of
> order delivery of duplicate packets as well as to increased delays.
>
>
>
> NEW
>
> Error cases in which duplicate packets are presented to the POF can lead
> to out of
> order delivery of duplicate packets as well as to increased delays.
>
>
>
>
>
>
> 2. Requirements for ordering vs loss
> <Reply> These POF algorithms are designed for DetNet networks as part of
> the DetNet service sub-layer
> (PREOF) functionalities. POF never drops any packet. Only the PEF has the
> task to drop duplicates.
> The only task for POF is to correct the order of packets (if it is
> possible with its configuration).
> Just again, if PRF and PEF are not designed and configured correctly, then
> POF may not re-order
> the packets in some scenarios. If POF parameters are not designed and
> configured correctly,
> it may not re-order the packets.
>
>
>
> [MD] I'm not going to hold indefinitely on this point, because it's not my
> design or use case.  If you and the AD *really* think this is how it should
> work, I'll relent.
>
>
>
> But ISTM that by forwarding out of order packets you are undermining the
> POF function in the service of avoiding packet loss, which is not the POF's
> job.
>
>
>
> Forwarding a packet below pof_last_sent is by definition out of order. I
> would think a POF would focus on guaranteeing order delivery, and rely on
> the reliabilty
>
> functions to provide reliability.
>
>
>
> [BV] Ack.
>
>
>
>
> 3. Strange assumptions in the advanced algorithm.
> 3a. Is there an assumption that there is no PRF beyond the POF?
> <Reply> There is no such an assumption. It is design specific and depends
> on the topology, flow
> parameters, etc., how the PREOF functions are located in the network. A
> POF function (and its
> parameters) has to be designed based on the delay budget upto the point of
> the POF function.
> If there are further PRF/PEF stages behind the POF, then You may need a
> further POF function
> after them.
>
>
>
> [MD] If a POF is not accounting for downstream delay, it would appear that
> limiting the timeout isn't actually ensuring that traffic falls within the
> delay guarantees.
>
>
>
> [BV] POF parameters are configured to fulfill the delay bound.
>
> This is shown e.g., in Figure3. + text above it:
>
> “ … the
>
>    remaining delay budget of a flow at the POF point is larger than
>
>   "POFMaxDelay" time.”
>
>
>
>
> 3b. The introduction suggests that out-of-order delivery is a result of
> the PRF
> rather than some sort of link-layer pathology.
> <Reply> The out-of-order delivery is a result of PEF (and not the PRF).
>
> 3b. ... So it's sufficient for the timeout to be the limited by the
> remaining time budget for the longest path.
> <Reply> No. The "remaining time budget for the longest path" shows the
> latest delivery time of
> a packet that can fulfil the bounded latency requirement of the flow. The
> necessary buffering
> time is determined by the latency difference of the paths. You have to be
> prepared for the worst
> case scenario: packet "n" received over the shortest path and packet "n-1"
> received over the
> longest path. Packet "n" has to be buffered until packet "n-1" arrives
> (i.e., for the latency
> difference of the paths). The advanced POF algorithm is used if the
> remaining delay budget of a
> flow at the POF point is smaller than the latency difference of the paths.
> (Therefore, buffering for
> "remaining time budget for the longest path" can not re-order packet "n"
> and "n-1".)
>
>
>
> [MD] Yes, thank you for pointing out my analytical error. I withdraw point
> (3b).
>
>
>
> [BV] Ack.
>
>
>
> 4. Is there some reason that "Consensus Boilerplate" is set to NO on the
> datatracker page? Informational RFCs have IETF consensus!
> <Reply> I think this may be an error on the page.
>
>
>
> [MD] Ok, this is easy to fix.
>
>
>
> [BV] Thanks
>
>
>
>
>
>
> I hope these have clarified your concerns.
>
> Thanks & Cheers
> Bala'zs
>
> -----Original Message-----
> From: Martin Duke via Datatracker <noreply@ietf.org>
> Sent: Tuesday, January 2, 2024 10:49 PM
> To: The IESG <iesg@ietf.org>
> Cc: draft-ietf-detnet-pof@ietf.org; detnet-chairs@ietf.org;
> detnet@ietf.org; lberger@labn.net; lberger@labn.net
> Subject: Martin Duke's Discuss on draft-ietf-detnet-pof-08: (with DISCUSS
> and COMMENT)
>
> Martin Duke has entered the following ballot position for
> draft-ietf-detnet-pof-08: Discuss
>
> When responding, please keep the subject line intact and reply to all
> email addresses included in the To and CC lines. (Feel free to cut this
> introductory paragraph, however.)
>
>
> Please refer to
> https://www.ietf.org/about/groups/iesg/statements/handling-ballot-positions/
> for more information about how to handle DISCUSS and COMMENT positions.
>
>
> The document, along with other ballot positions, can be found here:
> https://datatracker.ietf.org/doc/draft-ietf-detnet-pof/
>
>
>
> ----------------------------------------------------------------------
> DISCUSS:
> ----------------------------------------------------------------------
>
> There are several elements here that are either poorly phrased or
> misconceived
> in some way.
>
> 1. Sequencing of PRF, PEF, and POF functions.
>
> Section 4.1 says "However, the PREOF functions run independently without
> any
> state exchange required between the PEF and the POF or the PRF and the POF.
> Error cases in which the POF is presented duplicate packets can lead to
> out of
> order delivery of duplicate packets as well as to increased delays."
>
> but then Section 4.6 says "In DetNet scenarios there is always an
> Elimination
> function before the POF (therefore duplicates are not considered by the
> POF)."
>
> I can't reconcile these statements. How can there be a duplicate packet
> error
> case if the PEF is always before the POF?
>
> A statement that the POF is always the last thing before egress would
> clean up
> some logical holes, like in (3a) below.
>
> 2. Requirements for ordering vs loss
>
> What is the purpose of Sec 4.3 directly forwarding packets with (sequence
> number < POF Last Sent + 1)? There's an implicit requirement that
> delivering
> the packet in order is less important that not dropping it, but is a
> strange
> requirement for a *Packet Ordering Function*. If Detnet is to be decomposed
> into three functions, it is very difficult reason about if the POF
> guarantees
> ordering, but sometimes it ignores that if it's trying to avoid losses.
> Just do
> PRF/PEF if you want to avoid losses!
>
> So I would suggest that the POF forward (sequence number == POF Last Sent
> + 1)
> and drop anything earlier.
>
> 3. Strange assumptions in the advanced algorithm.
>
> 3a. Is there an assumption that there is no PRF beyond the POF? If there
> is,
> it's possible that there are different path delays beyond the POF, and
> that has
> to be accounted for in the algorithm. My guess is that you are assuming
> that,
> given Figure 1. In that case it should be stated explicitly (See point #1).
>
> 3b. The introduction suggests that out-of-order delivery is a result of
> the PRF
> rather than some sort of link-layer pathology. If so, I don't see why it's
> necessary for the POF timeout to be path-dependent. That is, the
> shorter-path
> packets will by definition be in-order[1], and the longer path will be
> out-of-order. So it's sufficient for the timeout to be the limited by the
> remaining time budget for the longest path.
>
> [1] Unless there's a loss on that path. But in that case, there is no
> advantage
> to a longer delay, so my proposed algorithm holds.
>
> Maybe I'm getting the underlying assumptions wrong?
>
> 4. Is there some reason that "Consensus Boilerplate" is set to NO on the
> datatracker page? Informational RFCs have IETF consensus!
>
>
> ----------------------------------------------------------------------
> COMMENT:
> ----------------------------------------------------------------------
>
> Thanks to Kyle Rose for the TSVART review.
>
>