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.

$<strong>ns</strong>_ rtmodel This comm<strong>and</strong> defines the dynamic model (currently implemented models are: Deterministic, Exponential, <strong>Manual</strong> orTrace) to be applied to nodes <strong>and</strong> links in the topology. <strong>The</strong> first two arguments co<strong>ns</strong>ists of the rtmodel <strong>and</strong> the parameter toconfigure the model. st<strong>and</strong>s for different type of arguments expected with different dynamic model types. Thisretur<strong>ns</strong> a h<strong>and</strong>le to a model object corresponding to the specified model.• In the Deterministic model is , , , . Startingfrom start-time the link is made up for up-interval <strong>and</strong> down for down-interval till finish-time is reached. <strong>The</strong> defaultvalues for start-time, up-interval, downinterval are 0.5s, 2.0s, 1.0s respectively. finishtime defaults to the end of thesimul<strong>at</strong>ion. <strong>The</strong> start-time defaults to 0.5s in order to let the routing protocol comput<strong>at</strong>ion quiesce.• If the Exponential model is used model-params is of the form , where the link up-timeis an exponential distribution around the mean upinterval <strong>and</strong> the link down-time is an exponential distribution aroundthe mean down-interval. Default values for up-interval <strong>and</strong> down-interval are 10s <strong>and</strong> 1s respectively.• If the <strong>Manual</strong> distribution is used model-params is where <strong>at</strong> specifies the time <strong>at</strong> which the oper<strong>at</strong>ion opshould occur. op is one of up, down. <strong>The</strong> <strong>Manual</strong> distribution could be specified altern<strong>at</strong>ely using the rtmodel-<strong>at</strong>method described l<strong>at</strong>er in the section.• If Trace is specified as the model the link/node dynamics is read from a Tracefile. <strong>The</strong> model-params argument wouldin this case be the file-h<strong>and</strong>le of the Tracefile th<strong>at</strong> has the dynamics inform<strong>at</strong>ion. <strong>The</strong> tracefile form<strong>at</strong> is identical to thetrace output gener<strong>at</strong>ed by the trace-dynamics link method (see TRACE AND MONITORING METHODS SECTION).$<strong>ns</strong>_ rtmodel-delete This comm<strong>and</strong> takes the h<strong>and</strong>le of the routemodel as an argument, removes it from the list of rtmodels maintainedby simul<strong>at</strong>or <strong>and</strong> deletes the model.$<strong>ns</strong>_ rtmodel-<strong>at</strong> This comm<strong>and</strong> is a special interface to the <strong>Manual</strong> model of network dynamics. It takes the time , type of oper<strong>at</strong>ion <strong>and</strong> node or link on which to apply the oper<strong>at</strong>ion as the arguments. At time , the oper<strong>at</strong>ion whichmaybe up or down is applied to a node or link.$rtmodel trace This enables tracing of dynamics effected by this model in the links. is an i<strong>ns</strong>tance of the simul<strong>at</strong>or, the output fileto write the traces to <strong>and</strong> is an optional argument th<strong>at</strong> may be used to define a type of oper<strong>at</strong>ion (like nam). This is awrapper for the class Link procedure trace-dynamics.$link trace-dynamics This is a class link i<strong>ns</strong>tance procedure th<strong>at</strong> is used to setup tracing of dynamics in th<strong>at</strong> particular link. <strong>The</strong> arguments aresame as th<strong>at</strong> of class rtModel’s procedure trace described above.$link dynamicThis comm<strong>and</strong> i<strong>ns</strong>erts a DynamicLink object <strong>at</strong> the head of the queue <strong>and</strong> signals to all connectors in the link th<strong>at</strong> the link isnow dynamic.Internal procedures:$<strong>ns</strong>_ rtmodel-configureThis is an internal procedure th<strong>at</strong> configures all dynamic models th<strong>at</strong> are present in the list of models maintained by thesimul<strong>at</strong>or.280

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

Saved successfully!

Ooh no, something went wrong!