Research Article

An Intelligent SDN-Based Clustering Approach for Optimizing IoT Power Consumption in Smart Homes

Algorithm 4

Routing phase.
Input:
Output:
1:
Begin:
  
2:   
   
3:    
   Else
4:    
   
5:   calculate distance neighbor to sink
   
6:    
   Else
7:    
   
8:   
   
9:   
10:   
  
  
End