GithubHelp home page GithubHelp logo

zhangwanyue / tgen Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shadow/tgen

0.0 2.0 0.0 449 KB

A powerful traffic generator that can model complex behaviors using an action-dependency graph

License: Other

CMake 3.82% C 77.27% Objective-C 0.74% C++ 0.14% Python 18.03%

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 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 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/tgen.server.graphml.xml > tgen.server.log

and then run a client that connects to the server:

tgen resource/tgen.webclient.graphml.xml > 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-Modeling.md for examples of how to generate TGen config files with embedded traffic models.

See doc/TGen-Config.md for the format of the configuration file and the possible options that can be used when generating traffic models.

tgen's People

Contributors

robgjansen avatar pastly avatar mileb avatar jtracey avatar

Watchers

James Cloos avatar zhangwanyue 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.