Sound Module

Documentation

Description

Generate a wav (mp3) file for packet data to differentiate data and ACK. Consider this module as a bonus module - the use may limited.

Options

  -h, --help            show this help message and exit
  -v LOGLEVEL, --verbose=LOGLEVEL
                        set the loglevel (info, debug, warning, error)
  -f CONNECTIONS, --data-flow=CONNECTIONS
                        specify the number of relevant ID's
  -m MODE, --mode=MODE  display packets or bytes in flight (default packets)
  -o FILENAME, --outfile=FILENAME
                        name of the generated wav file (default: packets.wav)
  -i DURATION_MIN, --duration-min=DURATION_MIN
                        minimum length of sound sample in seconds
  -a DURATION_MAX, --duration-max=DURATION_MAX
                        maximum length of sound sample in seconds
  -b LINK_BANDWIDTH, --bandwidth=LINK_BANDWIDTH
                        netto bandwith of channel in bit/s (default 100MB)
  -c ACCELERATOR, --accelerator=ACCELERATOR
                        accelerator, 0.0001 times faster is default
  -r CUT_GAP_PERIODES, --cut-gap-periodes=CUT_GAP_PERIODES
                        crop longer silence periodes to this, default 0.5

Example

captcp sound -f 1.1 --duration-max 0.05 -c 0.0005 -r 0.2 trace.pcap

The next image show the spectrum for the generated wav file: