How to install ZRP (Zone routing protocol) patch in ns-2.34
UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
Dear Mr.knudfl, are these the following results ensure that ZRP was installed and worked without any problem after run the command (ns example-zrp.tcl.txt)
khalid@khalid-linux:~$ cd ns-allinone-2.33/ns-2.33/
khalid@khalid-linux:~/ns-allinone-2.33/ns-2.33$ sudo make install
for d in /usr/local/man/man1; do \
if [ ! -d $d ]; then \
mkdir -p $d ;\
fi;\
done
/usr/bin/install -c -m 755 ns /usr/local/bin
/usr/bin/install -c -m 644 ns.1 /usr/local/man/man1
khalid@khalid-linux:~/ns-allinone-2.33/ns-2.33$ ns example-zrp.tcl.txt
num_nodes is set 20
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Loading connection pattern...
Loading traffic file
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
NS EXITING...
khalid@khalid-linux:~/ns-allinone-2.33/ns-2.33$
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 92 .
The usual : Please read the zrp threads with your posts.
Post #2 http://www.linuxquestions.org/questi...-4175425967/#2
... where there is a link to nam-1.14.i586.tar.gz
Unpack, and : cd nam-1.14*/ && sudo cp nam /usr/local/bin/
And the corrupt 'nam' that you created, must be deleted.
Dear Mr.knudfl, are these the following results ensure that ZRP was installed and worked without any problem after run the command (ns example-zrp.tcl.txt)
khalid@khalid-linux:~$ cd ns-allinone-2.33/ns-2.33/
khalid@khalid-linux:~/ns-allinone-2.33/ns-2.33$ sudo make install
for d in /usr/local/man/man1; do \
if [ ! -d $d ]; then \
mkdir -p $d ;\
fi;\
done
/usr/bin/install -c -m 755 ns /usr/local/bin
/usr/bin/install -c -m 644 ns.1 /usr/local/man/man1
khalid@khalid-linux:~/ns-allinone-2.33/ns-2.33$ ns example-zrp.tcl.txt
num_nodes is set 20
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Loading connection pattern...
Loading traffic file
Starting Simulation...
channel.cc:sendUp - Calc highestAntennaZ_ and distCST_
highestAntennaZ_ = 1.5, distCST_ = 550.0
SORTING LISTS ...DONE!
NS EXITING...
khalid@khalid-linux:~/ns-allinone-2.33/ns-2.33$
Dear Mr.knudfl, I was executed the attached example with no error, but I want to simulate ZRP when AODV or DSR or DSDV is there?
is the example used any of the existing protocols (such as AODV and DSDV)?
since this protocol is hybrid, which reactive and proactive protocol are used?
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 96, @alwaleed : Tcl files are text : You can easily read what's about.
Finding AODV DSR DSDV in your tcl files :
$ cd ns-allinone-2.33/ns-2.33/tcl/
$ grep -Rni aodv *
$ grep -Rni dsr *
$ grep -Rni dsdv *
.. And you will get line numbers / file names for all AODV DSR DSDV content.
No tcl files with ZRP and any AODV / DSR / DSDV.
If it is possible at all to get the result you want,
you will have to write a file.tcl yourself.
( And I have no knowledge about the subject.)
-
set val(chan) Channel/WirelessChannel ;#Channel Type
set val(prop) Propagation/TwoRayGround ;# radio-propagationmodel
set val(netif) Phy/WirelessPhy ;# network interface type
set val(mac) Mac/802_11 ;# MAC type
set val(ifq) Queue/DropTail/PriQueue ;# interface queue type
set val(ll) LL ;# link layer type
set val(ant) Antenna/OmniAntenna ;# antenna model
set val(ifqlen) 500 ;# max packet in ifq
set val(nn) 10 ;# number of mobilenodes
set val(rp) ZRP ;# Routing protocol
set val(x) 1100
set val(y) 1100
Agent/ZRP set radius_ 2 ;# Setting ZRP radius=2
Thank you so much Mr.knudfl, excuse me I want to ask you when can I put the AODV or DSR or DSDV code in the tcl file in order to make comparative between them and ZRP.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
# 103 .
The known work is mostly about "compare aodv, dsr, dsdv".
I guess you will have to study that carefully.
And read all the examples, and then experiment adding zrp to an example
<aodv>.tcl or <dsr>.tcl or <dsdv>.tcl or <aomdv>.tcl .
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.