LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Mobiwan for Ns2.33 (https://www.linuxquestions.org/questions/linux-newbie-8/mobiwan-for-ns2-33-a-856104/)

bsyew 01-13-2011 10:22 AM

Mobiwan for Ns2.33
 
Hi,
I am a newbie to Mobiwan. I am currenltly looking for mobiwan ns2.33 files and the steps of installing d mobiwan in ns 2.33. I found mobiwan ns 2.16b on the internet , however i faced a lot of erros during the installation of mobiwan ns 2.16b and i found out that mobiwan ns 2.16b dose not support other version of ns 2. I really appreaciate if someone can email for me the files that i need.
And is it mobiwan is comptible with ns 2.34?


I really hope someone can reply me as i really need d mentioned files to continue my final year project..

thank you so much :)

knudfl 01-13-2011 11:56 AM

Welcome to LQ.

The ns-233-mobiwan-1.patch
http://www.nicta.com.au/__data/asset...obiwan-1.patch


More info : LQ Search → Tag = mobiwan
Or : LQ Search → Keyword = mobiwan

No mobiwan for ns-2.34. And no : 'ns-2.1b6' cannot be build on Fedora.

Good luck !

bsyew 01-14-2011 01:09 AM

HI.

Thanks for you link sir.

However, i faced d below error during the installation.. I follows all d instruction given in :
http://hpds.ee.ncku.edu.tw/~smallko/...nstruction.txt


gmake[1]: *** No rule to make target `/home/beenseok/NS/ns-2.34-mobiwan/src/tcl/lib/ns-local-lib.tcl', needed by `/home/beenseok/NS/ns-2.34-mobiwan/.work/tcl/lib/ns-lib.tcl'. Stop.

knudfl 01-14-2011 10:12 AM

I don't see any ns-2.34 mentioned in that link.

No ns-allinone 2.1b6 related files will usually work on a modern Linux.

Please use ns-allinone-2.33 for Mobiwan.
It's all described in the previous "mobiwan threads".

And there are no problems having two or more ns-allinone versions
installed at the same time.

..

bsyew 01-14-2011 11:12 AM

currently, i am installing the ns-2.33 with ns-233-mobiwan-1.patch added into the folder

This is the command that i used : patch -p0 < ns-233-mobiwan-1.patch

The next step to do will be ./install right?

knudfl 01-14-2011 11:25 AM

*

As I remember it, yes.

bsyew 01-14-2011 11:30 AM

Thanks knudfl.. :)

Now waiting for the validate steps to complete as it take quite long time :)

bsyew 01-14-2011 12:17 PM

Hmm..i guess things didt run smoothly for me. I faced the following errors when i am trying to run simple-mipv6/tcl:

invalid command name "Agent/MIPv6/mn"
while executing
"Agent/MIPv6/mn set bs_forwarding_ 0 "
(file "simple3_mipv6.tcl" line 4)
[beenseok@localhost 6]$ ns simple3_mipv6.tcl
invalid command name "Agent/MIPv6/MN"
while executing
"Agent/MIPv6/MN set bs_forwarding_ 0 "
(file "simple3_mipv6.tcl" line 4)

Hope you can teach me on how to solve these errors...

knudfl 01-14-2011 02:11 PM

Suggest ( again ) : Read some other mobiwan threads.

It has been up before, but I don't remember the solution.

Examples
http://www.linuxquestions.org/questi...t%2FMIPv6%2Fmn
http://www.linuxquestions.org/questi...t%2FMIPv6%2Fmn
http://www.linuxquestions.org/questi...t%2FMIPv6%2Fmn
..

w.suhas 01-17-2011 01:12 PM

NS 3 Mobile IPv6
 
Hello friends,

Please anybody working on the MIPv6 in NS3. In which version does this support.

w.suhas 01-17-2011 01:13 PM

Quote:

Originally Posted by bsyew (Post 4223075)
Hi,
I am a newbie to Mobiwan. I am currenltly looking for mobiwan ns2.33 files and the steps of installing d mobiwan in ns 2.33. I found mobiwan ns 2.16b on the internet , however i faced a lot of erros during the installation of mobiwan ns 2.16b and i found out that mobiwan ns 2.16b dose not support other version of ns 2. I really appreaciate if someone can email for me the files that i need.
And is it mobiwan is comptible with ns 2.34?

this is my email: bseokyew@gmail.com

