Please note that an important update to the energy model is checked in to ns-2 on June 14, 2005, and you should use a version later than that date.
from :http://www.isi.edu/ilense/software/smac/
An example is shown as follows $ns_ node-config -adhocRouting DumbAgent \ -llType $opt(ll) \ -macType Mac/SMAC \ -ifqType $opt(ifq) \ -ifqLen $opt(ifqlen) \ -antType $opt(ant) \ -propType $opt(prop) \ -phyType $opt(netif) \ -channelType $opt(chan) \ -topoInstance $topo_ \ -agentTrace ON \ -routerTrace ON \ -macTrace ON \ -energyModel $opt(energymodel) \ -idlePower 1.0 \ -rxPower 1.0 \ -txPower 2.0 \ -sleepPower 0.001 \ -transitionPower 0.2 \ -transitionTime 0.005 \ -initialEnergy $opt(initialenergy)
The following parameters are newly added: -sleepPower: power consumption (Watt) in sleep state -transitionPower: power consumption (Watt) in state transition from sleep to idle (active) -transitionTime: time (second) used in state transition from sleep to idle (active)
The model in NS document is not up-to-date. |