LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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


Reply
  Search this Thread
Old 05-09-2013, 11:10 PM   #1
hippo3010
LQ Newbie
 
Registered: May 2013
Posts: 1

Rep: Reputation: Disabled
How to install fhmip patch in ns2?


I have downloaded a ns2.31_fhmip.patch and change the version and copy the file into ns2.35 folder. Then, using "$ patch p1 < ns2.35_fhmip.patch. but after that, there is nothing come out. can anyone help me.
 
Old 05-09-2013, 11:49 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Welcome to LQ.

The patch is a text file. Please read the "ns2.31_fhmip.patch" :
To know that it will add / modify files in ns-2.31/ only.
Works perfectly like this example :

$ cd ns-allinone-2.31/ns-2.31/ && patch -p1 < ns2.31_fhmip.patch
$ cd ../ && export CC=gcc34 CXX=g++34 && ./install
$ cd ns-2.31/tcl/ex/fhmip/ && ln -s ../../../ns
$ ./ns fhmip_simula.tcl : Files traffic.nam, traffic.tr are created.
$ nam traffic.nam : A nice simulation.

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

-
 
Old 02-12-2014, 07:16 AM   #3
abenmariem
LQ Newbie
 
Registered: Feb 2014
Location: Tunisia
Distribution: Ubuntu
Posts: 29

Rep: Reputation: Disabled
Hello,
After installing FMIPv6 on ns2.31 on ubuntu 13.1 32bits using the procedure described below.
I have nam1.15 installed in the place of nam1.13 associated with ns2.31.
I visualized the animation using nam and the nodes are layed out badly (one on top of the other).
How can i fix the problem or replace nam1.15 by nam1.13 ?
 
Old 02-12-2014, 07:23 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 3 .

The most reliable version is nam-1.14 (Or the identical 1.13).

So please use this binary : nam-1.14.i586.tar.gz
https://docs.google.com/uc?id=0B7S25...=CLPiyxo&hl=en
$ cd nam-1.14.i586/ && sudo cp nam /usr/local/bin/

And remember to delete any 'nam' text in .bashrc , if the *PATH text is present.

-
 
Old 02-12-2014, 07:49 AM   #5
abenmariem
LQ Newbie
 
Registered: Feb 2014
Location: Tunisia
Distribution: Ubuntu
Posts: 29

Rep: Reputation: Disabled
the same problem persists

Hello knudfl,
I applied your suggestion and verified that i am using nam.1.14 but the problem persists.
Can you tell me how to build nam1.13 because when building ns2.31 it doesn't create a nam executable in the bin folder or provide me nam1.13 executable.

Last edited by abenmariem; 02-12-2014 at 08:25 AM.
 
Old 02-12-2014, 08:21 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 5 .

There is no diffence from nam-1.13 to nam-1.14, so far concerns "32bits Linux".

How to build nam-1.13 (or 1.14) :
$ cd ns-allinone-2.33/tk8.4.18/
$ wget http://bugs.gentoo.org/attachment.cgi?id=161242
$ patch -p0 < tk-8.4-lastevent.patch

Do a $ make distclean
.. in tk8.4.18/unix/ , and nam-1.13/
And run your "export CC=... CXX=... && ./install" again in ns-allinone-2.33/ :
Only tk4.8.18 and nam-1.xx will change,
.. hopefully you will now get a 'nam' that works.

** But : I don't think nam is causing the "poor node layout".
? Have you tried maximizing the nam window ?
-
Attached Thumbnails
Click image for larger version

Name:	screen5967.jpg
Views:	17
Size:	7.2 KB
ID:	14734  

Last edited by knudfl; 02-12-2014 at 08:38 AM.
 
Old 02-12-2014, 08:28 AM   #7
abenmariem
LQ Newbie
 
Registered: Feb 2014
Location: Tunisia
Distribution: Ubuntu
Posts: 29

Rep: Reputation: Disabled
the same problem

Yes i maximized the window many times and nothing changed.
Note that i am simulating the FHMipV6 script fhmip_simula.tcl as it is.
I have another question:after the patching of ns2.31 with ns2.31_fhmip.patch am i installing FMIPv6 or just fmipv4.
I want to install FMIPv6 on ns2 whatever version.What can i do ?

Last edited by abenmariem; 02-12-2014 at 08:35 AM.
 
Old 02-12-2014, 08:41 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,520

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
# 7 .

I tried editing (Y settings) etc. in fhmip_simula.tcl .
No change. Please see my 'nam Display', attached to post #6.
 
Old 02-12-2014, 09:43 AM   #9
abenmariem
LQ Newbie
 
Registered: Feb 2014
Location: Tunisia
Distribution: Ubuntu
Posts: 29

Rep: Reputation: Disabled
other question

I have another question:after the patching of ns2.31 with ns2.31_fhmip.patch am i installing FMIPv6 or just fmipv4.
I want to install FMIPv6 on ns2 whatever version.What can i do ?
 
  


Reply

Tags
fhmip, 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
Install ns2.29 on Ubunto 11.04(NIST Mobility Patch) fahimeh_ak Programming 38 03-24-2015 06:45 AM
how to install leach patch in ns2.34 in ubuntu 9.10 anjon.sunny Linux - Newbie 9 04-30-2014 04:05 AM
want to install ns2.29.3 along with mannasim patch for ns2.29 jeevanpinto Linux - Software 4 10-02-2013 12:09 AM
seeking advice to install 802.11e patch in ns2 stud17 Linux - Newbie 48 11-04-2012 10:09 AM
integrating patch in ns2 MLinux Linux - Networking 2 11-30-2010 08:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:26 PM.

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
Open Source Consulting | Domain Registration