-   Programming (
-   -   GPSR routing protocol on ns2.34 (

farfattou 02-21-2013 08:07 AM

GPSR routing protocol on ns2.34
I'm just simulating the GPSR patch for ns-2.34.
I find some intersting results:
1)for this patch, there is no localisation service used
2) the most important, the protocol doesn't consider the mobility of nodes:
I simulate 2 nodes X(10,1,0) and Y(270, 1, 0) with transmission range 250m
I mouved the Y to the range of X but Y still don't receive data sent from X
so can any one tell me what to do because I need to make simulation with mobile nodes

knudfl 02-21-2013 11:26 AM

Some info : Google .. gpsr mobility ns2 ..
From what I read (I may be wrong) there's no "mobility" in the the current gpsr code.
( Though you have ns-2.33/tcl/mobility/gpsr.tcl ).
But mobility methods are mentioned in some of the hits.

Google .. gpsr mobility ns3 .. : Code is available for ns-3
$ hg clone (1): 79.6 MB.
$ hg clone (2): 92.8 MB
( May be this one is just the latest version : They look quite identical.)


farfattou 02-21-2013 03:11 PM

hi knudfl,
thkx for your reply but regarding to other posts (#17) at this link
we mentioned that it's possible to get the mobility of nodes in nam file besides when we create nodes we suggest "mobile nodes":

for {set i 0} {$i < $opt(nn) } {incr i} {
gpsr-create-mobile-node $i

So,I presume that GPSR support the mobility of nodes but when I simulate it with "wireless-gpsr.tcl" and one "setdest" command at the scenario file, it doesn't work (as I mentioned earlier)

any suggestions

knudfl 02-21-2013 03:55 PM

# 3 :

I have tried the suggestion in the referred post # 17, but it didn't work.
And : I am not a coder, and have no solution.

farfattou 02-22-2013 02:58 AM

ok knudfl
I'm very grateful for everything

All times are GMT -5. The time now is 03:11 PM.