Device Energy model for NetDevice.

25 views
Skip to first unread message

ABDELMADJID AIT_SAADI

unread,
Jun 30, 2023, 8:53:21 AM6/30/23
to ns-3-users
Dear group,

I'm new on ns3 and  I am currently working on a project involving network simulations using ns-3. I have been exploring the energy modeling capabilities of ns-3 and came across the wifiRadioEnergy model, which can be easily installed on a wifi device. However, I am facing difficulties in finding a similar energy model for Netdevice objects.

After some investigation, I came across the SimpleDeviceEnergyModel, which initially seemed promising. However, upon further examination, I noticed that it lacks an installation function that would allow it to be installed on a Netdevice. Additionally, I couldn't find any implemented function for the depletion procedure.

I was wondering if there is a specific energy model available or if there are plans to develop an energy model that can be installed on a Netdevice, similar to the wifiRadioEnergy model. If such a model exists or if there are plans to implement one in the future, I would greatly appreciate any information or guidance you could provide.

Thank you very much for taking the time to read my question. 

Best regards,

Jack Higgins

unread,
Jul 5, 2023, 11:28:52 PM7/5/23
to ns-3-users
Dear Abdelmadjid,

A NetDevice is just an easy way to organize a PHY and MAC layer of a NIC.
wifiRadioEnergy model is an energy consumption model that should be attached to an energy source.
Both, the energy source and the energy consumption model are attached to a node.
In this case, the wifiRadioEnergy model can only be attached to nodes that contain a Wifi NetDevice (i.e. nodes that contain a wifi PHY+MAC)


I was wondering if there is a specific energy model available or if there are plans to develop an energy model that can be installed on a Netdevice,

I am not sure if your question is clear, what do you mean by a specific energy model? What kind of model?

We currently have 3 energy source models: LiIonEnergySource, RvModel, BasicEnergySource
and we have 2 energy consumption models: WifiRadioEnergyModel, SimpleDeviceEnergyModel.

We also have a proposed sensor and lr-wpan energy consumption model which are outdated and need refactoring from the authors:

Furthermore, I worked on an energy source model that is meant to replace the current LiIonEnergySource model and we might integrate it into ns-3 in
the next release cycle:

Even if you are not interested in these specific models, I recommend you read the documentation from my last link (the rst file). It  explains everything
everything I just described in detail and will help you to better understand ns-3 energy framework.

Best Regards,

Al.
Reply all
Reply to author
Forward
0 new messages