Re: [core] ๐Ÿ”” WGLC of draft-ietf-core-stateless-01

Klaus Hartke <hartke@projectcool.de> Sun, 04 August 2019 14:53 UTC

Return-Path: <hartke@projectcool.de>
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 4AF7A120045 for <core@ietfa.amsl.com>; Sun, 4 Aug 2019 07:53:31 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.9
X-Spam-Level:
X-Spam-Status: No, score=-1.9 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham 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 DxnaLrlcLf9M for <core@ietfa.amsl.com>; Sun, 4 Aug 2019 07:53:28 -0700 (PDT)
Received: from wp382.webpack.hosteurope.de (wp382.webpack.hosteurope.de [IPv6:2a01:488:42:1000:50ed:8597::]) (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 C735612003F for <core@ietf.org>; Sun, 4 Aug 2019 07:53:28 -0700 (PDT)
Received: from mail-qt1-f172.google.com ([209.85.160.172]); authenticated by wp382.webpack.hosteurope.de running ExIM with esmtpsa (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) id 1huHsz-00064h-7r; Sun, 04 Aug 2019 16:53:25 +0200
Received: by mail-qt1-f172.google.com with SMTP id h21so78579632qtn.13 for <core@ietf.org>; Sun, 04 Aug 2019 07:53:25 -0700 (PDT)
X-Gm-Message-State: APjAAAUMK3FcbZg2fRmej4kP++j/ooa8HXK2nHE6MyRm+y93fyrlFyxd cS6yzKyEdpAAsIFoM6sEyxsg/sSvY6T9H2xF+HU=
X-Google-Smtp-Source: APXvYqzMVjsjrRu/AOJbfkt8AejU11svL3Vr34haz3CnBuSvFxG+ugG9lydUW4W1JRS1rZJ7Kxy+DktSL4cQ9Iu7MYY=
X-Received: by 2002:ac8:2f66:: with SMTP id k35mr102779284qta.174.1564930403917; Sun, 04 Aug 2019 07:53:23 -0700 (PDT)
MIME-Version: 1.0
References: <BACE74BC-C665-484D-A2D2-541B42077E93@tzi.org>
In-Reply-To: <BACE74BC-C665-484D-A2D2-541B42077E93@tzi.org>
From: Klaus Hartke <hartke@projectcool.de>
Date: Sun, 04 Aug 2019 16:52:47 +0200
X-Gmail-Original-Message-ID: <CAAzbHvZwniKDos5gACZSgyhqWbAHRpHkz5AgNcEV6nNB4Z5fmg@mail.gmail.com>
Message-ID: <CAAzbHvZwniKDos5gACZSgyhqWbAHRpHkz5AgNcEV6nNB4Z5fmg@mail.gmail.com>
To: Carsten Bormann <cabo@tzi.org>
Cc: core <core@ietf.org>
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
X-bounce-key: webpack.hosteurope.de; hartke@projectcool.de; 1564930408; 557f3056;
X-HE-SMSGID: 1huHsz-00064h-7r
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/rkc4xxVD93vqO7-FhpVM0_Yxg2s>
Subject: Re: [core] ๐Ÿ”” WGLC of draft-ietf-core-stateless-01
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: Sun, 04 Aug 2019 14:53:32 -0000

Carsten Bormann wrote:
> # Major
>
> Discovery is currently focused on whether the server supports extended token lengths at all.  Given that the maximum extended token is rather large for a constrained environment, the client may be interested to find out how large tokens can be for this server.  With CSM, this would be trivial (change empty option value to an uint value).  With trial-and-error, this leaves the client with binary search (probably along the lines of the token sizes it actually can make use of).

As discussed in the CoRE virtual interim, it's probably safe to assume
that a client in a constrained environment is already choosing the
most compact token possible for the task. So there's probably not much
it could do when it learns that the server supports extended token
lengths but not of that length (other than, e.g., as a stateless
client going back to making stateful requests).

Changing the CSM from empty to uint might still be worth doing,
though. Done in -02.

> # Minor
>
> Section 3.3 suddenly starts to talk about authentication tags and freshness indicators; this might require additional explanation (in particular since there are BCP 14 keywords in these paragraphs).  Section 4.2.1 has some implementation guidelines that could possibly be expanded to cover this.

I'll move the requirements from section 4.2 to section 3 in -02 to
provide better context.

Thanks!

Klaus