Re: [core] Designs to resolve streaming issues in SenML

Michael Koster <michaeljohnkoster@gmail.com> Sat, 16 January 2016 19:02 UTC

Return-Path: <michaeljohnkoster@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 771CA1A9088 for <core@ietfa.amsl.com>; Sat, 16 Jan 2016 11:02:58 -0800 (PST)
X-Virus-Scanned: amavisd-new at amsl.com
X-Spam-Flag: NO
X-Spam-Score: -2
X-Spam-Level:
X-Spam-Status: No, score=-2 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, 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 iw3lF5zJAO_8 for <core@ietfa.amsl.com>; Sat, 16 Jan 2016 11:02:57 -0800 (PST)
Received: from mail-pa0-x229.google.com (mail-pa0-x229.google.com [IPv6:2607:f8b0:400e:c03::229]) (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 E27471A908D for <core@ietf.org>; Sat, 16 Jan 2016 11:02:56 -0800 (PST)
Received: by mail-pa0-x229.google.com with SMTP id yy13so318867682pab.3 for <core@ietf.org>; Sat, 16 Jan 2016 11:02:56 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=cj6fxClnZM0of7xBtpLt73bfiWyVtl478xhEwrdc0V4=; b=EIJ+NeTt5bKLm491Y8FW/JGRwTsYai2t3+npcmq9q5HWXUuYN3PgZ5ngbA3TIa2KEr KpLTfBPO75Q6uui33ijeRMkonfXl16EOMhQR2Ya6Lo3yi/JsdI/QPaayn6OBv7kqCcAT wHwS6zbhcMr3JJZu2xfPYhao8QZcmqifzjO4b1NSXZLRcmnfQzaHvzz36FZvpXcZvr3C BpIHOWysd+EgR3RYF/zwCdLjiGe4VGVwgfIS1T26evzbqIQlYeFzWjfxC1a33eGKpqne udnvbXQvb2ua+zht4OjTWgswa3P3vcL5/rY5kZB3r+RNiVAfwe7tJrRXbTZyaPNL8pQ3 khxA==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:content-type:mime-version:subject:from :in-reply-to:date:cc:content-transfer-encoding:message-id:references :to; bh=cj6fxClnZM0of7xBtpLt73bfiWyVtl478xhEwrdc0V4=; b=k0eKiJwyvqxa2xN5qgKJJfyDPw+WHP900rEar/0hGEMOJI9q6DYefgda5KUkn0bQUD f9ZEBmHeK0FSr5plXq4xsGsXflXXw90bGb6xB5wB2szg0EULRBQfdRDCM4OuqKNEXQzL 2c7vxWNEMfduRNtBQM8lZ5VldG+6l39PBcGG5YcYDUannBaxOYYVtQjTJFTxHVMjiK3M brVOIJqadCje0dyEDCnkw595qnleYD4XocjQxFl6pp97XSpkLhZ5WREElacHxVeYjLTQ KdYJGZmqbqR3WYEr2aXWrHW9Qd+Cj+1s6Xj15GdL6ADSk7dcPor88aNhotObVWsxm1rl i13g==
X-Gm-Message-State: AG10YOTIWtjHdB9tTi1uL48Fw8/VNUbKN59HIpFmV1zaLEXf7+72FuZHxNbAOwm7zjU0IQ==
X-Received: by 10.66.121.194 with SMTP id lm2mr13852503pab.27.1452970976580; Sat, 16 Jan 2016 11:02:56 -0800 (PST)
Received: from [10.0.0.21] (108-201-184-41.lightspeed.sntcca.sbcglobal.net. [108.201.184.41]) by smtp.gmail.com with ESMTPSA id ux2sm23389307pac.46.2016.01.16.11.02.55 (version=TLSv1/SSLv3 cipher=OTHER); Sat, 16 Jan 2016 11:02:55 -0800 (PST)
Content-Type: text/plain; charset="utf-8"
Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2104\))
From: Michael Koster <michaeljohnkoster@gmail.com>
In-Reply-To: <569A91FD.3020709@tzi.org>
Date: Sat, 16 Jan 2016 11:02:54 -0800
Content-Transfer-Encoding: quoted-printable
Message-Id: <7DDF2957-1F11-414B-82D6-8BB721060750@gmail.com>
References: <175A1806-ACB0-4FC7-A318-2A58FF66CDD2@cisco.com> <20160116132751.GB18563@hephaistos.amsuess.com> <CC28D44A-DBC0-446D-90A8-3E329FC3F0AF@gmail.com> <0D5538ED-D126-4A1B-AFDD-D9D54580D48B@gmail.com> <569A91FD.3020709@tzi.org>
To: Carsten Bormann <cabo@tzi.org>
X-Mailer: Apple Mail (2.2104)
Archived-At: <http://mailarchive.ietf.org/arch/msg/core/Oe1lZb06P-U5bLvfU8c11mmkoTY>
Cc: "Cullen Jennings (fluffy)" <fluffy@cisco.com>, core <core@ietf.org>, Christian Amsüss <c.amsuess@energyharvesting.at>
Subject: Re: [core] Designs to resolve streaming issues in SenML
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: Sat, 16 Jan 2016 19:02:58 -0000

Yes, so if you want to stream, create an array with a base record and value records.

If you want to map, put your values into the base element with a “e” tag.

Michael

> On Jan 16, 2016, at 10:54 AM, Carsten Bormann <cabo@tzi.org> wrote:
> 
> Michael Koster wrote:
>> allow measurement data within the base element using the “e” key.
> 
> The reason -02 doesn't do that is that a sequentially operating
> implementation may get process the "e" key before the base values,
> possibly requiring it to buffer the values.  That's why we tried to
> separate the measurements from the base values into different maps.
> 
> Grüße, Carsten