How to use Genetic Algorithm for Routing in MANET in NS2


Genetic algorithm in routing process selects the optimal path for the data flow between source and destination.


  • It selects two paths for the same source and destination.
  • Then it applies crossover between two paths followed by mutation process in which a new node replaces the existing node in the routing path.
  • The replaced node will be misbehavior node or congested node in the network