Re: [6lo] Barry Leiba's Discuss on draft-ietf-6lo-deadline-time-04: (with DISCUSS and COMMENT)

Carsten Bormann <cabo@tzi.org> Sun, 12 May 2019 18:49 UTC

Return-Path: <cabo@tzi.org>
X-Original-To: 6lo@ietfa.amsl.com
Delivered-To: 6lo@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 66F6C1200D5; Sun, 12 May 2019 11:49:17 -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 FI1f5TF2H3nO; Sun, 12 May 2019 11:49:15 -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 9CDBA120020; Sun, 12 May 2019 11:49:12 -0700 (PDT)
Received: from [192.168.217.116] (p54A6CC75.dip0.t-ipconnect.de [84.166.204.117]) (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 452CfF4W8FzyZ6; Sun, 12 May 2019 20:49:09 +0200 (CEST)
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: <155766926695.31687.17410585533455050681.idtracker@ietfa.amsl.com>
Date: Sun, 12 May 2019 20:49:08 +0200
Cc: The IESG <iesg@ietf.org>, draft-ietf-6lo-deadline-time@ietf.org, 6lo-chairs@ietf.org, Samita Chakrabarti <samitac.ietf@gmail.com>, Shwetha Bhandari <shwethab@cisco.com>, 6lo@ietf.org
X-Mao-Original-Outgoing-Id: 579379746.638319-9f409226b51f1b719f49f4fb22300b5a
Content-Transfer-Encoding: quoted-printable
Message-Id: <5D48BA8F-7AB3-46B1-8558-0D8CE88CC420@tzi.org>
References: <155766926695.31687.17410585533455050681.idtracker@ietfa.amsl.com>
To: Barry Leiba <barryleiba@computer.org>
X-Mailer: Apple Mail (2.3445.9.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/6lo/xtsJGW-qWOAMfpB9xgX3znrz6Y0>
Subject: Re: [6lo] Barry Leiba's Discuss on draft-ietf-6lo-deadline-time-04: (with DISCUSS and COMMENT)
X-BeenThere: 6lo@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: "Mailing list for the 6lo WG for Internet Area issues in IPv6 over constrained node networks." <6lo.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/6lo>, <mailto:6lo-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/6lo/>
List-Post: <mailto:6lo@ietf.org>
List-Help: <mailto:6lo-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/6lo>, <mailto:6lo-request@ietf.org?subject=subscribe>
X-List-Received-Date: Sun, 12 May 2019 18:49:18 -0000

On May 12, 2019, at 15:54, Barry Leiba via Datatracker <noreply@ietf.org> wrote:
> 
> Why is DTL the length *minus 1*?  Doesn’t that invite mistakes?  Is there a
> reason not to make it the length, and to say that 0 is not a valid value?

Fundamentally, a small integer encoded into a bitfield is best encoded as a value starting from 0, instead of creating holes at the bottom *and* the top.  Also, in this case, the 4-bit value encoding DTL can be between 0 and 15, so the length in bits could be 0 to 60, which is not enough for 64 bits.
So adding one sounds fine, even if you believe holes are good.  

But then, I don’t understand why both DT and OTD are said to be “8..64” bits — that needs 15 possible values, not 16; OTL has only 3 bits (which cannot express 15 possible values, which are probably not needed anyway), and the example for OTL has a DT of 4 bits.

Grüße, Carsten