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

Document Type Active Internet-Draft (core WG)
Last updated 2018-10-23
Replaces draft-keranen-core-senml-fetch
Stream IETF
Intended RFC status (None)
Formats plain text pdf html 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                              M. Mohajer
Expires: April 25, 2019                                        u-blox UK
                                                        October 22, 2018

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

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 semantics for the
   CoAP iPATCH, 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 April 25, 2019.

Copyright Notice

   Copyright (c) 2018 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 April 25, 2019                 [Page 1]
Internet-Draft          FETCH & PATCH with SenML            October 2018

   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 iPATCH with SenML . . . . . . . . . . . . . .   3
     3.1.  SenML FETCH . . . . . . . . . . . . . . . . . . . . . . .   3
     3.2.  SenML iPATCH  . . . . . . . . . . . . . . . . . . . . . .   4
   4.  Security Considerations . . . . . . . . . . . . . . . . . . .   5
   5.  Acknowledgements  . . . . . . . . . . . . . . . . . . . . . .   5
   6.  References  . . . . . . . . . . . . . . . . . . . . . . . . .   5
     6.1.  Normative References  . . . . . . . . . . . . . . . . . .   5
     6.2.  Informative References  . . . . . . . . . . . . . . . . .   6
   Authors' Addresses  . . . . . . . . . . . . . . . . . . . . . . .   6

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.

   Example of a SenML collection is shown below:

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

   Here three resources "3306/0/5850", "3306/0/5851", and "3306/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/3306/0/", hence full names for resources
   are "2001:db8::2/3306/0/5850", etc.

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

   This document defines semantics for the CoAP iPATCH and FETCH methods
   for resources represented with the SenML data model.  Same semantics
   apply also for the CoAP PATCH method.

Keranen & Mohajer        Expires April 25, 2019                 [Page 2]
Internet-Draft          FETCH & PATCH with SenML            October 2018

2.  Terminology

   The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT",
   "SHOULD", "SHOULD NOT", "RECOMMENDED", "NOT RECOMMENDED", "MAY", and
   "OPTIONAL" in this document are to be interpreted as described in BCP
   14 [RFC2119] [RFC8174] when, and only when, they appear in all
   capitals, as shown here.

   Readers should also be familiar with the terms and concepts discussed
   in [RFC8132] and [RFC8428].  Also the following terms are used in
Show full document text