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.

• up• down• right• left• up-right• down-right• up-left• down-left• angle between 0 <strong>and</strong> 2piFlags -r <strong>and</strong> -D give the b<strong>and</strong>width (in Mb) <strong>and</strong> delay (in ms), respectively. An example of a link trace is:l -t * -s 0 -d 1 -S UP -r 1500000 -D 0.01 -c black -o right46.1.4 Queues<strong>The</strong> nam trace queue st<strong>at</strong>es is given by:q -t -s -d -a Queues are visualized in nam as a straight line along which packets (small squares) are packed. In queue trace events, the flag-a specifies the orient<strong>at</strong>ion of the line of the queue (angle between the queue line <strong>and</strong> the horizontal line, counter-clockwise).For example, the following line specifies a queue th<strong>at</strong> grows vertically upwards with respect to the screen (here 0.5 mea<strong>ns</strong>the angle of the queue line is pi/2):q -t * -s 0 -d 1 -a 0.546.1.5 PacketsWhen a trace line describes a packet, the event type may be + (enqueue), - (dequeue), r (receive), d (drop), or h (hop). -t -e -s -d -c -i is one of:h Hop: <strong>The</strong> packet started to be tra<strong>ns</strong>mitted on the link from to <strong>and</strong> is forwarded to the nexthop.r Receive: <strong>The</strong> packet finished tra<strong>ns</strong>mission <strong>and</strong> started to be received <strong>at</strong> the destin<strong>at</strong>ion.d Drop: <strong>The</strong> packet was dropped from the queue or link from to . Drop here doesn’t distinguishbetween dropping from queue or link. This is decided by the drop time.+ Enter queue: <strong>The</strong> packet entered the queue from to .398

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

Saved successfully!

Ooh no, something went wrong!