LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 07-27-2016, 11:45 PM   #1
sirikeshava
LQ Newbie
 
Registered: Dec 2013
Posts: 6

Rep: Reputation: Disabled
Smile How to install Media independent handoff [MIH] 802.21 patch inns2.35


Hello sir/Madam,
I want to implement MIH in ns2.35. please guide me ,as i was new to ubuntu and ns2.
At present i am using ubuntu 14.04 and ns2.35. if it is ubuntu 16.04 means how to install it.
thank u
 
Old 07-28-2016, 08:46 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,635

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by sirikeshava View Post
Hello sir/Madam,
I want to implement MIH in ns2.35. please guide me ,as i was new to ubuntu and ns2. At present i am using ubuntu 14.04 and ns2.35. if it is ubuntu 16.04 means how to install it. thank u
First, you need to read the LQ Rules and "Question Guidelines" link in my posting signature. Do not use text speak (it's "you" not "u"), and do not ask for handouts.

We are happy to help with SPECIFIC questions, but asking us to 'guide you' and give you a step-by-step guide is fairly rude. There are THOUSANDS of NS2 guides you can easily find with a Google search. Start there. If you get STUCK, then please, post what message(s)/error(s) you're getting, along with DETAILS, and we will be glad to help.
 
Old 07-30-2016, 09:11 AM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
@sirikeshava

The most used "MIH patch" is for ns-2.29 → → MIH Nist.
https://sourceforge.net/projects/mihnistns229/files/
.. and the patching is most easily done with "ns-2.29-nist-mob-022707.tgz"

INFO :
nist http://www.linuxquestions.org/questions/tags/nist-mob/
mih http://www.linuxquestions.org/questions/tags/mih/ (MIH-ns229.patch)


About Ubuntu : Some ns2 protocols will still work with Ubuntu.
The latest ns2 friendly version was an early install of Ubuntu 10.10 :
But the updates changed 10.10 to be ns2 hostile like later Ubuntu versions.

The preferred ns2 OS is usually the 32bits CentOS 6.8 - i386
http://ftp.funet.fi/pub/mirrors/cent...386-LiveCD.iso


ns3, MIH https://www.nsnam.org/wiki/MIH_implementation


-

Last edited by knudfl; 07-30-2016 at 09:15 AM.
 
Old 08-01-2016, 10:46 AM   #4
sirikeshava
LQ Newbie
 
Registered: Dec 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
5$ sudo ./configure
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.out
checking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... /bin/grep
checking for egrep... /bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking minix/config.h usability... no
checking minix/config.h presence... no
checking for minix/config.h... no
checking whether it is safe to define __EXTENSIONS__... yes
No .configure file found in current directory
Continuing with default options...
checking build system type... x86_64-unknown-linux-gnu
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking for gcc... (cached) gcc
checking whether we are using the GNU C compiler... (cached) yes
checking whether gcc accepts -g... (cached) yes
checking for gcc option to accept ISO C89... (cached) none needed
checking for g++... g++
checking whether we are using the GNU C++ compiler... yes
checking whether g++ accepts -g... yes
checking for ANSI C header files... (cached) yes
checking for string.h... (cached) yes
checking for main in -lXbsd... no
checking for socket in -lsocket... no
checking for gethostbyname in -lnsl... yes
checking for dcgettext in -lintl... no
checking for getnodebyname in -ldnet_stub... no
checking that g++ can handle -O2... yes
checking if C++ libraries work without any namespace... no
checking if C++ libraries work with namespace std... yes
checking if STL works without any namespace... no
checking if STL works with namespace std... yes
checking should use STL... yes
checking for tcl.h... -I../include
checking for tclInt.h... -I../include
checking for libtcl8.6... no
checking for init.tcl... ../lib/tcl8.5
checking for http.tcl... ../lib/tcl8.5/http1.0
checking Tcl http.tcl library... yes
checking for tclsh8.6.1... no
checking for tclsh8.6... /usr/bin/tclsh8.6
configure: error: Installation of tcl seems incomplete or can't be found automatically.
Please correct the problem by telling configure where tcl is
using the argument --with-tcl=/path/to/package
(perhaps after installing it),
or the package is not required, disable it with --with-tcl=no.



How do I check if the installation of tcl is done or not?
And if yes, what is the path//....?
If not, then how do I install it?

This error occured when installing evalvid in ns2.35 of ubuntu 14.04
 
Old 08-01-2016, 01:47 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,635

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by sirikeshava View Post
Code:
5$ sudo ./configure 

configure: error: Installation of tcl seems incomplete or can't be found automatically.
Please correct the problem by telling configure where tcl is
using the argument --with-tcl=/path/to/package
(perhaps after installing it),
or the package is not required, disable it with --with-tcl=no.
How do I check if the installation of tcl is done or not?
Did you read what you posted??? The part in bold TELLS YOU it didn't complete, and even told you what to do to fix the compile error. Did you bother to actually DO it?
Quote:
And if yes, what is the path//....?
You tell us...where did you install it?
Quote:
If not, then how do I install it? This error occured when installing evalvid in ns2.35 of ubuntu 14.04
You were told how to install things and given links by knudfl...did you read/understand/follow them?
 
Old 08-02-2016, 03:41 PM   #6
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #4.

Which "evalvid" is it that you are trying to add to ns-2.35 ?

Evalvid info
. http://www.linuxquestions.org/questions/tags/myevalvid/
. http://www.linuxquestions.org/questi...gs/myevalvid2/
. http://www.linuxquestions.org/questions/tags/evalvid/

About using the default gcc/g++ :
You can only do that with a later version of ns-allinone-2.35 :
ns-allinone-2.35_gcc482.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing

An "evalvid2" build example ...
Code:
cd ns-allinone-2.35/
patch -p0 < myevalvid2_ns235.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
cd ns-2.35/
sudo make install
cp ns ns235-evalvid2
sudo cp ns235-evalvid2 /usr/local/bin/

Simulation : ns235-evalvid2 be_a01.tcl
9.9689999999999994
300 records

The files { out.tr, rd_a01, sd_a01, video1.dat } are created.
 
Old 08-06-2016, 12:58 AM   #7
sirikeshava
LQ Newbie
 
Registered: Dec 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hello Sir,

Thank you for replies . But i have more queries . I have installed NS-MIH-MULTI-CRITERIA package for 802.21 MIH in ubuntu 14.04.
Before this package i installed ns2.35 . My requirement is to implement 802.21 along with evalvid for vertical handover between wifi-wimax, wifi-umts,wimax-cellular. when this package extracted ,in ns-2.29 it came along with evalvid folder.I installed ns-2.29 with the instruction given in the read file.later i executed examples which is present in NS-MIH-MULTI-CRITERIA/ns-allinone-2.29/ns-2.29/tcl/hsntg -errors encountered.
~$ cd NS-MIH-MULTI-CRITERIA/ns-allinone-2.29/ns-2.29/tcl/hsntg/802_21/scenario1
~/NS-MIH-MULTI-CRITERIA/ns-allinone-2.29/ns-2.29/tcl/hsntg/802_21/scenario1$ ns scenario1.tcl

Wrong Number of Arguments!
command is ns scenario1.tcl case [seed]
invalid command name "Agent/MIHUser/IFMNGMT/MIPV6/Handover/Handover2"
while executing
"Agent/MIHUser/IFMNGMT/MIPV6/Handover/Handover2 set case_ 2"
(file "scenario1.tcl" line 40)
~/NS-MIH-MULTI-CRITERIA/ns-allinone-2.29/ns-2.29/tcl/hsntg/802_21/scenario1$ cd
~$ cd NS-MIH-MULTI-CRITERIA/ns-allinone-2.29/ns-2.29/tcl/hsntg/802_21/validation
~/NS-MIH-MULTI-CRITERIA/ns-allinone-2.29/ns-2.29/tcl/hsntg/802_21/validation$ ns scenario1_802_11.tcl
invalid command name "Agent/ND"
while executing
"Agent/ND set debug_ 0"
(file "scenario1_802_11.tcl" line 15)
~/NS-MIH-MULTI-CRITERIA/ns-allinone-2.29/ns-2.29/tcl/hsntg/802_21/validation$ ns scenario1_802_16.tcl
invalid command name "Agent/ND"
while executing
"Agent/ND set debug_ 0"
(file "scenario1_802_16.tcl" line 15)

Last edited by sirikeshava; 08-08-2016 at 06:03 AM.
 
Old 08-08-2016, 06:29 AM   #8
sirikeshava
LQ Newbie
 
Registered: Dec 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hello sir,
I have installed NS-MIH-MULTI-CRITERIA package for MIH in ubuntu 14.04. when i executing the example of MIH tcl i got this error
please help me.

:~/NS-MIH-MULTI-CRITERIA/ns-allinone-2.29/ns-2.29$ cd tcl/hsntg
:~/NS-MIH-MULTI-CRITERIA/ns-allinone-2.29/ns-2.29/tcl/hsntg$ ns testMIH.tcl
invalid command name "Agent/ND"
while executing
"Agent/ND set debug_ 1"
(file "testMIH.tcl" line 45)
thank you
 
Old 08-28-2016, 05:05 AM   #9
sirikeshava
LQ Newbie
 
Registered: Dec 2013
Posts: 6

Original Poster
Rep: Reputation: Disabled
Hello Knudlf,
i have gcc-4.1 and g++-4.1 for ns-2.29 on ubuntu-14.04. when i run command in ns-allinone-2.29$: ./install i got the following error
g++-4.1 -o common/ptypes2tcl common/ptypes2tcl.o
/usr/lib/gcc/x86_64-linux-gnu/4.1.2/libstdc++.a(eh_personality.o): In function `__gxx_personality_v0':
(.text.__gxx_personality_v0+0xd3): undefined reference to `_Unwind_GetIPInfo'
collect2: ld returned 1 exit status
make: *** [common/ptypes2tcl] Error 1
Ns make failed!

what does this means.thanks in advance
 
  


Reply

Tags
ns2



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
simulation of handoff b/w umts and 802.11 ridzi Linux - Newbie 6 03-25-2015 07:11 AM
Source code for standard Handoff procedure in IEEE 802.11 WLAN madan.jobner Linux - Newbie 1 01-02-2014 11:47 PM
seeking advice to install 802.11e patch in ns2 stud17 Linux - Newbie 48 11-04-2012 10:09 AM
patch for Hierarchical media independent handover (MIH) service in ns2.34 anamnazir Linux - Newbie 5 12-20-2011 05:22 PM
LXer: The Rise of Independent Media LXer Syndicated Linux News 0 05-10-2006 09:21 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 10:57 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
Open Source Consulting | Domain Registration