C-DNS: A DNS Packet Capture Format
draft-ietf-dnsop-dns-capture-format-08

Document Type Active Internet-Draft (dnsop WG)
Last updated 2018-10-15 (latest revision 2018-08-10)
Replaces draft-dickinson-dnsop-dns-capture-format
Stream IETF
Intended RFC status Proposed Standard
Formats plain text pdf html bibtex
Stream WG state Submitted to IESG for Publication
Document shepherd Tim Wicinski
Shepherd write-up Show (last changed 2018-10-02)
IESG IESG state AD Evaluation
Consensus Boilerplate Yes
Telechat date
Responsible AD Warren Kumari
Send notices to Tim Wicinski <tjw.ietf@gmail.com>
dnsop                                                       J. Dickinson
Internet-Draft                                                  J. Hague
Intended status: Standards Track                            S. Dickinson
Expires: February 11, 2019                                    Sinodun IT
                                                            T. Manderson
                                                                 J. Bond
                                                                   ICANN
                                                         August 10, 2018

                   C-DNS: A DNS Packet Capture Format
                 draft-ietf-dnsop-dns-capture-format-08

Abstract

   This document describes a data representation for collections of DNS
   messages.  The format is designed for efficient storage and
   transmission of large packet captures of DNS traffic; it attempts to
   minimize the size of such packet capture files but retain the full
   DNS message contents along with the most useful transport metadata.
   It is intended to assist with the development of DNS traffic
   monitoring applications.

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 February 11, 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
   (http://trustee.ietf.org/license-info) in effect on the date of

Dickinson, et al.       Expires February 11, 2019               [Page 1]
Internet-Draft     C-DNS: A DNS Packet Capture Format        August 2018

   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
   2.  Terminology . . . . . . . . . . . . . . . . . . . . . . . . .   4
   3.  Data collection use cases . . . . . . . . . . . . . . . . . .   5
   4.  Design considerations . . . . . . . . . . . . . . . . . . . .   7
   5.  Choice of CBOR  . . . . . . . . . . . . . . . . . . . . . . .   8
   6.  C-DNS format conceptual overview  . . . . . . . . . . . . . .   9
     6.1.  Block Parameters  . . . . . . . . . . . . . . . . . . . .  13
     6.2.  Storage Parameters  . . . . . . . . . . . . . . . . . . .  13
       6.2.1.  Optional data items . . . . . . . . . . . . . . . . .  13
       6.2.2.  Optional RRs and OPCODEs  . . . . . . . . . . . . . .  14
       6.2.3.  Storage flags . . . . . . . . . . . . . . . . . . . .  15
       6.2.4.  IP Address storage  . . . . . . . . . . . . . . . . .  15
   7.  C-DNS format detailed description . . . . . . . . . . . . . .  15
     7.1.  Map quantities and indexes  . . . . . . . . . . . . . . .  15
     7.2.  Tabular representation  . . . . . . . . . . . . . . . . .  16
     7.3.  "File"  . . . . . . . . . . . . . . . . . . . . . . . . .  17
     7.4.  "FilePreamble"  . . . . . . . . . . . . . . . . . . . . .  17
       7.4.1.  "BlockParameters" . . . . . . . . . . . . . . . . . .  18
       7.4.2.  "CollectionParameters"  . . . . . . . . . . . . . . .  21
     7.5.  "Block" . . . . . . . . . . . . . . . . . . . . . . . . .  22
       7.5.1.  "BlockPreamble" . . . . . . . . . . . . . . . . . . .  23
       7.5.2.  "BlockStatistics" . . . . . . . . . . . . . . . . . .  24
       7.5.3.  "BlockTables" . . . . . . . . . . . . . . . . . . . .  25
     7.6.  "QueryResponse" . . . . . . . . . . . . . . . . . . . . .  31
       7.6.1.  "ResponseProcessingData"  . . . . . . . . . . . . . .  33
       7.6.2.  "QueryResponseExtended" . . . . . . . . . . . . . . .  33
     7.7.  "AddressEventCount" . . . . . . . . . . . . . . . . . . .  34
     7.8.  "MalformedMessage"  . . . . . . . . . . . . . . . . . . .  35
   8.  Versioning  . . . . . . . . . . . . . . . . . . . . . . . . .  36
   9.  C-DNS to PCAP . . . . . . . . . . . . . . . . . . . . . . . .  36
     9.1.  Name compression  . . . . . . . . . . . . . . . . . . . .  37
Show full document text