I really hope someone can reply me as i really need d mentioned files to continue my final year project..

thank you so much :)

The installation procedure and steps are given please follow these steps from "http://techsolns4u.blogspot.com/2011/01/mobiwan-installation-in-ns2.html"

knudfl 01-17-2011 01:36 PM

@ w.suhas, post # 10 : Welcome to LQ.

This thread is about ns2, mobiwan.
Please start your own thread, if you have ns3 questions.

Google .. NS3 Mobile IPv6 ..
http://www.google.com/webhp?hl=all#h...2bee5a4a93f9a3

Example http://groups.google.com/group/ns-3-...2ecb7ea6c73c16
..

bsyew 01-17-2011 11:47 PM

Thanks to all.

Mobiwan finally works on ns2.33:)

rochd 01-26-2011 10:03 AM

@bsyew
Help me please I have the same problem you

while executing
"Agent/MIPv6/mn set bs_forwarding_ 0 "
(file "simple3_mipv6.tcl" line 4)
[beenseok@localhost 6]$ ns simple3_mipv6.tcl
invalid command name "Agent/MIPv6/MN"
while executing
"Agent/MIPv6/MN set bs_forwarding_ 0 "
(file "simple3_mipv6.tcl" line 4)

bsyew 01-27-2011 01:28 AM

rochd:

which version did u use for ns? 2.33 or 2.34?

rochd 01-27-2011 12:36 PM

bsyew
ns-2.33 and ubunto 10.04

Asago 02-05-2011 06:14 AM

Hi bsyew,
we are facing the same problems that you got .. Could you please support us by the steps that you achieved on the instillation procedure..
really you will help us.. Mobiwan in ns2-33 with Fedora/Ubunto.
Thanks in advance

Asago 02-09-2011 07:08 AM

Hi, knudfl

Could you please help me to know who to solve this problem i faced!. really I need your help
when I installed mobiwan on ns-allinone-2.33 on Fedora 11 I faced these errors, I don't know what is the problem
while I followed the installation instruction:

I tried with
@localhost distrib-mobiwan]$ gmake mobiwan
& $ make mobiwan
Also the same


*****************************
Building mobiwan

