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

Document Type Active Internet-Draft (cbor WG)
Last updated 2019-07-02
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: January 3, 2020                                           ICANN
                                                           July 02, 2019

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

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.

   This document obsoletes RFC 7049.

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 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 January 3, 2020.

Bormann & Hoffman        Expires January 3, 2020                [Page 1]
Internet-Draft                    CBOR                         July 2019

Copyright Notice

   Copyright (c) 2019 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  . . . . . . . . . . . . . . . . . . . . . . . .   3
     1.1.  Objectives  . . . . . . . . . . . . . . . . . . . . . . .   4
     1.2.  Terminology . . . . . . . . . . . . . . . . . . . . . . .   5
   2.  CBOR Data Models  . . . . . . . . . . . . . . . . . . . . . .   7
     2.1.  Extended Generic Data Models  . . . . . . . . . . . . . .   8
     2.2.  Specific Data Models  . . . . . . . . . . . . . . . . . .   8
   3.  Specification of the CBOR Encoding  . . . . . . . . . . . . .   9
     3.1.  Major Types . . . . . . . . . . . . . . . . . . . . . . .  10
     3.2.  Indefinite Lengths for Some Major Types . . . . . . . . .  12
       3.2.1.  The "break" Stop Code . . . . . . . . . . . . . . . .  12
       3.2.2.  Indefinite-Length Arrays and Maps . . . . . . . . . .  12
       3.2.3.  Indefinite-Length Byte Strings and Text Strings . . .  14
     3.3.  Floating-Point Numbers and Values with No Content . . . .  15
     3.4.  Optional Tagging of Items . . . . . . . . . . . . . . . .  17
       3.4.1.  Date and Time . . . . . . . . . . . . . . . . . . . .  19
       3.4.2.  Standard Date/Time String . . . . . . . . . . . . . .  19
       3.4.3.  Epoch-based Date/Time . . . . . . . . . . . . . . . .  19
       3.4.4.  Bignums . . . . . . . . . . . . . . . . . . . . . . .  20
       3.4.5.  Decimal Fractions and Bigfloats . . . . . . . . . . .  21
       3.4.6.  Content Hints . . . . . . . . . . . . . . . . . . . .  22
         3.4.6.1.  Encoded CBOR Data Item  . . . . . . . . . . . . .  22
         3.4.6.2.  Expected Later Encoding for CBOR-to-JSON
                   Converters  . . . . . . . . . . . . . . . . . . .  23
         3.4.6.3.  Encoded Text  . . . . . . . . . . . . . . . . . .  23
       3.4.7.  Self-Described CBOR . . . . . . . . . . . . . . . . .  24
   4.  Serialization Considerations  . . . . . . . . . . . . . . . .  25
     4.1.  Preferred Serialization . . . . . . . . . . . . . . . . .  25
     4.2.  Deterministically Encoded CBOR  . . . . . . . . . . . . .  26
Show full document text