LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 09-21-2011, 08:16 AM   #31
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

# 30 : ns-allinone-2.33, Ubuntu 10.10, 32bits.

sudo apt-get install g++ g++-4.2 autoconf automake \
libtool libx11-dev libxmu-dev libxmu-headers libxt-dev

cd ns-allinone-2.33/tk8.4.18/ &&
wget ftp://ftp.swin.edu.au/gentoo-portage...astevent.patch
&& patch -p0 < tk-8.4-lastevent.patch && exit

cd ns-allinone-2.33/ && export CC=gcc-4.2 CXX=g++-4.2 && ./install

https://docs.google.com/uc?id=0B7S25...nload&hl=en_US
> nam-1.14.i586.tar.gz : tar xvf nam-1.14.i586.tar.gz &&
cd nam-1.14.i586/ && sudo cp nam /usr/local/bin/

P.S. : Building ns-allinone-2.33 : A week should do.
Learning how to use ns-2.33: Preferaby a month. (2..3 months ?)
 
1 members found this post helpful.
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 09-21-2011, 11:02 AM   #32
masumbillah243
Member
 
Registered: Aug 2011
Posts: 31

Rep: Reputation: Disabled
Quote:
Originally Posted by sangram_kokate View Post
I have installed sesons FHMIP1.3.1 extension in ns2.31.I am able to run the simulation properly for mipv6,hmipv6,fmipv6,fhmipv6 (by following same instrucion set).Now i want to compare teh results interms of throughput,handover latency,loss rate?
Can anybody guide me in right direction?
dear Sir, i m trying to install the mobiwan patch for ns-2.33 and got few errors.
can u plz let me know i have installed ns-2.33 in my system, i want to compare MIPv6 and HMIPv6, what i need to do next, please help me
 
Old 09-21-2011, 11:24 AM   #33
masumbillah243
Member
 
Registered: Aug 2011
Posts: 31

Rep: Reputation: Disabled
dear knudfl,

thanx for your reply...I have installed NS-2.33 but the problem is cant install after patch that u suggested earlier http://www.nicta.com.au/__data/asset...obiwan-1.patch. i used 'patch -p0 < ns-233-mobiwan-1.patch'.
and then sudo ./install, but i got a errors

mobile/mip.cc:37: fatal error: ../mobiwan/ipv6.h: No such file or directory
compilation terminated.
make: *** [mobile/mip.o] Error 1
Ns make failed!




would u please help to do that...please

N.B- do you any idea for NS-2.1b6 which version of OS would be compatible, it not work on ubuntu 10.10?
 
Old 09-21-2011, 11:30 AM   #34
masumbillah243
Member
 
Registered: Aug 2011
Posts: 31

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 30 : ns-allinone-2.33, Ubuntu 10.10, 32bits.

sudo apt-get install g++ g++-4.2 autoconf automake \
libtool libx11-dev libxmu-dev libxmu-headers libxt-dev

cd ns-allinone-2.33/tk8.4.18/ &&
wget ftp://ftp.swin.edu.au/gentoo-portage...astevent.patch
&& patch -p0 < tk-8.4-lastevent.patch && exit

cd ns-allinone-2.33/ && export CC=gcc-4.2 CXX=g++-4.2 && ./install

https://docs.google.com/uc?id=0B7S25...nload&hl=en_US
> nam-1.14.i586.tar.gz : tar xvf nam-1.14.i586.tar.gz &&
cd nam-1.14.i586/ && sudo cp nam /usr/local/bin/

P.S. : Building ns-allinone-2.33 : A week should do.
Learning how to use ns-2.33: Preferaby a month. (2..3 months ?)
after run the first command u sent i g got the error like

Package g++-4.2 is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'g++-4.2' has no installation candidate
 
Old 09-21-2011, 11:47 AM   #35
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
#32, installing the mobiwan patch, Ubuntu 10.10 :

http://www.nicta.com.au/__data/asset...obiwan-1.patch
Move 'ns-233-mobiwan-1.patch' to ns-allinone-2.33/ns-2.33/.

If you already did run ./install, the procedure is :

