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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
04-19-2012, 11:14 PM
|
#16
|
|
LQ Newbie
Registered: Apr 2012
Posts: 19
Original Poster
Rep: 
|
nam worked well and xgraph as well..now tell me how can i patch mobiwan with ns-2.33.
Thanks for your support
|
|
|
|
04-20-2012, 02:30 AM
|
#17
|
|
LQ Newbie
Registered: Apr 2012
Posts: 19
Original Poster
Rep: 
|
please tell me how to patch mobiwan with ns2.33, and please provide me link for mobiwan compatible with ns-2.33
|
|
|
|
04-20-2012, 08:54 AM
|
#18
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,586
|
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.
.
|
|
|
|
04-20-2012, 12:31 PM
|
#19
|
|
LQ Newbie
Registered: Apr 2012
Posts: 19
Original Poster
Rep: 
|
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
|
|
|
|
04-20-2012, 12:48 PM
|
#20
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,586
|
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.
|
|
|
|
04-21-2012, 01:49 AM
|
#21
|
|
LQ Newbie
Registered: Apr 2012
Posts: 19
Original Poster
Rep: 
|
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.
|
|
|
|
04-21-2012, 03:58 AM
|
#22
|
|
LQ Newbie
Registered: Apr 2012
Posts: 19
Original Poster
Rep: 
|
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
|
|
|
|
04-21-2012, 12:36 PM
|
#23
|
|
LQ Newbie
Registered: Apr 2012
Posts: 19
Original Poster
Rep: 
|
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
|
|
|
|
04-28-2012, 01:33 PM
|
#24
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,586
|
#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.
.
|
|
|
|
04-29-2012, 04:26 AM
|
#25
|
|
LQ Newbie
Registered: Apr 2012
Posts: 19
Original Poster
Rep: 
|
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
|
|
|
|
05-02-2012, 09:01 AM
|
#26
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,586
|
#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
.
|
|
|
|
05-03-2012, 04:44 AM
|
#27
|
|
LQ Newbie
Registered: Apr 2012
Posts: 19
Original Poster
Rep: 
|
#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...
|
|
|
|
05-22-2012, 03:09 AM
|
#28
|
|
LQ Newbie
Registered: Jul 2011
Posts: 16
Rep: 
|
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.
|
|
|
|
05-22-2012, 03:45 AM
|
#29
|
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2012.8, Slack1337 DebSqueeze, +50+ other Linux OS, for test only.
Posts: 11,586
|
#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.
|
|
|
|
10-10-2012, 02:09 PM
|
#30
|
|
LQ Newbie
Registered: Mar 2012
Posts: 15
Rep: 
|
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 ,
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 04:56 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|