commit | dbfee2ea16f3169832f93afca9884e334e4133b5 | [log] [tgz] |
---|---|---|
author | jeraldabraham <jeraldabraham@email.arizona.edu> | Fri Apr 04 01:18:14 2014 -0700 |
committer | jeraldabraham <jeraldabraham@email.arizona.edu> | Fri Apr 04 01:18:14 2014 -0700 |
tree | 52e71e1101aa2ff9320b0a6c77c432e64d1623f4 | |
parent | 79c0c239fcc22fe707868310d5287d58acd76fc7 [diff] |
ndn-traffic-client: correcting few counter initializations and code change to handle high interest rate scenarios Change-Id: I0c8fd5edcf6821c19fbaf71722f824d2f579fccf refs: #1143
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.
Compiling and running ndn-traffic-generator requires the following dependencies:
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
For detailed installation instructions, please refer README file
./waf configure ./waf sudo ./waf install
Usage: ndntrafficserver [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 [-h] - print help and exit Usage: ndntraffic [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 [-h] - print help and exit
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