FETCH & PATCH with Sensor Measurement Lists (SenML)
draft-ietf-core-senml-etch-05

Document Type Active Internet-Draft (core WG)
Last updated 2019-09-05 (latest revision 2019-08-17)
Replaces draft-keranen-core-senml-fetch
Stream IETF
Intended RFC status Proposed Standard
Formats plain text pdf htmlized bibtex
Reviews
Stream WG state Submitted to IESG for Publication
Document shepherd Carsten Bormann
Shepherd write-up Show (last changed 2019-07-12)
IESG IESG state IESG Evaluation::Revised I-D Needed
Consensus Boilerplate Yes
Telechat date
Has 2 DISCUSSes. Has enough positions to pass once DISCUSS positions are resolved.
Responsible AD Alexey Melnikov
Send notices to Carsten Bormann <cabo@tzi.org>
IANA IANA review state IANA OK - Actions Needed
Network Working Group                                         A. Keranen
Internet-Draft                                                  Ericsson
Intended status: Standards Track                              M. Mohajer
Expires: February 18, 2020                                     u-blox UK
                                                         August 17, 2019

          FETCH & PATCH with Sensor Measurement Lists (SenML)
                     draft-ietf-core-senml-etch-05

Abstract

   The Sensor Measurement Lists (SenML) media type and data model can be
   used to send collections of resources, such as batches of sensor data
   or configuration parameters.  The CoAP iPATCH, PATCH, and FETCH
   methods enable accessing and updating parts of a resource or multiple
   resources with one request.  This document defines new media types
   for the CoAP iPATCH, PATCH, and FETCH methods for resources
   represented with the SenML data model.

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 February 18, 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

Keranen & Mohajer       Expires February 18, 2020               [Page 1]
Internet-Draft          FETCH & PATCH with SenML             August 2019

   include Simplified BSD License text as described in Section 4.e of
   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.  Using FETCH and (i)PATCH with SenML . . . . . . . . . . . . .   3
     3.1.  SenML FETCH . . . . . . . . . . . . . . . . . . . . . . .   4
     3.2.  SenML (i)PATCH  . . . . . . . . . . . . . . . . . . . . .   4
   4.  Fragment Identification . . . . . . . . . . . . . . . . . . .   5
   5.  Security Considerations . . . . . . . . . . . . . . . . . . .   6
   6.  IANA Considerations . . . . . . . . . . . . . . . . . . . . .   6
     6.1.  CoAP Content-Format Registration  . . . . . . . . . . . .   6
     6.2.  senml-etch+json Media Type  . . . . . . . . . . . . . . .   6
     6.3.  senml-etch+cbor Media Type  . . . . . . . . . . . . . . .   7
   7.  Acknowledgements  . . . . . . . . . . . . . . . . . . . . . .   9
   8.  References  . . . . . . . . . . . . . . . . . . . . . . . . .   9
     8.1.  Normative References  . . . . . . . . . . . . . . . . . .   9
     8.2.  Informative References  . . . . . . . . . . . . . . . . .  10
   Authors' Addresses  . . . . . . . . . . . . . . . . . . . . . . .  10

1.  Introduction

   The Sensor Measurement Lists (SenML) media type [RFC8428] and data
   model can be used to transmit collections of resources, such as
   batches of sensor data or configuration parameters.

   An example of a SenML collection is shown below:

   [
    {"bn":"2001:db8::2/3311/0/", "n":"5850", "vb":true},
    {"n":"5851", "v":42},
    {"n":"5750", "vs":"Ceiling light"}
   ]

   Here three resources "3311/0/5850", "3311/0/5851", and "3311/0/5750",
   of an IPSO dimmable light smart object [IPSO] are represented using a
   single SenML Pack with three SenML Records.  All resources share the
   same base name "2001:db8::2/3311/0/", hence full names for resources
   are "2001:db8::2/3311/0/5850", etc.

   The CoAP [RFC7252] iPATCH, PATCH, and FETCH methods [RFC8132] enable
   accessing and updating parts of a resource or multiple resources with
   one request.

Keranen & Mohajer       Expires February 18, 2020               [Page 2]
Internet-Draft          FETCH & PATCH with SenML             August 2019

   This document defines two new media types, one using the JavaScript
   Object Notation (JSON) [RFC8259] and one using the Concise Binary
   Object Representation (CBOR) [RFC7049], that can be used with the
   CoAP iPATCH, PATCH, and FETCH methods for resources represented with
Show full document text