[core] ack message format in confirmable notifications

Matthieu Vial <matthieu.vi4l@gmail.com> Fri, 06 November 2015 08:22 UTC

Return-Path: <matthieu.vi4l@gmail.com>
X-Original-To: core@ietfa.amsl.com
Delivered-To: core@ietfa.amsl.com
Received: from localhost (ietfa.amsl.com [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id AF6D21B3794 for <core@ietfa.amsl.com>; Fri, 6 Nov 2015 00:22:06 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -1.999
X-Spam-Level:
X-Spam-Status: No, score=-1.999 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, SPF_PASS=-0.001] autolearn=ham
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 hsSvSxldoOGc for <core@ietfa.amsl.com>; Fri, 6 Nov 2015 00:22:05 -0800 (PST)
Received: from mail-ig0-x230.google.com (mail-ig0-x230.google.com [IPv6:2607:f8b0:4001:c05::230]) (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 331201B3793 for <core@ietf.org>; Fri, 6 Nov 2015 00:22:05 -0800 (PST)
Received: by igbxm8 with SMTP id xm8so4546472igb.1 for <core@ietf.org>; Fri, 06 Nov 2015 00:22:04 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=b2iR5otRNgAmwP6CCtHLFlQ6JdvwLpE0pgVs74LLCAs=; b=Yk89biZntjSejWU/aV6s+QSAG2X/LpNMdcPH7mEo2b2nhOPZkILOwgnesYMnoGNJyR f2bcLUc6jv8EuCSNVXM78XkTGUFbgeR5iCEdlWNJwhy6u2vRkwAqJyCxwl2WHgiZ8Tbk KYeVZKiXwYyPuWt68DAcnisUKg09eHPYa2czTkITLNvvCKwIPKriPIc/a44x1uZHocuC kQSk678KJv4IJ5KboDowuMbdGfJeNmclFk8niXFxqs+e0wvzr/0XltTXV8ZfUqc/ToIQ j8bbHBTdePDLyiOJz4CiBcj1mZVpz2JrJre5FzebJA1BB3Gu1xhCVdWwzqGnGcRvz71N /8kw==
MIME-Version: 1.0
X-Received: by 10.50.30.6 with SMTP id o6mr8112465igh.94.1446798124606; Fri, 06 Nov 2015 00:22:04 -0800 (PST)
Received: by 10.107.30.20 with HTTP; Fri, 6 Nov 2015 00:22:04 -0800 (PST)
Date: Fri, 06 Nov 2015 09:22:04 +0100
Message-ID: <CAJetPZGdtxKrPMXNb8D3_+y1+Eevn56siEdykNQQUNLA0uA2yQ@mail.gmail.com>
From: Matthieu Vial <matthieu.vi4l@gmail.com>
To: "core@ietf.org WG" <core@ietf.org>
Content-Type: multipart/alternative; boundary="047d7bd75860476e3a0523daf011"
Archived-At: <http://mailarchive.ietf.org/arch/msg/core/p-XrJZVlcASE873DCVSgUf3Am9s>
Subject: [core] ack message format in confirmable notifications
X-BeenThere: core@ietf.org
X-Mailman-Version: 2.1.15
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: Fri, 06 Nov 2015 08:22:06 -0000

Hi all,

There is no example of confirmable notification in RFC7641 and I would like
to clarify the format of the ack message sent by the coap client.

Basically, an ack message to a confirmable notification has no content and
no REST semantics so the code is 0.00.

According to https://tools.ietf.org/html/rfc7252#section-3:
"As a special case, Code 0.00 indicates an Empty message."

So this message should be an empty message.

According to https://tools.ietf.org/html/rfc7252#section-4.1 an empty
message is built as :

"An Empty message has the Code field set to 0.00.  The Token Length
   field MUST be set to 0 and bytes of data MUST NOT be present after
   the Message ID field.  If there are any bytes, they MUST be processed
   as a message format error."

If my understanding of the RFC is right, as a CoAP implementer, do you
enforce 0-length token on server side. Is it something you check in
plugtests ? Is it something we want to enforce in an implementation ?

Thanks,
Matthieu