PCAP Next Generation (pcapng) Capture File Format
draft-tuexen-opsawg-pcapng-01

Document Type Active Internet-Draft (individual)
Last updated 2020-03-27
Stream (None)
Intended RFC status (None)
Formats plain text xml pdf htmlized (tools) htmlized bibtex
Stream Stream state (No stream defined)
Consensus Boilerplate Unknown
RFC Editor Note (None)
IESG IESG state I-D Exists
Telechat date
Responsible AD (None)
Send notices to (None)
Network Working Group                                     M. Tuexen, Ed.
Internet-Draft                          Muenster Univ. of Appl. Sciences
Intended status: Informational                                  F. Risso
Expires: September 28, 2020                        Politecnico di Torino
                                                             J. Bongertz
                                                 Airbus DS CyberSecurity
                                                                G. Combs
                                                               Wireshark
                                                               G. Harris

                                                           M. Richardson
                                                               Sandelman
                                                          March 27, 2020

           PCAP Next Generation (pcapng) Capture File Format
                     draft-tuexen-opsawg-pcapng-01

Abstract

   This document describes a format to record captured packets to a
   file.  This format is extensible; Wireshark can currently read and
   write it, and libpcap can currently read some pcapng files.

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 September 28, 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

Tuexen, et al.         Expires September 28, 2020               [Page 1]
Internet-Draft                   pcapng                       March 2020

   (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  . . . . . . . . . . . . . . . . . . . . . . . .   3
   2.  Terminology . . . . . . . . . . . . . . . . . . . . . . . . .   3
     2.1.  Acronyms  . . . . . . . . . . . . . . . . . . . . . . . .   4
   3.  General File Structure  . . . . . . . . . . . . . . . . . . .   4
     3.1.  General Block Structure . . . . . . . . . . . . . . . . .   4
     3.2.  Block Types . . . . . . . . . . . . . . . . . . . . . . .   5
     3.3.  Logical Block Hierarchy . . . . . . . . . . . . . . . . .   7
     3.4.  Physical File Layout  . . . . . . . . . . . . . . . . . .   7
     3.5.  Options . . . . . . . . . . . . . . . . . . . . . . . . .   8
       3.5.1.  Custom Options  . . . . . . . . . . . . . . . . . . .  11
     3.6.  Data format . . . . . . . . . . . . . . . . . . . . . . .  13
       3.6.1.  Endianness  . . . . . . . . . . . . . . . . . . . . .  13
       3.6.2.  Alignment . . . . . . . . . . . . . . . . . . . . . .  13
   4.  Block Definition  . . . . . . . . . . . . . . . . . . . . . .  14
     4.1.  Section Header Block  . . . . . . . . . . . . . . . . . .  14
     4.2.  Interface Description Block . . . . . . . . . . . . . . .  17
     4.3.  Enhanced Packet Block . . . . . . . . . . . . . . . . . .  22
       4.3.1.  Enhanced Packet Block Flags Word  . . . . . . . . . .  26
     4.4.  Simple Packet Block . . . . . . . . . . . . . . . . . . .  27
     4.5.  Name Resolution Block . . . . . . . . . . . . . . . . . .  28
     4.6.  Interface Statistics Block  . . . . . . . . . . . . . . .  32
     4.7.  systemd Journal Export Block  . . . . . . . . . . . . . .  35
     4.8.  Decryption Secrets Block  . . . . . . . . . . . . . . . .  36
     4.9.  Custom Block  . . . . . . . . . . . . . . . . . . . . . .  38
   5.  Experimental Blocks (deserve further investigation) . . . . .  40
     5.1.  Alternative Packet Blocks (experimental)  . . . . . . . .  40
     5.2.  Compression Block (experimental)  . . . . . . . . . . . .  40
     5.3.  Encryption Block (experimental) . . . . . . . . . . . . .  41
     5.4.  Fixed Length Block (experimental) . . . . . . . . . . . .  42
     5.5.  Directory Block (experimental)  . . . . . . . . . . . . .  43
     5.6.  Traffic Statistics and Monitoring Blocks (experimental) .  43
Show full document text