server: clear SIGINT/SIGTERM handler to exit cleanly

refs #4642

Change-Id: Ief62af106c5211aa4877a9196ada0299090c7287
1 file changed
tree: 8be8090b328b4b18dd38fea1023b8f6105c70258
  1. .jenkins.d/
  2. .waf-tools/
  3. src/
  4. .gitignore
  5. .jenkins
  6. .travis.yml
  7. LICENSE
  8. ndn-traffic-client.conf.sample
  9. ndn-traffic-server.conf.sample
  10. README.md
  11. waf
  12. wscript
README.md

Traffic Generator for NDN (ndn-traffic-generator)

Build Status

This tool is designed to generate Interest and Data traffic in an NDN network. The client and server tool accept traffic configuration files which can be used to specify the pattern of NDN traffic that is required to be generated. Sample configuration files are provided which include instructions on how to configure various parameters.

Prerequisites

Compiling and running ndn-traffic-generator requires the following dependencies:

  1. ndn-cxx library https://github.com/named-data/ndn-cxx

    For detailed installation instructions, please see INSTALL.rst

  2. NDN forwarding daemon https://github.com/named-data/NFD


1. Compilation & Installation Instructions:

./waf configure
./waf
sudo ./waf install

2. Tool Run Instructions & Command Line Options:

Usage: ndn-traffic-server [options] <traffic_configuration_file>
Respond to Interest as per provided traffic configuration file
Multiple prefixes can be configured for handling.
Set environment variable NDN_TRAFFIC_LOGFOLDER for redirecting output to a log.
  [-d interval] - set delay before responding to interest in milliseconds
  [-c count]    - specify maximum number of interests to be satisfied
  [-q]          - quiet logging - no interest reception/data generation messages
  [-h]          - print help and exit

Usage: ndn-traffic [options] <traffic_configuration_file>
Generate Interest traffic as per provided traffic configuration file
Interests are continuously generated unless a total number is specified.
Set environment variable NDN_TRAFFIC_LOGFOLDER for redirecting output to a log.
  [-i interval] - set interest generation interval in milliseconds (default 1000 milliseconds)
  [-c count]    - set total number of interests to be generated
  [-q]          - quiet logging - no interest reception/data generation messages
  [-h]          - print help and exit

3. Sample Run Instructions

ON MACHINE #1

(NFD must be running)

Start traffic server:

    ndn-traffic-server ndn-traffic-server.conf

ON MACHINE #2

(NFD must be running)

Start the traffic client:

    ndn-traffic ndn-traffic-client.conf
  • These tools need not be used together and can be used individually as well.
  • Please refer sample configuration files provided for details on how to create your own.
  • Use command line options shown above to adjust traffic configuration.