Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517
Rep:
# 42
A way to find out, how to do the simulation ... start with these commands:
cd ns-allinone-2.26/ns-2.26/drandTcl/
( Or whereever you have the drandTcl/ folder )
./ns-drand simple-wireless.tcl 2 wirelessOpt.tcl
And / or : ./ns-drand simple-wireless.tcl 3 wirelessOpt.tcl
( 'ns-drand' is a backup copy of ns from the DRAND patched ns-2.26 )
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517
Rep:
A better result with more nodes : A trace file with content.
$ ./ns-drand simple-wireless.tcl 12 wirelessOpt.tcl
$ ./ns-drand simple-wireless.tcl 20 wirelessOpt.tcl
.. So with more nodes you can get a result to analyze.
thanks @knudfl....but i am getting this..
....
..
root@priyanka-Aspire-5745:/usr/local/ns-allinone-2.26/ns-2.26/drandTcl# ./ns-drand simple-wireless.tcl 3 wirelessOpt.tcl
bash: ./ns-drand: No such file or directory
root@priyanka-Aspire-5745:/usr/local/ns-allinone-2.26/ns-2.26/drandTcl# ns simple-wireless.tcl 3 wirelessOpt.tcl
num_nodes is set 3
ns: Mac/802_11 set ether_hdr_len_: can't read "ether_hdr_len_": no such variable
(Object set line 1)
invoked from within
"Mac/802_11 set ether_hdr_len_"
after insatlling and then ./validate...its showing...
...........................................
Running test wireless1:
../../ns test-suite-WLtutorial.tcl wireless1 QUIET
num_nodes is set 3
ns: Mac/802_11 set ether_hdr_len_: can't read "ether_hdr_len_": no such variable
(Object set line 1)
invoked from within
"Mac/802_11 set ether_hdr_len_"
Test output differs from reference output
Diagnose with: diff test-output-WLtutorial/wireless1.test test-output-WLtutorial/wireless1
Or see URL "http://www.isi.edu/nsnam/ns/ns-problems.html".
Running test wireless2:
../../ns test-suite-WLtutorial.tcl wireless2 QUIET
num_nodes is set 4 ns: Mac/802_11 set ether_hdr_len_: can't read "ether_hdr_len_": no such variable
(Object set line 1)
invoked from within
"Mac/802_11 set ether_hdr_len_"
Test output differs from reference output
Diagnose with: diff test-output-WLtutorial/wireless2.test test-output-WLtutorial/wireless2
Or see URL "http://www.isi.edu/nsnam/ns/ns-problems.html".
Running test wireless3:
../../ns test-suite-WLtutorial.tcl wireless3 QUIET
num_nodes is set 3
ns: Mac/802_11 set ether_hdr_len_: can't read "ether_hdr_len_": no such variable
(Object set line 1)
invoked from within
"Mac/802_11 set ether_hdr_len_"
Test output differs from reference output
Diagnose with: diff test-output-WLtutorial/wireless3.test test-output-WLtutorial/wireless3
Or see URL "http://www.isi.edu/nsnam/ns/ns-problems.html". Some test failed.
validate overall report: some tests failed:
./test-all-wireless-gridkeeper ./test-all-wireless-lan-newnode ./test-all-wireless-lan-tora ./test-all-wireless-lan-aodv ./test-all-wireless-diffusion ./test-all-energy ./test-all-wireless-shadowing ./test-all-WLtutorial
to re-run a specific test, cd tcl/test; ../../ns test-all-TEST-NAME
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517
Rep:
# 48
See post #46 : 'ns-drand' is a backup copy of ns from the DRAND patched ns-2.26.
Just make a copy of the right 'ns' to /usr/local/ns-allinone-2.26/ns-2.26/drandTcl/
... then you can use ./ns simple-wireless.tcl 12 wirelessOpt.tcl
Note 1.
The reason for a special name for each version of 'ns' is for recognition.
When you have different versions of ns, the most easy way to avoid them
from getting mixed up, is to give the executables new names.
And one period ( . or ./ ) means 'the current directory'.
So when you see a ./ns, it means that is must be in the working directory,
in this case drandTcl/
( ns-something can also be a symlink to ns-allinone-2.26/ns-2.26/ns )
Note 2.
Do not use a low figure like 3 for the number of nodes.
2..3 : No result in "simple.tr". 12..20 or whatever : A usable "simple.tr" file.
again getting..
...
...
...
root@priyanka-Aspire-5745:/usr/local/ns-allinone-2.26/ns-2.26/drandTcl# ./ns-drand simple-wireless.tcl 12 wirelessOpt.tcl
num_nodes is set 12
ns: Mac/802_11 set ether_hdr_len_: can't read "ether_hdr_len_": no such variable
(Object set line 1)
invoked from within
"Mac/802_11 set ether_hdr_len_"....
,,,
#52...may be yes....because...for the....http://www4.ncsu.edu/~rhee/export/zm.../zmac/zmac.htm .......ns installation instructions had already been followed..moving to DRAND ....
so this is the source of this error????
again building drand only gives...
============================================================
* Build ns-2.26
============================================================
cd: 399: can't cd to ./ns-2.26
./install: 400: ./configure: not found
Ns configuration failed! Exiting ...
Please check http://www.isi.edu/nsnam/ns/ns-problems.html
for common problems and bug fixes.
..
..
root@priyanka-Aspire-5745:/usr/local/ns-allinone-2.26/ns-2.26 /drandTcl# ./ns-drand simple-wireless.tcl 15 wirelessOpt.tcl
num_nodes is set 15
warning: no class variable Agent/DRAND::randomSeed_
see tcl-object.tcl in tclcl for info about this warning.
warning: no class variable Agent/DRAND::randomSeed_
see tcl-object.tcl in tclcl for info about this warning.
warning: no class variable Agent/DRAND::randomSeed_
see tcl-object.tcl in tclcl for info about this warning.
warning: no class variable Agent/DRAND::randomSeed_
see tcl-object.tcl in tclcl for info about this warning.
warning: no class variable Agent/DRAND::randomSeed_
see tcl-object.tcl in tclcl for info about this warning.
warning: no class variable Agent/DRAND::randomSeed_
see tcl-object.tcl in tclcl for info about this warning.
warning: no class variable Agent/DRAND::randomSeed_
see tcl-object.tcl in tclcl for info about this warning.
warning: no class variable Agent/DRAND::randomSeed_
see tcl-object.tcl in tclcl for info about this warning.
warning: no class variable Agent/DRAND::randomSeed_
see tcl-object.tcl in tclcl for info about this warning.
warning: no class variable Agent/DRAND::randomSeed_
see tcl-object.tcl in tclcl for info about this warning.
warning: no class variable Agent/DRAND::randomSeed_
see tcl-object.tcl in tclcl for info about this warning.
warning: no class variable Agent/DRAND::randomSeed_
see tcl-object.tcl in tclcl for info about this warning.
warning: no class variable Agent/DRAND::randomSeed_
see tcl-object.tcl in tclcl for info about this warning.
warning: no class variable Agent/DRAND::randomSeed_
see tcl-object.tcl in tclcl for info about this warning.
warning: no class variable Agent/DRAND::randomSeed_
see tcl-object.tcl in tclcl for info about this warning.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517
Rep:
Don't know what's happening.
The instruction are quite clear. DRAND Ubuntu 10.10 summary :
tar xvf ns-allinone-2.26.tar.gz && patch -p0 < ns-2.26-gcc410.patch
cd ns-allinone-2.26/ns-2.26/ && tar xvf drandNS2.tar.gz
Then copy ( cp -a <file> <destination> ) the new files
ns-packet.tcl packet.h mac-802_11.cc cmu-trace.cc to their destinations.
And the new Makefile.in : cp -a drand-Makefile.in.txt Makefile.in
cd ../ && export CC=gcc41 CXX=g++41 && ./install
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.