Publish-Subscribe Broker for the Constrained Application Protocol (CoAP)
draft-ietf-core-coap-pubsub-05

Document Type Active Internet-Draft (core WG)
Last updated 2018-07-02
Replaces draft-koster-core-coap-pubsub
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                                          M. Koster
Internet-Draft                                               SmartThings
Intended status: Standards Track                              A. Keranen
Expires: January 3, 2019                                      J. Jimenez
                                                                Ericsson
                                                            July 2, 2018

Publish-Subscribe Broker for the Constrained Application Protocol (CoAP)
                     draft-ietf-core-coap-pubsub-05

Abstract

   The Constrained Application Protocol (CoAP), and related extensions
   are intended to support machine-to-machine communication in systems
   where one or more nodes are resource constrained, in particular for
   low power wireless sensor networks.  This document defines a publish-
   subscribe Broker for CoAP that extends the capabilities of CoAP for
   supporting nodes with long breaks in connectivity and/or up-time.

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 http://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 January 3, 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
   (http://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

Koster, et al.           Expires January 3, 2019                [Page 1]
Internet-Draft      Publish-Subscribe Broker for CoAP          July 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.  Architecture  . . . . . . . . . . . . . . . . . . . . . . . .   4
     3.1.  CoAP Pub/sub Architecture . . . . . . . . . . . . . . . .   4
     3.2.  CoAP Pub/sub Broker . . . . . . . . . . . . . . . . . . .   4
     3.3.  CoAP Pub/sub Client . . . . . . . . . . . . . . . . . . .   5
     3.4.  CoAP Pub/sub Topic  . . . . . . . . . . . . . . . . . . .   5
     3.5.  brokerless Pub/sub  . . . . . . . . . . . . . . . . . . .   5
   4.  CoAP Pub/sub REST API . . . . . . . . . . . . . . . . . . . .   6
     4.1.  DISCOVERY . . . . . . . . . . . . . . . . . . . . . . . .   6
     4.2.  CREATE  . . . . . . . . . . . . . . . . . . . . . . . . .   8
     4.3.  PUBLISH . . . . . . . . . . . . . . . . . . . . . . . . .  11
     4.4.  SUBSCRIBE . . . . . . . . . . . . . . . . . . . . . . . .  13
     4.5.  UNSUBSCRIBE . . . . . . . . . . . . . . . . . . . . . . .  15
     4.6.  READ  . . . . . . . . . . . . . . . . . . . . . . . . . .  16
     4.7.  REMOVE  . . . . . . . . . . . . . . . . . . . . . . . . .  18
   5.  CoAP Pub/sub Operation with Resource Directory  . . . . . . .  19
   6.  Sleep-Wake Operation  . . . . . . . . . . . . . . . . . . . .  20
   7.  Simple Flow Control . . . . . . . . . . . . . . . . . . . . .  20
   8.  Security Considerations . . . . . . . . . . . . . . . . . . .  20
   9.  IANA Considerations . . . . . . . . . . . . . . . . . . . . .  21
     9.1.  Resource Type value 'core.ps' . . . . . . . . . . . . . .  22
     9.2.  Resource Type value 'core.ps.discover'  . . . . . . . . .  22
     9.3.  Response Code value '2.07'  . . . . . . . . . . . . . . .  22
   10. Acknowledgements  . . . . . . . . . . . . . . . . . . . . . .  22
   11. References  . . . . . . . . . . . . . . . . . . . . . . . . .  22
     11.1.  Normative References . . . . . . . . . . . . . . . . . .  22
     11.2.  Informative References . . . . . . . . . . . . . . . . .  23
   Authors' Addresses  . . . . . . . . . . . . . . . . . . . . . . .  24

1.  Introduction

   The Constrained Application Protocol (CoAP) [RFC7252] supports
   machine-to-machine communication across networks of constrained
   devices.  CoAP uses a request/response model where clients make
   requests to servers in order to request actions on resources.
   Depending on the situation the same device may act either as a server
Show full document text