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 05-27-2013, 04:28 AM   #1
masju
Member
 
Registered: Mar 2012
Location: Kolkata
Distribution: CentOS
Posts: 38

Rep: Reputation: Disabled
Installation of PMIPv6 Patch in NS-2.33


Hi all,

I am going to install PMIPv6 patch in NS-2.33. I have Fedora - 16 in my Laptop. Before installation of Patch it is asked to "install on the system binutils, gcc, g++, make, autoconf, libX11-dev, tk8.4-dev, libxmu-dev (or libxmu-headers)". Can I get help on how to install all the above in fedora 16. Please help.
 
Old 05-27-2013, 05:48 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,403

Rep: Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611
The prerequisites for ns2 : This will do ...

# yum install \
gcc-c++ compat-gcc-34-c++ make autoconf automake libtool libXmu-devel patch


Have you got the patch ? ns-2.33-pmipv6.patch ?

Install : $ cd ns-allinone-2.33/ && patch -p0 < ns-2.33-pmipv6.patch
$ export CC=gcc34 CXX=g++34 && ./install

-

Last edited by knudfl; 05-27-2013 at 06:56 AM.
 
Old 05-27-2013, 02:11 PM   #3
cio
LQ Newbie
 
Registered: Mar 2013
Location: Indonesia
Posts: 26

Rep: Reputation: Disabled
excuse me...
@knudfl where can i get pmipv6 patch for ns-2.33?
i can't find it anywhere... i only get one for ns 2.29 :'(
 
Old 05-27-2013, 04:53 PM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,403

Rep: Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611
Quote:
.. where can i get pmipv6 patch for ns-2.33 ?
There was an attempt to make a patch "ns-2.33-pmipv6.patch"
http://osll.spb.ru/projects/ns2/wiki/_NS2PMIPv6_
And it should be possible to download it with a command like :
$ svn co svn+ssh://osll.spb.ru/var/svnroot/ns2/trunk/offload/
.. but that doesn't work.

? Why not use the ns229 files :
https://sites.google.com/site/pmip6n...ns-2/downloads
I.e. ns-allinone-2.29.3.tar.gz + ns-2.29-nist-mob-022707.tgz
+ pmip6-for-ns-2.29-nist.patch

Easy to install : $ export CC=gcc34 CXX=g++34 && ./install
And the three examples pmip_nohier.tcl pmip.tcl pmip_wimax.tcl : OK.

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 05-29-2013, 01:24 AM   #5
masju
Member
 
Registered: Mar 2012
Location: Kolkata
Distribution: CentOS
Posts: 38

Original Poster
Rep: Reputation: Disabled
#4
Thank you sir,

I have install ns-2.29 with PMIPv6 patch and got the succesful completion message.
But error has given for nam-1.11 and xgraph-12.1. It is said to install them separately.
When I tried to install separately with commands in the respective directories
(./configure and make) it is also giving error during make.
error type:
nam_stream.o: In function `NamStreamCompressedFile::close()':
nam_stream.cc.text+0x9e1): undefined reference to `gzclose'
nam_stream.o: In function `NamStreamCompressedFile::eof()':
nam_stream.cc.text+0xa0f): undefined reference to `gzeof'
nam_stream.o: In function `NamStreamCompressedFile::read(char*, int)':
nam_stream.cc.text+0xa39): undefined reference to `gzread'
collect2: ld returned 1 exit status
make: *** [nam] Error 1
Will you help me sir to install nam and xgraph.
 
Old 05-29-2013, 01:56 AM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,403

Rep: Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611
# 5.

""It is said to install them separately"" : Can be done. Not recommended.
The ns-allinone solution is a 100 times better :
You can have as many versions as you want, installed at the same time.

Nam and Xgraph are totally independent applications.
Nam : Use a nam-1.14 binary "package" : # cp nam /usr/local/bin/
http://www.linuxquestions.org/questi...04-a-842109/#4

Xgraph : There is a 32bits example for Fedora here ( # 16 )
http://www.linuxquestions.org/questi...233/page2.html

-
 
Old 05-31-2013, 01:11 AM   #7
masju
Member
 
Registered: Mar 2012
Location: Kolkata
Distribution: CentOS
Posts: 38

Original Poster
Rep: Reputation: Disabled
#5
Thank you sir once again. I have solved the nam problem but xgraph is not required for me right now. I am trying to solve another problem but till now got any solution. Problem is when I am running their tcl script "pmip.tcl", it is giving segmentation fault. The cause of the segmentation fault is illegal memory access, as far as I know. Sir can you give any suggestion. Please sir.
 
Old 05-31-2013, 02:33 AM   #8
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,403

Rep: Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611
# 7 .

Well, "segmentation fault".
I will have a look at ns-allinone-2.29.3.tar.gz + ns-2.29-nist-mob-022707.tgz
+ pmip6-for-ns-2.29-nist.patch /// Fedora 16.

Is your architecture i686 or x86_64 ? ?

The command $ uname -m <Enter> : Will reply with i686 or x86_64.
( ns2 is for a 32bits (i686) OS.)

-
 
Old 05-31-2013, 03:11 AM   #9
masju
Member
 
Registered: Mar 2012
Location: Kolkata
Distribution: CentOS
Posts: 38

Original Poster
Rep: Reputation: Disabled
#8

Sir it is x86_64.
 
Old 05-31-2013, 05:20 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,403

Rep: Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611
# 9 .

Fedora 16, 64bits (x86_64) : Sorry, not usable for ns-2.29-nist + PMIPv6.
( Some ns2 versions will work on some 64bits OS, some ns2 won't.
But : The validate (make test) result is always inferior on a 64bits OS.)

Solutions : 1) Install a 32bits OS for ns2, if you want to build ns2 yourself.

Or 2) Use the package "pmip6-nistmob-ns-2.29-1.el5.x86_64.rpm" 4.5 MB
https://docs.google.com/file/d/0B7S2...it?usp=sharing
... providing /usr/local/bin/ns-nist-pmip6
... Works OK with the examples pmip.tcl, pmip_nohier.tcl, pmip_wimax.tcl →
→ Fedora 16 - 64 :
$ ns-nist-pmip6 pmip.tcl :
The files trace.out 15MB, throughput.out 46kB are generated.
$ xgraph throughput.out : Works.

