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.
- The linetcp scenario consists of a line of nodes (where the
number of nodes is configurable) over which a single TCP flow is run
from one end to the other.
- The random scenario just creates a random topology where
node pairs communicate via UDP (no multi-hop routing). They are
described in the attached paper (please don't redistribute for now) in
Fig. 10 and 11.