GithubHelp home page GithubHelp logo

anthrax3 / tgen Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shadow/tgen

0.0 0.0 0.0 1.12 MB

A powerful traffic generator that can model complex behaviors using Markov models and an action-dependency graph.

License: Other

CMake 3.12% Python 21.07% C 74.26% C++ 0.80% Shell 0.75%

tgen's Introduction

TGen

TGen is a C application that generates traffic flows between other TGen instances. The characteristics of the traffic (e.g., size, timing, number of parallel flows, etc.) can be configured by the user.

TGen can generate complex traffic patterns. Users write relatively simple python scripts to generate graphml files that are then used as TGen configuration files that instruct TGen how to generate traffic. TGen also supports the use of Markov models in order to generate TCP flows and packet streams according to common probability distributions.

TGen is used to simulate traffic flows in Shadow, and to monitor Tor performance in OnionPerf.

Setup

Dependencies in Fedora/RedHat:

sudo yum install cmake glib2 glib2-devel igraph igraph-devel

Dependencies in Ubuntu/Debian:

sudo apt-get install cmake libglib2.0-0 libglib2.0-dev libigraph0v5 libigraph0-dev

Build with a custom install prefix:

mkdir build && cd build
cmake .. -DCMAKE_INSTALL_PREFIX=/home/$USER/.local
make

Optionally install to the prefix:

make install

Usage

Run TGen with a single argument (the path to a config file). For example, first run a server:

tgen resource/server.tgenrc.graphml > tgen.server.log

and then run a client that connects to the server:

tgen resource/client.tgenrc.graphml > tgen.client.log

See the resource/ directory for example config files.

More documentation

See doc/Tools-Setup.md for setup instructions for the TGenTools toolkit that can be used to parse and plot tgen log output.

See doc/TGen-Overview.md for an overview of how to use a graph to instruct TGen how it should generate traffic, and then see doc/TGen-Options.md for a description of all options supported by TGen.

See doc/TGen-Markov-Models.md for a description of how to create and use Markov models to instruct TGen how to generate streams in a traffic flow and packets in a stream.

tgen's People

Contributors

jtracey avatar mileb avatar pastly avatar robgjansen 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.