LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 04-19-2012, 11:14 PM   #16
Riaz Khan
Member
 
Registered: Apr 2012
Posts: 42

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled

nam worked well and xgraph as well..now tell me how can i patch mobiwan with ns-2.33.
Thanks for your support
 
Old 04-20-2012, 02:30 AM   #17
Riaz Khan
Member
 
Registered: Apr 2012
Posts: 42

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled
please tell me how to patch mobiwan with ns2.33, and please provide me link for mobiwan compatible with ns-2.33
 
Old 04-20-2012, 08:54 AM   #18
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
The ns-233-mobiwan-1.patch
http://www.nicta.com.au/__data/asset...obiwan-1.patch

More info ( Please also read post # 25, etc.: Save a copy of your original ns as ns233-orig .)
http://www.linuxquestions.org/questi...2-33-a-856104/
And use LQ Search for the other "mobiwan threads".

Install, something like : ( It's a litle tricky, I think.)
( Ref. http://www.linuxquestions.org/questi...581/page2.html )
cd ns-allinone-2.33/ && mv ns-233/ ns-233-mobiwan
And : cd ns-233-mobiwan/ && patch -p1 < ns-233-mobiwan-1.patch
cd ../ && mv ns-2.33-mobiwan/ ns-2.33 && cd ns-2.33/ && ./configure && make
..... But better read all posts #20 ... #26.

.
 
Old 04-20-2012, 12:31 PM   #19
Riaz Khan
Member
 
Registered: Apr 2012
Posts: 42

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled
thanks alot...i am following your instructions..
now i am facing a problem again .. i think it is related to nam . whenever i am running a TCl script then it is giving me an error as shown below:

[root@riaz scripts]# ns 5nodes.tcl
can't read "EnableHierRt_": no such variable
(Object set line 1)
invoked from within
"Simulator set EnableHierRt_"
(procedure "_o10" line 10)
(Node attach line 10)
invoked from within
"$node attach $agent"
(procedure "_o3" line 2)
(Simulator attach-agent line 2)
invoked from within
"$ns attach-agent $n0 $udp0"
(file "5nodes.tcl" line 43)
[root@riaz scripts]#

i have run the same script without any error on another system.
please help

thanks in anticipation
 
Old 04-20-2012, 12:48 PM   #20
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
For non mobiwan tcl files, please use the original ns, that you saved.
Like : ./ns233-orig 5nodes.tcl

Suggest : copy both binaries to /usr/local/bin/ :
su
cp ns /usr/local/bin/
cp ns233-orig /usr/local/bin/
... Then you can do : ns233-orig file.tcl

.

Last edited by knudfl; 04-20-2012 at 12:51 PM.
 
Old 04-21-2012, 01:49 AM   #21
Riaz Khan
Member
 
Registered: Apr 2012
Posts: 42

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled
i am not getting it
i installed ns 2.33 again and now while running any TCL script it is again giving me same error as in post #19 above

please suggest me step by step please
thanks in anticipation

Last edited by Riaz Khan; 04-21-2012 at 03:07 AM.
 
Old 04-21-2012, 03:58 AM   #22
Riaz Khan
Member
 
Registered: Apr 2012
Posts: 42

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled
when i tried to patch mobiwan with ns-2.33 by writing the following commands it gave me an error while i run 'make'

1. patch -p1 < ns-233-mobiwan-1.patch
2. ./configure
3. make clean
4. make

after running 'make' it gave me error below:

[root@localhost ns-2.33]# make
g++ -c -Wall -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCL_H -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I. -I/home/afsha/programs/ns-allinone-2.33/tclcl-1.19 -I/home/afsha/programs/ns-allinone-2.33/otcl -I/home/afsha/programs/ns-allinone-2.33/include -I/home/afsha/programs/ns-allinone-2.33/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./mobiwan -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o tools/ranvar.o tools/ranvar.cc
tools/ranvar.cc: In member function ‘virtual double GammaRandomVariable::value()’:
tools/ranvar.cc:219:70: error: cannot call constructor ‘GammaRandomVariable::GammaRandomVariable’ directly [-fpermissive]
tools/ranvar.cc:219:70: error: for a function-style cast, remove the redundant ‘::GammaRandomVariable’ [-fpermissive]
make: *** [tools/ranvar.o] Error 1
[root@localhost ns-2.33]#

and after this even ns is not working and is not ruuning any script

please help
 
Old 04-21-2012, 12:36 PM   #23
Riaz Khan
Member
 
Registered: Apr 2012
Posts: 42

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled
helo sir,

whenever i run a tcl script it gives me an error :

[root@riaz new_project]# ns packetsend.tcl
can't read "EnableHierRt_": no such variable
(Object set line 1)
invoked from within
"Simulator set EnableHierRt_"
(procedure "_o10" line 10)
(Node attach line 10)
invoked from within
"$node attach $agent"
(procedure "_o3" line 2)
(Simulator attach-agent line 2)
invoked from within
"$ns_ attach-agent $n0 $udp0"
(file "packetsend.tcl" line 18)

please help me to resolve this
 
Old 04-28-2012, 01:33 PM   #24
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
#22
Quote:
2. ./configure
3. make clean
4. make
Add 2. :
Like the first run with the unpatched ns-2.33, you will have to use g++34 :
export CC=gcc34 CXX=g++34 && ./configure && make

Be aware that the resultant binary 'ns' will work only with mobiwan tcl files.
For all default tcl files : Use an 'ns' (ns233-orig) from an unpatched ns-2.33.

.
 
Old 04-29-2012, 04:26 AM   #25
Riaz Khan
Member
 
Registered: Apr 2012
Posts: 42

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled
hi knudfl...
post #18:
Code:
 The ns-233-mobiwan-1.patch
http://www.nicta.com.au/__data/asset...obiwan-1.patch

More info ( Please also read post # 25, etc.: Save a copy of your original ns as ns233-orig .)
http://www.linuxquestions.org/questi...2-33-a-856104/
And use LQ Search for the other "mobiwan threads".

Install, something like : ( It's a litle tricky, I think.)
( Ref. http://www.linuxquestions.org/questi...581/page2.html )
cd ns-allinone-2.33/ && mv ns-233/ ns-233-mobiwan
And : cd ns-233-mobiwan/ && patch -p1 < ns-233-mobiwan-1.patch
cd ../ && mv ns-2.33-mobiwan/ ns-2.33 && cd ns-2.33/ && ./configure && make
..... But better read all posts #20 ... #26.

it looks ok till we save unpatched 'ns' as ns233-orig but after that in next step when we go into 'ns-allinone-2.33' we do not found any file or directory named 'ns-2333' , there is one folder named 'ns-2.33' , so how can we complete the renaming step "mv ns-233/ ns-233-mobiwan" .

can you please tell me step by step so that i can understand the trick, you provided me the links but i couldnot get those as well.
please reply me , i am in great need of your help, i will wait for your reply. thanks
 
Old 05-02-2012, 09:01 AM   #26
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
#25.
Quote:
how can we complete the renaming step "mv ns-233/ ns-233-mobiwan" .
'mv' means rename.
( 'mv' can also be used to move a file or directory, when a destination is included.)

cd ns-allinone-2.33/.
Rename ns-2.33/ to ns-233-mobiwan .
Do the patching in ns-allinone-2.33/: patch -p0 < ns-233-mobiwan-1.patch ( Not p1 )!

Rename ns-233-mobiwan/ back to ns-2.33 .
Now you can continue with the install commands in ns-allinone-2.33/ns-2.33/ :

1. export CC=gcc34 CXX=g++34
2. ./configure
3. make clean
4. make

.
 
Old 05-03-2012, 04:44 AM   #27
Riaz Khan
Member
 
Registered: Apr 2012
Posts: 42

Original Poster
Blog Entries: 2

Rep: Reputation: Disabled
#26

thanks knudfl.., i installed it sucessfully. then i ran the simple-mipv6.tcl script it ran sucessfully but the nam window is not showing the desired topology. i made the changes for path/source that u mentioned in some other thread i.e. line 93---etc. i got the trace file and please tell me how to calculate throughput and end to end delay parameters by using awk. and please give me the link for awk script for calculating these factors..

i will wait for your reply...
 
Old 05-22-2012, 03:09 AM   #28
eyana
LQ Newbie
 
Registered: Jul 2011
Posts: 16

Rep: Reputation: Disabled
Hi!

I got a problem when trying to run simple-mipv6.tcl. The error occurred:

Quote:
invalid command name "Agent/MIPv6/MN"
while executing
"Agent/MIPv6/MN set bs_forwarding_ 0 "
(file "simple-mipv6.tcl" line 4)
Is it any problem having LTE patch and mobiwan patch at the same time in the same ns version?

Please help me.
 
Old 05-22-2012, 03:45 AM   #29
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
#28
Quote:
Is it any problem having LTE patch and mobiwan patch at the same time in the same ns version ?
Yes. Very few ns2 patches can live together.
Solution : Install two times ns-2.33.
The LTE patched ns-2.33 : Save a copy of the binary 'ns' as ns-lte.
The mobiwan patched ... : Save an ns copy as ns-mobiwan.

Then you can use each for the lte / mobiwan dedicated tcl files.

.

Last edited by knudfl; 05-22-2012 at 03:47 AM.
 
Old 10-10-2012, 02:09 PM   #30
yotta15
LQ Newbie
 
Registered: Mar 2012
Posts: 15

Rep: Reputation: Disabled
Hi knudfl,

Im facing the same error on post #23 when running a simple script (not mobiwan script) . I am using NS2.33 (patched with mobiwan) on ubuntu 10.10.
I followed the instructions that you wrot on post #5and #18.
These are steps that I did :

1. reinstall ns2.33 (without mobiwan patch)
2. Save a copy of the binary ns : cp ns233-orig /usr/local/bin/
3. cd ns-allinone-2.33/.
4. mv ns-2.33/ to ns-233-mobiwan
5. patch -p0 < ns-233-mobiwan-1.patch in ns-233-mobiwan folder
6. Rename ns-233-mobiwan/ back to ns-2.33
7. cd ns-2.33 && ./configure && make clean && make

After these instruction a new folder named ns-2.33-mobiwan is created in ns-2.3 and contains all .CC, .h and .tcl file .
Now When I run my simple script .. It works
When I try to run a mobiwan script such as simple-mipv6.tcl (which is located on /ns-allinone-2.33/ns-2.33/ns-2.33-mobiwan/tcl/mobiwan#) . I got the error like Post #28.

Can you help me plz
Is there a step that I missed ?

Best regards ,
 
  


Reply

Tags
fhmip, mobiwan, 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



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

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