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

The information below is for an old version of the document
Document Type Active Internet-Draft (dnsop WG)
Last updated 2016-12-08 (latest revision 2016-12-06)
Replaces draft-dickinson-dnsop-dns-capture-format
Stream IETF
Intended RFC status Proposed Standard
Formats plain text pdf html bibtex
Stream WG state WG Document
Document shepherd No shepherd assigned
IESG IESG state I-D Exists
Consensus Boilerplate Yes
Telechat date
Responsible AD (None)
Send notices to (None)
dnsop                                                       J. Dickinson
Internet-Draft                                                  J. Hague
Intended status: Standards Track                            S. Dickinson
Expires: June 9, 2017                                         Sinodun IT
                                                            T. Manderson
                                                                 J. Bond
                                                                   ICANN
                                                        December 6, 2016

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

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 meta data.
   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 June 9, 2017.

Copyright Notice

   Copyright (c) 2016 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 June 9, 2017                  [Page 1]
Internet-Draft     C-DNS: A DNS Packet Capture Format      December 2016

   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.  Requirements Terminology  . . . . . . . . . . . . . . . . . .   4
   3.  Data Collection Use Cases . . . . . . . . . . . . . . . . . .   4
   4.  Design Considerations . . . . . . . . . . . . . . . . . . . .   6
   5.  C-DNS conceptual overview . . . . . . . . . . . . . . . . . .   8
   6.  Choice of CBOR  . . . . . . . . . . . . . . . . . . . . . . .   8
   7.  C-DNS CBOR format . . . . . . . . . . . . . . . . . . . . . .   8
     7.1.  CDDL definition . . . . . . . . . . . . . . . . . . . . .   8
     7.2.  Format overview . . . . . . . . . . . . . . . . . . . . .   9
     7.3.  File header contents  . . . . . . . . . . . . . . . . . .   9
     7.4.  File preamble contents  . . . . . . . . . . . . . . . . .  10
     7.5.  Configuration contents  . . . . . . . . . . . . . . . . .  10
     7.6.  Block contents  . . . . . . . . . . . . . . . . . . . . .  11
     7.7.  Block preamble map  . . . . . . . . . . . . . . . . . . .  12
     7.8.  Block statistics  . . . . . . . . . . . . . . . . . . . .  12
     7.9.  Block table map . . . . . . . . . . . . . . . . . . . . .  13
     7.10. IP address table  . . . . . . . . . . . . . . . . . . . .  13
     7.11. Class/Type table  . . . . . . . . . . . . . . . . . . . .  13
     7.12. Name/RDATA table  . . . . . . . . . . . . . . . . . . . .  14
     7.13. Query Signature table . . . . . . . . . . . . . . . . . .  14
     7.14. Question table  . . . . . . . . . . . . . . . . . . . . .  16
     7.15. Resource Record (RR) table  . . . . . . . . . . . . . . .  17
     7.16. Question list table . . . . . . . . . . . . . . . . . . .  17
     7.17. Resource Record list table  . . . . . . . . . . . . . . .  17
     7.18. Query/Response data . . . . . . . . . . . . . . . . . . .  18
     7.19. Address Event counts  . . . . . . . . . . . . . . . . . .  20
   8.  C-DNS to PCAP . . . . . . . . . . . . . . . . . . . . . . . .  21
     8.1.  Name Compression  . . . . . . . . . . . . . . . . . . . .  22
   9.  Data Collection . . . . . . . . . . . . . . . . . . . . . . .  23
     9.1.  Matching algorithm  . . . . . . . . . . . . . . . . . . .  23
     9.2.  Message identifiers . . . . . . . . . . . . . . . . . . .  24
       9.2.1.  Primary ID (required) . . . . . . . . . . . . . . . .  24
Show full document text