blob: 6c66ba2ca3e61743c2b6588bb5df2c7a97cc9d10 [file] [log] [blame] [view]
Alexander Afanasyeva8f2a922014-02-26 14:21:56 -08001Traffic Generator For NDN (ndn-traffic)
2=======================================
3
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.
7Sample configuration files are provided which include instructions on how
8to configure various parameters.
9
10This is an application tool developed over ndn-cpp APIs for TLV packet
11based communication over NDN configured network. The NDN network has to
12be first created with 'ndnx' and 'ndnd-tlv'. This is followed by environment
13security setup with 'ndn-cpp-security-tools'. The application also requires
14installation of ndn-cpp and CPP boost libraries. The installations need to
15follow a strict order as the ndnd
16
17To run the following must be ensured(FOLLOW ORDER STRICTLY)
18
191. Install ndnx (install all necessary dependencies)
202. Install CPP Boost Library > 1.47
21
22 sudo apt-get install libboost1.48-all-dev
23
243. Install ndn-cpp-dev (install all necessary dependencies except boost)
254. Install ndnd-tlv install all necessary dependencies except boost)
265. Install and Configure Security Environment with ndn-cpp-security-tools
27
28-----------------------------------------------------
29
30## 1. Compile And Installation Instructions: ##
31
32 git clone git://github.com/jeraldabraham/ndn-traffic ndn-traffic
33 cd ndn-traffic
34 ./waf configure
35 ./waf
36 sudo ./waf install
37
38## 2. Tool Run Instructions & Command Line Options: ##
39
40 Usage: ndntrafficserver [options] <Traffic_Configuration_File>
41 Respond to Interest as per provided Traffic Configuration File
42 Multiple Prefixes can be configured for handling.
43 Set environment variable NDN_TRAFFIC_LOGFOLDER for redirecting output to a log.
44 [-d interval] - set delay before responding to interest in milliseconds (minimum 0 milliseconds)
45 [-h] - print help and exit
46
47 Usage: ndntraffic [options] <Traffic_Configuration_File>
48 Generate Interest Traffic as per provided Traffic Configuration File
49 Interests are continuously generated unless a total number is specified.
50 Set environment variable NDN_TRAFFIC_LOGFOLDER for redirecting output to a log.
51 [-i interval] - set interest generation interval in milliseconds (minimum 1000 milliseconds)
52 [-c count] - set total number of interests to be generated
53 [-h] - print help and exit
54
55
56## 3. Sample Run Instructions ##
57
58__ON MACHINE #1__
59
60Start the ndnd-tlv daemon
61
62 ndnd-tlv-start
63
64Start traffic server
65
66 ndntrafficserver NDNTrafficServer.conf
67
68__ON MACHINE #2__
69
70Start the ndnd-tlv daemon
71
72 ndnd-tlv-start
73
74Start the traffic client
75
76 ndntraffic NDNTrafficClient.conf
77
78
79* These tools need not be used together and can be used individually as well.
80* Please refer sample configuration files provided for details on how to create your own.
81* Use command line options shown above to adjust traffic configuration.
82