Research breakthrough possible @S-Logix pro@slogix.in

Office Address

Social List

How to adjust hello period of geographic routing protocol in NS2?

Description

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. In GPSR, neighbors are identified using hello message with default broadcasting period of 1.0 s. Hello period can be adjusted in the variable hello_period_ as in file hello.tcl

Sample Code

#Filename: hello.tcl

# Agent/GPSR setting
Agent/GPSR set planar_type_ 1 ;#1=GG planarize, 0=RNG planarize
Agent/GPSR set hello_period_ 0.5;#Hello message period

Screenshots

geographic routing protocol in NS2