[core] Re: CoAP message aggregation (over BP, and perhaps other transports)

Carsten Bormann <cabo@tzi.org> Sun, 21 July 2024 21:43 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 C2976C14F69C; Sun, 21 Jul 2024 14:43:50 -0700 (PDT)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -4.21
X-Spam-Level:
X-Spam-Status: No, score=-4.21 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, RCVD_IN_ZEN_BLOCKED_OPENDNS=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=ham autolearn_force=no
Received: from mail.ietf.org ([50.223.129.194]) by localhost (ietfa.amsl.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bDkYwGmUeR9s; Sun, 21 Jul 2024 14:43:47 -0700 (PDT)
Received: from smtp.zfn.uni-bremen.de (smtp.zfn.uni-bremen.de [134.102.50.21]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 91AFBC14F681; Sun, 21 Jul 2024 14:43:44 -0700 (PDT)
Received: from clients-pool6-0352.vpn.uni-bremen.de (clients-pool6-0352.vpn.uni-bremen.de [134.102.91.96]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.zfn.uni-bremen.de (Postfix) with ESMTPSA id 4WRxk60XL0zDCc2; Sun, 21 Jul 2024 23:43:42 +0200 (CEST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.7\))
From: Carsten Bormann <cabo@tzi.org>
In-Reply-To: <CAAUO2xzRo_BKe9xZBOJytN8nvP9nMK35eH-6tj8sU_3ZqZV3vg@mail.gmail.com>
Date: Sun, 21 Jul 2024 23:43:41 +0200
X-Mao-Original-Outgoing-Id: 743291021.7381051-97792fb569ccf0e36437cffedff4fc53
Content-Transfer-Encoding: quoted-printable
Message-Id: <79CC1EFE-0774-4A54-95CF-A45E06445A65@tzi.org>
References: <CAAUO2xzRo_BKe9xZBOJytN8nvP9nMK35eH-6tj8sU_3ZqZV3vg@mail.gmail.com>
To: carles.gomez@upc.edu
X-Mailer: Apple Mail (2.3608.120.23.2.7)
Message-ID-Hash: MJN7FBQD4BGCKZV2AVL46BHWSOLSH67H
X-Message-ID-Hash: MJN7FBQD4BGCKZV2AVL46BHWSOLSH67H
X-MailFrom: cabo@tzi.org
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-core.ietf.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
CC: core@ietf.org, dtn@ietf.org
X-Mailman-Version: 3.3.9rc4
Precedence: list
Subject: [core] Re: CoAP message aggregation (over BP, and perhaps other transports)
List-Id: "Constrained RESTful Environments (CoRE) Working Group list" <core.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/3WHTxgWu3DeB0YnGHC1ykYeM3Do>
List-Archive: <https://mailarchive.ietf.org/arch/browse/core>
List-Help: <mailto:core-request@ietf.org?subject=help>
List-Owner: <mailto:core-owner@ietf.org>
List-Post: <mailto:core@ietf.org>
List-Subscribe: <mailto:core-join@ietf.org>
List-Unsubscribe: <mailto:core-leave@ietf.org>

On 2024-06-18, at 11:29, Carles Gomez Montenegro <carles.gomez=40upc.edu@dmarc.ietf.org> wrote:

[…]
> 
> In IETF 119, while presenting the CoAP over BP draft [1] in the DTN WG session, the idea of aggregating several CoAP messages over a single bundle was suggested by Joshua Deaton (thanks!). As long as the additional aggregation delay can be tolerated, the idea can be useful to reduce protocol overhead.
> 
> If there is interest to support CoAP message aggregation over BP, perhaps a more general mechanism, not necessarily dependent on BP, might be interesting, as it might be used over other transports (e.g., UDP) as well.
> 
> One way to enable CoAP message aggregation over BP would be the approach in Appendix A.2 of [2], which (in the context of CoAP message aggregation over UDP) proposes using a new CoAP option, called Payload-Length option, to delimit the payload of each aggregated message.

That document turns 10 years this year!
For me, it has been pretty much superseded by the framing approach in RFC 8323, as in:

    0                   1                   2                   3
    0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |  Len  |  TKL  | Extended Length (if any, as chosen by Len) ...
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |      Code     | Token (if any, TKL bytes) ...
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |  Options (if any) ...
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
   |1 1 1 1 1 1 1 1|    Payload (if any) ...
   +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

               Figure 4: CoAP Frame for Reliable Transports

(Nothing in this format limits its applicability to reliable transports only; it really is about delimiting CoAP frames in a larger stream of bytes.)

> What would be your thoughts about reprising work such as [3] and/or enabling CoAP message aggregation over several possible transports?

Can we do something based on RFC 8323 here?

Grüße, Carsten