NS-3 Energy Model

205 views
Skip to first unread message

Imen

unread,
Apr 15, 2015, 5:33:12 AM4/15/15
to ns-3-...@googlegroups.com
Hi ,

I'm working with ns-3 energy model.I want to calculate the total energy consumed in a network but may nodes are connected with a point to point connection and not wifi.
In the energy model we have the model that can calculate the energy consumed of a wifi connection and not a point to point.

Can you tell me what can I do in this case ?

Thnx a lot for help.

Tommaso Pecorella

unread,
Apr 15, 2015, 6:13:34 AM4/15/15
to ns-3-...@googlegroups.com
Hi,

the best suggestion is also the most obvious: develop an energy model for the point to point link.

The problem may be another one. In wireless networks the energy model considers only the wireless part because it is the one that draws more energy (and because we are interested in network performances and the energy differences between various schemes).
In a point to point connected computer, what is the energy you want to consider ? Is the transmission / reception on the link important for you ?
Think about it.

T.

Imen

unread,
Apr 15, 2015, 6:42:26 AM4/15/15
to ns-3-...@googlegroups.com
Hi Tommaso,

thnx for your help.

I'm developping an energy model for point to point link inspired from wifi radio energy model.

I want to consider the energy of reception and of transmission in order to calculate the total transport energy consummed via a point to point link.

But the problem is that after building I have these error:

./libns3-dev-energy-debug.so: undefined reference to `ns3::P2pNdnEnergyModelPhyListener::NotifyMaybeCcaBusyStart(ns3::Time)'
./libns3-dev-energy-debug.so: undefined reference to `ns3::NdnPhyListener::~NdnPhyListener()'
./libns3-dev-energy-debug.so: undefined reference to `typeinfo for ns3::PointToPointNetDevice'
./libns3-dev-energy-debug.so: undefined reference to `vtable for ns3::NdnPhyListener'
./libns3-dev-energy-debug.so: undefined reference to `ns3::PointToPointNetDevice::GetPhy() const'
./libns3-dev-energy-debug.so: undefined reference to `ns3::P2pNdnEnergyModelPhyListener::NotifySwitchingStart(ns3::Time)'
./libns3-dev-energy-debug.so: undefined reference to `typeinfo for ns3::NdnPhyListener'
./libns3-dev-energy-debug.so: undefined reference to `ns3::operator<<(std::ostream&, ns3::NdnPhy::State)'
collect2: error: ld returned 1 exit status
Waf: Leaving directory `/home/gmi/ndnSIM/ns-3/build'
Build failed
 -> task in 'energy-model-example' failed (exit status 1): 
{task 3061653708L: cxxprogram energy-model-example.cc.1.o -> ns3-dev-energy-model-example-debug}
['/usr/bin/g++', '-pthread', 'examples/energy/energy-model-example.cc.1.o', '-o', '/home/gmi/ndnSIM/ns-3/build/examples/energy/ns3-dev-energy-model-example-debug', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-Wl,--no-as-needed', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-L.', '-lns3-dev-energy-debug', '-lns3-dev-wifi-debug', '-lns3-dev-propagation-debug', '-lns3-dev-mobility-debug', '-lns3-dev-internet-debug', '-lns3-dev-bridge-debug', '-lns3-dev-mpi-debug', '-lns3-dev-network-debug', '-lns3-dev-stats-debug', '-lns3-dev-core-debug', '-lrt']

 Can you tell me what can I do ?

Tommaso Pecorella

unread,
Apr 15, 2015, 7:09:57 AM4/15/15
to ns-3-...@googlegroups.com
Hi,

it seems that you are using ndnSim. Again (we said more than once), we can (and we will) NOT support ndnSim.
We don't have anything against it, but we don't have the time/will to study the differences between ns-3 and ndnSim to provide meaningful assistance.

Given that, did you remember to add the new files to the wscript ?
I guess you forgot...

Cheers,

T.

Imen

unread,
Apr 15, 2015, 9:02:14 AM4/15/15
to ns-3-...@googlegroups.com
Hi,

yes I'm using ns3 with ndnsim But I don't use yet ndnsim notion in my code.I know that you don't support ndnsim.I thought that my question have  a relation with ns-

3.For this reason I asked my question in this group . I add my new files to wscript file but it does not work.

Tommaso Pecorella

unread,
Apr 15, 2015, 9:17:34 AM4/15/15
to ns-3-...@googlegroups.com
Hi,

well, the error is about missing classes during the linking. This usually happens only when one forgets to add the relevant files to the library or when one forget to add the relevant dependencies to a module. As an example. energy depends on wifi (check the wscript).
Maybe it's this ?

Cheers,

T.

Imen

unread,
Apr 15, 2015, 9:22:26 AM4/15/15
to ns-3-...@googlegroups.com
Thnx a lot for help.OK I will check the wscript.
Reply all
Reply to author
Forward
0 new messages