blob: ace6f720208af25023231688f5cc14bd7385ac44 [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
Alexander Afanasyevfda32a32014-03-20 10:50:00 -0700141. C++ Boost Libraries version >= 1.48
15
16 On Ubuntu 12.04:
Alexander Afanasyeva8f2a922014-02-26 14:21:56 -080017
18 sudo apt-get install libboost1.48-all-dev
19
Alexander Afanasyevfda32a32014-03-20 10:50:00 -070020 On Ubuntu 13.10 and later
21
22 sudo apt-get install libboost-all-dev
23
24 On OSX with macports
25
26 sudo port install boost
27
28 On OSX with brew
29
30 brew install boost
31
32 On other platforms Boost Libraries can be installed from the packaged version for the
33 distribution, if the version matches requirements, or compiled from source
34 (http://www.boost.org)
35
362. ndn-cpp-dev library (https://github.com/named-data/ndn-cpp-dev)
37
38 For detailed installation instructions refer to
39 https://github.com/named-data/ndn-cpp-dev/blob/master/INSTALL.md and/or
40 https://github.com/named-data/ndn-cpp-dev
41
423. NDN forwarding daemon (https://github.com/named-data/NFD)
Alexander Afanasyeva8f2a922014-02-26 14:21:56 -080043
44-----------------------------------------------------
45
46## 1. Compile And Installation Instructions: ##
47
Alexander Afanasyevfda32a32014-03-20 10:50:00 -070048 ./waf configure
Alexander Afanasyeva8f2a922014-02-26 14:21:56 -080049 ./waf
50 sudo ./waf install
51
52## 2. Tool Run Instructions & Command Line Options: ##
53
54 Usage: ndntrafficserver [options] <Traffic_Configuration_File>
55 Respond to Interest as per provided Traffic Configuration File
56 Multiple Prefixes can be configured for handling.
57 Set environment variable NDN_TRAFFIC_LOGFOLDER for redirecting output to a log.
58 [-d interval] - set delay before responding to interest in milliseconds (minimum 0 milliseconds)
59 [-h] - print help and exit
60
61 Usage: ndntraffic [options] <Traffic_Configuration_File>
62 Generate Interest Traffic as per provided Traffic Configuration File
63 Interests are continuously generated unless a total number is specified.
64 Set environment variable NDN_TRAFFIC_LOGFOLDER for redirecting output to a log.
65 [-i interval] - set interest generation interval in milliseconds (minimum 1000 milliseconds)
66 [-c count] - set total number of interests to be generated
67 [-h] - print help and exit
68
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.