Re: [core] Review of draft-ietf-core-echo-request-tag-07

Christian M. Amsüss <christian@amsuess.com> Thu, 31 October 2019 16:00 UTC

Return-Path: <christian@amsuess.com>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 3772812008B; Thu, 31 Oct 2019 09:00:09 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.499
X-Spam-Level:
X-Spam-Status: No, score=-1.499 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, KHOP_HELO_FCRDNS=0.399, SPF_HELO_NONE=0.001, SPF_NONE=0.001] autolearn=no autolearn_force=no
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 sotz0zCeUd3p; Thu, 31 Oct 2019 09:00:07 -0700 (PDT)
Received: from prometheus.amsuess.com (alt.prometheus.amsuess.com [IPv6:2a01:4f8:190:3064::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6086E12012C; Thu, 31 Oct 2019 09:00:07 -0700 (PDT)
Received: from poseidon-mailhub.amsuess.com (095129206250.cust.akis.net [95.129.206.250]) by prometheus.amsuess.com (Postfix) with ESMTPS id DD27B46D0A; Thu, 31 Oct 2019 17:00:05 +0100 (CET)
Received: from poseidon-mailbox.amsuess.com (unknown [IPv6:2a02:b18:c13b:8010:a800:ff:fede:b1bf]) by poseidon-mailhub.amsuess.com (Postfix) with ESMTP id 39E0336; Thu, 31 Oct 2019 17:00:04 +0100 (CET)
Received: from hephaistos.amsuess.com (unknown [IPv6:2a02:b18:c13b:8010:6d78:bd47:b07:7e5c]) by poseidon-mailbox.amsuess.com (Postfix) with ESMTPSA id B9EB17A; Thu, 31 Oct 2019 17:00:03 +0100 (CET)
Received: (nullmailer pid 19441 invoked by uid 1000); Thu, 31 Oct 2019 16:00:00 -0000
Date: Thu, 31 Oct 2019 17:00:00 +0100
From: "Christian M. Amsüss" <christian@amsuess.com>
To: Francesca Palombini <francesca.palombini@ericsson.com>
Cc: "draft-ietf-core-echo-request-tag@ietf.org" <draft-ietf-core-echo-request-tag@ietf.org>, "core@ietf.org" <core@ietf.org>
Message-ID: <20191031160000.GA28025@hephaistos.amsuess.com>
References: <A4E2062A-364C-448D-81EF-A96D5E29FCD9@ericsson.com>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg="pgp-sha256"; protocol="application/pgp-signature"; boundary="CE+1k2dSO48ffgeK"
Content-Disposition: inline
In-Reply-To: <A4E2062A-364C-448D-81EF-A96D5E29FCD9@ericsson.com>
User-Agent: Mutt/1.12.2 (2019-09-21)
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/ccN-2OIAtrScW9u-ddhiBf4tmzc>
Subject: Re: [core] Review of draft-ietf-core-echo-request-tag-07
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Constrained RESTful Environments \(CoRE\) Working Group list" <core.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/core>, <mailto:core-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core/>
List-Post: <mailto:core@ietf.org>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/core>, <mailto:core-request@ietf.org?subject=subscribe>
X-List-Received-Date: Thu, 31 Oct 2019 16:00:09 -0000

Hello Francesca,

thanks for your review. I'm only answering the points that are not
addressed in parallel by Göran and John. Comments that resulted in a
simple probably uncontroversial text change were moved to the end of the
mail; they are reflected in a [pending pull request].

> # High level suggestions #

(Out of scope here, but to get it documented: The topic intros will move
to the topics as you suggested. Appendix A will stay and maybe grow a few
words on its applicability to not give the impression that this is the
generally recommended algorithm for all scenarios).

> * Section 3.2
> 
> I am not sure it is said anywhere what the server should do if it
> supports the Request-Tag option and it receives it in a non-blockwise
> message... I guess just discard, but it would be good to explicitely
> state.
> 
> Also, could this option be used for something else? For example, I am
> thinking of Observe operations, re-registration... Does not need to be
> defined here, but if we MANDATE that it can only be used with
> blockwise, we are practically stopping any other use that might come
> up...

I did consider making this a "MUST NOT process" for anything else, but
I think that would rule out those other applications that you think of.

Currently we state that they MUST NOT be present when neither Block1 nor
Block2 is present (though, AFAIR, without good reason other that we
don't see a use case). Should that be left in, or would you like to see
that relaxed?

> * Section 3.4.3
> 
> I believe this section is missing something on the lines of: 
> 
> "Proxies that are aware of this specification can modify their
> implementation to simply forward block operations."
> 
> Would you agree?

It already says "If it [does X], it does not need to keep track of any
further block state." say that?

(I might add " and can simply forward the messages", but would that
really add something?)


KR
c

[pending pull request]: https://github.com/core-wg/echo-request-tag/pull/51


---

"simply fixed" comments:

> "   (Concurrent block-wise request operations are impossible with the
>    options of [RFC7959] because the second operation's block overwrites
>    any state of the first exchange.).
> "
> 
> I believe this is true, but could you point to the section that states
> that? I didn't manage to find it while checking.

Reference made more precise, "from a single endpopoint" added.

> " They can
>    still be treated as independent messages by the server (e.g. when it
>    sends 2.01/2.04 responses for every block), or initiate a new
>    operation (overwriting kept context) when the later message carries
>    Block1 number 0.
> "
>
> I have a hard time parsing/understanding this paragraph, particularly from "or initiate..."

Split up into separate sentences for better clarity.

> * Section 3.3
> 
> "
>    Clients MUST NOT recycle a request tag unless the first operation has
>    concluded. 
> "
> 
> in the case where a client supports but does not use Request-Tag, this
> implies "concurrent block operations without Request-Tag are not
> allowed". If that is the case, I would like that to be stated
> explicitely.
> 
> (also minor, I'd like to add "that support Request-Tag" after "Clients")

That requirement was already kind of conditional on the client using
Request-Tag for a particular purpose -- for otherwise the "unless
concluded" clause makes no sense, for that's defined by the purpose.

Rephrased to pull in the purpose before the MUST and make that explicit.

The "that support Request-Tag" comment should be obsolete by hat, for
only who supports it can use it for something.

(We did, in the chat earlier, consider asking the WG whether that'd all
mean that we're updating RFC7959, but as we're now back to "If you want
to achieve X, do Y" wording, I don't see necessity for such an update).

> * Section 3.3
> 
> The last sentence gives some requirements about where the Request-Tag
> option can/musty be used per message. I felt the document was missing
> on usage requirements (e.g. if it is set, it MUST be set for all
> requests for a specific operation)

Added to the initial (now split up) paragraph of that section.

> * Section 3.4.2
> 
> "
>    When initializing a new block-wise operation, a client has to look at
>    other active operations:
> 
>    o  If any of them is matchable to the new one, and the client neither
>       wants to cancel the old one nor postpone the new one, it can pick
>       a Request-Tag value that is not in use by the other matchable
>       operations for the new operation.
> 
>    o  Otherwise, it can start the new operation without setting the
>       Request-Tag option on it.
> "
> 
> Does not cover the fact that Request-Tag can be omitted if that is a
> different from the other matchable operations. ("pick a new value"
> excludes it)

Explicitly included as an option now.

(Would have been even easier if there were a once-and-for-all definition
of a "request-tag value" that can be absent or have the option's data,
but that had long-winded wording in the last version that was in, and
still might be mistaken by readers that don't have the precise
definition at hand).