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.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517
Rep:
# 29
Quote:
ref c) i untar the ns-allinone-2.33_ZRP.tar.gz inside ns-allinone-2.33 folder.
That's the error.
a) cd ns-allinone-2.33/ && patch -p1 < PatchZRP.patch
Your location is ns-allinone-2.33/ ; then we "go outside" with ../ !
c) cd ../ && tar xvf ns-allinone-2.33_ZRP.tar.gz
See post # 27 :
"did you untar ns-allinone-2.33_ZRP.tar.gz in the folder with ns-allinone-2.33?"
The folder that is containing ns-allinone-2.33/. Not inside ns-allinone-2.33/!
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".
..
sir i run this step and its successfully work.
thank you so much for your help sir.
can you explain me, what is touch example.scen and example.traffic for?
when we create a new file, is the example.scen and example.traffic should be the different name?
thank you
Some of the commands in ns2 tcl files are basic tcl commands.
And some commands / words are special ns2 definitions.
( I am not a coder, and do not write tcl files.)
Some of the commands in ns2 tcl files are basic tcl commands.
And some commands / words are special ns2 definitions.
( I am not a coder, and do not write tcl files.)
.
okay sir,
Thank you so much for your help Sir
i can start doing my tcl file right now
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,517
Rep:
Post #37, @ truongvutgg : Welcome to LQ.
Windows XP ? Would that be Cygwin ? ?
Syntax error : Probably a shell issue ? Not a genuine bash / Linux shell ?
Anyway it doesn't matter so far concerns the "patchZRP.sh" script.
The script is no good. Please read post # 6.
Originally Posted by knudf
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.
at second step ,
how to touch ns-2.33/common/packet.h && touch ns-2.33/trace/cmu-trace.h
I'm unable to do this step. Is is to do manually? If so, how to do ?
Please guide me in detail.
It is important for me!!!
Please help me ,sir
hi sir.
Now I'm ok to patch ZRP in ns2.33 successfully!
But I can't run .tcl file.
I downlaod example-zrp.tcl form your post #13 and put this file to ns-allinoe-2.33>> ns-2.33>>tcl>>ex.
And then , I do as follow,
khinmyo@ubuntu:~/ns-allinone-2.33/ns-2.33/tcl/ex$ ns example-zrp.tcl
invalid command name "Agent/ZRP"
while executing
"Agent/ZRP set radius_ 2 "
(file "example-zrp.tcl" line 68)
khinmyo@ubuntu:~/ns-allinone-2.33/ns-2.33/tcl/ex$
[COLOR="Red"][/COLOR
So, how can I solve this problem.Please Help Me,Sir!
Your instructions are very useful to me!
Yeah, sir
I already do as your instruciton. But I have this error again!
Please help me,sir!
khinmyo@ubuntu:~/ns-allinone-2.33/ns-2.33/tcl/ex$ ns-zrp example-zrp.tcl
num_nodes is set 20
warning: Please use -channel as shown in tcl/ex/wireless-mitf.tcl
INITIALIZE THE LIST xListHead
Loading connection pattern...
couldn't read file "example.scen": no such file or directory
while executing
"source.orig example.scen"
("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 $val(cp)"
(file "example-zrp.tcl" line 198)
khinmyo@ubuntu:~/ns-allinone-2.33/ns-2.33/tcl/ex$
i has try to do zrp patch in ns-2.33 as per your step it will show me this
is this completely install???
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/vishal/ns-allinone-2.33/ns-2.33/indep-utils/cmu-scen-gen/setdest'
make[1]: Entering directory `/home/vishal/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/dec'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/vishal/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/dec'
make[1]: Entering directory `/home/vishal/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/epa'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/vishal/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/epa'
make[1]: Entering directory `/home/vishal/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/nlanr'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/vishal/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/nlanr'
make[1]: Entering directory `/home/vishal/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/ucb'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/vishal/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/ucb'
make: Target `all' not remade because of errors.
then i had try to run your program
then it will show me below error
invalid command name "Agent/ZRP"
while executing
"Agent/ZRP set radius_ 2 "
(file "example-zrp.tcl.txt" line 68)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.