Constrained Internationalized Resource Identifiers
draft-hartke-t2trg-ciri-00

Document Type Active Internet-Draft (individual)
Last updated 2018-10-22
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)
Thing-to-Thing Research Group                                  K. Hartke
Internet-Draft                                                  Ericsson
Intended status: Experimental                           October 22, 2018
Expires: April 25, 2019

           Constrained Internationalized Resource Identifiers
                       draft-hartke-t2trg-ciri-00

Abstract

   This document specifies Constrained Internationalized Resource
   Identifier References, a serialization of Internationalized Resource
   Identifier (IRI) references that encodes the IRI components as
   Concise Binary Object Representation (CBOR) data items rather than a
   string of characters.  This intends to simplify parsing, reference
   resolution, and comparison of IRIs in Constrained RESTful
   Environments (CoRE).

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
   include Simplified BSD License text as described in Section 4.e of

Hartke                   Expires April 25, 2019                 [Page 1]
Internet-Draft              Constrained IRIs                October 2018

   the Trust Legal Provisions and are provided without warranty as
   described in the Simplified BSD License.

Table of Contents

   1.  Introduction  . . . . . . . . . . . . . . . . . . . . . . . .   2
     1.1.  Requirements Notation . . . . . . . . . . . . . . . . . .   3
   2.  Data Model  . . . . . . . . . . . . . . . . . . . . . . . . .   3
     2.1.  Options . . . . . . . . . . . . . . . . . . . . . . . . .   3
     2.2.  Option Sequences  . . . . . . . . . . . . . . . . . . . .   4
   3.  CBOR  . . . . . . . . . . . . . . . . . . . . . . . . . . . .   6
   4.  Python  . . . . . . . . . . . . . . . . . . . . . . . . . . .   6
     4.1.  Reference Resolution  . . . . . . . . . . . . . . . . . .   8
     4.2.  IRI Recomposition . . . . . . . . . . . . . . . . . . . .   9
     4.3.  CoAP Encoding . . . . . . . . . . . . . . . . . . . . . .  12
   5.  Security Considerations . . . . . . . . . . . . . . . . . . .  13
   6.  IANA Considerations . . . . . . . . . . . . . . . . . . . . .  14
   7.  References  . . . . . . . . . . . . . . . . . . . . . . . . .  14
     7.1.  Normative References  . . . . . . . . . . . . . . . . . .  14
     7.2.  Informative References  . . . . . . . . . . . . . . . . .  14
   Acknowledgements  . . . . . . . . . . . . . . . . . . . . . . . .  15
   Author's Address  . . . . . . . . . . . . . . . . . . . . . . . .  15

1.  Introduction

   URI references [RFC3986] and, albeit less prevalently, IRI references
   [RFC3987] are the standard way to link to resources in hypertext
   formats like HTML [W3C.REC-html52-20171214] and the CoRE Link Format
   [RFC6690].  They encode the components of a resource reference either
   as an absolute URI/IRI or as a relative reference that must be
   resolved against a base URI/IRI to receive an absolute URI/IRI.

   URI and IRI references are strings of characters where the characters
   are chosen from a limited subset of the repertoires of US-ASCII and
   Unicode characters, respectively.  The individual components of a URI
   or IRI 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.  The resolution of
   references involves parsing URI/IRI references into their components,
   combining those components with the components of the base URI/IRI,
   merging paths, removing dot segments, and recomposing the result back
   into a character string.

   Altogether, the proper processing of URIs is quite complex.  This can
   be a problem particularly in constrained environments [RFC7228],
   where devices often have severe code size limitations.  As a result,
   many implementations in these environments choose to implement only
Show full document text