blob: 0cc48b836c32f8f76b50d4f4a137d3ce0edd430b [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
jeraldabraham420dbf02014-04-25 22:58:31 -07004This tool is designed to generate Interest and Data traffic in an NDN network.
Alexander Afanasyeva8f2a922014-02-26 14:21:56 -08005The 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
jeraldabraham420dbf02014-04-25 22:58:31 -070016 On Ubuntu 12.04:
Alexander Afanasyeva8f2a922014-02-26 14:21:56 -080017
jeraldabraham420dbf02014-04-25 22:58:31 -070018 sudo apt-get install libboost1.48-all-dev
Alexander Afanasyeva8f2a922014-02-26 14:21:56 -080019
jeraldabraham420dbf02014-04-25 22:58:31 -070020 On Ubuntu 13.10 and later
Alexander Afanasyevfda32a32014-03-20 10:50:00 -070021
jeraldabraham420dbf02014-04-25 22:58:31 -070022 sudo apt-get install libboost-all-dev
Alexander Afanasyevfda32a32014-03-20 10:50:00 -070023
jeraldabraham420dbf02014-04-25 22:58:31 -070024 On OSX with macports
Alexander Afanasyevfda32a32014-03-20 10:50:00 -070025
jeraldabraham420dbf02014-04-25 22:58:31 -070026 sudo port install boost
Alexander Afanasyevfda32a32014-03-20 10:50:00 -070027
jeraldabraham420dbf02014-04-25 22:58:31 -070028 On OSX with brew
Alexander Afanasyevfda32a32014-03-20 10:50:00 -070029
jeraldabraham420dbf02014-04-25 22:58:31 -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
jeraldabraham420dbf02014-04-25 22:58:31 -0700352. ndn-cxx library <https://github.com/named-data/ndn-cxx>
Alexander Afanasyevfda32a32014-03-20 10:50:00 -070036
jeraldabraham420dbf02014-04-25 22:58:31 -070037 For 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
jeraldabraham420dbf02014-04-25 22:58:31 -070043## 1. Compile & Installation Instructions: ##
Alexander Afanasyeva8f2a922014-02-26 14:21:56 -080044
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
jeraldabraham420dbf02014-04-25 22:58:31 -070051 Usage: ndn-traffic-server [options] <traffic_configuration_file>
52 Respond to Interest as per provided traffic configuration file
53 Multiple prefixes can be configured for handling.
Alexander Afanasyeva8f2a922014-02-26 14:21:56 -080054 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
jeraldabraham420dbf02014-04-25 22:58:31 -070057 [-q] - quiet logging - no interest reception/data generation messages
58 [-h] - print help and exit
Alexander Afanasyeva8f2a922014-02-26 14:21:56 -080059
jeraldabraham420dbf02014-04-25 22:58:31 -070060 Usage: ndn-traffic [options] <traffic_configuration_file>
61 Generate Interest traffic as per provided traffic configuration file
Alexander Afanasyeva8f2a922014-02-26 14:21:56 -080062 Interests are continuously generated unless a total number is specified.
63 Set environment variable NDN_TRAFFIC_LOGFOLDER for redirecting output to a log.
jeraldabrahamcc3c6c92014-03-28 02:21:45 -070064 [-i interval] - set interest generation interval in milliseconds (default 1000 milliseconds)
jeraldabraham420dbf02014-04-25 22:58:31 -070065 [-c count] - set total number of interests to be generated
66 [-q] - quiet logging - no interest reception/data generation messages
67 [-h] - print help and exit
Alexander Afanasyeva8f2a922014-02-26 14:21:56 -080068
69
70## 3. Sample Run Instructions ##
71
72__ON MACHINE #1__
73
Alexander Afanasyevfda32a32014-03-20 10:50:00 -070074(NDN forwarding daemon should be running)
Alexander Afanasyeva8f2a922014-02-26 14:21:56 -080075
76Start traffic server
77
Alexander Afanasyevfda32a32014-03-20 10:50:00 -070078 ndn-traffic-server ndn-traffic-server.conf
Alexander Afanasyeva8f2a922014-02-26 14:21:56 -080079
80__ON MACHINE #2__
81
Alexander Afanasyevfda32a32014-03-20 10:50:00 -070082(NDN forwarding daemon should be running)
Alexander Afanasyeva8f2a922014-02-26 14:21:56 -080083
84Start the traffic client
Alexander Afanasyevfda32a32014-03-20 10:50:00 -070085
86 ndn-traffic ndn-traffic-client.conf
Alexander Afanasyeva8f2a922014-02-26 14:21:56 -080087
88
89* These tools need not be used together and can be used individually as well.
90* Please refer sample configuration files provided for details on how to create your own.
91* Use command line options shown above to adjust traffic configuration.