LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   MIPv6 on NS2.35 (https://www.linuxquestions.org/questions/ubuntu-63/mipv6-on-ns2-35-a-4175623570/)

nazanin rezaie 02-12-2018 03:10 AM

MIPv6 on NS2.35
 
Hi.
I have NS2.35 on Ubuntu 14.04LTS. I followed below steps for run MIPv6 on it.
Code:

tar xvf ns-allinone-2.35_gcc5.tar.gz
cd ns-allinone-2.35/
patch -p0 < mobiwan-1_ns235.patch
./install
cd ns-2.35/
cp ns ns235-mobiwan1
sudo cp ns235-mobiwan1  /usr/local/bin/

All steps do without error but when I run files of MIPv6, I see error. for example:

Code:

$ns 2-Basic-Mobile-IPv6-example.tcl
error is:
Code:

couldn't read file "../../tcl/lib/proc-mipv6-config.tcl": no such file or directory
    while executing
"source.orig ../../tcl/lib/proc-mipv6-config.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel source.orig[list $fileName]"
    invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
    (procedure "source" line 8)
    invoked from within
"source ../../tcl/lib/proc-mipv6-config.tcl"
    (procedure "main" line 6)
    invoked from within
"main"
    (file "2-Basic-Mobile-IPv6-example.tcl" line 190)

another:

Code:

$ ns mobiwan_test_faster.tcl
error is:
Code:

couldn't read file "../../tcl/lib/proc-mipv6-config.tcl": no such file or directory
    while executing
"source.orig ../../tcl/lib/proc-mipv6-config.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel source.orig[list $fileName]"
    invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
    (procedure "source" line 8)
    invoked from within
"source $BASEDIR/tcl/lib/proc-mipv6-config.tcl"
    (procedure "main" line 7)
    invoked from within
"main"
    (file "mobiwan_test_faster.tcl" line 162)

one else:
Code:

$ ns simple-mipv6.tcl
error is:
Code:

couldn't read file "../../tcl/mobility/timer.tcl": no such file or directory
    while executing
"source.orig ../../tcl/mobility/timer.tcl"
    ("uplevel" body line 1)
    invoked from within
"uplevel source.orig[list $fileName]"
    invoked from within
"if [$instance_ is_http_url $fileName] {
set buffer [$instance_ read_url $fileName]
uplevel eval $buffer
} else {
uplevel source.orig[list $fileName]
..."
    (procedure "source" line 8)
    invoked from within
"source ../../tcl/mobility/timer.tcl"
    (procedure "main" line 3)
    invoked from within
"main"
    (file "simple-mipv6.tcl" line 152)

Could you please tell me what am i doing wrong? And why do they have error?
Thank you so much in advance for your attention.

knudfl 02-12-2018 05:06 AM

The examples, 2-Basic-Mobile-IPv6-example.tcl etc.:

Please use the new "mobiwan-examples-1.tar.gz"
https://drive.google.com/file/d/18Z7...ew?usp=sharing
Code:

$ tar xvf mobiwan-examples-1.tar.gz
$ cd mobiwan-ex-1/mobiwan/ex/
$ ns235-mobiwan1 2-Basic-Mobile-IPv6-example.tcl

The required configuration files are in mobiwan-ex-1/tcl/{lib/, mobility/, mobiwan/}.
( And mobiwan-ex-1/mobiwan/ex/tcl/{lib/ mobility/ mobiwan/} ).

-

nazanin rezaie 02-12-2018 06:44 AM

Thanks alot knudfl.
I will do your Instructions and come back as soon as possible.

nazanin rezaie 02-12-2018 09:15 AM

Yes, I did your instructions step by step and finally i have below files:
Quote:

Originally Posted by knudfl (Post 5818749)
The required configuration files are in mobiwan-ex-1/tcl/{lib/, mobility/, mobiwan/}.
( And mobiwan-ex-1/mobiwan/ex/tcl/{lib/ mobility/ mobiwan/} ).
-

But when i run each files , i faced to these errors:
Code:

$ns235-mobiwan1 2-Basic-Mobile-IPv6-example.tcl
error is:
Code:

num_nodes is set 1
warning: no class variable SrcRouting::debug_

        see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable SrcRouting::debug_

        see tcl-object.tcl in tclcl for info about this warning.

warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl (except for MobiWAN simulations)
warning: no class variable SrcRouting::debug_

        see tcl-object.tcl in tclcl for info about this warning.

INITIALIZE THE LIST xListHead
warning: no class variable SrcRouting::debug_

        see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable SrcRouting::debug_

        see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable SrcRouting::debug_

        see tcl-object.tcl in tclcl for info about this warning.

warning: no class variable SrcRouting::debug_

        see tcl-object.tcl in tclcl for info about this warning.


  >-------------------- NS Addressing --------------------<
  Domains (domain_num) : 2
  Clusters (cluster_num) : 1 5
  Nodes (nodes_num) :  1 1 3 1 1 1
  >-------------------------------------------------------<

Segmentation fault (core dumped)

And my files "nam and tr" are empty.

Ofcourse , I saw answer of you that you told to the same question in another post:

Quote:

Re #6, @mjahidi.
If the trace files are created in reasonable sizes, the 'Segmentation fault' can be ignored.
I get no 'Segmentation fault' with $ ns235-mobiwan simple-mipv6.tcl
... and the created files are : out.nam 260kB, out.tr 156kB.
To avoid 'Segmentation fault', please use another OS, i386/i686, e.g. the 32bits CentOS 6.7
Would you please tell me why i have this error and how i can improve it without CentOS?
Thank you so much in advance for your attention.

knudfl 02-12-2018 11:23 AM

Re post #4.

»» Segmentation fault «« : Which OS are you using ?

»» Re #6, @mjahidi «« : The post is dated 2016. Things can be different every month.
https://www.linuxquestions.org/quest...-4175549210/#6

»» please tell me why i have this error «« :
Generally Ubuntu is the least ns2 friendly OS you can find.
CentOS and other rpm based OS are using a glibc with an ns2 friendly patching.

»» how i can improve it «« :
My test (post #2) $ ns235-mobiwan 2-Basic-Mobile-IPv6-example.tcl :
.. was with PCLinuxOS 2017 - 64 . CentOS 7 (64) does equally well.
The files mip2.nam 108.0kB, mip2.tr 60.0kB are created. (Both OS, same file sizes.)
Code:

$ ns235-mobiwan 2-Basic-Mobile-IPv6-example.tcl
num_nodes is set 1
warning:  ...
.
INITIALIZE THE LIST xListHead
warning: ...
.
  >-------------------- NS Addressing --------------------<
  Domains (domain_num) : 2
  Clusters (cluster_num) : 1 5
  Nodes (nodes_num) :  1 1 3 1 1 1
  >-------------------------------------------------------<

SORTING LISTS ...DONE!
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5,  distCST_ = 550.0

... The solution is to use "an ns2 OS". Or just use the examples that work.

-

nazanin rezaie 02-12-2018 12:20 PM

Thank you very much Sir for your attention.

Quote:

Originally Posted by knudfl (Post 5818876)
Re post #5.
»» Segmentation fault «« : Which OS are you using ?

My OS is Ubuntu 14.04 64bit.


Unfortunately, I am beginner in Linux. Before i wanted run PMIPv6 on CentOS with NS2.29 and I tried to install CentOS and NS2.29 on it but i did not know,how i can do that!! :( and SO i be unsuccessful on it.Now, I am afraid that i can not do again.

Well , If you say CentOS is good for run NS files,SO I try again. I HOPE that this time i can be successful. :)


Please tell me which CentOS must i install? and which NS2?
Thank you so much in advance for your attention.

knudfl 02-12-2018 12:58 PM

Re #6.

CentOS 7 is OK for mobiwan. See post #5
http://ftp.funet.fi/pub/mirrors/cent...stall-1708.iso
→ CentOS-7-x86_64-NetInstall-1708.iso
With the "NetInstall" ISO (422MB) you can choose Desktop Environment. Suggest MATE.

Ns2 requirements
Code:

$ su [enter root password]
# yum install gcc-c++ autoconf automake libtool libXmu-devel

Building ns-allinone-2.35 is like post #1.
Install nam
Code:

$ cd nam-1.15/
$ su [enter root password]
# make install


knudfl 02-12-2018 01:08 PM

PMIPv6 : CentOS 6.9 - i386 must be used for NIST + PMIPv6
http://ftp.funet.fi/pub/mirrors/cent...86-LiveDVD.iso

The latest build example is here ( 6lowpan is included )
https://www.linuxquestions.org/quest...-4175609958/#3

All NIST https://www.linuxquestions.org/questions/tags/nist-mob/

-

nazanin rezaie 02-12-2018 02:01 PM

Thank you so much sir knudfl.

Quote:

With the "NetInstall" ISO (422MB) you can choose Desktop Environment. Suggest MATE.
Could you please tell me What you mean? Do you mean that i can not install "NetInstall" on VMware Workstation?

Thank you so much in advance for your attention.

knudfl 02-12-2018 02:47 PM

Re #9.
Quote:

you mean that i can not
Post #7 is only about "what you can". The word "not" isn't mentioned.

Besides that :
'Virtual Machines' tend to make ns2 results worse than a hard disk OS install.
.... May be that's the reason for your error ?

Not a thing that I ever test. I have all the ~60 OS´s for ns2 test installed to HD:
Four computers, 10 hard disks, ~72 partitions.

-

nazanin rezaie 02-13-2018 12:44 AM

Re #10.

Quote:

Originally Posted by knudfl (Post 5818974)
.
Post #7 is only about "what you can". The word "not" isn't mentioned.
-

Yes, sorry.

I have one computer with afew equipment. :( I force to use 'Virtual Machines'.

I have class till saturday and I am busy but I want to do your instructions and come back as soon as possible. :)

knudfl 02-13-2018 07:12 AM

1 Attachment(s)
MIPv6. Other option : Install mobiwan as an application.
1) for Ubuntu 14 .. 16 - 64bits : mobiwan1-ns_2.33-ubuntu14_amd64.deb (2.0MB)
https://drive.google.com/file/d/1ncS...ew?usp=sharing
... provides /usr/local/bin/ns233-mobiwan-el6

Ubuntu 14.04: The simulation text from 2-Basic-Mobile-IPv6-example.tcl is attached.

2) for CentOS 6 and 7 , 64bits : mobiwan1-ns-2.33-1.el6.x86_64.rpm (2.8MB)
https://drive.google.com/file/d/1xc1...ew?usp=sharing
... provides /usr/local/bin/ns233-mobiwan-el6
-

