1 / 9

Mastering nam for Network Simulation Visualization

Learn to harness nam for visualizing network simulations, from tracing techniques to advanced capabilities like node customization and annotation. Discover the power of nam editor for simple scenario creation without Tcl knowledge.

pnancy
Download Presentation

Mastering nam for Network Simulation Visualization

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ns tutorial - fall 2002 Introduction to nam Tim Buchheim 21 November 2002

  2. Getting started with nam • Turn on nam tracing in your Tcl script • As easy as turning on normal tracing $ns namtrace $file • Specify link orientation (or node position for wireless) $ns duplex-link-op $node1 $node2 orient left • Execute nam exec nam $filename

  3. The nam user interface

  4. Advanced nam capabilities • Node options — color, shape, label $node color red $node shape hexagon $node label “my text” $node label-color blue $node label-at up • Link options $ns duplex-link-op $n1 $n2 color green $ns duplex-link-op queuePos right $ns duplex-link-op $n1 $n2 label “my text” $ns duplex-link-op $n1 $n2 label-color blue $ns duplex-link-op $n1 $n2 label-at down

  5. Advanced nam capabilities • Packet colors $ns color $n blue $agent set fid_ $n • Annotation $ns at $time “$ns trace-annotate $text” • Control playback $ns set-animation-rate 3ms

  6. namgraph • Display a graph showing when packets are received/dropped. • Enabling namgraph • Run the namfilter script on your nam trace file: exec tclsh /path/to/namfilter.tcl out.nam

  7. namgraph

  8. The nam editor • Create simple scenarios graphically • Good for those who don’t want to learn Tcl, but only a limited subset of ns is available

  9. The nam editor

More Related