By enabling energy model in node configuration of a wireless node, we get more accurate results. By default node configuration, the energy on node is infinite i.e there is no energy log will be carried out.
NODE CONFIGURATION WITHOUT ENERGY MODEL
$ns node-config -addressType hierarchical \
-adhocRouting AODV \
-llType LL \
-macType Mac/802_11 \
-ifqType Queue/DropTail/PriQueue \
-ifqLen 50 \
-antType Antenna/OmniAntenna \
-propType Propagation/TwoRayGround \
-phyType Phy/WirelessPhy \
-topologyInstance $topo \
-channel Channel/WirelessChannel \
-agentTrace ON \
-routerTrace ON \
-macTrace OFF \
-movementTrace OFF
NODE CONFIGURATION WITH ENERGY MODEL
$ns node-config -addressType hierarchical \
-adhocRouting AODV \
-llType LL \
-macType Mac/802_11 \
-ifqType Queue/DropTail/PriQueue \
-ifqLen 50 \
-antType Antenna/OmniAntenna \
-propType Propagation/TwoRayGround \
-phyType Phy/WirelessPhy \
-topologyInstance $topo \
-channel Channel/WirelessChannel \
-agentTrace ON \
-routerTrace ON \
-macTrace OFF \
-movementTrace OFF \
-energyModel EnergyModel \
-initialEnergy 90 \
-txPower 0.5 \
-rxPower 0.3 \
-idlePower 0.05 \
-sleepPower 0.03 \
NOTE: initial energy is in Joule and all other energy parameters are in Watts.
Comments
Post a Comment