cd ns-allinone-2.33/ns-2.33/ && mv ns ns-org &&
make clean && patch -p1 < ns-233-mobiwan-1.patch
&& export CC=gcc-4.2 CXX=g++-4.2 && ./configure && make
( I don't get any errors.)


# 34 :
Add hardy to /etc/apt/sources.list :
Code:
deb http://76.73.4.58/ubuntu/ hardy-updates main
deb http://76.73.4.58/ubuntu/ hardy universe
deb http://security.ubuntu.com/ubuntu hardy-security main
deb http://security.ubuntu.com/ubuntu hardy-security universe
And : sudo apt-get update && sudo apt-get install g++-4.2

..

Last edited by knudfl; 09-22-2011 at 12:39 PM.
 
1 members found this post helpful.
Old 09-21-2011, 11:55 AM   #36
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
Ubuntu 10.10 Maverick.

Add # 34 : I don't have any "hardy" in /etc/apt/sources.list

But there is an entry in Synaptic :
Settings > Archives >> Other Software >> Ubuntu 8.04 Hardy ..

..

Last edited by knudfl; 09-21-2011 at 11:59 AM.
 
Old 09-21-2011, 12:24 PM   #37
masumbillah243
Member
 
Registered: Aug 2011
Posts: 31

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
#32, installing the mobiwan patch, Ubuntu 10.10 :

http://www.nicta.com.au/__data/asset...obiwan-1.patch
Move 'ns-233-mobiwan-1.patch' to ns-allinone-2.33/ns-2.33/.

If you already did run ./install, the procedure is :

cd ns-allinone-2.33/ns-2.33/ && mv ns ns-org &&
make clean && patch -p1 < ns-233-mobiwan-1.patch
&& export CC=gcc-4.2 CXX=g++-4.2 && make
( I don't get any errors.)


# 34 :
Add hardy to /etc/apt/sources.list :
Code:
deb http://76.73.4.58/ubuntu/ hardy-updates main
deb http://76.73.4.58/ubuntu/ hardy universe
deb http://security.ubuntu.com/ubuntu hardy-security main
deb http://security.ubuntu.com/ubuntu hardy-security universe
And : sudo apt-get update && sudo apt-get install g++-4.2

..
hello sir, i find the error after run ur suggested command


mv: cannot stat `ns': No such file or directory
 
Old 09-21-2011, 12:30 PM   #38
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
# 37
Quote:
mv: cannot stat `ns': No such file or directory
When no 'ns' is present : You cannot save it as 'ns-org'.
 
Old 09-21-2011, 01:37 PM   #39
masumbillah243
Member
 
Registered: Aug 2011
Posts: 31

Rep: Reputation: Disabled
dear knudfl,

sir, can u plz tell me which version OS is compatible with NS-2.1b6?
 
Old 09-21-2011, 02:00 PM   #40
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
# 39.
Compatible with ns-2.1b6 :
Probably created on Redhat 6.2, released 'March 27 2000'.
A 12..14 year old computer is required too, I guess.

Better forget the eleven year old ns-2.1b6 : Nobody can help you with that.
 
Old 09-22-2011, 10:16 AM   #41
masumbillah243
Member
 
Registered: Aug 2011
Posts: 31

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 39.
Compatible with ns-2.1b6 :
Probably created on Redhat 6.2, released 'March 27 2000'.
A 12..14 year old computer is required too, I guess.

Better forget the eleven year old ns-2.1b6 : Nobody can help you with that.
Dear sir, i have installed 2.33, its working fine. but cant install mobiwan patch. can you please helped me out.
when i tried

"ns-2.33/ && mv ns ns-org &&
make clean && patch -p1 < ns-233-mobiwan-1.patch
&& export CC=gcc-4.2 CXX=g++-4.2 && make"

its reply...
mv: cannot stat `ns': No such file or directory
root1@ubuntu:~/Downloads/ns-allinone-2.33/ns-2.33$ && export CC=gcc-4.2 CXX=g++-4.2 && make
bash: syntax error near unexpected token `&&'

please tell me what i can do now
 
Old 09-22-2011, 10:34 AM   #42
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
# 41
Quote:
I have installed 2.33, its working fine
Then you must also have ns-allinone-2.33/ns-2.33/ns

If you created a binary 'ns', it is a good idea to save it :
Move it away, rename it, or whatever you like.
Not all (or none?) standard files.tcl will work with the mobiwan patched 'ns'

You can just split up the other commands ..
1) cd ns-allinone-2.33/ns-2.33/
2) make clean
3) patch -p1 < ns-233-mobiwan-1.patch
4) export CC=gcc-4.2 CXX=g++-4.2
5) ./configure
6) make

Be aware that the export command is temporary :
Will reset to the system gcc / g++, when you exit the terminal.

.
 
Old 09-22-2011, 10:50 AM   #43
masumbillah243
Member
 
Registered: Aug 2011
Posts: 31

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 41

Then you must also have ns-allinone-2.33/ns-2.33/ns

If you created a binary 'ns', it is a good idea to save it :
Move it away, rename it, or whatever you like.
Not all (or none?) standard files.tcl will work with the mobiwan patched 'ns'

You can just split up the other commands ..
1) cd ns-allinone-2.33/ns-2.33/
2) make clean
3) patch -p1 < ns-233-mobiwan-1.patch
4) export CC=gcc-4.2 CXX=g++-4.2
5) ./configure
6) make

Be aware that the export command is temporary :
Will reset to the system gcc / g++, when you exit the terminal.

.

Dear sir, thanx for your quick answer, i donno what happened to me, when i run the third line command u suggst. 3) patch -p1 < ns-233-mobiwan-1.patch


it come out like

