Amazing technological breakthrough possible @S-Logix

Office Address

  • #5, First Floor, 4th Street Dr. Subbarayan Nagar Kodambakkam, Chennai-600 024 Landmark : Samiyar Madam
  • +91- 81240 01111

Social List

How to set energy of the node in NS2?

  • The energy of the mobile node is fixed in ns2 using energy model. The components required for designing for energy model includes initialEnergy, txPower, rxPower, and idlePower.

    set variablename EnergyModel ; #Energy set up
    #configure nodes
    -energyModel variablename \
    -initialEnergy 10 \
    -rxPower 0.5 \
    -txPower 1.0 \
    -idlePower 0.0 \
    -sensePower 0.3 \
    initial Energy → level of energy node has at the initial stage of the simulation.
    rxPower → energy consumed for receiving the packets.
    txPower → energy consumed for transmitting the packets.
    sensePower → energy consumed for sensing operation.
    IdlePower → energy consumed for node the in idle state.