P.S.: The successful build of ns-2.29-nist + PMIPv6 on a 64bits OS :
The Fedora6 based CentOS 5.8 - 64 was used.

-

Last edited by knudfl; 05-31-2013 at 05:27 AM.
 
Old 05-31-2013, 09:09 AM   #11
masju
Member
 
Registered: Mar 2012
Location: Kolkata
Distribution: CentOS
Posts: 38

Original Poster
Rep: Reputation: Disabled
#10

Thanks sir. After installing the package "pmip6-nistmob-ns-2.29-1.el5.x86_64.rpm" I have simulated the
pmip.tcl file and it is working. I have got the trace file trace.out of 16MB and throughput.out of 47.7 KB.
Xgraph is showing the graphical output. Now I will try to simulate my WLAN hotspot scenario. Many many thanks sir.
In future if I face any problem then I will post you for your kind help.
 
Old 06-09-2013, 08:25 AM   #12
cio
LQ Newbie
 
Registered: Mar 2013
Location: Indonesia
Posts: 26

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
There was an attempt to make a patch "ns-2.33-pmipv6.patch"
http://osll.spb.ru/projects/ns2/wiki/_NS2PMIPv6_
And it should be possible to download it with a command like :
$ svn co svn+ssh://osll.spb.ru/var/svnroot/ns2/trunk/offload/
.. but that doesn't work.

? Why not use the ns229 files :
-
yes... it's asking for password...

oh... because i want to compare the semulation result so i guess it must using the same ns version... so i want to install it on ns 2.33
 
Old 04-26-2014, 02:10 AM   #13
dils747
LQ Newbie
 
Registered: Apr 2014
Posts: 9

Rep: Reputation: Disabled
Getting Segmentation fault(core dumped) while executing pmip.tcl

