Skip to content

About

Pytorch implementation of deep packet: a novel approach for encrypted traffic classification using deep learning

Resources

Stars

0 stars

Watchers

0 watching

Forks

 
 

Repository files navigation

Deep Packet

Details in blog post: https://blog.munhou.com/2020/04/06/Pytorch-Implementation-of-Deep-Packet-A-Novel-Approach-For-Encrypted-Tra%EF%AC%83c-Classi%EF%AC%81cation-Using-Deep-Learning/

How to Use

  • Clone the project
  • Download the train and test set I created at here, or download the full dataset if you want to process the data from scratch.

Data Pre-processing

python preprocessing.py -s /path/to/CompletePcap/ -t processed_data

Create Train and Test

python create_train_test_set.py -s processed_data -t train_test_data

Train Model

Application Classification

python train_cnn.py -d train_test_data/application_classification/train.parquet -m model/application_classification.cnn.model -t app

Traffic Classification

python train_cnn.py -d train_test_data/traffic_classification/train.parquet -m model/traffic_classification.cnn.model -t traffic

Evaluation Result

Application Classification

Traffic Classification

Model Files

Download the pre-trained models here.

About

Pytorch implementation of deep packet: a novel approach for encrypted traffic classification using deep learning

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages