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 03-16-2013, 07:11 AM   #1
linuxuday
Member
 
Registered: Mar 2013
Posts: 31

Rep: Reputation: Disabled
How to patch GPSR to NS-2.34, which has OLSR already patched to it ?


Hello,

I have seen other threads where this topic is discussed.
I dont know how to refer to that thread here, I'm just giving the url of that page, http://www.linuxquestions.org/questi...-a-4175448663/

As answered by "knudfl" in that thread,
Quote:
Anyway, it has been done before: gpsr-KeLiu-patched-ns234.tar.gz (14.4 MB)
Download link https://docs.google.com/file/d/0B7S2...it?usp=sharing
.. The patch origins from a huge "gpsr-KeLiu-ns234.tar.gz", 51.6 MB
by @ VanetG, post # 80 here ..
http://www.linuxquestions.org/questi...526/page6.html

Install :
1) cd ns-allinone-2.34/ && tar xvf gpsr-KeLiu-patched-ns234.tar.gz
2) export CC=gcc41 CXX=g++41 && ./install
I have NS-2.34 already installed with olsr patched to it. If I follow above method and perform ./install I will lose olsr.

So how to use this "gpsr-KeLiu-patched-ns234.tar.gz" in my running NS-2.34 ?

Looking forward for any suggestions..
Thanks.
 
Old 03-16-2013, 08:49 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,618

Rep: Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265
Quote:
I have NS-2.34 already installed with olsr patched to it.
Which olsr patch ? ? um-olsr-1.0.tar.gz ?
http://sourceforge.net/projects/um-olsr/

Please explain why you want to use your current ns-2.34 for GPSR-KeLiu.
( Many of the complex patches will make conflicting changes to the files.)

And : You can have as many versions of ns-allinone-2.xx as you want,
installed at the same time. But do not add any path text to .bashrc.

Also : No problem having lots of different executable 'ns' :
Just rename all 'ns' to different names, like ns-umolsr, ns-gpsr-ke.
Example command : $ ns-umolsr olsr_example.tcl .

-
 
Old 03-16-2013, 09:17 AM   #3
linuxuday
Member
 
Registered: Mar 2013
Posts: 31

Original Poster
Rep: Reputation: Disabled
Ok..

If I simulate AODV/OLSR/GPSR in two different versions of NS2, would I get the same result?
If yes then my problem is solved, I will try to simulate GPSR on NS-2.33, as we get a proper patch file for it.

I'm under the impression that different versions of NS2 may give different results for same protocol(Ex: AODV).

Please clarify this..
 
Old 03-16-2013, 09:19 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,618

Rep: Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265
*

Please tell which olsr patch you are using.
 
Old 03-16-2013, 09:22 AM   #5
linuxuday
Member
 
Registered: Mar 2013
Posts: 31

Original Poster
Rep: Reputation: Disabled
Sorry, forgot to mention about it.

I'm running NS-2.34 (no other NS2 versions) and I have patched OLSR with "um-olsr_ns-2.34_v1.0.patch" in NS-2.34.
 
Old 03-16-2013, 10:17 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016 CentOS6.9 CentOS7.3 + 50+ other Linux OS, for test only.
Posts: 16,618

Rep: Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265Reputation: 3265
# 5 . OK that's http://sourceforge.net/projects/um-olsr/, I guess.

The 'um-olsr_ns-2.34_v1.0.patch' will change these files :
** common/packet.h
** queue/priqueue.cc
tcl/lib/ns-agent.tcl
tcl/lib/ns-default.tcl
tcl/lib/ns-lib.tcl
tcl/lib/ns-packet.tcl
** trace/cmu-trace.cc
trace/cmu-trace.h

The ** marked files are also changed with gpsr-KeLiu-ns234.tar.gz.
So you will have to create new files {packet.h priqueue.cc cmu-trace.cc}
with both changes. And create a Makefile.in with all {olsr, gpsr} objects.

-
 
Old 03-16-2013, 10:50 AM   #7
linuxuday
Member
 
Registered: Mar 2013
Posts: 31

Original Poster
Rep: Reputation: Disabled
Yes I have used the same patch file which you mentioned.

Thanks for this information.

I will try to do that ..

Last edited by linuxuday; 03-17-2013 at 12:08 PM.
 
  


Reply


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
OLSR patch sukrutha Linux - Newbie 24 05-03-2016 05:51 AM
How to install OLSR patch in ns-2.34 phungtayhd Linux - Newbie 1 03-03-2013 04:51 AM
OLSR patch sukrutha Linux - Newbie 2 08-21-2011 07:51 AM


All times are GMT -5. The time now is 07:51 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