Apply Geographic / Location based routing protocol in MANET using NS2


Currently geographic / location based routing protocols are more frequently used than topology based routing protocol in highly dynamic mobile ad hoc network. Greedy Perimeter Stateless Routing algorithm (GPSR) is the most commonly used location based routing protocol.

  • Neighbors of the source are identified

  • Distance from each neighbor to destination is calculated

  • Neighbor having least distance is selected as nexthop

  • Data transmission is carried out using selected nexthop

  • Nexthop follows from step 1-4 and this process continues till destination is reached

Data flow

X-graph generation in ns2