## 5 Testbed and Simulation Results
### Energy Consumption
#### 5.4.2 Energy Consumption for 30 Node Simulation Setup  
This section of our paper is concerned about the energy consumptions for all nodes before the nodes are affected by rain, when the nodes will use the standard version of AOMDV and after the nodes are affected by rain when they will use the modified version of AOMDV, the calculation of total energy has been done during the simulation periods for each cases before and after the nodes affected by rain.  
The total energy consumed has been calculated for all nodes before and after the nodes were affected by rain for the three simulations. Also, we calculated the rate of decrease in consumed energy before and after the nodes are affected by rain.  
Tables 8 and 9 clearly show that of consumption energy for affected nodes before is greater than energy consumption after rainfall starts. As we can see from the _'Total'_ columns in both tables, the total energy consumed decreases for all the nodes and the decrease in energy is much greater for the nodes affected by rainfall. The idle energy, transmission energy as well received energy decreases for all the nodes. The largest decrease in total energy is due to the decrease in transmission energy.  
Figure 10: Received Energy Consumption in mA.  
Figure 9: Transmission Energy Consumption in mA.  
We calculate total energy consumed by all the nodes that are affected by rainfall.  
The total energy for node (k) = \(idle\_energy\)\((k)+trans\_energy(k)+recv\_energy(k)\)  
The total energy for all affected nodes = \(\sum_{k=0}^{n}\) idle\(\_energy(k)\)\(+trans\_energy(k)+recv\_energy(k)\)  
We calculated the total consumed energy for all affected nodes before rains as = T-energy-before = 337,727,894.70.  
And total consumed energy for all affected nodes after rains = T-energy-after = 224,066,589.63.  
Therefore, the consumed energy decreasing rate = (T-energy-before/T-energy-after) %  
Rate of decrease in Consumed energy (affected nodes) = 51%  
We can clearly observe that the energy consumptions for all nodes affected by rain has decreased sharply as shown in Figure 11, also the energy consumptions on all nodes has decreased. The main reason for this decrease is that we stop sending data from any neighbors through the node that is affected by rain. Hence, the nodes affected by rainfall will not receive any data from other nodes and hence they will require very less receiving energy, on the other hand they will just have their own data to transmit, hence the transmission energy also decreases.  
The above figure is showing energy consumption by 5 nodes before and after they are affected by rain. Again our modified AOMDV clearly outperforms the standard AOMDV in terms of energy consumption.  
The energy consumption for all the non-affected nodes and nodes neighboring the affected nodes has also decreased. This is due to the fact that the before rainfall there were many routes to send data. However, after rainfall the affected nodes do not receive data from neighboring nodes, hence there is less traffic from the neighboring nodes. So the energy consumption for the non-affected nodes and the nodes neighboring the affected nodes also decreases.