[core] On the technical approach for CoAP message aggregation

Carles Gomez Montenegro <carles.gomez@upc.edu> Tue, 20 May 2025 12:07 UTC

Return-Path: <carles.gomez@upc.edu>
X-Original-To: core@mail2.ietf.org
Delivered-To: core@mail2.ietf.org
Received: from localhost (localhost [127.0.0.1]) by mail2.ietf.org (Postfix) with ESMTP id 23B692AA4A72 for <core@mail2.ietf.org>; Tue, 20 May 2025 05:07:23 -0700 (PDT)
X-Virus-Scanned: amavisd-new at ietf.org
X-Spam-Flag: NO
X-Spam-Score: -2.099
X-Spam-Level:
X-Spam-Status: No, score=-2.099 tagged_above=-999 required=5 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no
Authentication-Results: mail2.ietf.org (amavisd-new); dkim=pass (2048-bit key) header.d=upc.edu
Received: from mail2.ietf.org ([166.84.6.31]) by localhost (mail2.ietf.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id jE0YREkpfdpZ for <core@mail2.ietf.org>; Tue, 20 May 2025 05:07:21 -0700 (PDT)
Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail2.ietf.org (Postfix) with ESMTPS id 002C72AA4A1F for <core@ietf.org>; Tue, 20 May 2025 05:07:12 -0700 (PDT)
Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-ad560321ed9so318100166b.1 for <core@ietf.org>; Tue, 20 May 2025 05:07:12 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=upc.edu; s=google; t=1747742832; x=1748347632; darn=ietf.org; h=to:subject:message-id:date:from:reply-to:mime-version:from:to:cc :subject:date:message-id:reply-to; bh=e3v98vB8TXLfiKSD0eS+ypF9Ci1rGX3a+iiKMt6Ntl0=; b=FGU7N155YlfU6VmENsNuSs99uhVh17Dj3CZF9e4qvdDt0HjidM+avrtO0r/H2rWIw6 LmZXEemNWrWrRyE2zGLgBme1F5Xvzi8WFH5BMPL9mvIgp0U18oov30VUrvMGBT3cxk+6 mYr/pv9Hk21NrGYfnLZ/SFYNIVzY4iqWLbRBsDxJqbCLGPxqGeYudc+fZY/f5+Tl2vTd xAUCWJnmxCpuiDYHUkXy7noxasEo2+YMJnszZAF8Bohn3B0soLxP8zlyqAiI21+s3bOq 5ngWhzvCezKOxadvNDxoZfmaMEUGPYKztxH8CsOaLK9rsXec5HaSPu0ixiUhqzKzW9uf nYOA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747742832; x=1748347632; h=to:subject:message-id:date:from:reply-to:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=e3v98vB8TXLfiKSD0eS+ypF9Ci1rGX3a+iiKMt6Ntl0=; b=ZK+ZjXfiS21mtNeBVYOpN1CYAqnA1Hfm2MpwD22hDQVCJwqZLuosIGJN9TGWkPRgPC L0DfWcH+eGCPV2ZSp6y/Cr4ceLfqDAceXyVuSwXrzol7ZY3qx0jVaCvUDYOlxJzquwFw IatJ0X0MKexJtHMmilcRtKcydGRk2gTAfAL40fcMHFIrRTjG+MWgzw24d9UM+X9d+iv5 aQleRLRzB8ZHGWNs3qXYutbbArJVi8Li1KmRAuoqLGiL3KOyMsLOt1qua6iFjXdcY4y8 ArIni+ZbV07aufn0TtnTFuWo+OqH1AfeZ6IKhZiLnQIJXLHwIIoiD/s/g6HLnfW3Qww+ s0+Q==
X-Gm-Message-State: AOJu0Yx/Hxhl7xsfWDG6nHZLem363Yh44Dk2jP08EjYu6GThRxpkDdik IOZVOkOcunSs+MuDofrb1cncjNqm8X2Mupr1ouL3CVoqDku0vS9C0eQnwWB9eli+vcwAq5bl6XB tBc+J2ML/TZtSHXb4FOyQFopZGkTEfY2p0FH0jxOiD8IR966o6a54U9PEuw==
X-Gm-Gg: ASbGncvyzrXofl0QhRqKCcFCx1kipbivbPVA/+77+IRviVzaAcGZArpVlWd75gvIUvR aUDMGOlLLtzx68zpjgXntWHFl+HT/B9deRMl8Sne/d99cTl0wavjs1QRaJKFYxQVfpPJ21epYFF jEjMj+KpPEm9yeoxT516IJbB2/GnvpsXNhBTBY9628ZQE=
X-Google-Smtp-Source: AGHT+IH2Knio1oEyTeR9xUO3nzG7WbDlqxj0sRHnQITm8eewT6aHCfuckJmIYV22MerxQ/3BrYSC5biXP4wvOS7O+ww=
X-Received: by 2002:a17:906:fd84:b0:ad5:1bfd:30f0 with SMTP id a640c23a62f3a-ad52d48dbf3mr1457958766b.18.1747742831567; Tue, 20 May 2025 05:07:11 -0700 (PDT)
MIME-Version: 1.0
From: Carles Gomez Montenegro <carles.gomez@upc.edu>
Date: Tue, 20 May 2025 14:07:00 +0200
X-Gm-Features: AX0GCFuGoAfX-PDbftxvvt1cdCguym6DYqRdeoLGp5O4AVTSypvTdj9Ia6v6yjg
Message-ID: <CAAUO2xw5eqobxRhy15OOo99N7b2StwK8+2sSd=pR83Fgkc++Rg@mail.gmail.com>
To: core@ietf.org
Content-Type: multipart/alternative; boundary="000000000000a27b3c063590163d"
Message-ID-Hash: 5WS2BECRDIXNWJD6PVELLBIIUZH4K5BY
X-Message-ID-Hash: 5WS2BECRDIXNWJD6PVELLBIIUZH4K5BY
X-MailFrom: carles.gomez@upc.edu
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
X-Mailman-Version: 3.3.9rc6
Precedence: list
Reply-To: carles.gomez@upc.edu
Subject: [core] On the technical approach for CoAP message aggregation
List-Id: "Constrained RESTful Environments (CoRE) Working Group list" <core.ietf.org>
Archived-At: <https://mailarchive.ietf.org/arch/msg/core/gtFMTUX_dog9Jkv8LkQ87X42w50>
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>

Dear CoRE WG,

In the CoRE WG session at IETF 122 (Bangkok), we received some comments
regarding the technical approach to support message aggregation in
draft-gomez-core-coap-bp-03, currently based on the Payload-length option.
An excerpt of the relevant part of the minutes can be found at the end of
this message.

The main point is trying to avoid the need to parse possibly several
options in each individual message (that belongs to an Aggregate message)
to determine the payload length of each such message.

To this end, there might be different approaches, including making the
Payload length option number to be zero or another low number (as mentioned
briefly in IETF 122), as well as modifying the actual CoAP header format.

One consideration is that, while message aggregation is currently defined
in the CoAP over BP draft (and we can define a specific CoAP header format
for CoAP over BP), perhaps message aggregation could be used over other
transports (e.g., UDP) as well.

We were wondering: would there be any knee-jerk reaction or any preferred
technical approach (e.g., among the ones mentioned) to support CoAP message
aggregation?

Thanks in advance!

Cheers,

Carles and Anna


------------- Excerpt from the CoRE WG session at IETF 122 ------------

CA: I like message aggregation. If it works out like that technically,
then aggregation with the Payload Length option might be an instant
candidate for -core-corr-clar.
CG: Yes, this may work outside this Internet Draft.
CB (on chat): +1 (Even though I'm still not sure why this isn't part of
the header...)
CB: I mentioned previously that, for CoAP over TCP, we changed the CoAP
header. Putting a Payload Length option is not so different, but it
requires parsing all the options in the individual messages in order to
parse the aggregate message.
CA (chat only): That was also my knee-jerk reaction; that is what I
meant with "not sure on technical implementation".