12.07.2015 Views

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

The ns Manual (formerly ns Notes and Documentation)1 - NM Lab at ...

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

A -t * -n 3 -p 0 -o 0xffffffff -c 31 -a 1A -t * -h 1 -m 1023 -s 22A -t * -h 2 -m 2047 -s 11A -t * -h 3 -m 2047 -s 0Look <strong>at</strong> tcl/netModel.tcl under the nam_addressing procedure for more inform<strong>at</strong>ion.Color Table Entry A table of color entries can be built using:c -t -i -n Nam allows one to associ<strong>at</strong>e color names with integers. This is very useful in coloring packets. <strong>The</strong> flow id of a packetis used to color the packet using the corresponding color table entry color. Notice the color name should be one of thenames listed in color d<strong>at</strong>abase in X11 (/usr/X11/lib/rgb.txt).In addition to the above node <strong>and</strong> link layout events are also included in the initializ<strong>at</strong>ion section.46.1.2 Nodes<strong>The</strong> nam trace form<strong>at</strong> defining node st<strong>at</strong>e is:n -t -a -s -S -v -c -i -o"n" denotes the node st<strong>at</strong>e.Flags "-t" indic<strong>at</strong>es time <strong>and</strong> "-a" <strong>and</strong> "-s" denotes the node address <strong>and</strong> id."-S" gives the node st<strong>at</strong>e tra<strong>ns</strong>ition. <strong>The</strong> possible st<strong>at</strong>e tra<strong>ns</strong>ition values are:• UP, DOWN indic<strong>at</strong>es node recovery <strong>and</strong> failure.• COLOR indic<strong>at</strong>es node color change. If COLOR is given, a following -c is expected which gives the newcolor value. Also, flag -o is expected so th<strong>at</strong> backtracing can restore the old color of a node.• DLABEL indic<strong>at</strong>es addition of label to node. If DLABEL is given, a following -l -L isexpected th<strong>at</strong> gives the old-label, if any (for backtracing) <strong>and</strong> current label. Shape gives the node shape. <strong>The</strong> color of anode label can be specified via the -i flag."-v" is the shape of the node. <strong>The</strong> possible values are:• circle• box• hexagonAs an example, the linen -t * -a 4 -s 4 -S UP -v circle -c tan -i t<strong>and</strong>efines a node with address <strong>and</strong> id of 4 th<strong>at</strong> has the shape of a circle, <strong>and</strong> color of tan <strong>and</strong> label-color (-i) of tan.46.1.3 Links<strong>The</strong> nam trace for link st<strong>at</strong>es is given by:l -t -s -d -S -c -o orient<strong>at</strong>ion -r -D where <strong>and</strong> indic<strong>at</strong>e the same <strong>at</strong>tributes (<strong>and</strong> the same form<strong>at</strong>) as described above in the node st<strong>at</strong>e traces.Flag -o gives the link orient<strong>at</strong>ion (angle between link <strong>and</strong> the horizon). Valid orient<strong>at</strong>ion values are:397

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!