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.

All the simul<strong>at</strong>io<strong>ns</strong> for PLM should be set using the PLMTopology environment (as in the example script where we define aPLMTopology superclass called Scenario0). <strong>The</strong> user interface is (all the i<strong>ns</strong>tproc can be found in ~<strong>ns</strong>/tcl/plm/plm-topo.tcl):build_link a b d bw cre<strong>at</strong>es a duplex link between node a <strong>and</strong> b with a delay d <strong>and</strong> a b<strong>and</strong>width bw. If either nodedoes not exist, build_link cre<strong>at</strong>es it.place_source n t cre<strong>at</strong>es <strong>and</strong> places a PLM source <strong>at</strong> node n <strong>and</strong> starts it <strong>at</strong> time t. place_source retur<strong>ns</strong> addrwhich allows to <strong>at</strong>tach receivers to this source.place_receiver n addr C nb cre<strong>at</strong>es <strong>and</strong> places a PLM receiver <strong>at</strong> node n <strong>and</strong> <strong>at</strong>tached it to the source which returnthe address addr. <strong>The</strong> check value for this PLM receiver is C. An optional parameter nb allows to get an i<strong>ns</strong>tanceof the PLM receiver called PLMrcvr($nb). This i<strong>ns</strong>tance is only useful to get some specific st<strong>at</strong>istics about thisreceiver (mainly the number of packets received or lost).329

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

Saved successfully!

Ooh no, something went wrong!