blob: 118fdf6796969bd6e94171daf4492ebf1907fd34 [file] [log] [blame] [view]
Alexander Afanasyevfda32a32014-03-20 10:50:00 -07001Traffic Generator For NDN (ndn-traffic-generator)
2=================================================
Alexander Afanasyeva8f2a922014-02-26 14:21:56 -08003
4This tool is designed to generate interest and data traffic in an NDN network.
5The client and server tool accept traffic configuration files which can be
6used to specify the pattern of NDN traffic that is required to be generated.
Alexander Afanasyevfda32a32014-03-20 10:50:00 -07007Sample configuration files are provided which include instructions on how
8to configure various parameters.
Alexander Afanasyeva8f2a922014-02-26 14:21:56 -08009
Alexander Afanasyevfda32a32014-03-20 10:50:00 -070010## Prerequisites ##
Alexander Afanasyeva8f2a922014-02-26 14:21:56 -080011
Alexander Afanasyevfda32a32014-03-20 10:50:00 -070012Compiling and running ndn-traffic-generator requires the following dependencies:
Alexander Afanasyeva8f2a922014-02-26 14:21:56 -080013
jeraldabrahamcc3c6c92014-03-28 02:21:45 -0700141. C++ Boost Libraries version >= 1.48 <http://www.boost.org>
Alexander Afanasyevfda32a32014-03-20 10:50:00 -070015
jeraldabrahamcc3c6c92014-03-28 02:21:45 -070016On Ubuntu 12.04:
Alexander Afanasyeva8f2a922014-02-26 14:21:56 -080017
jeraldabrahamcc3c6c92014-03-28 02:21:45 -070018 sudo apt-get install libboost1.48-all-dev
Alexander Afanasyeva8f2a922014-02-26 14:21:56 -080019
jeraldabrahamcc3c6c92014-03-28 02:21:45 -070020On Ubuntu 13.10 and later
Alexander Afanasyevfda32a32014-03-20 10:50:00 -070021
jeraldabrahamcc3c6c92014-03-28 02:21:45 -070022 sudo apt-get install libboost-all-dev
Alexander Afanasyevfda32a32014-03-20 10:50:00 -070023
jeraldabrahamcc3c6c92014-03-28 02:21:45 -070024On OSX with macports
Alexander Afanasyevfda32a32014-03-20 10:50:00 -070025
jeraldabrahamcc3c6c92014-03-28 02:21:45 -070026 sudo port install boost
Alexander Afanasyevfda32a32014-03-20 10:50:00 -070027
jeraldabrahamcc3c6c92014-03-28 02:21:45 -070028On OSX with brew
Alexander Afanasyevfda32a32014-03-20 10:50:00 -070029
jeraldabrahamcc3c6c92014-03-28 02:21:45 -070030 brew install boost
Alexander Afanasyevfda32a32014-03-20 10:50:00 -070031
jeraldabrahamcc3c6c92014-03-28 02:21:45 -070032On other platforms Boost Libraries can be installed from the packaged version for the
33distribution, if the version matches requirements, or compiled from source
Alexander Afanasyevfda32a32014-03-20 10:50:00 -070034
jeraldabrahamcc3c6c92014-03-28 02:21:45 -0700352. ndn-cpp-dev library <https://github.com/named-data/ndn-cpp-dev>
Alexander Afanasyevfda32a32014-03-20 10:50:00 -070036
jeraldabrahamcc3c6c92014-03-28 02:21:45 -070037For detailed installation instructions, please refer README file
Alexander Afanasyevfda32a32014-03-20 10:50:00 -070038
jeraldabrahamcc3c6c92014-03-28 02:21:45 -0700393. NDN forwarding daemon <https://github.com/named-data/NFD>
Alexander Afanasyeva8f2a922014-02-26 14:21:56 -080040
41-----------------------------------------------------
42
43## 1. Compile And Installation Instructions: ##
44
Alexander Afanasyevfda32a32014-03-20 10:50:00 -070045 ./waf configure
Alexander Afanasyeva8f2a922014-02-26 14:21:56 -080046 ./waf
47 sudo ./waf install
48
49## 2. Tool Run Instructions & Command Line Options: ##
50
51 Usage: ndntrafficserver [options] <Traffic_Configuration_File>
52 Respond to Interest as per provided Traffic Configuration File
53 Multiple Prefixes can be configured for handling.
54 Set environment variable NDN_TRAFFIC_LOGFOLDER for redirecting output to a log.
jeraldabrahamcc3c6c92014-03-28 02:21:45 -070055 [-d interval] - set delay before responding to interest in milliseconds
56 [-c count] - specify maximum number of interests to be satisfied
Alexander Afanasyeva8f2a922014-02-26 14:21:56 -080057 [-h] - print help and exit
58
59 Usage: ndntraffic [options] <Traffic_Configuration_File>
60 Generate Interest Traffic as per provided Traffic Configuration File
61 Interests are continuously generated unless a total number is specified.
62 Set environment variable NDN_TRAFFIC_LOGFOLDER for redirecting output to a log.
jeraldabrahamcc3c6c92014-03-28 02:21:45 -070063 [-i interval] - set interest generation interval in milliseconds (default 1000 milliseconds)
Alexander Afanasyeva8f2a922014-02-26 14:21:56 -080064 [-c count] - set total number of interests to be generated
65 [-h] - print help and exit
66
67
68## 3. Sample Run Instructions ##
69
70__ON MACHINE #1__
71
Alexander Afanasyevfda32a32014-03-20 10:50:00 -070072(NDN forwarding daemon should be running)
Alexander Afanasyeva8f2a922014-02-26 14:21:56 -080073
74Start traffic server
75
Alexander Afanasyevfda32a32014-03-20 10:50:00 -070076 ndn-traffic-server ndn-traffic-server.conf
Alexander Afanasyeva8f2a922014-02-26 14:21:56 -080077
78__ON MACHINE #2__
79
Alexander Afanasyevfda32a32014-03-20 10:50:00 -070080(NDN forwarding daemon should be running)
Alexander Afanasyeva8f2a922014-02-26 14:21:56 -080081
82Start the traffic client
Alexander Afanasyevfda32a32014-03-20 10:50:00 -070083
84 ndn-traffic ndn-traffic-client.conf
Alexander Afanasyeva8f2a922014-02-26 14:21:56 -080085
86
87* These tools need not be used together and can be used individually as well.
88* Please refer sample configuration files provided for details on how to create your own.
89* Use command line options shown above to adjust traffic configuration.