Research Article

An Enhancement of AODV with Multi-Radio in Hybrid Wireless Mesh Network

Pseudocode 1

Pseudocode for the proposed technique.
// Initialization
generate_packet() // to generate the control and data packets
min_busy_channel() // to select a less busy channel
(1) Start
{
(2) generate_packet()
(3) If (sender→router or gateway) or (forwarder→
backbone mesh router) then
 {
(1) Get periodically channel usage level.
(2) min_busy_channel()
(3) Forward packet to interface that attached
 with minimum channel
}
Else if forwarder→border mesh router then
 {
 If traffic towards mesh client then
 Forward packet to same mesh client interface (channel).
Else
go to line 3
Else (sender OR forwarder→mesh client)
Forward packet to default channel
(4) End