Research Article
Spectrum Handoff Aware AODV Routing Protocol for Cognitive Radio Vehicular Ad Hoc Networks
Algorithm 2
//Spectrum handoff packet buffering with priority buffers at intermediate CR nodes//
| Spectrum handoff based CR-AODV { | | while (((Avg_queue > minthresold) && (Avg_queue < maxthresold) || (Avg_queue > maxthresold)) { | | Prioritybit = 1; //Priority packet. | | REDpriority = True; //create Priority buffer. | | Markerpriority = 1; //priority packets | | REDInput ()//InputRED buffer at new-CR-node. { | | REDInput = Norma1IP; | | REDPriority = Packetspriority; | | if(Avg_queue > maxthresold) | | CongestionNotification = 1; | | else | | CongestionNotification = 0; | | Commonchanneloldnode-newnode = True; | | } | | } | | } |
|