Giter VIP home page Giter VIP logo

ndn-traffic-generator's Introduction

Traffic Generator For NDN (ndn-traffic-generator)

This tool is designed to generate Interest and Data traffic in an NDN network. The client and server tool accept traffic configuration files which can be used to specify the pattern of NDN traffic that is required to be generated. Sample configuration files are provided which include instructions on how to configure various parameters.

Prerequisites

Compiling and running ndn-traffic-generator requires the following dependencies:

  1. C++ Boost Libraries version >= 1.48 http://www.boost.org

    On Ubuntu 12.04:

     sudo apt-get install libboost1.48-all-dev
    

    On Ubuntu 13.10 and later

     sudo apt-get install libboost-all-dev
    

    On OSX with macports

     sudo port install boost
    

    On OSX with brew

     brew install boost
    

On other platforms Boost Libraries can be installed from the packaged version for the distribution, if the version matches requirements, or compiled from source

  1. ndn-cxx library https://github.com/named-data/ndn-cxx

    For detailed installation instructions, please refer README file

  2. NDN forwarding daemon https://github.com/named-data/NFD


1. Compile & Installation Instructions:

./waf configure
./waf
sudo ./waf install

2. Tool Run Instructions & Command Line Options:

Usage: ndn-traffic-server [options] <traffic_configuration_file>
Respond to Interest as per provided traffic configuration file
Multiple prefixes can be configured for handling.
Set environment variable NDN_TRAFFIC_LOGFOLDER for redirecting output to a log.
  [-d interval] - set delay before responding to interest in milliseconds
  [-c count]    - specify maximum number of interests to be satisfied
  [-q]          - quiet logging - no interest reception/data generation messages
  [-h]          - print help and exit

Usage: ndn-traffic [options] <traffic_configuration_file>
Generate Interest traffic as per provided traffic configuration file
Interests are continuously generated unless a total number is specified.
Set environment variable NDN_TRAFFIC_LOGFOLDER for redirecting output to a log.
  [-i interval] - set interest generation interval in milliseconds (default 1000 milliseconds)
  [-c count]    - set total number of interests to be generated
  [-q]          - quiet logging - no interest reception/data generation messages
  [-h]          - print help and exit

3. Sample Run Instructions

ON MACHINE #1

(NDN forwarding daemon should be running)

Start traffic server

    ndn-traffic-server ndn-traffic-server.conf

ON MACHINE #2

(NDN forwarding daemon should be running)

Start the traffic client

    ndn-traffic ndn-traffic-client.conf
  • These tools need not be used together and can be used individually as well.
  • Please refer sample configuration files provided for details on how to create your own.
  • Use command line options shown above to adjust traffic configuration.

ndn-traffic-generator's People

Contributors

cawka avatar eric135 avatar jeraldabraham avatar pesa avatar spenlee avatar

Watchers

 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.