Usage - Creating models for realistic network traffic generation with trafficmodelmaker¶
Usage¶
The usage command for the trafficmodelmaker
tool is as given below:
usage: trafficmodelmaker [-h] [-v] -i INPUTFILE -o OUTDIR
[-t {pdus-csv,packets-csv,pcap}] [-f METADATAFILE]
[-m {Generic,Generic1,Type1,Type2,Type3,Type4,TypeStoc1}]
**required arguments**:
-i INPUTFILE, --inputfile INPUTFILE
specify pcap or packets-csv file to be modeled
-o OUTDIR, --outdir OUTDIR
specify output directory to save files
**optional arguments**:
-t {pdus-csv,packets-csv,pcap},
--inputfiletype {pdus-csv,packets-csv,pcap}
specify input file type
-h, --help
show this help message and exit
-v, --verbose
-f METADATAFILE, --metadatafile METADATAFILE
specify metadata file to use for modeling
-m {Generic,Generic1,Type1,Type2,Type3,Type4,TypeStoc1},
--modeltype {Generic,Generic1,Type1,Type2,Type3,Type4,TypeStoc1}
specify type of model to create
The library can also be used within python with the code below:
from trafficmodelmaker.trafficmodelmaker import Trafficmodelmaker
modeler = Trafficmodelmaker(inputfile, outdir, inputfiletype,
metadatafile, modeltype)
modeler.make_models()
Note that the input file type, metadata file and model type arguments are optional.