Research Article

Spectrum Handoff Aware AODV Routing Protocol for Cognitive Radio Vehicular Ad Hoc Networks

Algorithm 1

//Spectrum handoff packet buffering at intermediate CR nodes//
Spectrum handoff based CR-AODV {
 while (Avg_Queue_lengthold-CR-node < RED_minthresold) {
  Prioritybit = 0; //packet with no priority.
  REDpriority = Fa1se; //No need to create Priority buffer.
  Markerpriority = 0; //packets with no priority
  REDInput ()//InputRED buffer at new-CR-node. {
   REDInput = PacketsNon−priority + NormalIP;
   CongestionNotification = 0;
   Commonchannelold node−new node = True;
  }
 }
}