ns-2.33
helo,
i want to know that can i install ns-2.33 on fedora 14. i tried it but when i run ./install yhen it gives me an error "make failed". actually i am doing my work on MOBILITY SUPPORTING SCHEMES (MIPV6, HMIPV6, FHMIPV6, FHMIPV6 AND PMIPV6) and for these techniques i need to install MOBIWAN patch. i found that patch but that is for ns-2.33. please suggest me which ns2 version i have to use in order to simulate these techniques and suggest me all the dependencies for these techniques..... thanks in anticipation |
Welcome to LQ. .. :) ..
Fedora : # yum install \ gcc-c++ compat-gcc-34-c++ automake autoconf libtool libX11-devel \ libXext-devel libXau-devel libXmu-devel xorg-x11-proto-devel cd ns-allinone-2.33/ && export CC=gcc34 CXX=g++34 && ./install Mobiwan : LQ Search >>> Keyword = mobiwan Good luck ! . |
thank u sir ...i did whatever u said but after setting the paths and environmental variable as below:
PATH=/home/riaz/new_project/ns-allinone-2.33/bin:/home/riaz/new_project/ns-allinone-2.33/tcl8.4.18/unix:/home/riaz/new_project/ns-allinone-2.33/tk8.4.18/unix LD_LIBRARY_PATH=/home/riaz/new_project/ns-allinone-2.33/otcl-1.13,/home/riaz/new_project/ns-allinone-2.33/lib, export LD_LIBRARY_PATH=/home/riaz/new_project/ns-allinone-2.33/otcl-1.13,/home/riaz/new_project/ns-allinone-2.33/lib, TCL_LIBRARY=/home/riaz/new_project/ns-allinone-2.33/tcl8.4.18/library then i typed cd ns-2.33 and ./validate it showed an error : All test output agrees with reference output. ./validate: line 114: date: command not found ./validate: line 115: sleep: command not found ./validate: line 112: date: command not found *** ./test-all-wireless-tdma ./test-all-template1: line 45: awk: command not found Tests: All test output agrees with reference output. ./validate: line 114: date: command not found ./validate: line 115: sleep: command not found ./validate: line 112: date: command not found *** ./test-all-satellite ./test-all-template1: line 45: awk: command not found Tests: All test output agrees with reference output. ./validate: line 114: date: command not found ./validate: line 115: sleep: command not found These messages are NOT errors and can be ignored: warning: using backward compatibility mode This test is not implemented in backward compatibility mode validate overall report: some portable tests failed: ./test-all-xcp to re-run a specific test, cd tcl/test; ./test-all-TEST-NAME [riaz@riaz ns-2.33]$ please suggest me now what to do.... thanx in anticipation |
Looks like some system packages were removed from your OS ?
# yum install coreutils gawk If the installed system commands somehow were corrupted or deleted otherwise than with a package uninstall : # yum reinstall coreutils gawk |
Quote:
Probably no reason to run ./validate again, or other tests. |
ok,,,,if it is installed correctly but it did not install xgraph. it showed an error for xgraph : "no such directory is found"
tell me how to install it seperately. another problem is i want to patch mobiwan with ns-2.33. i put the patch in the ns-allinone-2.33 directory and went to the same path and run the command : "patch -p1 < ns-233-mobiwan-1" but it also gave an error : [riaz@riaz ns-2.33]$ cd /home/riaz/new_project/ns-allinone-2.33 [riaz@riaz ns-allinone-2.33]$ "patch -p1 < ns-233-mobiwan-1" Command not found. Install package 'patch' to provide command 'patch'? [N/y] * Running.. The transaction failed: all-packages-already-installed, The packages are already all installed please tell me how to patch mobiwan and how to check wheter ns-2.33 installed correctly |
# 6
Patch : # yum install patch .. And may be read here about a new text in /etc/yum.repos.d/fedora.repo http://www.linuxquestions.org/questi...rror-940221/#5 > post #5 Xgraph : post # 7 in the above link. . |
thanks for your reply,,,,, i followed the links you mentioned above but still unable to patch mobiwan with ns-2.33 and could not install the xgraph as well. can you please write the whole method here. also tell me how to uninstall the other installed version of ns2 from the system. its my request please tell me how to patch mobiwan.....thanks in anticipation
|
i run the code below in my ROOT
Code: [fedora14] name=Fedora14-i386 baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/releases/14/Everything/i386/os/ enabled=1 gpgcheck=1 [fc14-updates] name=Fedora14-updates-i386 baseurl=http://archives.fedoraproject.org/pub/archive/fedora/linux/updates/14/i386/ enabled=1 gpgcheck=1 tell me what it does |
# 9.
The commands to edit "fedora.repo" : 1) su - ..... I.e. : su <space> <hyphen> 2) cd /etc/yum.repos.d/ 3) mkdir backup 4) mv fedora-updates.repo backup/ 5) mv fedora-updates-testing.repo backup/ 6) gedit fedora.repo ... And then replace all the text with the "new repo text". ( The "Code" you show in post # 9.) . |
thanks for your reply.
Now please tel me how to uninstall the already installed version of ns2. Also guide me to install xgraph and to patch mobiwan with ns2.33 thanks again for your support |
#11
Quote:
installed at the same time. But do not any of them to a *PATH. The only thing to delete : any entries you made to the hidden file /home/<name>/.bashrc An unwanted version of ns-allinone-2.xx/ : There is no uninstall. Just delete the folder. . |
thanks
now how can i install xgraph seperatly, i followed the link you provided ,downloaded it along with debian...patch but then couldnot understand where to keep these files and where to run which command. also ns-2.32 was already installed on my system and now i have installed ns-2.33 . now how can i come to know that the terminal i am using is of the ns-2.33 or ns-2.32. please help |
nam is also not working
|
|
nam worked well and xgraph as well..now tell me how can i patch mobiwan with ns-2.33.
Thanks for your support |
please tell me how to patch mobiwan with ns2.33, and please provide me link for mobiwan compatible with ns-2.33
|
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. . |
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 |
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 . |
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 |
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 |
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 |
#22
Quote:
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. . |
hi knudfl...
post #18: Code:
The ns-233-mobiwan-1.patch 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 |
#25.
Quote:
( '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 . |
#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... |
Hi!
I got a problem when trying to run simple-mipv6.tcl. The error occurred: Quote:
Please help me. |
#28
Quote:
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. . |
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 :D 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 , |
Post #30, @yotta15 : Ubuntu 10.10
The correct procedure is in post #26. So it is not "patch -p1 < .." but p0. And in "ns-allinone-2.33/", please. Not ns-2.33*. After renaming back to "ns-2.33" you will have : ns-allinone-2.33/ns-2.33/mobiwan/. And can rebuild ns-2.33/ with : export CC=gcc41 CXX=g++41 && ./configure && make clean && make $ ns233-mobiwan simple-mipv6.tcl : Works perfectly. There is a binary package for Ubuntu 10.10 now : mobiwan-ns-2.33-u1010_i386.deb https://docs.google.com/open?id=0B7S...VdJaVBLdlhqZW8 .. Provides /usr/local/bin/ ns233-orig ns233-mobiwan ( The libraries etc. for the binaries are in /usr/local/lib/mobiwan/** ). Install : sudo dpkg -i mobiwan-ns-2.33-u1010_i386.deb P.S. : gcc41 / g++41, please see post # 17 here .. http://www.linuxquestions.org/questi...571/page2.html . |
hello...
i wanna ask... can i use "ns-233-mobiwan-1.patch" for simulate pmipv6 and fmipv6 network? or it can simulate mipv6 only? thank you~ |
# 32 .
Quote:
http://tagus.inesc-id.pt/~pestrela/ns2/mobility.html > http://tagus.inesc-id.pt/~pestrela/n...fhmip.patch.gz You can have as many versions of ns-allinone-2.xx as you want, installed at the same time. But do not add anything to .bashrc, .bashprofile. Random example : Installing two times ns-2.33, ns-2.31, ns-2.34 etc. etc. is no problem. - |
Quote:
is this mean that i cannot make a simulation that run both of mip and LTE simultaneously at one tcl script? |
# 34 .
Quote:
I.e. LTE will make changes to some files : Please read the script 'checkin'. The unknown <mip>, be it ns-2.33-mobiwan-an-110617.patch, ns2.31_fhmip.patch.gz or <??.patch> may then undo those changes, or make conflicting changes. If you have succeeded an install with combined patches, you may also be able to run some combined simulations. - |
i try to install mip using ns-233-mobiwan-1.patch
i already follow the step from post #26 but i still got this error messege when try to run simple3_mipv6.tcl invalid command name "Agent/MIPv6/MN" while executing "Agent/MIPv6/MN set bs_forwarding_ 0 " (file "simple3_mipv6.tcl" line 4) can anyone help me how to fix it? :( oh and when i tried to do make clean and then make again this error messege appear trace/trace.cc: In static member function "static int Trace::get_seqno(Packet*)': trace/trace.cc:201: error: 'PT_BU' was not declared in this scope trace/trace.cc:201: error: 'PT_BU_HA' was not declared in this scope trace/trace.cc:201: error: 'PT_BU_CN' was not declared in this scope trace/trace.cc:202: error: 'PT_BU_BS' was not declared in this scope trace/trace.cc:202: error: 'PT_BACK' was not declared in this scope trace/trace.cc:202: error: 'PT_BREQ' was not declared in this scope trace/trace.cc:202: error: 'PT_RADS' was not declared in this scope make: *** [trace/trace.o] Error 1 i don't really understand it's meaning... what should i do? |
# 36 .
Which OS are you using ? : 1) $ cat /etc/*release* <Enter> 2) uname -m <Enter> "simple3_mipv6.tcl" : Unknown file. Please attach as simple3_mipv6.tcl.txt : Attachments : The paper clip tool in the 'Advanced Editor'. The install command for {ns-2.33 / ns-233-mobiwan-1.patch} is like : $ cd ns-allinone-2.33/ns-2.33/ && patch -p1 < ns-233-mobiwan-1.patch $ cd ../ && export CC=gcc41 CXX=g++41 && ./install - |
1 Attachment(s)
.#37
1.) cat: /etc/release: no such file or directory 2.) i686 but in post #31 you said it was p0 not p1 so which one is right? patch p1 or patch p0? i follow the istalation step from post #26 but it's from ns-2.33-allinone not from ns-2.33 i just don't get it... |
# 38 .
Sorry, it's : $ cat /etc/*release* <Enter> ! And : Please answer the question : Which OS are you using ? Name and version, please. $ patch -p0 $ patch -p1 ... It's just two different commands for the two location choices : ns-allinone-2.33/ or ns-allinone-2.33/ns-2.33/ : Both work OK. - |
oooh sorry... XD
it's ubuntu 11.04 natty i've tried both of them patch p0 on ns-2.33-allinone and p1 on ns-2.33 but still get this error messege invalid command name "Agent/MIPv6/MN" while executing "Agent/MIPv6/MN set bs_forwarding_ 0 " (file "simple3_mipv6.tcl" line 4) |
# 10 : Ubuntu 11.04 ...
Installed in one of the right ways : No errors, simple3_mipv6.tcl. tar xvf ns-allinone-2.33.tar.gz ; cd ns-allinone-2.33/ns-2.33/ ; patch -p1 < ns-233-mobiwan-1.patch ; cd ../ ; export CC=gcc41 CXX=g++41 && ./install For an existing ns-2.33 : cd ns-allinone-2.33/ns-2.33/ ; patch -p1 < ns-233-mobiwan-1.patch ; make clean ; export CC=gcc41 CXX=g++41 && ./configure ; make ; cp ns ns-mobiwan ( To have a backup, and to be sure the right ns is used.) $ ./ns-mobiwan simple3_mipv6.tcl : Works perfectly, and nam opens. The compilers gcc41, g++41 : Post #31. You can also install the package mobiwan-ns-2.33-u1010_i386.deb (6MB): Post #31. Providing /usr/local/bin/ ns233-mobiwan ns-orig .. To do $ ns233-mobiwan simple3_mipv6.tcl : Also perfect. - |
when i'm using ./ns-mobiwan simple3_mipv6.tcl
i got this error messege ns: [code omitted because of length] : invalid command name "Queue/LTEQueue" while executing "Queue/LTEQueue set drop_front_ 0" but when i'm using ns simple3_mipv6.tcl i got this error messege invalid command name "Agent/MIPv6/MN" while executing "Agent/MIPv6/MN set bs_forwarding_ 0 " (file "simple3_mipv6.tcl" line 4) is there something wrong with my ns? :( |
# 42 .
Quote:
Quote:
An LTE patched ns-2.33 will not work together with the mobiwan patch. Testing "simple3_mipv6.tcl" : Install "mobiwan-ns-2.33-u1010_i386.deb", ... and type : $ ns233-mobiwan simple3_mipv6.tcl - |
and now... i get this error messege...
couldn't read file "/home/c11/Desktop//ns-allinone-2.33/ns-2.33/tcl/lib/proc-mipv6-config.tcl": no such file or directory while executing "source.orig /home/c11/Desktop//ns-allinone-2.33/ns-2.33/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 /home/c11/Desktop//ns-allinone-2.33/ns-2.33/tcl/lib/proc-mipv6-config.tcl" (procedure "main" line 6) invoked from within "main" (file "simple3_mipv6.tcl" line 191) |
# 44 .
Please read "simple3_mipv6.tcl" : It's a text file. Line 105 : # set BASEDIR to your own correct path I.e. edit lines 106 .. 112 to the actual path. Example, when you have ns-allinone-2.33/ns-2.33/simple3_mipv6.tcl : Code:
105 # set BASEDIR to your own correct path |
it works now... thank you very much for your help... :D
eh but... they have different binary... i want to make simulation about LTE WLAN handover using MIPv6 is this mean i cannot run this simulation? because it's need both LTE and mobiwan... |
# 46 .
It should be possible to add the two patches. First LTE. And secondly mobiwan. But the problem is to create a tcl file that can use the result. ( If at all possible.) You may be the first one to make such a file. So unfortunately you are quite on your own. - |
All times are GMT -5. The time now is 09:18 PM. |