Re: [core] I-D Action: draft-ietf-core-echo-request-tag-04.txt

Carsten Bormann <cabo@tzi.org> Tue, 26 March 2019 12:08 UTC

Return-Path: <cabo@tzi.org>
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 982361202DC for <core@ietfa.amsl.com>; Tue, 26 Mar 2019 05:08:30 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.199
X-Spam-Level:
X-Spam-Status: No, score=-4.199 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, URIBL_BLOCKED=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 6uoNOQjbviBF for <core@ietfa.amsl.com>; Tue, 26 Mar 2019 05:08:28 -0700 (PDT)
Received: from smtp.uni-bremen.de (gabriel-vm-2.zfn.uni-bremen.de [134.102.50.17]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id B885B1202BC for <core@ietf.org>; Tue, 26 Mar 2019 05:08:28 -0700 (PDT)
Received: from client-0071.vpn.uni-bremen.de (client-0071.vpn.uni-bremen.de [134.102.107.71]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.uni-bremen.de (Postfix) with ESMTPSA id 44T8zb0fGYzyZn; Tue, 26 Mar 2019 13:08:27 +0100 (CET)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 11.5 \(3445.9.1\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <155338727338.15565.5871340473693646708@ietfa.amsl.com>
Date: Tue, 26 Mar 2019 13:08:26 +0100
X-Mao-Original-Outgoing-Id: 575294904.709197-9b7e53d205207d0818009c07638dc21d
Content-Transfer-Encoding: quoted-printable
Message-Id: <4FEAEA56-D979-4435-B5D6-EF6362E3D7FB@tzi.org>
References: <155338727338.15565.5871340473693646708@ietfa.amsl.com>
To: core <core@ietf.org>
X-Mailer: Apple Mail (2.3445.9.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/-idBiwBZYBHy7cNaDecXOtNvVWc>
Subject: Re: [core] I-D Action: draft-ietf-core-echo-request-tag-04.txt
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: Tue, 26 Mar 2019 12:08:31 -0000

On Mar 24, 2019, at 01:27, internet-drafts@ietf.org wrote:
> 
> 
> A New Internet-Draft is available from the on-line Internet-Drafts directories.
> This draft is a work item of the Constrained RESTful Environments WG of the IETF.
> 
>        Title           : CoAP: Echo, Request-Tag, and Token Processing
>        Authors         : Christian Amsüss
>                          John Mattsson
>                          Göran Selander
> 	Filename        : draft-ietf-core-echo-request-tag-04.txt
> 	Pages           : 24
> 	Date            : 2019-03-23

Thank you!

I only have two editorial to semi-editorial comments (chairs-hat-off) about Section 5, which can be handled during the WGLC:

— I don’t know how to formally prove that a counter is “easiest”.  So I would probably avoid the absolute.  Calling out more explicitly what scope that counter has (I.e., the messages covered by the matching rule) might help, too.

— I don’t understand the comment about length-value coding.  There already is a length that governs the token.  The encoding informally described as “o256” in Appendix A.4 of draft-bormann-coap-misc-27.txt works well for me.  Maybe you mean that.  (Feel free to copy-paste that appendix.)

Grüße, Carsten

      # byte strings lexicographically goedelized as numbers (one+256 coding)
      def o256_encode(num)
        str = empty_buffer
        while num > 0
          num -= 1
          str << (num & 0xFF)
          num >>= 8
        end
        str.reverse
      end

      def o256_decode(str)
        num = 0
        str.each_byte do |b|
          num <<= 8
          num += b + 1
        end
        num
      end