Re: [core] A couple of late comments on Hop-Limit
Carsten Bormann <cabo@tzi.org> Wed, 16 October 2019 11:15 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 4CE29120147 for <core@ietfa.amsl.com>; Wed, 16 Oct 2019 04:15:56 -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=unavailable 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 OkyYjkXh9inK for <core@ietfa.amsl.com>; Wed, 16 Oct 2019 04:15:53 -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 03730120145 for <core@ietf.org>; Wed, 16 Oct 2019 04:15:53 -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 46tV8l1YH5z10hq; Wed, 16 Oct 2019 13:15:51 +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: <9D131FD6-2CE8-4C23-8BF1-0641C3E65A46@ericsson.com>
Date: Wed, 16 Oct 2019 13:15:50 +0200
Cc: "core@ietf.org" <core@ietf.org>
X-Mao-Original-Outgoing-Id: 592917348.508991-955eb36abee88a1c516a1a1b13b4e7f5
Content-Transfer-Encoding: quoted-printable
Message-Id: <D43A1E52-FF72-4A23-8D3F-BD6E62FDCEB6@tzi.org>
References: <9D131FD6-2CE8-4C23-8BF1-0641C3E65A46@ericsson.com>
To: Christer Holmberg <christer.holmberg=40ericsson.com@dmarc.ietf.org>
X-Mailer: Apple Mail (2.3445.9.1)
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/IitpDvHfH3PXyl05MNsIomwN4XY>
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:15:56 -0000
Hi Christer, On Oct 16, 2019, at 12:13, Christer Holmberg <christer.holmberg=40ericsson.com@dmarc.ietf.org> wrote: > > Hi, > > I haven’t followed the hop-limit discussions, so I apologize if the following has already been discussed. I also know that my comments come very late in the process, so sorry for that. Comments are always welcome — it is just less pain to process them when they are early… > Adam may have an opinion regarding Q2. > > > Q1: > > The draft talks about “CoAP messages”. But, if I understand correctly, it is only intended to be used for CoAP request messages, right? > > • Since you use a CoAP option, the mechanism can’t be used in an empty message. > • I assume you don’t want to use the mechanism when sending a response, because then there is a risk that the client will not receive it. Hop-Limit Options are indeed meant to be used in CoAP requests. This needs to be made explicit (*), and it would be a good idea to more specifically talk about requests where the text right now talks about messages that are always requests. (*) RFC 7252 is not a good role model here; not all descriptions of options make explicit whether the option can be used on requests, responses, or both. This is certainly one item we can improve when we decide to generate a revision of that RFC. We are collecting such issues in a github repository; this one now is https://github.com/core-wg/corrclar/issues/12 > Unless I’ve missed it, I think it should be more explicit what the applicability of the mechanism is. > > > Q2: > > The draft says that a CoAP message with the Hop-Limit option value set to 0 bigger than 255 must be rejected with a 4.00 Bad Request response. There are two cases here: 0, and > 255. The latter would be a syntax error for this option; the option description clearly limits the value to a single byte (Table 1). Zero is not a syntax error, but a value that the authors chose to disallow. > • Is 4.00 really an appropriate response code? When reading the HTTP definition for 400 Bad Request (CoAP inherits the semantics), it is about a client error (miss formed message, etc), which is not the case here. A syntax error or a disallowed value in a request is a client error, no? > • Based on my experience in SIP, it is VERY useful to have a dedicated response code for this (SIP defines ‘483 Too Many Hops’). We do have one for this case: TBA1 | Hop Limit Reached But this is different from a syntax error. > Because, when this happens, it is often related to *network configuration and/or routing issues* – not to client implementation issues – so it is VERY useful information when trying to figure out why the message was rejected. Specific response codes are useful if you want specific state machine transitions to happen, but causing a protocol violation is not really normal behavior, so all we need here are diagnostics. Please see Sections 5.5.2 and 5.9.2 of RFC 7252. Section 4 of the draft does define a diagnostic payload for TBA1 | Hop Limit Reached; it could also say something about the bad request case, but maybe the general advice in RFC 7252 is sufficient here. Grüße, Carsten
- [core] A couple of late comments on Hop-Limit Christer Holmberg
- Re: [core] A couple of late comments on Hop-Limit Carsten Bormann
- Re: [core] A couple of late comments on Hop-Limit Christer Holmberg
- Re: [core] A couple of late comments on Hop-Limit Christer Holmberg
- Re: [core] A couple of late comments on Hop-Limit Carsten Bormann
- Re: [core] A couple of late comments on Hop-Limit Christer Holmberg
- Re: [core] A couple of late comments on Hop-Limit mohamed.boucadair
- Re: [core] A couple of late comments on Hop-Limit Christer Holmberg
- Re: [core] A couple of late comments on Hop-Limit mohamed.boucadair
- Re: [core] A couple of late comments on Hop-Limit Adam Roach
- Re: [core] A couple of late comments on Hop-Limit Christer Holmberg