How to install ZRP (Zone routing protocol) patch in ns-2.34
UbuntuThis forum is for the discussion of Ubuntu Linux.
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.
Thank you for your reply.I read that manual, but when i install it i get error after writing the command
administrator@ubuntu:~/ns2/ns-allinone-2.34/zrp$ patch -p1 <patchmyZRP.sh && ./configure && make
bash: patchmyZRP.sh: No such file or directory
and if i run it from root i get error
root@ubuntu:~# patch -p1 <patchmyZRP.sh && ./configure && make
-bash: patchmyZRP.sh: No such file or directory
root@ubuntu:/home/administrator/ns2/ns-allinone-2.34/zrp# patch <patchmyZRP.sh && ./configure && make
patch: **** Only garbage was found in the patch input.
It is assumed, that you have a working ns-allinone-2.33,
i.e. the './install' command was run with no errors.
""Section 3.2 Instructions :
1. First put following files into NS-2 home's parent directory:
* ns-allinone-2.33_ZRP.tar.gz (This contains my code)
* patchmyZRP.sh (THIS SHELL-SCRIPT FILE -
This script file should be run from NS-2 home' parent directory)
2. Run patchZRP.sh from shell."" ( Like 'sh patchZRP.sh' ).
But the script patchZRP.sh isn't working, easier to do manually :
a) cd ns-allinone-2.33/ && patch -p1 < PatchZRP.patch
b) touch ns-2.33/common/packet.h && touch ns-2.33/trace/cmu-trace.h
c) cd ../ && tar xvf ns-allinone-2.33_ZRP.tar.gz
d) cd ns-allinone-2.33/ns-2.33 && make -k
... Tested this morning on Ubuntu 10.10, 32bits : OK.
Thank for such useful information. i have install the ns-2.33 and also the zrp patch. but when i run the example which i attach it give me this error "ns: Agent/ZRP set radius_: can't read "radius_": no such variable
(Object set line 1)
invoked from within
"Agent/ZRP set radius_"
Your file : Added to line 68 : Agent/ZRP set radius_ 2 ;
And a couple more edits ( See for yourself )
and the file seems to be usable ? :
1) touch example.scen ( Will create an empty file 'example.scen'.)
2) touch example.traffic
( May be you have those 2 files ? )
3) ns example-zrp.tcl.txt : Will create pktdemo.tr, pktdemo.nam.
4) nam pktdemo.nam ; Click the 'Play button' : Will display "something".
Thank you it runs. i delete the line 51 and add this line (Agent/ZRP set radius_ 2 ;# Setting ZRP radius=2)after line 81.
and also delete these line if u do not have these lines ( #set val(cp) "example.scen" ...#set val(trfile) "example.traffic") and also their source.
but one problem in the trace file their is no zrp is showing instead AOMDV and cbr traffic is generating.
i also install ZRP in ns-allinone-2.34 successfully according to above instruction in post#6 but i did not follow write the command which is in step a; i copy it by myself in every file.