patching file classifier/classifier-hash.h
Reversed (or previously applied) patch detected! Assume -R? [n]
 
Old 09-22-2011, 11:19 AM   #44
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
# 43.
Quote:
Reversed (or previously applied) patch detected! Assume -R? [n]
The patch command was run one time before :
You can just hit <Enter> for lines asking ""Assume -R? [n]"".
 
Old 09-22-2011, 11:34 AM   #45
masumbillah243
Member
 
Registered: Aug 2011
Posts: 31

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 43.

The patch command was run one time before :
You can just hit <Enter> for lines asking ""Assume -R? [n]"".
than sir, when i m trying to run simple-mipv6.tcl, i find the following error, please help me

root1@ubuntu:~/Downloads/ns-allinone-2.33/ns-2.33/ns-2.33-mobiwan/tcl/mobiwan$ ns simple-mipv6.tcl
invalid command name "Agent/MIPv6/MN"
while executing
"Agent/MIPv6/MN set bs_forwarding_ 0 "
(file "simple-mipv6.tcl" line 4)


also when i try to installed patch.. i come out like that ..

patching file ns-2.33-mobiwan/classifier/classifier-hash.h
Hunk #1 FAILED at 32.
Hunk #2 FAILED at 179.
2 out of 2 hunks FAILED -- saving rejects to file ns-2.33-mobiwan/classifier/classifier-hash.h.rej
patching file ns-2.33-mobiwan/classifier/classifier-mcast.cc
Hunk #1 FAILED at 35.
Hunk #2 FAILED at 110.
Hunk #3 FAILED at 132.
Hunk #4 FAILED at 144.
Hunk #5 FAILED at 183.
Hunk #6 FAILED at 200.
Hunk #7 FAILED at 215.
Hunk #8 FAILED at 232.
8 out of 8 hunks FAILED -- saving rejects to file ns-2.33-mobiwan/classifier/classifier-mcast.cc.rej
patching file ns-2.33-mobiwan/classifier/classifier-mcast.h
Hunk #1 FAILED at 58.
1 out of 1 hunk FAILED -- saving rejects to file ns-2.33-mobiwan/classifier/classifier-mcast.h.rej
patching file ns-2.33-mobiwan/common/mobilenode.cc
Hunk #1 FAILED at 158.
Hunk #2 FAILED at 263.
2 out of 2 hunks FAILED -- saving rejects to file ns-2.33-mobiwan/common/mobilenode.cc.rej
patching file ns-2.33-mobiwan/common/mobilenode.h
Hunk #1 FAILED at 136.
Hunk #2 FAILED at 235.
2 out of 2 hunks FAILED -- saving rejects to file ns-2.33-mobiwan/common/mobilenode.h.rej
patching file ns-2.33-mobiwan/common/packet.h
Hunk #1 FAILED at 177.
Hunk #2 FAILED at 371.
2 out of 2 hunks FAILED -- saving rejects to file ns-2.33-mobiwan/common/packet.h.rej
patching file ns-2.33-mobiwan/mac/arp.cc
Hunk #1 FAILED at 307.
1 out of 1 hunk FAILED -- saving rejects to file ns-2.33-mobiwan/mac/arp.cc.rej
patching file ns-2.33-mobiwan/mac/channel.cc
Hunk #1 FAILED at 119.
1 out of 1 hunk FAILED -- saving rejects to file ns-2.33-mobiwan/mac/channel.cc.rej
patching file ns-2.33-mobiwan/mac/phy.cc
Hunk #1 FAILED at 66.
1 out of 1 hunk FAILED -- saving rejects to file ns-2.33-mobiwan/mac/phy.cc.rej
patching file ns-2.33-mobiwan/Makefile.in
Hunk #1 FAILED at 66.
Hunk #2 FAILED at 305.
Hunk #3 FAILED at 482.
3 out of 3 hunks FAILED -- saving rejects to file ns-2.33-mobiwan/Makefile.in.rej
patching file ns-2.33-mobiwan/mobile/mip.cc
Hunk #1 FAILED at 31.
Hunk #2 FAILED at 98.
Hunk #3 FAILED at 113.
Hunk #4 FAILED at 149.
4 out of 4 hunks FAILED -- saving rejects to file ns-2.33-mobiwan/mobile/mip.cc.rej
patching file ns-2.33-mobiwan/mobile/mip.h
Hunk #1 FAILED at 95.
Hunk #2 FAILED at 128.
Hunk #3 FAILED at 164.
Hunk #4 FAILED at 208.
4 out of 4 hunks FAILED -- saving rejects to file ns-2.33-mobiwan/mobile/mip.h.rej

Last edited by masumbillah243; 09-22-2011 at 12:39 PM.
 
  


Reply

Tags
fhmip, hmipv6, mipv6, 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 implement HMIPv6 in ns2? bsyew Linux - Newbie 10 08-18-2012 07:24 AM


All times are GMT -5. The time now is 08:39 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration