项目作者: Jumabek

项目描述 :
Network traffic sampler Sketch Guided Sampling, Packet Sampling, Random Sampling, Fast Filtered Sampling, Selective Flow Sampling
高级语言: C++
项目地址: git://github.com/Jumabek/net_traffic_samplers.git
创建时间: 2019-11-05T08:12:37Z
项目社区:https://github.com/Jumabek/net_traffic_samplers

开源协议:

下载


This repo is C++ version of intrusion-sampling

Datasets we are using ISCX-2014-Bot, CIC-IDS-2017,CIC-IDS-2018 comes with 80 flow features
Among them we can estimate 9 of them with samplers, because other time related feautures such as IAT(InterArrivalTime) of neightboring packets cannot be estimated.
Although for sketchflow we can calculate IAT of two packets and divide them by sampling rate, it might be considered unfair because other samplers cannot estimate it well.

Sketchflow

Compiling
g++ -std=c++11 -o sketchflow sketchflow.cpp collector.cpp helper.c -lm -lpcap -lpthread -msse4.2

Call
python scripts/sample_ids-2018_sketchflow.py


sFlow

Compiling
g++ -std=c++11 -o sflow sflow.cpp collector.cpp helper.c -lm -lpcap -lpthread -msse4.2

Call
python scripts/sample_ids-2018_sflow.py


SGS

Compiling
g++ -std=c++11 -o sgs sgs.cpp collector.cpp helper.c -lm -lpcap -lpthread -msse4.2

Call
python scripts/sample_ids-2018_sgs.py


Fast Filtered Sampling

Compiling
g++ -std=c++11 -o ffs ffs.cpp collector.cpp helper.c -lm -lpcap -lpthread -msse4.2

Call
python scripts/sample_ids-2018_ffs.py

Selective Flow Sampling

Compiling
g++ -std=c++11 -o selective_flow selective_flow.cpp collector.cpp helper.c -lm -lpcap -lpthread -msse4.2

Call
python scripts/sample_ids-2018_selective_flow.py