Re: [Anima] draft-vanderstok-anima-constrained-join-proxy-04: how can J know the content-format cf

Esko Dijk <esko.dijk@iotconsultancy.nl> Mon, 30 November 2020 13:28 UTC

Return-Path: <esko.dijk@iotconsultancy.nl>
X-Original-To: anima@ietfa.amsl.com
Delivered-To: anima@ietfa.amsl.com
Received: from localhost (localhost [127.0.0.1]) by ietfa.amsl.com (Postfix) with ESMTP id 1825A3A0ACB for <anima@ietfa.amsl.com>; Mon, 30 Nov 2020 05:28:13 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2.101
X-Spam-Level:
X-Spam-Status: No, score=-2.101 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, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
Authentication-Results: ietfa.amsl.com (amavisd-new); dkim=pass (1024-bit key) header.d=iotconsultancy.nl
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 D3nMCUbmdqgp for <anima@ietfa.amsl.com>; Mon, 30 Nov 2020 05:28:10 -0800 (PST)
Received: from EUR01-VE1-obe.outbound.protection.outlook.com (mail-eopbgr140105.outbound.protection.outlook.com [40.107.14.105]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ietfa.amsl.com (Postfix) with ESMTPS id 6CED83A0AC5 for <anima@ietf.org>; Mon, 30 Nov 2020 05:28:09 -0800 (PST)
ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=hlfEGYP3+waNnjsvmrtsECqRTRVZNlCdshRRjKTMVTjKQ3yzaOvA8pKOvQQ29wsn+LjCJhP9+upzx4mirW++axpW6NjCgdPmszA4G73S+tHxQuFd1718Hkxy5vPBDw47GC4aBdpEKAkr4aT0xgxvyairb3GQhZNHdv5gJ7tk5ZwHV6rf8W4x3cjhDNjNx03jAGF2PhJ8zzf+tdkcge8ESNlkxmz102CAAHW9rZBpfPuvcD3ZFv15VRwG+hjqdXDYBvQj+EKLiu09l3g0VojXI35GvXnBQ6YvLLUkouf4X5tXSUDjaj7pdlrif9gh6kGvj5MFTPgX4mot3qJfGyTijg==
ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gPK6jQuH18YQqE5hvinDqGXfgfqi+binSI0kDf2tzeE=; b=IZ3geWhzxlupnlQeA/eO0Xq5664rPlw2IyiBeyY6L2VVxjDDDbDRmc23DFg8fS0orTQax5Wm24XCX973kUsDjopHRDJEiZnbssfRksGF2YKPqgM/J8nz5DZ3KjAytwim2p/oVHRJ9L0MATjaWy5V53Ucb1nv8ri9jPbKyBht7fL/4eF3kRrDPSJLvE6DwT5UVlxnM/M0rZcsVJJ/8BJrpAmhjffltU9QXt5gH0ucOwKjzf+Xb9n6tJJui/asag57y/KqO4l8pMoYmRgtuahktt9GOGt1sH/6yUc/YuT/ddcgOU+Hghh/dpoCKH4lqcQlBE9aqe+O2ev5lqwqZ0n9pA==
ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=iotconsultancy.nl; dmarc=pass action=none header.from=iotconsultancy.nl; dkim=pass header.d=iotconsultancy.nl; arc=none
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iotconsultancy.nl; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=gPK6jQuH18YQqE5hvinDqGXfgfqi+binSI0kDf2tzeE=; b=xbYwyA3ne7kMe7O4otNbEPbvJ2AdtPHnb48y+QHkxm6lr3EvR1/C3eSgkGvx/E7VayGoHtEJoFEF1OzSo1vZwtauG9zt6GMzHEVDatBM46qDe7Kkv690RbP+fuNQkhCEQLomj8OxP6LxaXaarTSzR3aiT8jAgG9qWAoAbEIWfRQ=
Received: from AM8P190MB0979.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:1d3::8) by AM8P190MB0995.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:1dc::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3611.20; Mon, 30 Nov 2020 13:28:06 +0000
Received: from AM8P190MB0979.EURP190.PROD.OUTLOOK.COM ([fe80::b0bf:bd8a:de8f:55fa]) by AM8P190MB0979.EURP190.PROD.OUTLOOK.COM ([fe80::b0bf:bd8a:de8f:55fa%5]) with mapi id 15.20.3611.031; Mon, 30 Nov 2020 13:28:06 +0000
From: Esko Dijk <esko.dijk@iotconsultancy.nl>
To: Carsten Bormann <cabo@tzi.org>
CC: "anima@ietf.org" <anima@ietf.org>, peter van der Stok <consultancy@vanderstok.org>
Thread-Topic: [Anima] draft-vanderstok-anima-constrained-join-proxy-04: how can J know the content-format cf
Thread-Index: AdbHF+blpV7Qy5VlRz2xDc1vWTnV8gAAoxSAAAAYPAA=
Date: Mon, 30 Nov 2020 13:28:06 +0000
Message-ID: <AM8P190MB0979334D3CA57F3DEB26D420FDF50@AM8P190MB0979.EURP190.PROD.OUTLOOK.COM>
References: <AM8P190MB09794715877E8203687DD1EFFDF50@AM8P190MB0979.EURP190.PROD.OUTLOOK.COM> <0005DBAB-E33E-4578-AAA3-06F906E7104A@tzi.org>
In-Reply-To: <0005DBAB-E33E-4578-AAA3-06F906E7104A@tzi.org>
Accept-Language: en-US
Content-Language: en-US
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
authentication-results: tzi.org; dkim=none (message not signed) header.d=none;tzi.org; dmarc=none action=none header.from=iotconsultancy.nl;
x-originating-ip: [2001:1c02:3103:f000:752e:6f97:4a6d:998]
x-ms-publictraffictype: Email
x-ms-office365-filtering-correlation-id: 7015f88f-6a82-4c84-03e2-08d89533c5b4
x-ms-traffictypediagnostic: AM8P190MB0995:
x-microsoft-antispam-prvs: <AM8P190MB0995A281CD77A9C5A99BD793FDF50@AM8P190MB0995.EURP190.PROD.OUTLOOK.COM>
x-ms-oob-tlc-oobclassifiers: OLM:10000;
x-ms-exchange-senderadcheck: 1
x-microsoft-antispam: BCL:0;
x-microsoft-antispam-message-info: Lwchgumxd/KOFElofp4VfwXvUsHn8KkseP8jygTB5ToEVBFueI/d6MiYKJBvjnjaT4kMoPxdYu69aqFRQTpObRcTv9X/VUBcnv/SUHGLCGoUe/AmsiKBy054HpHN0XGJsJAuF4xAsCVdPj985+EncLQ3Lr6xY0LmM1uLkMUvtt7giEmCIPhNGIxnmuaJYSZqx98SOnehAneEs98L1oLvbPC4azg8w02R1vDfa0f6o/H9YmAn8L7ScP6zSXopydQx0YNykHlWMwyjrD8V9Uo+5NeSM3n2F7r7GSjWuHjr15DoV9RoDW0GifJJ+d5lwvVN3YzhEUdZwwFfz8GrzJARKw==
x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8P190MB0979.EURP190.PROD.OUTLOOK.COM; PTR:; CAT:NONE; SFS:(136003)(366004)(39830400003)(396003)(346002)(376002)(33656002)(186003)(76116006)(86362001)(4326008)(7696005)(4001150100001)(2906002)(52536014)(316002)(83380400001)(53546011)(54906003)(6506007)(44832011)(55016002)(5660300002)(9686003)(71200400001)(478600001)(6916009)(66946007)(64756008)(66476007)(8936002)(66556008)(8676002)(66446008); DIR:OUT; SFP:1102;
x-ms-exchange-antispam-messagedata: =?utf-8?B?RHhLeHNzQVB5L1JYMWZNS3lQK0FTdER1ZFNRVHByZHdPc1NhOGE4Y1RxQnZk?= =?utf-8?B?Ym01dVZyRnFmdnJoY1JFVXBMWXJvNkgwNnIvTUpOMTNMejgvSnhSVjdONGtO?= =?utf-8?B?ZUErOUdCNEt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2YxNWpQTCtDWCtkNThBWUlRODhVUWVodzdwSmxBR0xOYU1IVXJmZG1NTDlq?= =?utf-8?B?VXB3Y2xLdHh0OHlBcmdDbjdnRHFWNHgvN0J2R1RtWGI4UlhGTU9EdnlseDdT?= =?utf-8?B?K2NjQmU2cVFRanVldnl1KzlOQlljL24rVmd0TXlRbDRFK2pYZVU0WXlEV2Ev?= =?utf-8?B?TUFxM0VIcnExd0lhK2ZEZXFXby9iZDJ3Z1VIZDJYRnRIVkR2U0h2V1B0OVJ6?= =?utf-8?B?UHNOSnBPbm5TZWIzdGhscmRsZElsaUhrZjNpb0c2aUZUVStqU0hvWXd2c0Mr?= =?utf-8?B?TGh5TXNtcHViSzk0aTdHVG1wa2VRelUvYTVwNkhxM1NGejYvemwyYlNTYXdY?= =?utf-8?Q?QIZEDcLUNkqjvMuI6rw0eXtXcXGXWKhM=3D?=
x-ms-exchange-transport-forked: True
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: base64
MIME-Version: 1.0
X-OriginatorOrg: iotconsultancy.nl
X-MS-Exchange-CrossTenant-AuthAs: Internal
X-MS-Exchange-CrossTenant-AuthSource: AM8P190MB0979.EURP190.PROD.OUTLOOK.COM
X-MS-Exchange-CrossTenant-Network-Message-Id: 7015f88f-6a82-4c84-03e2-08d89533c5b4
X-MS-Exchange-CrossTenant-originalarrivaltime: 30 Nov 2020 13:28:06.4689 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: 58bbf628-15d2-46bc-820b-863b6774d44b
X-MS-Exchange-CrossTenant-mailboxtype: HOSTED
X-MS-Exchange-CrossTenant-userprincipalname: FEEWggCBdiCpqPnpv/BUhart26CZ/+q7aLaR9C9XVXLqTD8GL+mu/Mz3VFeJFgV2akCMgwHk9RcKHH2nAhD1HbC47+h8IETPb3EzVakWKnc=
X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM8P190MB0995
Archived-At: <https://mailarchive.ietf.org/arch/msg/anima/A0PIY32tP6cp4Nh7SNXeeTamHFo>
Subject: Re: [Anima] draft-vanderstok-anima-constrained-join-proxy-04: how can J know the content-format cf
X-BeenThere: anima@ietf.org
X-Mailman-Version: 2.1.29
Precedence: list
List-Id: Autonomic Networking Integrated Model and Approach <anima.ietf.org>
List-Unsubscribe: <https://www.ietf.org/mailman/options/anima>, <mailto:anima-request@ietf.org?subject=unsubscribe>
List-Archive: <https://mailarchive.ietf.org/arch/browse/anima/>
List-Post: <mailto:anima@ietf.org>
List-Help: <mailto:anima-request@ietf.org?subject=help>
List-Subscribe: <https://www.ietf.org/mailman/listinfo/anima>, <mailto:anima-request@ietf.org?subject=subscribe>
X-List-Received-Date: Mon, 30 Nov 2020 13:28:13 -0000

