LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-07-2015, 10:47 AM   #1
hohweisiang
LQ Newbie
 
Registered: Oct 2014
Posts: 10

Rep: Reputation: Disabled
Post Mobiwan patch file in NS-2.31 for Ubuntu 12.04


I found that the mobiwan patch file only for ns-2.33.

If I want to run the mobiwan in NS-2.31 , anyone can provide the mobiwan patch file that can run in NS-2.31 ? In the same time , can provide me the method to install it in NS-2.31 ?

I will be really please if you can help me in this problem. Your reply will be really appreciated.

Thank you very much in advance.
 
Old 02-07-2015, 12:48 PM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Welcome to LQ.

There is more than one version of `mobiwan´.
Examples :
ns-233-mobiwan-1.patch
ns-2.33-mobiwan-an-110617.patch
ns-233-mobiwan-rfc3775-1.patch
( mobiwan-an-110617__ns233.tar.gz ).

? Which one are you considering ?

Install method : Please specify your OS.
a) The output from the command $ uname -m
b) OS Name and version.
. http://www.linuxquestions.org/linux/...Ask_a_Question
. http://linuxsilo.net/docs/smart-questions_en.html

Also please tell why you want to use ns-2.31 for mobiwan.
? Did you already add another extra protocol to ns-2.31 ?

Note : You can have as many times ns-allinone-2.xx as you want,
installed at the same time. But do never add any *PATH text to .bashrc.

-
 
Old 02-08-2015, 02:26 AM   #3
hohweisiang
LQ Newbie
 
Registered: Oct 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
Dear knudfl

My Ubuntu version is 12.04 i686 and my OS is LINUX.

I know that the version of mobiwan is a lot , but I want the mobiwan patch file that can run and compile in NS-2.31.
Actually, I'm doing my degree Final Year Project about the "Performance Analysis & Comparison for MIPv6 , HMIPv6 and FHMIPv6 in NS-2.31" .
At this moment, I have succeed finish the performance analysis & comparison for HMIPv6 and FHMIPv6 in NS-2.31.
So,I need the mobiwan patch file for done the MIPv6 performance analysis and compare with two other protocols in NS-2.31.
The NS-2.31 is the fixed platform to my project however I can't find out any mobiwan or MIPv6 file that suit for NS-2.31.

So,anyone can provide the mobiwan patch file that can run in NS-2.31 ?
In the same time , can provide me the method to install it in NS-2.31 ?

I will be really please if you can help me in this problem. Your reply will be really appreciated.

Thank you very much in advance.
 
Old 02-08-2015, 08:19 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
← ref. #3.
Quote:
I have succeed finish the performance analysis & comparison
for HMIPv6 and FHMIPv6 in NS-2.31
Missing information :
Please tell exactly what you already added to ns-2.31 →
Patch names, file names, other changes.

I.e. this information is required to test possible conflict, etc. with mobiwan.


-
 
Old 02-08-2015, 09:57 AM   #5
hohweisiang
LQ Newbie
 
Registered: Oct 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
Dear knudfl,

Actually, what I need is a mobiwan patch file that can run in NS-2.31.
My OS,Ubuntu and NS-2.31 does not make any changes,all original and can run without error. Nothing more and no added/changes.

So , in this case, All I need is the mobiwan patch file that suit for NS-2.31 and the step for doing the complete installation for it.
Internet just can find out NS-2.33 and no sources for NS-2.31.

I will be really please if you can help me in this problem and get the mobiwan patch file for NS-2.31.
Your reply will be really appreciated.
 
Old 02-08-2015, 11:08 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
What does this mean :
""I have succeed finish the performance analysis & comparison
for HMIPv6 and FHMIPv6 in NS-2.31"".

I.e. I think you will have to add e.g. ns2.31_fhmip.patch.gz, etc.
... to do those "performance analysis & comparison´s".

If you didn't add anything to ns-2.31,
why in the first place use ns-2.31 ? ?

-
 
Old 02-08-2015, 12:25 PM   #7
hohweisiang
LQ Newbie
 
Registered: Oct 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
Dear knudfl,

Other patch file like FHMIPv6 and HMIPv6 is install and success run out in other computer with same OS and NS version.

My target now is get the mobiwan patch file for NS-2.31 and it installation step to make it run without ERROR
in NS-2.31 original/without add or changes .

I need the mobiwan patch file that can run in NS-2.31 and it installation step.
Or , anyone can make/changes the mobiwan patch file for NS-2.33 suit for NS-2.31 ??

The NS-2.31 is the fixed platform to my project.

I will be really please if you can help me in this problem and get the mobiwan patch file for NS-2.31.
Your reply will be really appreciated.

( Please ignore the other FHMIPv6/HMIPv6 patch file , I need is the mobiwan patch file for NS-2.31 and it installation step ONLY )
 
Old 02-08-2015, 01:57 PM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
MIP / mobiwan : The choices are →
mobiwan-1
mobiwan-an
mobiwan-rfc3775

We can start with `mobiwan-1´.
Today´s patch is mobiwan-1__ns231.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing

$ tar xvf ns-allinone-2.31.tar.gz
$ cd xvf ns-allinone-2.31/
$ patch -p0 < mobiwan-1__ns231.patch

$ export CC=gcc41 CXX=g++41 && ./install
$ cd ns-2.31/
$ cp ns ns231-mobiwan1
$ sudo cp ns231-mobiwan1 /usr/local/bin/
... That's it. No adding no *PATH text to .bashrc !

