API Documentation¶
genmodel.py creates a model to decribe all apps seen in an input trace file.
It uses ML and statistical distributions to create a model for network traffic seen in aninput pcap file.
- class trafficmodelmaker.trafficmodelmaker.Trafficmodelmaker(inputfile, outdir, inputfiletype='pdus-csv', metadatafile=None, modeltype='Generic')[source]¶
class to make traffic model from capture file
- __init__(inputfile, outdir, inputfiletype='pdus-csv', metadatafile=None, modeltype='Generic')[source]¶
- Parameters
inputfile (str) – pcap file or csv file containing packets to create traffic model for.
outdir (str) – input file type. Has value of either ‘pdus-csv’, ‘packets-csv’ or ‘pcap’.
inputfiletype (str) – output directory to save csv files.
metadatafile (str) – metadata json file with experiment description.
model_type (str) –
- type of model to create: (‘Type1’, ‘Type2’, ‘Type3’,
’Type4’, ‘TypeStoc1’)