Best practices for HTTP-CoAP mapping implementation
draft-castellani-core-http-mapping-04

The information below is for an old version of the document
Document Type Active Internet-Draft (individual)
Last updated 2012-04-27
Replaced by rfc8075, draft-ietf-core-http-mapping
Stream (None)
Intended RFC status (None)
Formats plain text pdf html bibtex
Stream Stream state (No stream defined)
Consensus Boilerplate Unknown
RFC Editor Note (None)
IESG IESG state I-D Exists
Telechat date
Responsible AD (None)
Send notices to (None)
CoRE Working Group                                         A. Castellani
Internet-Draft                                      University of Padova
Intended status: Informational                                 S. Loreto
Expires: October 29, 2012                                       Ericsson
                                                               A. Rahman
                                        InterDigital Communications, LLC
                                                              T. Fossati
                                                               KoanLogic
                                                                 E. Dijk
                                                        Philips Research
                                                          April 27, 2012

          Best practices for HTTP-CoAP mapping implementation
                 draft-castellani-core-http-mapping-04

Abstract

   This draft aims at being a base reference documentation for HTTP-CoAP
   proxy implementors.  It details deployment options, discusses
   possible approaches for URI mapping, and provides useful
   considerations related to protocol translation.

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 October 29, 2012.

Copyright Notice

   Copyright (c) 2012 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

Castellani, et al.      Expires October 29, 2012                [Page 1]
Internet-Draft              HTTP-CoAP mapping                 April 2012

   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
   the Trust Legal Provisions and are provided without warranty as
   described in the Simplified BSD License.

Castellani, et al.      Expires October 29, 2012                [Page 2]
Internet-Draft              HTTP-CoAP mapping                 April 2012

Table of Contents

   1.  Introduction . . . . . . . . . . . . . . . . . . . . . . . . .  4
   2.  Terminology  . . . . . . . . . . . . . . . . . . . . . . . . .  4
   3.  Cross-protocol resource identification using URIs  . . . . . .  5
     3.1.  URI mapping  . . . . . . . . . . . . . . . . . . . . . . .  6
       3.1.1.  Homogeneous mapping  . . . . . . . . . . . . . . . . .  7
       3.1.2.  Embedded mapping . . . . . . . . . . . . . . . . . . .  7
   4.  HTTP-CoAP implementation . . . . . . . . . . . . . . . . . . .  8
     4.1.  Placement and deployment . . . . . . . . . . . . . . . . .  8
     4.2.  Basic mapping  . . . . . . . . . . . . . . . . . . . . . . 10
       4.2.1.  Caching and congestion control . . . . . . . . . . . . 11
       4.2.2.  Cache Refresh via Observe  . . . . . . . . . . . . . . 12
       4.2.3.  Use of CoAP blockwise transfer . . . . . . . . . . . . 13
       4.2.4.  Use case: HTTP/IPv4-CoAP/IPv6 proxy  . . . . . . . . . 13
     4.3.  Multiple message exchanges mapping . . . . . . . . . . . . 15
       4.3.1.  Relevant features of existing standards  . . . . . . . 15
       4.3.2.  Multicast mapping  . . . . . . . . . . . . . . . . . . 16
       4.3.3.  Multicast responses caching  . . . . . . . . . . . . . 19
       4.3.4.  Observe mapping  . . . . . . . . . . . . . . . . . . . 20
   5.  CoAP-HTTP implementation . . . . . . . . . . . . . . . . . . . 28
     5.1.  Placement and Deployment . . . . . . . . . . . . . . . . . 29
     5.2.  Basic mapping  . . . . . . . . . . . . . . . . . . . . . . 30
       5.2.1.  Payloads and Media Types . . . . . . . . . . . . . . . 30
       5.2.2.  Max-Age and ETag Options . . . . . . . . . . . . . . . 31
       5.2.3.  Use of CoAP blockwise transfer . . . . . . . . . . . . 31
       5.2.4.  HTTP Status Codes 1xx and 3xx  . . . . . . . . . . . . 31
       5.2.5.  Examples . . . . . . . . . . . . . . . . . . . . . . . 31
   6.  Security Considerations  . . . . . . . . . . . . . . . . . . . 33
     6.1.  Traffic overflow . . . . . . . . . . . . . . . . . . . . . 34
Show full document text