Research Article

Energy and Path-Aware-Reliable Routing in Underwater Acoustic Wireless Sensor Networks

Algorithm 1

Network initialization and destination selection.
1 Initialization;
2 S: Source node;
3 D: Depth possesses by sensor node ;
4 S broadcast a hello packet;
5 Calculate response time ;
6 : distance between sender and neighbor node;
7 ;
8 : distance between sink and neighbor node;
9 ;
10 Neighbor nodes reply;
11 forround=1:enddo
12 ifreceives replythen
13  compute and ;
14  compute weight function ;
15  
16 end
17 end
18 Find maximum value of the to choose relay node;
19 The Best relay having the highest value of the weight function