Concise Binary Object Representation (CBOR)
draft-ietf-cbor-7049bis-00

Document Type Active Internet-Draft (cbor WG)
Last updated 2017-04-13
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                                         C. Bormann
Internet-Draft                                   Universitaet Bremen TZI
Intended status: Standards Track                              P. Hoffman
Expires: October 14, 2017                                          ICANN
                                                          April 12, 2017

              Concise Binary Object Representation (CBOR)
                     draft-ietf-cbor-7049bis-00

Abstract

   The Concise Binary Object Representation (CBOR) is a data format
   whose design goals include the possibility of extremely small code
   size, fairly small message size, and extensibility without the need
   for version negotiation.  These design goals make it different from
   earlier binary serializations such as ASN.1 and MessagePack.

Contributing

   This document is being worked on in the CBOR Working Group.  Please
   contribute on the mailing list there, or in the GitHub repository for
   this draft: https://github.com/cbor-wg/CBORbis

   The charter for the CBOR Working Group says that the WG will update
   RFC 7049 to fix verified errata.  Security issues and clarifications
   may be addressed, but changes to this document will ensure backward
   compatibility for popular deployed codebases.  This document will be
   targeted at becoming an Internet Standard.

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 14, 2017.

Bormann & Hoffman       Expires October 14, 2017                [Page 1]
Internet-Draft                    CBOR                        April 2017

Copyright Notice

   Copyright (c) 2017 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
   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  . . . . . . . . . . . . . . . . . . . . . . . .   3
     1.1.  Objectives  . . . . . . . . . . . . . . . . . . . . . . .   4
     1.2.  Terminology . . . . . . . . . . . . . . . . . . . . . . .   5
   2.  Specification of the CBOR Encoding  . . . . . . . . . . . . .   6
     2.1.  Major Types . . . . . . . . . . . . . . . . . . . . . . .   7
     2.2.  Indefinite Lengths for Some Major Types . . . . . . . . .   9
       2.2.1.  Indefinite-Length Arrays and Maps . . . . . . . . . .   9
       2.2.2.  Indefinite-Length Byte Strings and Text Strings . . .  11
     2.3.  Floating-Point Numbers and Values with No Content . . . .  12
     2.4.  Optional Tagging of Items . . . . . . . . . . . . . . . .  14
       2.4.1.  Date and Time . . . . . . . . . . . . . . . . . . . .  16
       2.4.2.  Bignums . . . . . . . . . . . . . . . . . . . . . . .  16
       2.4.3.  Decimal Fractions and Bigfloats . . . . . . . . . . .  16
       2.4.4.  Content Hints . . . . . . . . . . . . . . . . . . . .  18
         2.4.4.1.  Encoded CBOR Data Item  . . . . . . . . . . . . .  18
         2.4.4.2.  Expected Later Encoding for CBOR-to-JSON
                   Converters  . . . . . . . . . . . . . . . . . . .  18
         2.4.4.3.  Encoded Text  . . . . . . . . . . . . . . . . . .  18
       2.4.5.  Self-Describe CBOR  . . . . . . . . . . . . . . . . .  19
   3.  Creating CBOR-Based Protocols . . . . . . . . . . . . . . . .  19
     3.1.  CBOR in Streaming Applications  . . . . . . . . . . . . .  20
     3.2.  Generic Encoders and Decoders . . . . . . . . . . . . . .  20
     3.3.  Syntax Errors . . . . . . . . . . . . . . . . . . . . . .  21
       3.3.1.  Incomplete CBOR Data Items  . . . . . . . . . . . . .  21
       3.3.2.  Malformed Indefinite-Length Items . . . . . . . . . .  22
       3.3.3.  Unknown Additional Information Values . . . . . . . .  22
Show full document text