Research Article
Channel Contention-Based Routing Protocol for Wireless Ad Hoc Networks
| | Method for broadcasting a RREQ by Nodes S | | | SendRREQ (NodeS) | | | IN RREQ Packet | | | CC = 0 | | | NC = 0 | | | Broadcast RREQ to Neighbor | | | Method for Computing Channel Contention at Node X | | | ComputeContention (NodeX) | | | IF (Packet Transmitted or Dropped) | | | | | | Method for Handling RREQ at Node X | | | ReceiveRREQ_NodeX (RREQ, NodeS) | | | IF (NodeX = = DestinationNode) | | | SendRREP (NodeS, RREQ) | | | ENDIF | | | IF (NodeX ≠ DestinationNode) | | | IF (Already Seen RREQ) | | | Discard Packet | | | Exit | | | ENDIF | | | ForwardRREQ (Neighbors) | | | ENDIF | | | Method for sending RREP | | | SendRREP (NodeS, RREQ) | | | Select Least Contended Path | | | Update Route | | | SendRREP (NodeS) | | | Method for forwarding RREQ to neighbors | | | ForwardRREQ (Neighbors) | | | IF () | | | Set = | | | Set NC = 1 | | | ENDIF | | | IF () | | | NC = NC + 1 | | | ENDIF | | | Update Route | | | Broadcast RREQ to neighbours Pseudocode for the proposed mechanism |
|