gmake[2]: Entering directory `/home/altamimi/Documents/ns2/distrib-mobiwan/.work'
gmake[2]: *** No targets specified and no makefile found. Stop.
gmake[2]: Leaving directory `/home/altamimi/Documents/ns2/distrib-mobiwan/.work'
gmake[1]: *** [target] Error 2
gmake[1]: Leaving directory `/home/altamimi/Documents/ns2/distrib-mobiwan'
gmake: *** [mobiwan] Error 2

tq;


That's problem already solved but still have some obstacles:

I couldn't finish the installation:

@localhost distrib-mobiwan]$ make mobiwan

I got such these errors:
*******************************************
arp.cc: In constructor ‘ARPTable::ARPTable(const char*, const char*)’:
arp.cc:102: error: ‘off_mac_’ was not declared in this scope
arp.cc:103: error: ‘off_ll_’ was not declared in this scope
arp.cc:105: error: ‘off_arp_’ was not declared in this scope
arp.cc: In member function ‘void ARPTable::arprequest(nsaddr_t, nsaddr_t, LL*)’:
arp.cc:226: error: ‘off_arp_’ was not declared in this scope
arp.cc: In member function ‘void ARPTable::arpinput(Packet*, LL*)’:
arp.cc:259: error: ‘off_arp_’ was not declared in this scope
gmake[2]: *** [arp.o] Error 1
gmake[2]: Leaving directory `/home/altamimi/Documents/ns2/distrib-mobiwan/.work'
gmake[1]: *** [target] Error 2
gmake[1]: Leaving directory `/home/altamimi/Documents/ns2/distrib-mobiwan'
make: *** [mobiwan] Error 2

waiting your available advices

knudfl 02-11-2011 11:40 AM

Post # 18, @ Asago : Welcome to LQ.
Quote:

$ make mobiwan
Looks interesting. Where did you find that method ?
And what does the file " .work " mean ?

( Usually it would be : cd /home/<name>/ns2/ns-allinone-2.33/ns-2.33/ &&
make clean && make -f Makefile.<new> ).

..

Asago 02-12-2011 08:19 AM

Quote:

Originally Posted by knudfl (Post 4255319)
Post # 18, @ Asago : Welcome to LQ.


Looks interesting. Where did you find that method ?
And what does the file " .work " mean ?

( Usually it would be : cd /home/<name>/ns2/ns-allinone-2.33/ns-2.33/ &&
make clean && make -f Makefile.<new> ).

..

I followed the steps outlined in this link below: (kindly take a look)

http://hpds.ee.ncku.edu.tw/~smallko/...nstruction.txt

I couldn't apply step No (4.), I got the above errors!

Thanks for your replaying

knudfl 02-12-2011 12:32 PM

Post # 20 :
That is not an instruction for ns-allinone-2.33.
Neither is the patch.

Is for ns-allinone-2.1b6-gcc32(.tar.gz)

Please read post #2, which has a link to the 2.33 patch.

..

Asago 02-14-2011 01:04 AM

Quote:

Originally Posted by knudfl (Post 4256279)
Post # 20 :
That is not an instruction for ns-allinone-2.33.
Neither is the patch.

..

Thank You kndufl.,
I got the patch from your appreciated comment @ post#2, but still couldn't find the mobiwan installation instruction for ns-2.33..
could you please info me how can find it! sorry for disturbing you

Asago 02-14-2011 02:11 AM

It's Done! .. Many thinks Knudfl

bsyew 03-03-2011 12:14 AM

After installed mobiwan, TCP variants, for example, TCP Reno, failed~
 
Dear NS Users,

These are the errors that occurs when i am trying to run the tcl script that implements TCP reno in IPv4 after mobiwan is installed in ns-2.33.


num_nodes is set 3
wired node 0 created
wired node 1 created
wired node 2 created
INITIALIZE THE LIST xListHead
Base-Station node 3 created
wireless node 0 created ...
wireless node 1 created ...
warning: Route to base_stn not known: dropping pkt
warning: Route to base_stn not known: dropping pkt
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 709.7
SORTING LISTS ...DONE!
--- Classfier::no-slot{} default handler (tcl/lib/ns-lib.tcl) ---
_o39: no target for slot 2
_o39 type: Classifier/Addr
content dump:
classifier _o39
0 offset
0 shift
2047 mask
0 slots
---------- Finished standard no-slot{} default handler ----------


Below is the other error that occur when i m trying to run wireless-mitf.tcl in tcl/ex folder:

[beenseok@localhost 6]$ ns wireless-mitf.tcl
num_nodes is set 2
INITIALIZE THE LIST xListHead
can't read "EnableHierRt_": no such variable
(Object set line 1)
invoked from within
"Simulator set EnableHierRt_"
(procedure "_o15" line 10)
(Node attach line 10)
invoked from within
"$node attach $ragent [Node set rtagent_port_]"
(procedure "_o3" line 96)
(Simulator create-wireless-node line 96)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 24)
(Simulator node line 24)
invoked from within
"$ns_ node"
invoked from within
"set node_(0) [$ns_ node]"
(file "wireless-mitf.tcl" line 110)


I need helps to solve these errors and appreciate it so much if someone can tell me how to solve it.

Regards

knudfl 03-04-2011 05:34 AM

@ bsyew, post # 24 : Looks like something, that has been answered before.

To run non mobiwan stuff, a binary 'ns' with no mobiwan is required.
1) Build an ns-allinone-2.33 and rename the binary ns to ns233.
Copy 'ns233' to /usr/local/bin/

2) Build an ns-allinone-2.33 with mobiwan. cp ns ns-mobiwan.
Copy 'ns-mobiwan' to /usr/local/bin/

Then you can do : 'ns233 file.tcl' with the non mobiwan files.
And : 'ns-mobiwan file.tcl' with "mobiwan files".

Suggest : Read all (12) mobiwan threads here at LQ.
LQ Search > > Keyword = mobiwan

..

bsyew 03-05-2011 10:18 PM

@knudfl :

I followed your advise on building two version of ns2 in fedora and copy both binaries to /usr/local/bin/. However, I have doubt regarding the .bashrc file. At first, ns-2.33 without mobiwan is built. The .bashrc file is editted according to the correct path in which ns-2.33 without mobiwan is located. Then after that when ns-2.33 with mobiwan is built, the path environment in .bashrc file changes again. After source ~/.bashrc, ns consider that the environment is accorded to the latest bashrc file, that is the environment path for ns-2.33 with mobiwan. Am i doing the correct steps Sir?

knudfl 03-06-2011 04:16 AM

# 26 :
The whole ".bashrc" thing is mostly for older ns-allinone-2.xx (2.26 and older ?)
With ns* in /usr/local/bin/ : It's a system PATH.

About the LD_LIBRARY_PATH
All later ns2 versions are partly statically compiled, and do usually not depend
on anything else than the X*libs in /usr/lib/.

So ns or a renamed ns will most often know the path : ns-allinone-2.xx/lib/ .
( Problems occur, if you change the ns-allinone-2.xx/lib/ location.)

With three or four different ns-allinone-2* on every OS, I never experience
ns asking for ///otlcl*/libotcl.* or ///tclcl*/libtclcl.*.
And I never change the bashrc.

..

bsyew 03-17-2011 12:52 PM

knudfl:

current ns2.33 and mobiwan finally compatible in my fedora. Thanks for your advice knudfl.

I have a question regarding the trace file that i obtained from mobiwan simulation. Where can i get the trace format that explains each column of the mobiwan's trace file? I need the trace format in order to compute the throughput and delay by using awk & perl.

Thanks in advance.

knudfl 03-17-2011 02:11 PM

Google .. trace columns ns2 ..
http://www.google.com/webhp#sclient=...62779cc03b1b30

Some examples
http://kulo.in/forum/showthread.php?tid=33

http://www.ns2ultimate.com/post/3442...trace-ex1-link

http://www.cubinlab.ee.unimelb.edu.a...2/node234.html

http://nsnam.isi.edu/nsnam/index.php/NS-2_Trace_Formats

We had a recent thread about trace format ( columns ), but I can't find it.

..

masumbillah243 08-16-2011 08:39 PM

i want to use MIP v6 in ns-2
 
Quote:

Originally Posted by bsyew (Post 4239177)
rochd:

which version did u use for ns? 2.33 or 2.34?

can anyone please help me to how to start for MIP at ns2, can i dot that at ns2.33 or i need to do old version ns2.1b6?

knudfl 08-17-2011 03:29 AM

Post # 30, @ masumbillah243 : Welcome to LQ.
http://www.inrialpes.fr/planete/mobiwan/
Quote : "MobiWan distribution comprises : ....
.
Mobile IPv6, available, in two modes: .... "


You can read about Mobiwan for ns233 here in the LQ threads :
LQ Search → Tag = mobiwan

'ns2.1b6' is not usable on a contemporary Linux.

..

masumbillah243 09-16-2011 10:05 AM

Dear knudfl, thanx for ur kind answer. can you please tell me more about this --- i want to compare MIPv6 vs HMIPv6...what i need to use? Mobiwan or i can do by using Columbia university micro-mobility source code? please looking for your answer.

masumbillah243 09-16-2011 10:07 AM

Does any one use macro mobility and micro mobility protocol in same platform for IPv6,

masumbillah243 09-22-2011 11:50 AM

Quote:

Originally Posted by knudfl (Post 4445295)
Post # 30, @ masumbillah243 : Welcome to LQ.
http://www.inrialpes.fr/planete/mobiwan/
Quote : "MobiWan distribution comprises : ....
.
Mobile IPv6, available, in two modes: .... "


You can read about Mobiwan for ns233 here in the LQ threads :
LQ Search → Tag = mobiwan

'ns2.1b6' is not usable on a contemporary Linux.

..



Dear Sir, Actually i am asking to many questions only becs my project due within next 6 days, i m so tense i did mistaken basis mistake, can u please tell me the steps, consider i installed ns-2.33, but i want to compare HMIP vs MIP, i guess i need mobiwan patch and FHMIP extension patch, would u please tell me the steps i should follow to get my result..

regrds
masum

vithanalasatish 11-17-2011 05:54 AM

error while installing mobiwan
 
hi guys,
i got this error while adding mobiwan patch to ns2.33

In file included from mobiwan/ipv6.cc:45:0:
./classifier/classifier-hash.h: At global scope:
./classifier/classifier-hash.h:43:7: error: redefinition of ‘class HashClassifier’
./classifier/classifier-hash.h:43:42: error: previous definition of ‘class HashClassifier’
./classifier/classifier-hash.h:133:7: error: redefinition of ‘class SrcDestFidHashClassifier’
./classifier/classifier-hash.h:133:56: error: previous definition of ‘class SrcDestFidHashClassifier’
./classifier/classifier-hash.h:146:7: error: redefinition of ‘class SrcDestHashClassifier’
./classifier/classifier-hash.h:146:53: error: previous definition of ‘class SrcDestHashClassifier’
./classifier/classifier-hash.h:160:7: error: redefinition of ‘class FidHashClassifier’
./classifier/classifier-hash.h:160:49: error: previous definition of ‘class FidHashClassifier’
./classifier/classifier-hash.h:171:7: error: redefinition of ‘class DestHashClassifier’
./classifier/classifier-hash.h:171:50: error: previous definition of ‘class DestHashClassifier’
mobiwan/ipv6.cc: In member function ‘virtual void NetworkBS::recv(Packet*, Handler*)’:
mobiwan/ipv6.cc:330:29: warning: comparison between signed and unsigned integer expressions
mobiwan/ipv6.cc: In member function ‘virtual void NetworkMN::recv(Packet*, Handler*)’:
mobiwan/ipv6.cc:442:30: warning: comparison between signed and unsigned integer expressions
make: *** [mobiwan/ipv6.o] Error 1


can any one help me, to solve the above problem

knudfl 11-18-2011 03:15 AM

@vithanalasatish, post # 35 : Welcome to LQ.

Please specify your Linux OS. Like Fedora 15, CentOS 6, Ubuntu 10.04.
http://catb.org/~esr/faqs/smart-questions.html

And : Read all posts in the thread http://www.linuxquestions.org/questi...2-33-a-856104/

..

vithanalasatish 11-18-2011 06:47 AM

post # 35 :

i am using ubuntu 11.04
i sloved the above problem
when i am implementing NMEO protocol

using binary file "ns-mobiwan_Ubu1010" u provided i got this error

satish@satish-desktop:~/Documents/ns-allinone-2.33/ns-2.33/tcl/mobiwan$ ./ns-mobiwan_Ubu1010 nemo_test_bidirct.tcl

When configured, ns found the right version of tclsh in /home/knudfl/8tmp/ns-allinone-2.33/bin/tclsh8.4
but it doesn't seem to be there anymore, so ns will fall back on running the first tclsh in your path. The wrong version of tclsh may break the test suites. Reconfigure and rebuild ns if this is a problem.
invalid command name "Agent/MIPv6/MR"
while executing
"Agent/MIPv6/MR set bs_forwarding_ 0 "
(file "nemo_test_bidirct.tcl" line 4)


can u suggest where i have to change the path for tclsh8.4

nganrvc 01-22-2012 05:16 AM

invalid command name "Agent/MIPv6/MN
 
Quote:

Originally Posted by vithanalasatish (Post 4527460)
post # 35 :

i am using ubuntu 11.04
i sloved the above problem
when i am implementing NMEO protocol

using binary file "ns-mobiwan_Ubu1010" u provided i got this error

satish@satish-desktop:~/Documents/ns-allinone-2.33/ns-2.33/tcl/mobiwan$ ./ns-mobiwan_Ubu1010 nemo_test_bidirct.tcl

When configured, ns found the right version of tclsh in /home/knudfl/8tmp/ns-allinone-2.33/bin/tclsh8.4
but it doesn't seem to be there anymore, so ns will fall back on running the first tclsh in your path. The wrong version of tclsh may break the test suites. Reconfigure and rebuild ns if this is a problem.
invalid command name "Agent/MIPv6/MR"
while executing
"Agent/MIPv6/MR set bs_forwarding_ 0 "
(file "nemo_test_bidirct.tcl" line 4)


can u suggest where i have to change the path for tclsh8.4

Hi I got the same problem with you. Have you solved it?
I am using both ubuntu 8.04 and 10.04 on two computers and the same problem I get:
Code:

root@ngannguyen:~/ns-allinone-2.33/ns-2.33/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)

I follow the instruction here: techsolns4u.blogspot.com/2011/01/mobiwan-installation-in-ns2.html#comment-form
The simple-mipv6.tcl file is the original. Even I tried to change line 90 in this file as below, the problem still cannot be solved.
Code:

Old: 90 source ~/nstcl/mobility/timer.tcl

 New: 90 source ./ns-allinone-2.33/ns-2.33/tcl/mobility/timer.tcl

I search all the thread with keyword mobiwan as knudfl's suggestion but I cannot find the solution.
Any one help me!
Thank you in advance


All times are GMT -5. The time now is 04:03 PM.