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...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

42.3 Internals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36542.3.1 Object Linkage . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36542.3.2 Packet Forwarding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36642.4 Comm<strong>and</strong>s <strong>at</strong> a glance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36743 Asim: approxim<strong>at</strong>e analytical simul<strong>at</strong>ion 368VIII Emul<strong>at</strong>ion 37244 Emul<strong>at</strong>ion 37344.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37344.2 Real-Time Scheduler . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37444.3 Tap Agents . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37444.4 Network Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37544.4.1 Pcap/BPF Network Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37544.4.2 IP Network Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37644.4.3 IP/UDP Network Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37644.5 An Example . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37744.6 Comm<strong>and</strong>s <strong>at</strong> a glance . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 378IX Visualiz<strong>at</strong>ion with Nam - <strong>The</strong> Network Anim<strong>at</strong>or 37945 Nam 38045.1 Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38045.2 Nam Comm<strong>and</strong> Line Optio<strong>ns</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38045.3 User Interface . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38145.4 Keyboard Comm<strong>and</strong>s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38245.5 Gener<strong>at</strong>ing External Anim<strong>at</strong>io<strong>ns</strong> from Nam . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38345.6 Network Layout . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38345.7 Anim<strong>at</strong>ion Objects . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38446 Nam Trace 38546.1 Nam Trace Form<strong>at</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38546.1.1 Initializ<strong>at</strong>ion Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38646.1.2 Nodes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38746.1.3 Links . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38746.1.4 Queues . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38846.1.5 Packets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38846.1.6 Node Marking . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38946.1.7 Agent Tracing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39046.1.8 Variable Tracing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39046.1.9 Executing Tcl Procedures <strong>and</strong> External Code from within Nam . . . . . . . . . . . . . . . . . . . . . 39046.1.10 Using Streams for Realtime Applic<strong>at</strong>io<strong>ns</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39246.1.11 Nam Trace File Form<strong>at</strong> Lookup Table . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 39546.2 Ns comm<strong>and</strong>s for cre<strong>at</strong>ing <strong>and</strong> controlling nam anim<strong>at</strong>io<strong>ns</strong> . . . . . . . . . . . . . . . . . . . . . . . . . . . 40146.2.1 Node . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40146.2.2 Link/Queue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40146.2.3 Agent <strong>and</strong> Fe<strong>at</strong>ures . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40246.2.4 Some Generic Comm<strong>and</strong>s . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 40210

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

Saved successfully!

Ooh no, something went wrong!