intrig-unicamp / mininet-wifi

Emulator for Software-Defined Wireless Networks
https://mn-wifi.readthedocs.io/
Other
431 stars 239 forks source link

problem in energy model. #423

Closed somayahmont closed 2 years ago

somayahmont commented 2 years ago

regardless of which nodes are sending or receiving packets. To illustrate this problem, In battery.py example , sensor2 ping sensor 1 in the following image the ifconfig for sensor 1,in this image the number of packets send and received in pan and wan illustrated

PNG image

then the ifconfig of sensor2

PNG image

finally the ifconfig of sensor3

PNG image

the energy consumption of each sensor

sensor1 : mininet-wifi> py sensor1.wintfs[0].consumption 11.221620146369935 sensor2: mininet-wifi> py sensor2.wintfs[0].consumption 11.224740295886994 sensor3: mininet-wifi> py sensor3.wintfs[0].consumption 11.227593850350381

while the ping between sensor1 and sensor2 , the result of energy consumption of the sensor1 and sensor2 must be more but the result didn't meet my expectations

ramonfontes commented 2 years ago

Hi,

Can you please compare the results with the Energy() class?

somayahmont commented 2 years ago

Could you please elaborate on how to compare ?