Simulation example :
$ ns231-mobiwan1 Basic-Mobile-IPv6-example.tcl : OK.
* The files mip2.nam 108kB, mip2.tr 60kB are created.
$ nam mip2.nam : OK. A nice simulation is displayed.



? Two computers for ns2 ?
Are you trying to do ns-2.31 comparations as difficult as possible ?
Or ?
Read post #2 :
"You can have as many times ns-allinone-2.xx as you want,
installed at the same time. But do never add any *PATH text to .bashrc".
( Adding a *PATH text to .bashrc :
This 15 year old text was meant for a University Computer.
I.e. you had no write / install permissions to /usr/.)

→ The simple method is to use named copies of ns , like ....
/usr/local/bin/{ ns231-mobiwan1, ns-mipv6-mobiwan.an, ns-nist-pmipv6 },
etc. etc.


Build locations, example :
/home/<user>/a/{ ns-allinone-2.31, ns-allinone-2.33, ns-allinone-2.35 }.
/home/<user>/b/{ ns-allinone-2.31, ns-allinone-2.33, ns-allinone-2.35 }.
/home/<user>/c/{ ns-allinone-2.31, ns-allinone-2.33, ns-allinone-2.35 }.
/home/<user>/d/{ ns-allinone-2.31, ns-allinone-2.33, ns-allinone-2.35 }.


-
 
1 members found this post helpful.
Old 02-09-2015, 07:09 AM   #9
hohweisiang
LQ Newbie
 
Registered: Oct 2014
Posts: 10

Original Poster
Rep: Reputation: Disabled
Dear knudfl,

Thank for the Mobiwan patch file , i can run it without error in NS-2.31. Thousand thanks to you for helping me.

Now I need to study and edit the simple-mipv6.tcl and merge with the FHMIPv6 and HMIPv6 in NS-2.31.
If I had another problem , I will left my error and question here.


Really Appreciate to Knudfl for your helping hand.
 
Old 02-09-2015, 08:06 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
May be you can use these mobiwan examples :
mobiwan-examples.tar.gz ( 2.7 kB ) →
They will work when copied to ns.2.3x/tcl/mobiwan/

Download link https://drive.google.com/file/d/0B7S...ew?usp=sharing


Pure luck that we started out with "mobiwan-1"
The later patches mobiwan-an, mobiwan-rfc3775 :
Will cause `Segmentation fault´ if used in Ubuntu 12.04 .
* Based on my tests and ...
http://www.linuxquestions.org/questi...script-941626/

-
 
1 members found this post helpful.
Old 04-03-2015, 01:59 AM   #11
engr.fahad
LQ Newbie
 
Registered: Apr 2015
Posts: 7

Rep: Reputation: Disabled
Smile Reply

Thanx aton knudfl fo your immense support i did patch mobiwan with ns-2.31 but i am getting this error when i am trying to run a simple example

invalid command name "Agent/MIPv6/MN"
while executing
"Agent/MIPv6/MN set bs_forwarding_ 0 "
(file "mobiwan_test_bidirct.tcl" line 4)


can you help me in this regard as i am running out of time... and Again thanx for your support and guidance.
 
Old 04-03-2015, 07:02 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Re #11, @engr.fahad.
invalid command name "Agent/MIPv6/MN" :
.... You are using a wrong executable 'ns'.
I.e. an 'ns' with no mobiwan.
( Or you have a totally failed build of ns-2.31 ).

Please see post #8 :
$ cd ns-2.31/
$ cp ns ns231-mobiwan1 ( any ns-<new-name> can be used )
$ sudo cp ns231-mobiwan1 /usr/local/bin/
... That's it. No adding no *PATH text to .bashrc !

All simulations must be done like : $ ns231-mobiwan1 mobiwan_test_bidirct.tcl

-
 
Old 04-06-2015, 02:43 PM   #13
engr.fahad
LQ Newbie
 
Registered: Apr 2015
Posts: 7

Rep: Reputation: Disabled
Sorry Knudfl but i tried too hard to resolve this issue for ns2.31 but am unable to do so can you please please give me any pdf file in which each step is given it ll be highly apperciated.


second question is no of this topic but in ns2.33 i am unable to run awk command to extract any data.. i am using this syntax

awk - f pdf.awk out.tr

the error which i get is this

awk-F: command not found

kindly help me in this error and again i am sorry for givng you continous headache
 
Old 04-06-2015, 04:20 PM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
Re #13.
Quote:
awk - f pdf.awk
'awk<space>-<space>f pdf.awk out.tr' is wrong.
The syntax is :
Code:
awk -f pdf.awk out.tr

Last edited by knudfl; 04-06-2015 at 04:22 PM.
 
Old 04-07-2015, 06:35 AM   #15
engr.fahad
LQ Newbie
 
Registered: Apr 2015
Posts: 7

Rep: Reputation: Disabled
thanx alot and now can you tell me how to use this to plot a graph of values..

and regarding mobiwan what steps are to be done in order to patch it with ns2.33
 
  


Reply

Tags
mipv6, mobiwan, 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
LFS 5.4 error: patch: **** Can't open patch file .. DavidLee1A Linux From Scratch 6 12-28-2012 04:33 PM
Mobiwan for NS2.29 yotta15 Linux - Newbie 1 07-28-2012 06:18 AM
mobiwan and ns-2.33 problems simz Linux - Newbie 3 05-02-2012 10:11 AM
Mobiwan and NS 2.34 ? Augengrun Linux - Networking 16 04-01-2012 09:49 AM
patch problem - can't find file to patch jnutt Linux - Kernel 3 02-10-2010 04:45 PM


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