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

Document Type Active Internet-Draft (dnsop WG)
Last updated 2018-12-12
Replaces draft-dickinson-dnsop-dns-capture-format
Stream IETF
Intended RFC status Proposed Standard
Formats plain text pdf html bibtex
Reviews
Stream WG state Submitted to IESG for Publication
Document shepherd Tim Wicinski
Shepherd write-up Show (last changed 2018-10-02)
IESG IESG state IESG Evaluation::AD Followup
Consensus Boilerplate Yes
Telechat date
Has enough positions to pass.
Responsible AD Warren Kumari
Send notices to Tim Wicinski <tjw.ietf@gmail.com>
IANA IANA review state Version Changed - Review Needed
IANA action state None
dnsop                                                       J. Dickinson
Internet-Draft                                                  J. Hague
Intended status: Standards Track                            S. Dickinson
Expires: June 15, 2019                                        Sinodun IT
                                                            T. Manderson
                                                                 J. Bond
                                                                   ICANN
                                                       December 12, 2018

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

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 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 June 15, 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

Dickinson, et al.         Expires June 15, 2019                 [Page 1]
Internet-Draft     C-DNS: A DNS Packet Capture Format      December 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 . . . . . . . . . . . . . . . . . . . . . . . . .   5
   3.  Data collection use cases . . . . . . . . . . . . . . . . . .   5
   4.  Design considerations . . . . . . . . . . . . . . . . . . . .   7
   5.  Choice of CBOR  . . . . . . . . . . . . . . . . . . . . . . .   9
   6.  C-DNS format conceptual overview  . . . . . . . . . . . . . .   9
     6.1.  Block Parameters  . . . . . . . . . . . . . . . . . . . .  13
     6.2.  Storage Parameters  . . . . . . . . . . . . . . . . . . .  13
       6.2.1.  Optional data items . . . . . . . . . . . . . . . . .  14
       6.2.2.  Optional RRs and OPCODEs  . . . . . . . . . . . . . .  15
       6.2.3.  Storage flags . . . . . . . . . . . . . . . . . . . .  15
       6.2.4.  IP Address storage  . . . . . . . . . . . . . . . . .  16
   7.  C-DNS format detailed description . . . . . . . . . . . . . .  16
     7.1.  Map quantities and indexes  . . . . . . . . . . . . . . .  16
     7.2.  Tabular representation  . . . . . . . . . . . . . . . . .  17
     7.3.  "File"  . . . . . . . . . . . . . . . . . . . . . . . . .  18
     7.4.  "FilePreamble"  . . . . . . . . . . . . . . . . . . . . .  18
       7.4.1.  "BlockParameters" . . . . . . . . . . . . . . . . . .  19
       7.4.2.  "CollectionParameters"  . . . . . . . . . . . . . . .  22
     7.5.  "Block" . . . . . . . . . . . . . . . . . . . . . . . . .  24
       7.5.1.  "BlockPreamble" . . . . . . . . . . . . . . . . . . .  24
       7.5.2.  "BlockStatistics" . . . . . . . . . . . . . . . . . .  25
       7.5.3.  "BlockTables" . . . . . . . . . . . . . . . . . . . .  26
     7.6.  "QueryResponse" . . . . . . . . . . . . . . . . . . . . .  32
       7.6.1.  "ResponseProcessingData"  . . . . . . . . . . . . . .  34
       7.6.2.  "QueryResponseExtended" . . . . . . . . . . . . . . .  34
     7.7.  "AddressEventCount" . . . . . . . . . . . . . . . . . . .  35
     7.8.  "MalformedMessage"  . . . . . . . . . . . . . . . . . . .  36
   8.  Versioning  . . . . . . . . . . . . . . . . . . . . . . . . .  37
   9.  C-DNS to PCAP . . . . . . . . . . . . . . . . . . . . . . . .  37
     9.1.  Name compression  . . . . . . . . . . . . . . . . . . . .  38
Show full document text