Constrained Resource Identifiers
draft-ietf-core-href-02

The information below is for an old version of the document
Document Type Active Internet-Draft (core WG)
Last updated 2020-01-08 (latest revision 2019-11-04)
Replaces draft-hartke-t2trg-ciri
Stream IETF
Intended RFC status (None)
Formats pdf htmlized (tools) 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)
CoRE Working Group                                             K. Hartke
Internet-Draft                                                  Ericsson
Intended status: Standards Track                          8 January 2020
Expires: 11 July 2020

                    Constrained Resource Identifiers
                        draft-ietf-core-href-02

Abstract

   Constrained Resource Identifiers (CoRIs) are an alternate
   serialization of Uniform Resource Identifiers (URIs) that encodes the
   URI components in Concise Binary Object Representation (CBOR) instead
   of a string of characters.  This simplifies parsing, reference
   resolution, and comparison of URIs in environments with severe
   limitations on processing power, code size, and memory size.

Note to Readers

   This note is to be removed before publishing as an RFC.

   The issues list for this Internet-Draft can be found at
   <https://github.com/core-wg/coral/labels/href>.

   A reference implementation and a set of test vectors can be found at
   <https://github.com/core-wg/coral/tree/master/binary/python>.

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 11 July 2020.

Copyright Notice

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

Table of Contents

   1.  Introduction
     1.1.  Notational Conventions
   2.  Data Model
     2.1.  Options
     2.2.  Option Sequences
   3.  CBOR
   4.  Python
     4.1.  Reference Resolution
     4.2.  URI Recomposition
     4.3.  CoAP Encoding
   5.  Security Considerations
   6.  IANA Considerations
   7.  References
     7.1.  Normative References
     7.2.  Informative References
   Appendix A.  Change Log
   Acknowledgements
   Author's Address

1.  Introduction

   Uniform Resource Identifier (URI) references [RFC3986] are the
   standard way to link to resources in hypertext formats such as HTML
   [W3C.REC-html52-20171214] or the HTTP "Link" header field [RFC8288].
   A URI reference is either a URI or a relative reference that must be
   resolved against a base URI.

   URI references are strings of characters chosen from the repertoire
   of US-ASCII characters.  The individual components of a URI reference
   are delimited by a number of reserved characters, which necessitates
   the use of percent-encoding when these reserved characters are used
   in a non-delimiting function.  One component can also contain special
   dot-segments that affect how the component is to be interpreted.  The
   resolution of URI references involves parsing the character string
   into its components, combining those components with the components
   of a base URI, merging path components, removing dot-segments, and
   recomposing the result back into a character string.

   Overall, the proper processing of URIs is quite complicated.  This
   can be a problem in particular in constrained environments [RFC7228],
   where devices often have severe code size limitations.  As a result,
   many implementations in these environments choose to support only an
   ad-hoc, informally-specified, bug-ridden, non-interoperable subset of
   half of the URI standard.

   This document introduces Constrained Resource Identifier (CoRI)
   references, an alternate serialization of URI references that encodes
   the URI components in Concise Binary Object Representation (CBOR)
   [RFC7049] instead of a string of characters.  Assuming an
   implementation of CBOR is already present on a device, typical
   operations on URI references such as parsing, reference resolution,
   and comparison can be implemented more easily than for character
   strings.  A full implementation that covers all corner cases is
   intended to be implementable in a relatively small amount of code.

   As a result of the simplification, CoRI references are not capable of
Show full document text