knudfl 02-13-2018 08:06 AM

PMIPv6. Applications.

1) Ubuntu, 32bits : nist-pmip6-ns_229-ubuntu12_i386.deb (4.3MB)
https://drive.google.com/file/d/0B7S...ew?usp=sharing

2) CentOS 6 and 7 : 32 and 64bit : nist-pmip6_ns229-2-1.i386.rpm (3.6MB)
https://drive.google.com/file/d/0B7S...ew?usp=sharing
... i.e. # yum install ./nist-pmip6_ns229-2-1.i386.rpm
... will also install any missing dependencies.

$ ns229-nist-pmip6-el6 : OK with the simulations → CentOS 7 (64bit).

-

nazanin rezaie 02-13-2018 11:46 AM

Re #12 , #13
THANK YOU SO MUCH knudfl.

nazanin rezaie 02-16-2018 12:13 PM

Re #12

Quote:

Originally Posted by knudfl (Post 5819271)
MIPv6. Other option : Install mobiwan as an application.
for Ubuntu 14 .. 16 - 64bits : mobiwan1-ns_2.33-ubuntu14_amd64.deb (2.0MB)

Heretofore, I did not work with application and I have several questions about it. I’d like to apologize for my below questions.
Could you please tell me :
1- Is the file.deb the same as file.patch?
2- Is the results of file.deb the same as the file.patch?
3- Can i install NS 2.33 on Ubuntu 14.04? Where can i find NS 2.33?
4- How can i install mobiwan1-ns_2.33-ubuntu14_amd64.deb on NS 2.33? What is its instruction?
5- After mobiwan1-ns_2.33-ubuntu14_amd64.deb install, does file.tcl have? and is it run in terminal exactly the same as file.tcl that install by file.patch?

Thank you so much in advance for your attention.


All times are GMT -5. The time now is 10:12 PM.