Research Article
Interface Assignment-Based AODV Routing Protocol to Improve Reliability in Multi-Interface Multichannel Wireless Mesh Networks
Algorithm 1
The algorithm for receiving and transmitting in the active state PIT.
| Active State Algorithm | | () Receive PREQ and search PIT | | () PIT entry which matched with receiving interface | | () received PREQ | | () switch () | | () case NULL: , IN | | () case OUT: | | () if ( is better than ) drop PREQ | | () else , IN | | () case IN: | | () if () drop PREQ | | () else | | () Process AODV routing and prepare transmitting PREQ | | () for each PIT where do | | () | | () switch () | | () case NULL: , OUT | | () case IN: | | () if ( is worse than ) , OUT | | () else | | () case OUT: | | () if ( or (, ( or ))) | | () , | | () else | | () end | | () transmit PREQ where |
|