> Why not?
One reason not to use multipart might be because the CBOR data transports not multiple content-formats - but just one content-format. (It is CBOR (60).  Or if we want to make it more specific, it is 'join-proxy-protocol-format' which is a specific structure encoded in CBOR). But that's just a viewpoint maybe, I can imagine we can also view this as two parts: one part is CBOR 'state' from the Join Proxy and another part is opaque 'DTLS record' binary data.   Both would be feasible.

Another reason to say this was that the content-format of what's inside the opaque DTLS data isn't known by the Join Proxy, so it can't attach a numeric 'cf' type to that.   Peter mailed me privately that this could be resolved by defining a CoAP content-format for "DTLS-record data".  As alternative for this new Content-Format one could also define multipart as follows:

   [ 60 , <cbor-state-data> , 42 , <DTLS-record-data> ]

So the DTLS data is labelled as application/octet-stream.

Noting that the above CBOR is 4 bytes longer than
   [<cbor-state-data> , <DTLS-record-data> ]

To consider: what advantage would we get from using the 4-byte-longer variant? Both are extendible in multiple ways ~ about roughly the same level of extendibility.

Esko

-----Original Message-----
From: Carsten Bormann <cabo@tzi.org> 
Sent: Monday, November 30, 2020 14:12
To: Esko Dijk <esko.dijk@iotconsultancy.nl>
Cc: anima@ietf.org; peter van der Stok <consultancy@vanderstok.org>
Subject: Re: [Anima] draft-vanderstok-anima-constrained-join-proxy-04: how can J know the content-format cf

On 2020-11-30, at 14:01, Esko Dijk <esko.dijk@iotconsultancy.nl> wrote:
> 
> without using core-multipart

Why not?

Grüße, Carsten