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.

$<strong>ns</strong>_ trace-all This is the comm<strong>and</strong> used to setup tracing in <strong>ns</strong>. All traces are written in the .$<strong>ns</strong>_ namtrace-all This comm<strong>and</strong> sets up nam tracing in <strong>ns</strong>. All nam traces are written in to the .$<strong>ns</strong>_ namtrace-all-wireless This comm<strong>and</strong> sets up wireless nam tracing. <strong>and</strong> are the x-y co-ordin<strong>at</strong>es for the wireless topology <strong>and</strong> allwireless nam traces are written into the .$<strong>ns</strong>_ nam-end-wireless This tells nam the simul<strong>at</strong>ion stop time given in .$<strong>ns</strong>_ trace-all-s<strong>at</strong>links This is a method to trace s<strong>at</strong>ellite links <strong>and</strong> write traces into .$<strong>ns</strong>_ flush-traceThis comm<strong>and</strong> flushes the trace buffer <strong>and</strong> is typically called before the simul<strong>at</strong>ion run ends.$<strong>ns</strong>_ get-nam-traceallRetur<strong>ns</strong> the namtrace file descriptor stored as the Simul<strong>at</strong>or i<strong>ns</strong>tance variable called namtraceAllFile_.$<strong>ns</strong>_ get-<strong>ns</strong>-traceallSimilar to get-nam-traceall. This retur<strong>ns</strong> the file descriptor for <strong>ns</strong> tracefile which is stored as the Simul<strong>at</strong>or i<strong>ns</strong>tance calledtraceAllFile_.$<strong>ns</strong>_ cre<strong>at</strong>e-trace This comm<strong>and</strong> cre<strong>at</strong>es a trace object of type between the <strong>and</strong> nodes. <strong>The</strong> traces are written into the. is the argument th<strong>at</strong> may be used to specify the type of trace, like nam. if is not defined, the default traceobject cre<strong>at</strong>ed is for <strong>ns</strong>traces.$<strong>ns</strong>_ trace-queue This is a wrapper method for cre<strong>at</strong>e-trace. This comm<strong>and</strong> cre<strong>at</strong>es a trace object for tracing events on the linkrepresented by the nodes <strong>and</strong> .$<strong>ns</strong>_ namtrace-queue This is used to cre<strong>at</strong>e a trace object for namtracing on the link between nodes <strong>and</strong> . This method is very similar to<strong>and</strong> is the namtrace counterpart of method trace-queue.$<strong>ns</strong>_ drop-trace This comm<strong>and</strong> makes the given object a drop-target for the queue associ<strong>at</strong>ed with the link between nodes <strong>and</strong>.$<strong>ns</strong>_ monitor-queue This sets up a monitor th<strong>at</strong> keeps track of average queue length of the queue on the link between nodes <strong>and</strong> . <strong>The</strong>default value of sampleinterval is 0.1.$link trace-dynamics Trace the dynamics of this link <strong>and</strong> write the output to fileID fileh<strong>and</strong>le.<strong>ns</strong> is an i<strong>ns</strong>tance of the Simul<strong>at</strong>or or MultiSim object th<strong>at</strong> was cre<strong>at</strong>ed to invoke the simul<strong>at</strong>ion.<strong>The</strong> tracefile form<strong>at</strong> is backward comp<strong>at</strong>ible with the output files in the <strong>ns</strong> version 1 simul<strong>at</strong>or so th<strong>at</strong> <strong>ns</strong>-1 postprocessingscripts can still be used. Trace records of traffic for link objects with Enque, Deque, receive or Drop Tracing have thefollowing form: 242

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

Saved successfully!

Ooh no, something went wrong!