Bug 2265 - Energy module can not be used on mesh devices
Energy module can not be used on mesh devices
Status: PATCH WANTED
Product: ns-3
Classification: Unclassified
Component: mesh
ns-3-dev
All All
: P5 normal
Assigned To: ns-bugs
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2016-01-13 15:44 EST by Tommaso Pecorella
Modified: 2016-02-05 01:58 EST (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tommaso Pecorella 2016-01-13 15:44:33 EST
If one tries to use the WifiRadioEnergyModelHelper to install the Energy model on a Mesh device, the helper will crash.

The problem has been discussed in this thread:
https://groups.google.com/forum/#!topic/ns-3-users/a4zMuLBD-SU

The actual problem is that the "obvious" solution is not obvious at all. A MeshNetDevice can hide more than one WifiNetDevices. Should them all drain from the same energy source ?

In any case, the solution is straightforward: a new MeshRadioEnergyModelHelper, which could simply wrap the appropriate WifiRadioEnergyModelHelper and have it install the sources on all the net devices.
It is not a good idea to add the mesh code to the existing WifiRadioEnergyModelHelper because this would create a dependency.