SenML Data Value Content-Format Indication
draft-ietf-core-senml-data-ct-01

Document Type Active Internet-Draft (core WG)
Last updated 2019-11-04
Replaces draft-keranen-core-senml-data-ct
Stream IETF
Intended RFC status (None)
Formats plain text pdf htmlized bibtex
Stream WG state WG Document
Document shepherd No shepherd assigned
IESG IESG state I-D Exists
Consensus Boilerplate Unknown
Telechat date
Responsible AD (None)
Send notices to (None)
Network Working Group                                         A. Keranen
Internet-Draft                                                  Ericsson
Intended status: Standards Track                              C. Bormann
Expires: May 7, 2020                             Universitaet Bremen TZI
                                                        November 4, 2019

               SenML Data Value Content-Format Indication
                    draft-ietf-core-senml-data-ct-01

Abstract

   The Sensor Measurement Lists (SenML) media type supports multiple
   types of values, from numbers to text strings and arbitrary binary
   data values.  In order to simplify processing of the data values this
   document proposes to specify a new SenML field for indicating the
   Content-Format of the data.

Status of This Memo

   This Internet-Draft is submitted in full conformance with the
   provisions of BCP 78 and BCP 79.

   Internet-Drafts are working documents of the Internet Engineering
   Task Force (IETF).  Note that other groups may also distribute
   working documents as Internet-Drafts.  The list of current Internet-
   Drafts is at https://datatracker.ietf.org/drafts/current/.

   Internet-Drafts are draft documents valid for a maximum of six months
   and may be updated, replaced, or obsoleted by other documents at any
   time.  It is inappropriate to use Internet-Drafts as reference
   material or to cite them other than as "work in progress."

   This Internet-Draft will expire on May 7, 2020.

Copyright Notice

   Copyright (c) 2019 IETF Trust and the persons identified as the
   document authors.  All rights reserved.

   This document is subject to BCP 78 and the IETF Trust's Legal
   Provisions Relating to IETF Documents
   (https://trustee.ietf.org/license-info) in effect on the date of
   publication of this document.  Please review these documents
   carefully, as they describe your rights and restrictions with respect
   to this document.  Code Components extracted from this document must
   include Simplified BSD License text as described in Section 4.e of

Keranen & Bormann          Expires May 7, 2020                  [Page 1]
Internet-Draft SenML Data Value Content-Format Indication  November 2019

   the Trust Legal Provisions and are provided without warranty as
   described in the Simplified BSD License.

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   2
   2.  Terminology . . . . . . . . . . . . . . . . . . . . . . . . .   3
   3.  SenML Content-Format ("ct") Field . . . . . . . . . . . . . .   3
   4.  SenML Base Content-Format ("bct") Field . . . . . . . . . . .   4
   5.  Mandatory to Understand Content-Format  . . . . . . . . . . .   4
   6.  Examples  . . . . . . . . . . . . . . . . . . . . . . . . . .   4
   7.  Security Considerations . . . . . . . . . . . . . . . . . . .   5
   8.  IANA Considerations . . . . . . . . . . . . . . . . . . . . .   5
   Acknowledgements  . . . . . . . . . . . . . . . . . . . . . . . .   5
   10. References  . . . . . . . . . . . . . . . . . . . . . . . . .   6
     10.1.  Normative References . . . . . . . . . . . . . . . . . .   6
     10.2.  Informative References . . . . . . . . . . . . . . . . .   6
   Authors' Addresses  . . . . . . . . . . . . . . . . . . . . . . .   7

1.  Introduction

   The Sensor Measurement Lists (SenML) media type [RFC8428] can be used
   to send various different kinds of data.  In the example given in
   Figure 1, a temperature value, an indication whether a lock is open,
   and a data value (with SenML field "vd") read from an NFC reader is
   sent in a single SenML pack.

   [
     {"bn":"urn:dev:ow:10e2073a01080063:","n":"temp","u":"Cel","v":7.1},
     {"n":"open","vb":false},
     {"n":"nfc-reader","vd":"aGkgCg"}
   ]

            Figure 1: SenML pack with unidentified binary data

   The receiver is expected to know how to interpret the data in the
   "vd" field based on the context, e.g., name of the data source and
   out-of-band knowledge of the application.  However, this context may
   not always be easily available to entities processing the SenML pack.
   To facilitate automatic interpretation it is useful to be able to
   indicate an Internet media type and content-coding right in the SenML
   Record.  The CoAP Content-Format (Section 12.3 in [RFC7252]) provides
   just this information; enclosing a Content-Format number (in this
   case number 60 as defined for content-type application/cbor in
   [RFC7049]) in the Record is illustrated in Figure 2.  All registered
   CoAP Content-Formats are listed in the Content-Formats subregistry of
   the CoRE Parameters registry [IANA.core-parameters].

Keranen & Bormann          Expires May 7, 2020                  [Page 2]
Internet-Draft SenML Data Value Content-Format Indication  November 2019

   {"n":"nfc-reader", "vd":"gmNmb28YKg", "ct":"60"}

        Figure 2: SenML Record with binary data identified as CBOR
Show full document text