Research Article

An Opportunistic Routing Mechanism Combined with Long-Term and Short-Term Metrics for WMN

Algorithm 1

The algorithm of opportunistic routing mechanism.
(1) for each link from source to destination do
(2) if  
(3)  put link into the set of candidate links
(4) end  for
(5) if (TimerRTT is timeout)
(6) send RTT probe packet
(7) if (ACK of RTT probe is received)
(8) calculate RTT and update it for candiate links
(9) for each link in the set of candidate links do
(10) if
(11)  link chosen = link
(12) end  for