Hello

I have installed ns-allinone-2.29 and applied the patch for PMIPv6 using files in the following link
"https://sites.google.com/site/pmip6n...ns-2/downloads"
OS: Ubuntu 12.04, 32 bit

When I try to execute "ns pmip.tcl" I am getting the following error

$ ns pmip.tcl
num_nodes is set 6
INITIALIZE THE LIST xListHead
_o97 channelID = 2412000000.000000
_o127 channelID = 2437000000.000000
_o200 channelID = 2412000000.000000
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 513.3
SORTING LISTS ...DONE!
Link Connect to AP 0 on Channel 1
Segmentation fault (core dumped)

please guide me in clearing the error.

Thanks
 
Old 04-26-2014, 04:17 AM   #14
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2020 CentOS6.10 CentOS7.7 + 50+ other Linux OS, for test only.
Posts: 17,403

Rep: Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611Reputation: 3611
PMIPv6 , Ubuntu 12.04 - i686

Post #13, @dils747 : Welcome to LQ.

https://sites.google.com/site/pmip6n...ns-2/downloads
This is `how to add pmipv6´ : Assume ns-allinone-2.29.3.tar.gz →
$ cd ns-allinone-2.29/
$ tar xvf ns-2.29-nist-mob-022707.tgz
$ patch -p0 < pmip6-for-ns-2.29-nist.patch
$ export CC=gcc41 CXX=g++41 && ./install

Rename the new executable 'ns' to a recognizable name e.g. ns-nist-pmipv6,
and copy "ns-nist-pmipv6" to /usr/local/bin/.
Code:
$ ns-nist-pmipv6 pmip.tcl
num_nodes is set 6
_o97 channelID = 2412000000.000000 
_o127 channelID = 2437000000.000000 
_o200 channelID = 2412000000.000000 
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5,  distCST_ = 513.3
Link Connect to AP 0 on Channel 1
Link Connect to AP 1 on Channel 6
.... And the trace file `trace.out´, ~15MB is created.


-

Last edited by knudfl; 04-26-2014 at 04:30 AM.
 
Old 04-26-2014, 09:59 PM   #15
dils747
LQ Newbie
 
Registered: Apr 2014
Posts: 9

Rep: Reputation: Disabled
gcc41 installation error

Hi,

I downloaded gcc41 and g++41 packages from the following websites

gcc41-compat*1210 https://docs.google.com/file/d/0B7S2...FQY2VJbjA/edit
g++41-compat https://docs.google.com/file/d/0B7S2...jN2M2MGU4/edit

installed with :
sudo dpkg -i gcc41-compat-4.1.2-ubuntu1210_i386.deb g++41-compat-4.1.2_i386.deb
then rebooted the system

Used - cd ns-allinone-2.29/ && export CC=gcc41 CXX=g++41 && ./install
getting following error

============================================================
* Build tcl8.4.11
============================================================
loading cache ./config.cache
checking whether to use symlinks for manpages... no
checking whether to compress the manpages... no
checking whether to add a package name suffix for the manpages... no
checking for gcc... gcc41
checking whether the C compiler (gcc41 ) works... no
configure: error: installation or configuration problem: C compiler cannot create executables.
tcl8.3.2 configuration failed! Exiting ...
Tcl is not part of the ns project. Please see www.Scriptics.com
to see if they have a fix for your platform.

pls guide me..
 
  


Reply

Tags
nist-mob, ns2, pmip6


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
Help me with Network Simulator 2.....with MPLS and PMIPv6 Dannysenju Linux - Software 1 03-18-2012 04:29 PM
Pmipv6 installation in ns 2.29 on ubuntu 8.10 parulgaba Ubuntu 0 05-20-2011 02:09 AM
patch installation on RHEL shabev Linux - Enterprise 2 03-20-2008 10:08 AM
sendmail patch installation muks Linux - Networking 1 10-09-2003 07:58 PM
OpenSSH patch installation Obscure Linux - Security 6 09-22-2003 04:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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