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
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
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
then the ifconfig of sensor2
finally the ifconfig of sensor3
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