Example code how to use the UWB extension to ns-2

Download example.tgz and unpack the archive. To run the simulations call run.pl -sim line-tcp or run.pl -sim random. For these examples, the NOAH routing agent has to be installed. The file analyze.pl in the subdirectiries is automatically called from run.pl. It takes the tracefiles and creates a graph from them (output/traffic*.eps) using gnuplot. For analyze.pl to run, fplot.pl, average.pl and variance-id.pl have to be in the path.

The usual wireless trace output is written to output/link* and another log file is in output/log*. Which debugging information is written to this log file can be controlled by recompiling ns with MACIF_DEBUG defined in mac-ifcontrol.cc, INTERFERENCEPHY_DEBUG in interference-phy.cc, and CODEDPPM_DEBUG in mod_codedppm.cc. Make sure the patched ns is either in the path or change the $ns variable in run.pl to point to ns with the full path.