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

Document Type Active Internet-Draft (cbor WG)
Last updated 2020-03-10 (latest revision 2020-03-08)
Stream IETF
Intended RFC status (None)
Formats plain text pdf htmlized bibtex
Stream WG state In WG Last Call
On Agenda cbor at interim-2020-cbor-06
Document shepherd Francesca Palombini
IESG IESG state I-D Exists
Consensus Boilerplate Unknown
Telechat date
Responsible AD (None)
Send notices to Francesca Palombini <francesca.palombini@ericsson.com>
Network Working Group                                         C. Bormann
Internet-Draft                                   Universitaet Bremen TZI
Obsoletes: 7049 (if approved)                                 P. Hoffman
Intended status: Standards Track                                   ICANN
Expires: 9 September 2020                                   8 March 2020

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

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 is a revised edition of RFC 7049, with editorial
   improvements, added detail, and fixed errata.  This revision formally
   obsoletes RFC 7049, while keeping full compatibility of the
   interchange format from RFC 7049.  It does not create a new version
   of the format.

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.

   [RFC editor: please remove this note.]

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/.

Bormann & Hoffman       Expires 9 September 2020                [Page 1]
Internet-Draft                    CBOR                        March 2020

   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 9 September 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  . . . . . . . . . . . . . . . . . . . . . . . .   4
     1.1.  Objectives  . . . . . . . . . . . . . . . . . . . . . . .   4
     1.2.  Terminology . . . . . . . . . . . . . . . . . . . . . . .   6
   2.  CBOR Data Models  . . . . . . . . . . . . . . . . . . . . . .   7
     2.1.  Extended Generic Data Models  . . . . . . . . . . . . . .   8
     2.2.  Specific Data Models  . . . . . . . . . . . . . . . . . .   9
   3.  Specification of the CBOR Encoding  . . . . . . . . . . . . .  10
     3.1.  Major Types . . . . . . . . . . . . . . . . . . . . . . .  11
     3.2.  Indefinite Lengths for Some Major Types . . . . . . . . .  13
       3.2.1.  The "break" Stop Code . . . . . . . . . . . . . . . .  13
       3.2.2.  Indefinite-Length Arrays and Maps . . . . . . . . . .  14
       3.2.3.  Indefinite-Length Byte Strings and Text Strings . . .  16
       3.2.4.  Summary of indefinite-length use of major types . . .  17
     3.3.  Floating-Point Numbers and Values with No Content . . . .  17
     3.4.  Tagging of Items  . . . . . . . . . . . . . . . . . . . .  19
       3.4.1.  Standard Date/Time String . . . . . . . . . . . . . .  22
       3.4.2.  Epoch-based Date/Time . . . . . . . . . . . . . . . .  22
       3.4.3.  Bignums . . . . . . . . . . . . . . . . . . . . . . .  23
       3.4.4.  Decimal Fractions and Bigfloats . . . . . . . . . . .  24
       3.4.5.  Content Hints . . . . . . . . . . . . . . . . . . . .  25
         3.4.5.1.  Encoded CBOR Data Item  . . . . . . . . . . . . .  25
         3.4.5.2.  Expected Later Encoding for CBOR-to-JSON
                 Converters  . . . . . . . . . . . . . . . . . . . .  25
         3.4.5.3.  Encoded Text  . . . . . . . . . . . . . . . . . .  26
Show full document text