Installation

NetSpec can be installed in either of 2 ways...

       Under inetd
       Standalone

How Do I Install Netspec?

Copy the files from the tar supplied netspec/bin directory into /usr/local/bin. (You may change this location if you prefer. If you change locations, then you will need to edit the supplied netspec.conf file and modify the inetd.conf and services line additions as necessary).

Copy netspec.conf into /etc.



inetd Installation

Edit /etc/services and add the following line: netspec 42003/tcp # NetSpec Daemon and then add the following line to /etc/inetd.conf: netspec stream tcp nowait root /usr/local/bin/netspecd netspecd Finally, you have to reinitialize inetd, so determine the process id of inetd ("ps axuw | grep inetd" on BSD-ish stuff, "ps -elf | grep inetd" on systemV-ish) and perform a "kill -1" on this process. You might choose to install the daemons owned by nobody, but this restricts certain options such as changing MTU sizes.
 



Standalone Installation (i.e. you don't have root access)

Place the executables at the destination of your choice, add them to your path environment variable for ease of use, or cd to the dir and execute netspecd with the "-s" option on all the machines that are being used for the test. This will start the daemon in standalone mode. Every time the systems reboot you will need to restart them. In case you don't have access to /etc, you can alternatively specify the -c option to netspecd. All daemons have a help function, namely -h.
 



Basic Usage for Testing

The main executable is started with test scripts, for example: netspec script.name The scripts are fairly easy to learn. For example, a full blast test script would look like:

cluster {

test hosta {
type = full (blocksize=32768, duration=10);
protocol = tcp (window=131072);
own = hosta:42005;
peer = hostb:42006;
}
test hostb {
type = sink (blocksize=32768, duration=10);
protocol = tcp (window=131072);
own = hostb:42006;
peer = hosta:42005;
}
}

Examples of more scripts and option specifications can be found in another document.
 
 


Comments, questions, remarks? Contact Roelof Jonkman.