Code Monkey home page Code Monkey logo

flowgen's Introduction

flowgen (Flow Generator)

Description

flowgen is simple traffic generator for multiple UDP flows with some throughput distribution patterns.

flowgen support 3 flow distribtuion patterns.

  • Same : the ratio of bandwidth for each flow is uniform.
  • Random : the ratio of bandwidth for each flow is random.
  • Power-law : the ratio of bandwidth for each flow follows power-law.

flowgen uses Linux raw socket to transmit UDP packets. It is really slow.

Compile

 git clone https://github.com/upa/flowgen.git
 cd flowgen
 make
 ./flowgen -h

make DCE=yes is defined for ns-3-dce use.

How to use

 usage: ./flowgen
 	-s : Source IP address (default 10.1.0.10)
 	-d : Destination IP address (default 10.2.0.10)
 	-n : Number of flows (default 10)
 	-t : Type of flow distribution {same|random|power} (default same)
 	-l : Packet size (excluding ether header 14byte)
 	-i : packet send interval (micro second)
 	-m : Seed of srand
 	-f : daemon mode
 	-r : Randomize source ports of each flows
 	-c : Number of xmit packets (defualt unlimited)
 	-e : Receive mode
 	-u : using UDP socket instead of raw socket
 	-w : Run WITH receive thread

 % sudo ./flowgen
 
 or 
 
 % sudo ./flowgen -s 172.16.15.10 -d 172.16.12.12 -n 30 -t power -l 1500 -r -f

Todo

  • using netmap I/O.

Contact

[email protected]

flowgen's People

Contributors

upa avatar

Watchers

 avatar  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.