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.
This source code is some part of Vector base forward(vbf.tcl) routing protocol, my question is what is different between node 0 and node 1?and why?
how we define sink node and mobile node and source node?
when I run this file the packet always goes to node 0 as it was defined as sink node,but where we should define as sink node?
regards.
#Set the Sink node
set node_(0) [ $ns_ node 0]
$node_(0) set sinkStatus_ 1
$god_ new_node $node_(0)
$node_(0) set X_ 500
$node_(0) set Y_ 0
$node_(0) set Z_ 0
$node_(0) set passive 1
set rt [$node_(0) set ragent_]
$rt set control_packet_size $opt(routing_control_packet_size)
set node_(1) [ $ns_ node 1]
$node_(1) set sinkStatus_ 1
$god_ new_node $node_(1)
$node_(1) set X_ 440
$node_(1) set Y_ 0
$node_(1) set Z_ 0
$node_(1) set passive 1
set rt [$node_(1) set ragent_]
$rt set control_packet_size $opt(routing_control_packet_size)
$node_(1) set max_speed $opt(maxspeed)
$node_(1) set min_speed $opt(minspeed)
$node_(1) set position_update_interval_ $opt(position_update_interval)
set a_(1) [new Agent/UWSink]
$ns_ attach-agent $node_(1) $a_(1)
$a_(1) attach-vectorbasedforward $opt(width)
$a_(1) cmd set-range $opt(range)
$a_(1) cmd set-target-x -30
$a_(1) cmd set-target-y -10
$a_(1) cmd set-target-z -20
$a_(1) cmd set-filename $opt(datafile)
$a_(1) cmd set-packetsize $opt(packet_size) ;# # of bytes
#$node_(1) move
hello
I want to do comparison between routing protocol performance with the defferents metric but i don't know how to draw a graph like below: can you suggest me a software to draw sth like this picture?
If you install the package then you have DBR and VBF and ... as a routing protocol. It doesn't need to write the codes your self.
Hi, i have installed aquasim-1.0. It do not contain DBR protocol. Will somebody suggest me the version of aquasim so that i can get codes of DBR protocol. Also the link from where i can get it.
What do you mean ?
[code]$ cd ns-2.30/ && grep -Rin dbr *
Sir, my uw_routing directory do not contain .cc and .hh file of DBR protocol.How can i get it. Also can you explain the command "cd ns-2.30/ && grep -Rin dbr *"
bash: /ns-allinone-2.30/otcl-1.12: No such file or directory
bash: /ns-allinone-2.30/lib: No such file or directory
bash: /usr/local/lib: Is a directory
bash: /ns-allinone-2.30/tcl8.4.18/library: No such file or directory
bash: /ns-allinone-2.30/bin:/home: No such file or directory
bash: 2.30/tk8.4.18/unix:/home: No such file or directory
bash: /ns-allinone-2.30/ns-2.30/: No such file or directory
bash: /ns-allinone-2.30/nam-1.13/: No such file or directory
But i can see all directories.Also i am not able to run underwater tcl scripts.But no problem with ns2.Can anyone help me. I am using Ubuntu 12.10.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
'# 38 .
Neither "/ns-allinone-2.30/" or "2.30/" are supposed to be present.
bash : I have no idea what you are doing. Did you enter a command ?
Aqua-sim : Your post #34 says : "I have installed aquasim-1.0."
The following shows how to install 'Aqua-Sim-1.0.tgz' to Ubuntu 12.10:
1) $ mkdir Aquasim
2) $ cd Aquasim/
3) $ tar xvf Aqua-Sim-1.0.tgz
4) $ export CC=gcc41 CXX=g++41 && ./install
5) $ cd ns-2.30/ ; $ ./ns : To test the new "ns aqua".
6) $ cp ns ns-aqua : Then you have a backup.
7) $ sudo cp ns-aqua /usr/local/bin/ : Then it's in a system PATH,
.... and you can do simulations with : $ ns-aqua file.tcl
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 36 .
Quote:
my uw_routing directory do not contain .cc and .h file for DBR protocol
? uw_routing directory ? Do you mean "underwatersensor/uw_tcl/" ?
Post #35 shows where "DBR" is added :
ns-2.30/{ dbr/dbr.cc, dbr/dbr.h, tcl/lib/ns-lib.tcl }.
( The folder dbr/ is unique for aquasim, isn't present in a default ns-2.30 ).
Remark : None of those files (or any other files.cc, files.h)
are used at simulation time. All .cc, .h, tcl/lib/<files.tcl>
functions are compiled into the executable 'ns'.
The following shows how to install 'Aqua-Sim-1.0.tgz' to Ubuntu 12.10:
1) $ mkdir Aquasim
2) $ cd Aquasim/
3) $ tar xvf Aqua-Sim-1.0.tgz
4) $ export CC=gcc41 CXX=g++41 && install
-
when i do 4th step ,i am getting like this
install: missing file operand
Try `install --help' for more information.
The following shows how to install 'Aqua-Sim-1.0.tgz' to Ubuntu 12.10:
1) $ mkdir Aquasim
2) $ cd Aquasim/
3) $ tar xvf Aqua-Sim-1.0.tgz
4) $ export CC=gcc41 CXX=g++41 && ./install
5) $ cd ns-2.30/ ; $ ./ns : To test the new "ns aqua".
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 43 .
A period ( . ) and ./ ( <period><slash> ) means the current directory.
./ns <Enter> means : Run the executable 'ns' in the directory "ns-2.30/".
So better take care that ns-2.30/ is your location : $ cd Aquasim/ns-2.30/
... And then check the location with the pwd command.
Example : $ pwd
The reply here is ( For the Aquasim ns-2.30 ) :
/home/knudfl/Aquasim/ns-2.30
./ns <Enter> means : Run the executable 'ns' in the directory "ns-2.30/".
So better take care that ns-2.30/ is your location : $ cd Aquasim/ns-2.30/
... And then check the location with the pwd command.
Example : $ pwd
The reply here is ( For the Aquasim ns-2.30 ) :
/home/knudfl/Aquasim/ns-2.30
-
Sir, i did it in the same way. But i got like this.
:~/Aquasim/ns-2.30$ ./ns
bash: ./ns: No such file or directory
See this also
:~/Aquasim/ns-2.30$ ls
adc dbr Makefile sctp
AllinOne delaybox Makefile.in sensor-nets
aodv diffserv makefile.vc sillyrouting
apps diffusion mcast src_rtg
asim diffusion3 mobile tcl
autoconf.h doc mpls tcp
autoconf.h.in dsdv nam test-all
autoconf-win32.h dsr nix test-output
BASE-VERSION empweb ns.1 TODO.html
baytcp emulate ns_tclsh.cc tools
bin FILES packmime tora
bitmap gaf pgm trace
CHANGES.html gen plm underwatersensor
classifier HOWTO-CONTRIBUTE pushback validate
common html qs validate-full
conf imep queue validate.out
config.guess indep-utils rap validate.win32
config.h install-sh README validate-wired
config.log INSTALL.WIN32 realaudio validate-wireless
config.status lib release_steps.txt VERSION
config.sub LICENSES routealgo webcache
configure link routing wpan
configure.in linkstate rtproto xcp
COPYRIGHTS mac satellite
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.