Search code examples
ns2energy

Analyzing Energy in NS-2


I am working on MANET and want to do simulation in NS-2. My certain interest is in analyzing the energy consumption in various node for transmission and setup network. I will try to improve some routing protocol for better energy conservation.

Now, my question is which parameters I have to analyze and compare? And how I can do it through analyzing Trace file information?

Second part:

N -t 22.000932 -n 2 -e 97.796369

N -t 22.001838 -n 0 -e 97.796686

N -t 22.001839 -n 2 -e 97.796191

r 22.001853109 1 AGT --- 12 tcp 60 [13a 1 0 800] [energy 97.796341 ei 2.199 es 0.000 et 0.000 er 0.004] ------- [0:0 1:0 32 1] [0 0] 1 0

s 22.001853109 1 AGT --- 13 ack 40 [0 0 0 0] [energy 97.796341 ei 2.199 es 0.000 et 0.000 er 0.004] ------- [1:0 0:0 32 0] [0 0] 0 0 N -t 22.002472 -n 0 -e 97.796447

now my question is What does it means ?

N -t 22.001839 -n 2 -e 97.796191


Solution

  • N -t 22.001839 -n 2 -e 97.796191

    here N -t -> Simulation_time

    -n 2 -> node id is 2

    -e 97.761691 -> remaining energy level