LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Closed Thread
 
Search this Thread
Old 05-03-2011, 05:44 AM   #1
nimacasino
LQ Newbie
 
Registered: May 2011
Posts: 2

Rep: Reputation: 1
How to patch GPSR routing protocol to ns-2.34


Hey guys!

I need to patch the GPSR routing protocol to ns-2.34 (ns-allinone-2.34), but i dont know how. could anyone help me, please?

Thank you all in advance for your time
 
Old 05-03-2011, 06:19 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,947

Rep: Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602
Welcome to LQ.

I don't know of any "GPSR routing protocol patch" for ns-2.34.
The available patches are for ns-2.29 and ns-2.33
http://www.cn.uni-duesseldorf.de/alu.../hls-ns2-patch

Suggest : Start with ns-allinone-2.33, and when everything works,
you can give ns-2.34 a try. ( It may work ? )


It is no problem having 2 .. 8 different ns-allinone-2.xx installed
at the same time. But do not add any of them to a path :
Is usually not required since ns-2.26.

..
 
1 members found this post helpful.
Old 05-03-2011, 08:37 AM   #3
nimacasino
LQ Newbie
 
Registered: May 2011
Posts: 2

Original Poster
Rep: Reputation: 1
Lightbulb @ knudfl

first of all thank you for your kind

Dear Knudfl, problem solved!
I handled this problem using the guidance of this webpage : http://www.cs.binghamton.edu/~kliu/r...ode/index.html
It worked and now i am happy.
 
1 members found this post helpful.
Old 06-09-2011, 12:44 PM   #4
magnetpest2k5
LQ Newbie
 
Registered: Jun 2011
Posts: 1

Rep: Reputation: Disabled
Hi nimacasino,

I also did install gpsr in ns2.34 and the included example works fine. But when I just include gpsr as routing protocol in my own simulation code it give plenty of errors. I guess I have to include many tcl parameters for the gpsr to work. Can you help me out with this?

Thank You
Vineeth
 
Old 06-19-2011, 12:33 PM   #5
parastoo
LQ Newbie
 
Registered: Apr 2011
Location: Iran
Posts: 1

Rep: Reputation: 0
hi guys
I have the same problem, would u plz give me a direct link to download patch gpsr for ns2.34, i couldnt use the websites above to solving my problem to downloading this patch...
tnx alot
Parastoo
 
Old 12-25-2011, 07:12 AM   #6
itishi00
LQ Newbie
 
Registered: Dec 2011
Posts: 1

Rep: Reputation: Disabled
Smile Want to measure mobility

dear nimacasino,

Can you please tell me the steps for using gpsr in ns2?
I am new to ns2 and want tot simulate mobility.

can you please guide me for that....if possible pls send some notes or code on my id itishi00@yahoo.com


Thanks in advance
 
Old 01-05-2012, 07:54 PM   #7
VANET_Prasad
LQ Newbie
 
Registered: Jan 2012
Posts: 1

Rep: Reputation: Disabled
Smile GPSR on NS 2.33

Hi,

I have successfully integrated the Ke Liu's GPSR implementation in to NS-2.33 and the
example which he has given for 100 stationary nodes are working fine and the packet delivery
ration is 100%.

When I tried this code for 50 mobile nodes then it does not work properly. The sources keep dropping packets
and for CBR connections the packet delivery ratio becomes as low as 10% at times.

has anyone tried this before!! Any one knows how to make this properly! I have spent lot of time
on this please help me if you can!

Cheers
Prasad
 
Old 02-08-2012, 09:13 AM   #8
yashu
LQ Newbie
 
Registered: Aug 2011
Posts: 25

Rep: Reputation: Disabled
hi

can anybody help me patching gpsr in ns2.34
please help me
 
Old 02-08-2012, 09:21 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,947

Rep: Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602
Post #7, @yashu.

You can have as many versions of ns-allinone-2.xx as you want,
installed at the same time. But do not any of them to a *PATH.

The latest gpsr patches are for ns-2.33 only.

.
 
Old 02-08-2012, 09:30 AM   #10
yashu
LQ Newbie
 
Registered: Aug 2011
Posts: 25

Rep: Reputation: Disabled
ok , i installed ns2.33, tried to execute , code is not complete, could u help me
 
Old 02-08-2012, 10:53 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,947

Rep: Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602
Post #10.

Which Ubuntu version are you using ? ?
And what is it you can't get to work ?
http://www.linuxquestions.org/linux/...Ask_a_Question
http://linuxsilo.net/docs/smart-questions_en.html



http://www.cn.uni-duesseldorf.de/alu.../hls-ns2-patch
> ns2.33-hls-patch.tar.gz > ns-2.33-hls.patch

1) cd ns-allinone-2.33/2.33/ && patch -p1 < ns-2.33-hls.patch
2) cd ../ && ./install : No errors.
EDIT : Ubuntu : Please see post # 23.

.

Last edited by knudfl; 03-13-2012 at 01:40 AM.
 
Old 03-06-2012, 12:54 PM   #12
muaz.sh
LQ Newbie
 
Registered: Mar 2012
Posts: 8

Rep: Reputation: Disabled
Dear All,
As I found this is the only thread on the internet discussing the integration of GPSR with ns-2.34, so please let us lock it successfully. I have tried and modified many files of ns2 and Ke Liu`s implementation following the steps as nimacasino mentioned, after recompilation every thing goes well, but when I applied GPSR over the nodes, in nam these nodes do not move, any suggestion to solve this?
Regards,
 
Old 03-09-2012, 08:48 PM   #13
mdkhasawneh
LQ Newbie
 
Registered: Mar 2012
Posts: 12

Rep: Reputation: Disabled
Hello

im new to NS2 and im working on VANET

i need to work on GPSR routing protocol

i found this topic very useful

i need help in getting source code for GPSR and how to patch

if possible anyone to help me in doing that and give me the steps
 
Old 03-11-2012, 12:55 PM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,947

Rep: Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602Reputation: 2602
Post #13, @mdkhasawneh : Welcome to LQ.

Please read post # 11. And follow the link to the ns-2.33-hls.patch.
 
Old 03-11-2012, 05:50 PM   #15
mdkhasawneh
LQ Newbie
 
Registered: Mar 2012
Posts: 12

Rep: Reputation: Disabled
thanks knudfl

i follow the steps in Post #11

but i get many errors and later this error

make:***[trace/cum-trace.o] error 1
Ns make failed!

can you please help me to solve this error
 
  


Closed Thread

Tags
gdb, gpsr, gpsr-hls, gpsr-keliu, xgraph#195


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
patch for working leach protocol in ns2.34 fedora rajcek Linux - Wireless Networking 4 02-04-2013 06:59 AM
LXer: Tutorial: Border Gateway Protocol, The Routing Protocol of the Internet LXer Syndicated Linux News 0 11-13-2008 05:11 AM
free routing protocol in fedora wahaha Linux - Networking 2 10-26-2006 01:16 AM
RIP(Routing Information protocol) cranium2004 Linux - Networking 2 05-01-2005 06:08 AM
Routing Protocol karunesh Linux - Networking 3 09-04-2002 04:24 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration