LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 01-27-2011, 01:36 PM   #16
rochd
LQ Newbie
 
Registered: Jan 2011
Posts: 18

Rep: Reputation: 1

bsyew
ns-2.33 and ubunto 10.04
 
Old 02-05-2011, 07:14 AM   #17
Asago
LQ Newbie
 
Registered: Feb 2011
Posts: 7

Rep: Reputation: 0
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

Last edited by Asago; 02-05-2011 at 07:16 AM.
 
Old 02-09-2011, 08:08 AM   #18
Asago
LQ Newbie
 
Registered: Feb 2011
Posts: 7

Rep: Reputation: 0
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

Last edited by Asago; 02-09-2011 at 11:29 AM. Reason: updating to previous question
 
Old 02-11-2011, 12:40 PM   #19
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
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> ).

..

Last edited by knudfl; 02-11-2011 at 03:09 PM.
 
Old 02-12-2011, 09:19 AM   #20
Asago
LQ Newbie
 
Registered: Feb 2011
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
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
 
Old 02-12-2011, 01:32 PM   #21
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
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.

..
 
Old 02-14-2011, 02:04 AM   #22
Asago
LQ Newbie
 
Registered: Feb 2011
Posts: 7

Rep: Reputation: 0
Quote:
Originally Posted by knudfl View Post
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
 
Old 02-14-2011, 03:11 AM   #23
Asago
LQ Newbie
 
Registered: Feb 2011
Posts: 7

Rep: Reputation: 0
It's Done! .. Many thinks Knudfl
 
Old 03-03-2011, 01:14 AM   #24
bsyew
LQ Newbie
 
Registered: Jan 2011
Posts: 19
Blog Entries: 2

Original Poster
Rep: Reputation: 3
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

Last edited by bsyew; 03-03-2011 at 01:16 AM.
 
Old 03-04-2011, 06:34 AM   #25
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
@ 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

..
 
Old 03-05-2011, 11:18 PM   #26
bsyew
LQ Newbie
 
Registered: Jan 2011
Posts: 19
Blog Entries: 2

Original Poster
Rep: Reputation: 3
@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?
 
Old 03-06-2011, 05:16 AM   #27
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
# 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.

..
 
Old 03-17-2011, 01:52 PM   #28
bsyew
LQ Newbie
 
Registered: Jan 2011
Posts: 19
Blog Entries: 2

Original Poster
Rep: Reputation: 3
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.
 
Old 03-17-2011, 03:11 PM   #29
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
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.

..
 
Old 08-16-2011, 09:39 PM   #30
masumbillah243
Member
 
Registered: Aug 2011
Posts: 31

Rep: Reputation: Disabled
i want to use MIP v6 in ns-2

Quote:
Originally Posted by bsyew View Post
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?
 
  


Reply

Tags
mobiwan


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
not able to run tcl for mobiwan manjunath11 Linux - Newbie 6 11-05-2010 04:18 AM
i am using ubuntu as os. for NS2 to implement a routing protocol in ns2. sujovasu Programming 1 07-27-2010 02:44 AM
weight throwing protocol using ns2 code,diffusion based protocol using ns2 code rajrupa Linux - Networking 1 05-27-2010 04:39 AM
Ns2.32 rafik123 Linux - Newbie 1 01-22-2010 02:26 AM


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