#5, First Floor, 4th Street , Dr. Subbarayan Nagar Kodambakkam, Chennai-600 024 pro@slogix.in

Office Address

  • #5, First Floor, 4th Street Dr. Subbarayan Nagar Kodambakkam, Chennai-600 024 Landmark : Samiyar Madam
  • pro@slogix.in
  • +91- 81240 01111

Social List

How to use energy efficient routing algorithm in ns2?

Description

Energy based routing is the important routing functionality required by MANET. Energy of the node is considered while selecting the router to balance the energy consumption of the network.

Sample Code

#Filename: aodv.cc

residualenergy = Nodeaddr->energy_model()->energy();
If (residualenergy > Threshold) {
// send reply via the energy efficient router
}

 


Screenshots