LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-09-2012, 06:52 AM   #1
sukhalid
LQ Newbie
 
Registered: Mar 2012
Posts: 4

Rep: Reputation: Disabled
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
 
Old 07-26-2013, 06:46 AM   #2
ImaneZ
LQ Newbie
 
Registered: Jul 2013
Posts: 1

Rep: Reputation: Disabled
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.
 
1 members found this post helpful.
Old 08-15-2013, 11:56 PM   #3
hemantnyadav
LQ Newbie
 
Registered: Aug 2013
Posts: 6

Rep: Reputation: Disabled
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
 
Old 05-27-2014, 11:29 AM   #4
maulanaibrahim
LQ Newbie
 
Registered: May 2014
Posts: 19

Rep: Reputation: Disabled
ask for solving problem

im facing the same problem..are you solved the problem? please share the solution..i really need it.thx
 
Old 08-09-2014, 08:45 AM   #5
farfattou
Member
 
Registered: Oct 2011
Posts: 66

Rep: Reputation: Disabled
hi,
I need to patch gpsr on ns-2.35
any help plz
 
Old 12-20-2014, 07:32 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 15,325

Rep: Reputation: 2939Reputation: 2939Reputation: 2939Reputation: 2939Reputation: 2939Reputation: 2939Reputation: 2939Reputation: 2939Reputation: 2939Reputation: 2939Reputation: 2939
New patches :

GPSR-KeLiu, ns235 https://drive.google.com/file/d/0B7S...ew?usp=sharing
→ gpsr-KeLiu_ns235.patch

GPSR-KeLiu, ns234 https://drive.google.com/file/d/0B7S...ew?usp=sharing
→ gpsr-KeLiu_ns234.patch

GPSR-hls, ns235 http://network-simulator-ns-2.7690.n...g-td29371.html

GPSR-hls, ns234 https://drive.google.com/file/d/0B7S...ew?usp=sharing
→ GPSR-hls_ns234.patch

-
 
Old 02-17-2015, 12:50 PM   #7
Noor Hassan Baloch
LQ Newbie
 
Registered: Feb 2015
Posts: 5

Rep: Reputation: Disabled
how to patch GPSR in NS2.35
 
Old 02-17-2015, 01:22 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 15,325

Rep: Reputation: 2939Reputation: 2939Reputation: 2939Reputation: 2939Reputation: 2939Reputation: 2939Reputation: 2939Reputation: 2939Reputation: 2939Reputation: 2939Reputation: 2939
← ← #7.

? How to patch ns-2.35 with gpsr :
Please read post #6, and follow the links.
 
Old 04-10-2015, 10:00 PM   #9
huynhloc.dv11
LQ Newbie
 
Registered: Apr 2015
Posts: 3

Rep: Reputation: Disabled
Can you help me??

I did install patch for ns2.35.

But i can't run file keliu gpsr.tcl with command: ns-keliu gpsr.tcl

huynhloc@ubuntu:~/ns/ns-allinone-2.35/ns-2.35$ cd examples-01.2015
huynhloc@ubuntu:~/ns/ns-allinone-2.35/ns-2.35/examples-01.2015$ ns-keliu gpsr50.tcl
ns-keliu: command not found
 
Old 04-11-2015, 04:22 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2015, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 15,325

Rep: Reputation: 2939Reputation: 2939Reputation: 2939Reputation: 2939Reputation: 2939Reputation: 2939Reputation: 2939Reputation: 2939Reputation: 2939Reputation: 2939Reputation: 2939
Post #9, @huynhloc.dv11 : Welcome to LQ.

The file "ns-keliu" must be created, before you can use it.

Example :
$ cd ns-allinone-2.35/ns-2.35/
$ cp ns ns235-KeLiu ( Any name can be used )
$ sudo cp ns235-KeLiu /usr/local/bin/


-
 
  


Reply

Tags
gpsr, gpsr-235, gpsr-keliu, ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to patch GPSR routing protocol to ns-2.34 nimacasino Linux - Software 287 06-10-2014 12:27 PM
How to patch DYMOUM routing protocol in ns-2.33 ! omar11 Linux - Software 7 08-15-2012 05:15 AM


All times are GMT -5. The time now is 06:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration