LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to patch GPSR routing protocol to ns-2.35 (http://www.linuxquestions.org/questions/linux-newbie-8/how-to-patch-gpsr-routing-protocol-to-ns-2-35-a-4175431318/)

sukhalid 10-09-2012 07:52 AM

How to patch GPSR routing protocol to ns-2.35
 
Hi,
I have patched GPSR to ns-2.35 using keliu' code. It works fine with given tcl file. I need to move nodes according to mine own mobility scenario and compare them to AODV protocol.
I have two problems
1. I don't understand what this command in gpsr.tcl file means
Code:

proc gpsr-create-mobile-node { id args } {
        .........................       
if [info exists opt(energy)] {
        $node addenergymodel [new $opt(energy) $node 10 0.5 0.2]}
        .............

What are these figures (0.5, 0.2), are these energy consumed in reception and transmission or some thing else.

Secondly I want move mobile node created using proc defined in gpsr.tcl file according to my own mobility plan e.g.
Code:

$ns_ at 0.000000000000 "$node_(0) setdest 144.816950690450 20.073824649527 0.324133202939"
$ns_ at 0.000000000000 "$node_(1) setdest 93.957720171475 192.140808646867 1.452613500562"
$ns_ at 12.158688172971 "$node_(23) setdest 113.137798368154 39.443538618334 0.902003496971"
$ns_ at 14.805074599534 "$node_(2) setdest 152.227654369397 20.766089279052 1.742469780423"

But when I run simulation it gives error like this:[QUOTE]Load complete...
Starting Simulation...
ns: _o18 setdest 144.816950690450 20.073824649527 0.324133202939:
(_o18 cmd line 1)
invoked from within
"_o18 cmd setdest 144.816950690450 20.073824649527 0.324133202939"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o18" line 2)
(SplitObject unknown line 2)
invoked from within
"_o18 setdest 144.816950690450 20.073824649527 0.324133202939"
[\QUOTE]
Urgent help is needed please

ImaneZ 07-26-2013 07:46 AM

About patching GPSR
 
Hello,

Please i want to patch GPSR on NS2.35 and i don't know how?

can you help me, and send me the module and the patch if it's possible!

thanx in advance.

hemantnyadav 08-16-2013 12:56 AM

I need patch for GPSR to ns2.35 and please tell me how to install or use
 
[QUOTE=sukhalid;4801195]Hi,
I have patched GPSR to ns-2.35 using keliu' code. It works fine with given tcl file. I need to move nodes according to mine own mobility scenario and compare them to AODV protocol.
I have two problems
1. I don't understand what this command in gpsr.tcl file means
Code:

proc gpsr-create-mobile-node { id args } {
        .........................       
if [info exists opt(energy)] {
        $node addenergymodel [new $opt(energy) $node 10 0.5 0.2]}
        .............

What are these figures (0.5, 0.2), are these energy consumed in reception and transmission or some thing else.

Secondly I want move mobile node created using proc defined in gpsr.tcl file according to my own mobility plan e.g.
Code:

$ns_ at 0.000000000000 "$node_(0) setdest 144.816950690450 20.073824649527 0.324133202939"
$ns_ at 0.000000000000 "$node_(1) setdest 93.957720171475 192.140808646867 1.452613500562"
$ns_ at 12.158688172971 "$node_(23) setdest 113.137798368154 39.443538618334 0.902003496971"
$ns_ at 14.805074599534 "$node_(2) setdest 152.227654369397 20.766089279052 1.742469780423"

But when I run simulation it gives error like this:
Quote:

Load complete...
Starting Simulation...
ns: _o18 setdest 144.816950690450 20.073824649527 0.324133202939:
(_o18 cmd line 1)
invoked from within
"_o18 cmd setdest 144.816950690450 20.073824649527 0.324133202939"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o18" line 2)
(SplitObject unknown line 2)
invoked from within
"_o18 setdest 144.816950690450 20.073824649527 0.324133202939"
[\QUOTE]
Urgent help is needed please

maulanaibrahim 05-27-2014 12:29 PM

ask for solving problem
 
im facing the same problem..are you solved the problem? please share the solution..i really need it.thx

fotohireza 07-10-2014 08:29 PM

رضا فتوحی سلاله
reza fotohi
www.fotohireza.blogfa.com
www.fotohireza.ir
ANS:
i have patched successfull on GPSR in ns2.34..
anyone wanted mail me til send it ...
fotohi.reza@gmail.com
fotohireza is online now Report This Post

fotohireza 07-10-2014 08:30 PM

رضا فتوحی سلاله
reza fotohi
www.fotohireza.blogfa.com
www.fotohireza.ir
ANS:
i have patched successfull on GPSR in ns2.34..
anyone wanted mail me til send it ...
fotohi.reza@gmail.com

farfattou 08-09-2014 09:45 AM

hi,
I need to patch gpsr on ns-2.35
any help plz


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