Re: [core] A couple of late comments on Hop-Limit

Carsten Bormann <cabo@tzi.org> Wed, 16 October 2019 11:37 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 4E44C120236 for <core@ietfa.amsl.com>; Wed, 16 Oct 2019 04:37:20 -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, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, 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 kSX_v2kZMV2H for <core@ietfa.amsl.com>; Wed, 16 Oct 2019 04:37:18 -0700 (PDT)
Received: from gabriel-vm-2.zfn.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 4A0401200FD for <core@ietf.org>; Wed, 16 Oct 2019 04:37:18 -0700 (PDT)
Received: from [192.168.217.110] (p548DCE50.dip0.t-ipconnect.de [84.141.206.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gabriel-vm-2.zfn.uni-bremen.de (Postfix) with ESMTPSA id 46tVdS63Jrz10j8; Wed, 16 Oct 2019 13:37:16 +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: <FF5FA0C8-B277-471F-8392-FCB87971DB7B@ericsson.com>
Date: Wed, 16 Oct 2019 13:37:16 +0200
Cc: "core@ietf.org" <core@ietf.org>
X-Mao-Original-Outgoing-Id: 592918634.788792-2e3d211808356a07c360ea05b50c6688
Content-Transfer-Encoding: quoted-printable
Message-Id: <3BF91818-E66E-46C4-AF80-EC5014715EE7@tzi.org>
References: <9D131FD6-2CE8-4C23-8BF1-0641C3E65A46@ericsson.com> <D43A1E52-FF72-4A23-8D3F-BD6E62FDCEB6@tzi.org> <FF5FA0C8-B277-471F-8392-FCB87971DB7B@ericsson.com>
To: Christer Holmberg <christer.holmberg@ericsson.com>
X-Mailer: Apple Mail (2.3445.9.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/NxJX0VuB4npUCJcae8_pI3Ly5QQ>
Subject: Re: [core] A couple of late comments on Hop-Limit
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: Wed, 16 Oct 2019 11:37:21 -0000

(Responding just to that specific item now:)

> On Oct 16, 2019, at 13:26, Christer Holmberg <christer.holmberg@ericsson.com> wrote:
> 
>> Specific response codes are useful if you want specific state machine transitions to happen
> 
>    Specific response codes are also very useful for debugging - especially in this case where one probably should start by looking at the network/routing configurations instead of the endpoint implementations.

When designing CoAP, we made a very conscious decision to separate protocol elements such as response codes from diagnostic information.  Creating a new response code just for better diagnostics would be out of character for CoAP.

(Frugality in assigning response codes is a prerequisite to getting by with a small code space, e.g., only 32 possible codes for client errors.  Moreover, the design guideline pointed out above is generally a good idea, as it keeps the state machine clean and also allows permissionless innovation in diagnostic information.)

Grüße, Carsten