Code Monkey home page Code Monkey logo

iot-ddos-detection-with-sdn-simulator's Introduction

IoT DDoS detection with SDN simulator

Description

This simulator evaluates the performance of the IoT DDoS attack detector based in SDN proposed at "Quarantining malicious IoT devices in intelligent sliced mobile networks".

Execution

Use the script "detection_simulator.py" to simulate the scenarios you want to evaluate.

This script same preset collections of scenarios with the aim of generating data to plot the impact of two specific parameters on the detection:

  1. Change to the root directory of this project.
  2. Run the script "detection_simulator.py" including the option "figure": python3 detection_simulator.py --figure=<FIGURE_ID>
  3. A .csv file will be created in a folder named "results" at PWD. Run the "postprocess_data.py" script to parse the .csv and compute the data required to plot the results: python3 postprocess_data.py --figure=<FIGURE_ID>
  4. A .m file, including the data to represent, sill be created at "./matlab/". Run the corresponding Matlab script to plot the data.

Usage

usage: python3 detection_simulator.py [--malicious_devices_prop=<val>] [--devices_per_cluster=<val>]
               [--eval_time=<val>] [--malicious_frequency_multiplier=<val>] [--threshold_ratio=<val>]
               [--periodicity_error=<val>] [--figure=<val>]

 --malicious_devices_prob <PROB>           Specifies the probability of a device being malicious.
                                           [default: 0.01].
 --devices_per_cluster <NUM_DEVICES>       Specifies the aggregated flow size.
                                           [default: 200].
 --eval_time <MS>                          Specifies the SDN application sample period, in ms.
                                           [default: 1000].
 --malicious_frequency_multiplier <RATIO>  Specifies the ratio between the transmission frequency of
                                           malicious and legitimate devices. [default: 100].
 --threshold_ratio <RATIO>                 Specifies the threshold ratio above which flows are tagged
                                           as suspicious. [default: 1.01].

 --figure <FIGURE_ID>                      Specifies a set of scenarios to evaluate among a predefined
                                           collection. All other input parameters will be overwritten.
                                           Available figures:
                                               2. malicious_devices_prob and devices_per_cluster
                                                   vs quarantining
                                               3. threshold_ratio and malicious_devices_prop
                                                   vs quarantining
                                               4. malicious_frequency_multiplier and malicious_devices_prop
                                                   vs quarantining
                                               5. eval_time and devices_per_cluster vs quarantining
                                               6. threshold_ratio and eval_time vs quarantining
                                           [default: None].

usage: postprocess_data.py --figure=<FIGURE_ID>

Copyright

Copyright โ“’ 2020 David Candal Ventureira [email protected].

This simulator is licensed under the GNU General Public License, version 3 (GPL-3.0). For more information see LICENSE.txt

iot-ddos-detection-with-sdn-simulator's People

Contributors

dcandal-gti avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.