Discussion:
Report a bug in WifiRadioEnergyModel and ask for help
m***@gmail.com
2018-12-04 15:58:00 UTC
Permalink
m_switchToOffEvent is a private member variable of the WifiRadioEnergyModel
class, which has the task of maintaining the state-to-off event.
Each state change in the physical layer is notified to the
WifiRadioEnergyModel class through the WifiRadioEnergyModelPhyListener
class, and then the WifiRadioEnergyModel class calculates the maximum time
that it can continuously continue to operate in that state based on the
remaining energy, and then a change-to-off event in That time is scheduled.
Clearly, for each state change, the previous event maintained in the
m_switchToOffEvent should be canceled and a new event calculated based on
the new state should be scheduled and stored in m_switchToOffEvent.
The main bug is that despite canceling previous events when storing a new
event in the m_switchToOffEvent, the previous events are not canceled and
invoke at their specified time.
The invoking of those events, which should actually be canceled, has
significant consequences, such as inaccurate calculation of total energy
consumption and remaining energy, because, regardless of the network
conditions, the very first change of state, which is a change from IDLE to
TX, leads to early OFF. It's like every device stays in the TX state after
its first change until it turns off.
There are other consequences that not need to be mentioned.
These problems are clear by tracing and testing the wifi-sleep simple
example.
This is not a new bug, and it has been reported both personally and by
others (https://www.nsnam.org/bugzilla/show_bug.cgi?id=2987), but the
developer has not responded. I personally tried to fix this, but
unfortunately, I have not yet come up with the result and I decided to
share with you details so that if someone is trying to help fix this bug.
best regards
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+***@googlegroups.com.
To post to this group, send email to ns-3-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
Sebastien Deronne
2018-12-04 16:15:03 UTC
Permalink
I already replied to bug 2987, this is not a specific wifi bug and should
be moved to the corresponding module IMO.
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+***@googlegroups.com.
To post to this group, send email to ns-3-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
m***@gmail.com
2018-12-04 19:38:46 UTC
Permalink
Hi Alexander, yes, I know you and I followed your report in Bugzilla.
Unfortunately, IMO this bug can be dragged from anywhere, except for the
EventId or Simulator class. As we know, these two classes work properly in
the rest of the way, and this seems likely to limit the bug to the wifi
module.
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+***@googlegroups.com.
To post to this group, send email to ns-3-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
m***@gmail.com
2018-12-04 19:42:27 UTC
Permalink
Hi Alexander, yes, I know you and I followed your report in Bugzilla.
Unfortunately, I do not agree with you and I think this bug can be dragged
from anywhere, except for the EventId or Simulator class. As we know, these
two classes work properly in the rest of the cases, and this seems likely
to limit the bug to the wifi module.
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+***@googlegroups.com.
To post to this group, send email to ns-3-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
m***@gmail.com
2018-12-04 19:43:37 UTC
Permalink
Hi Alexander, yes, I know you and I followed your report in Bugzilla.
Unfortunately, IMO this bug can be dragged from anywhere, except for the
EventId or Simulator class. As we know, these two classes work properly in
the rest of the cases, and this seems likely to limit the bug to the wifi
module.
Post by Sebastien Deronne
I already replied to bug 2987, this is not a specific wifi bug and should
be moved to the corresponding module IMO.
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+***@googlegroups.com.
To post to this group, send email to ns-3-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
m***@gmail.com
2018-12-04 19:57:54 UTC
Permalink
Hi Sebastien, yes, I know you and I followed your report in Bugzilla.
Unfortunately, in my opinion this bug can be dragged from anywhere, except
for the EventId or Simulator class. As we know, these two classes work
properly in the rest of the cases, and this seems likely to limit the bug
to the wifi module.
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+***@googlegroups.com.
To post to this group, send email to ns-3-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
Sebastien Deronne
2018-12-04 20:09:30 UTC
Permalink
Wifi is the only module to make use of the energy model, so this might be
an explanation why you only see this issue in wifi.
Have you tried Alexander's patch?
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+***@googlegroups.com.
To post to this group, send email to ns-3-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
m***@gmail.com
2018-12-04 20:24:57 UTC
Permalink
That's exactly why I think this bug is more than anywhere else related to
the WifiRadioEnergyModel class.
Yes, of course, but does not solve the problem described.
How do you deal with this problem?
--
Posting to this group should follow these guidelines https://www.nsnam.org/wiki/Ns-3-users-guidelines-for-posting
---
You received this message because you are subscribed to the Google Groups "ns-3-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ns-3-users+***@googlegroups.com.
To post to this group, send email to ns-3-***@googlegroups.com.
Visit this group at https://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.
Loading...