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

Document Type Active Internet-Draft (dnsop WG)
Last updated 2017-07-03
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: January 4, 2018                                      Sinodun IT
                                                            T. Manderson
                                                                 J. Bond
                                                                   ICANN
                                                            July 3, 2017

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

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 January 4, 2018.

Copyright Notice

   Copyright (c) 2017 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 January 4, 2018                [Page 1]
Internet-Draft     C-DNS: A DNS Packet Capture Format          July 2017

   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.  Conceptual Overview . . . . . . . . . . . . . . . . . . . . .   8
   6.  Choice of CBOR  . . . . . . . . . . . . . . . . . . . . . . .   8
   7.  The C-DNS format  . . . . . . . . . . . . . . . . . . . . . .   9
     7.1.  CDDL definition . . . . . . . . . . . . . . . . . . . . .   9
     7.2.  Format overview . . . . . . . . . . . . . . . . . . . . .   9
     7.3.  File header contents  . . . . . . . . . . . . . . . . . .  10
     7.4.  File preamble contents  . . . . . . . . . . . . . . . . .  10
     7.5.  Configuration contents  . . . . . . . . . . . . . . . . .  11
     7.6.  Block contents  . . . . . . . . . . . . . . . . . . . . .  13
     7.7.  Block preamble map  . . . . . . . . . . . . . . . . . . .  13
     7.8.  Block statistics  . . . . . . . . . . . . . . . . . . . .  14
     7.9.  Block table map . . . . . . . . . . . . . . . . . . . . .  14
     7.10. IP address table  . . . . . . . . . . . . . . . . . . . .  15
     7.11. Class/Type table  . . . . . . . . . . . . . . . . . . . .  15
     7.12. Name/RDATA table  . . . . . . . . . . . . . . . . . . . .  16
     7.13. Query Signature table . . . . . . . . . . . . . . . . . .  16
     7.14. Question table  . . . . . . . . . . . . . . . . . . . . .  19
     7.15. Resource Record (RR) table  . . . . . . . . . . . . . . .  19
     7.16. Question list table . . . . . . . . . . . . . . . . . . .  19
     7.17. Resource Record list table  . . . . . . . . . . . . . . .  20
     7.18. Query/Response data . . . . . . . . . . . . . . . . . . .  20
     7.19. Address Event counts  . . . . . . . . . . . . . . . . . .  23
     7.20. Malformed packet records  . . . . . . . . . . . . . . . .  23
   8.  Malformed Packets . . . . . . . . . . . . . . . . . . . . . .  24
   9.  C-DNS to PCAP . . . . . . . . . . . . . . . . . . . . . . . .  25
Show full document text