# New Protocol and Architecture for a Wastewater Treatment System Intended for Irrigation
## 3 Results
### Consumed Bandwidth  
Figure 14 portrays the entire network's consumed bandwidth, including the communication inside each cluster and the communication between the CHs and the gateway. A detail of the consumed bandwidth of a short period can be seen in Figure 14a. It represents the first 720 min of the simulated network, the first half of the day. We can see that in a considerable amount of time, the network does not generate any packet exchange due to the application of the algorithm described in Figure 5. In this simulation, during the first 720 min, we can identify that in 612 min, there is no exchange of information in our network. Minute 661 is the moment when all the information is sent to the gateway. At this moment, we reach the maximum bandwidth usage, 177,187 bits/min (2.95 kbps).  
Figure 12: Energy consumed by the nodes. Summary of the whole simulated period. Different letters (**a**) to (**f**) denote different locations of the cluster: (**a**) UA1, (**b**) UA2, (**c**) IC1, (**d**) PO1, (**e**) PO2, and (**f**) PO 3.  
Considering Figure 14b, we can identify the consumed bandwidth during the whole simulated period. We can find seven peaks in the consumed bandwidth, which correspond to the seven middays. The maximum peak in this period is found on the second day. At that moment, a consumed bandwidth of 381,357 bits/min (6.35 kbps) can be identified. It is  
Figure 13: Energy consumed by the nodes. Summary of the whole simulated period. Different letters (**a–f**) denote different ambient conditions: (**a**) winter period with reduced energy harvesting for three days, (**b**) winter period with full energy harvesting, (**c**) summer period.  
important to note that among the 40 performed simulations, we have represented the one with the highest maximum bandwidth. Figure 14c shows the box and whiskers diagram of the maximum bandwidth of all the 40 simulations. The average maximum bandwidth is 306,411 bits/min (5.1 kbps). With the selected LoRa settings, the maximum data rate is 3125 bps [18]. Therefore, we conclude that the data of the third cluster should be forwarded in two periods to avoid peaks of bandwidth consumption above 3125 bps.  
A second simulation was performed to verify that changing the data forwarding settings of cluster three to two data forwarding times, being 9 h and 21 h, allows the  
Figure 14: Details of consumed bandwidth in our simulation. Different letters denote different details: (**a**) initial period, (**b**) whole period, (**c**) summary of the maximum bandwidth of 40 simulations.  
bandwidth to remain below the maximum 3125 bps. The consumed bandwidth in the second simulation is presented in Figure 15. Figure 15a shows the results for a short period of time. In this case, the first 1400 min are shown as the system spends more than 1100 min with low bandwidth consumption. Then, there is a peak of 155,011 bits/min (2.58 kbps). The results for the complete simulated period are shown in Figure 15b. The peak with the highest bandwidth consumption is the same as the one displayed in Figure 15a. The second highest bandwidth consumption peak reached 142,764 bits/min (2.37 kbps).  
Figure 15: Details of consumed bandwidth in second simulation. Different letters denote different details: (**a**) initial period, (**b**) whole period, (**c**) summary of the maximum bandwidth of 40 simulations.  
Another 40 simulations were performed to obtain the box and whiskers diagram of the maximum bandwidth for this simulation scenario (See Figure 15c). The average maximum bandwidth was 128,204 bits/min (2.13 kbps). Furthermore, the change produced in the simulation does not have relevant repercussions on the global energy consumption of the proposed system.