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.

eception of packets <strong>at</strong> the node. When the energy level <strong>at</strong> the node goes down to zero, no more packets can be received ortra<strong>ns</strong>mitted by the node. If tracing is turned on, line DEBUG: node dropping pkts due to energy= 0 is printed in the tracefile.19.2 <strong>The</strong> OTcl interfaceSince the energy model is a node <strong>at</strong>tribute, it may be defined by the following node configur<strong>at</strong>ion APIs:$<strong>ns</strong>_ node-config -energyModel $energymodel \-rxPower $p_rx \-txPower $p_tx \-initialEnergy $initialenergyOptional values for above configur<strong>at</strong>ion parameters of the energy model are given in the following table:Attribute optional values default values-energyModel "EnergyModel" none-rxPower receiving power in w<strong>at</strong>ts (e.g 0.3) 281.8mW-txPower tra<strong>ns</strong>mitting power in w<strong>at</strong>ts (e.g 0.4) 281.8mW-initialEnergy energy in joules (e.g 0.1) 0.0193

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

Saved successfully!

Ooh no, something went wrong!