Hi Matthias,
My simulation settings are:
set val(chan) Channel/WirelessChannel
set val(prop) Propagation/TwoRayGround
set val(netif) Phy/WirelessPhy
set val(mac) Mac/802_11
set val(ifq) Queue/DropTail/PriQueue
set val(ifqlen) 50
set val(ll) LL
set val(ant) Antenna/OmniAntenna
set val(adhocRouting) AODV
set opt(energymodel) EnergyModel
set opt(initialenergy) 1000
set opt(idlepower) 1.0
set opt(rxpower) 1.0
set opt(txpower) 1.0
set opt(sleeppower) 0.001
set opt(transitionpower) 0.2
set opt(transitiontime) 0.005
$ns_ node-config -adhocRouting $val(adhocRouting) \
-llType $val(ll) \
-macType $val(mac) \
-ifqType $val(ifq) \
-ifqLen $val(ifqlen) \
-antType $val(ant) \
-propType $val(prop) \
-phyType $val(netif) \
-topoInstance $topo \
-agentTrace ON \
-routerTrace ON \
-macTrace ON \
-channel $chan_6_ \
-numif 1 \
-energyModel $opt(energymodel) \
-idlePower $opt(idlepower) \
-rxPower $opt(rxpower) \
-txPower $opt(txpower) \
-sleepPower $opt(sleeppower) \
-transitionPower $opt(transitionpower) \
-transitionTime $opt(transitiontime) \
-initialEnergy $opt(initialenergy)
The first question I am trying to answer is how long can the network
survive before all available energy is expended.
Then I want to extend the simulation, so that:
* Energy can be recharged
* Nodes stop once their energy is expended. No more transmissions are
allowed, etc.
Then I can see how the network might reform itself around "dead zones",
etc. before moving on (possibly) to some of the energy aware routing
enhancements.
Richard
Matthias Kuhnert wrote:
> Hi,
> Depends on the mac and phy you use...
> Within the 802_15_4 I am sure there is nothing affected...
> But within the 802_15_11 there might be something but I am really not sure
> about this one. What really has an influence on your simulation are the
> idle/sleep modes. I don't know if it is implemented, but if something like
> that was there you could get some strange results...
> In general the ns2 energy model only provides an counter that can be
> decremented with various functions, that hold each one time and one energy
> constant and decrease the remaining energy by subtraction of the
> time*energy_constant. For readability they provide different interfaces for
> draining sleep, tx, rx, idle(...) energy.
> The proper calling of these function must be done for example in wireless-phy
> and your used phy and mac.
>
>
> Anyway, it might be useful if you can provide more details on the code you
> are working with.
>
>
> -------- Original-Nachricht --------
> Datum: Tue, 23 Jan 2007 07:46:49 +0000
> Von: r vaughan <[EMAIL PROTECTED]>
> An: [email protected]
> Betreff: [ns] Energy Model
>
>
>>Hi,
>>
>>I am looking at extending some of my simulations to include energy
>>consumption, and I get some weird results.
>>
>>Once I turn the energy model on, my network behaviour changes
>>completely. Am I right in thinking that the energy model does actually
>>affect the wireless power used?
>>
>>The reason I ask is that with the energy model switch on the range of
>>my wireless network seems to drop (or at least thats how this looks).
>>
>>Can someone, who is familiar with the energy model, point me in the
>>right direction for making the energy model and wireless stuff play
>>nicely together?
>>
>>This is with ns-2 2.29.3.
>>
>>
>>Thanks,
>>
>>
>>
>>Richard
>>
>>--
>
>