Alexander Afanasyev | a8f2a92 | 2014-02-26 14:21:56 -0800 | [diff] [blame] | 1 | Traffic Generator For NDN (ndn-traffic) |
| 2 | ======================================= |
| 3 | |
| 4 | This tool is designed to generate interest and data traffic in an NDN network. |
| 5 | The client and server tool accept traffic configuration files which can be |
| 6 | used to specify the pattern of NDN traffic that is required to be generated. |
| 7 | Sample configuration files are provided which include instructions on how |
| 8 | to configure various parameters. |
| 9 | |
| 10 | This is an application tool developed over ndn-cpp APIs for TLV packet |
| 11 | based communication over NDN configured network. The NDN network has to |
| 12 | be first created with 'ndnx' and 'ndnd-tlv'. This is followed by environment |
| 13 | security setup with 'ndn-cpp-security-tools'. The application also requires |
| 14 | installation of ndn-cpp and CPP boost libraries. The installations need to |
| 15 | follow a strict order as the ndnd |
| 16 | |
| 17 | To run the following must be ensured(FOLLOW ORDER STRICTLY) |
| 18 | |
| 19 | 1. Install ndnx (install all necessary dependencies) |
| 20 | 2. Install CPP Boost Library > 1.47 |
| 21 | |
| 22 | sudo apt-get install libboost1.48-all-dev |
| 23 | |
| 24 | 3. Install ndn-cpp-dev (install all necessary dependencies except boost) |
| 25 | 4. Install ndnd-tlv install all necessary dependencies except boost) |
| 26 | 5. 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 | |
| 60 | Start the ndnd-tlv daemon |
| 61 | |
| 62 | ndnd-tlv-start |
| 63 | |
| 64 | Start traffic server |
| 65 | |
| 66 | ndntrafficserver NDNTrafficServer.conf |
| 67 | |
| 68 | __ON MACHINE #2__ |
| 69 | |
| 70 | Start the ndnd-tlv daemon |
| 71 | |
| 72 | ndnd-tlv-start |
| 73 | |
| 74 | Start 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 | |