LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   How to install ZRP (Zone routing protocol) patch in ns-2.34 (https://www.linuxquestions.org/questions/ubuntu-63/how-to-install-zrp-zone-routing-protocol-patch-in-ns-2-34-a-905025/)

shruti0753 03-17-2015 02:21 AM

Hello
I have simulated zrp protocol for manet scenario.Now I need implement the same in vanet scenario. Please give me the zrp patch for Vanet scenario. Please help me, i need this for my project.(For ns 2.33)

shruti0753 03-18-2015 02:29 AM

plz reply me soon ....

imran01775 07-10-2015 05:12 PM

i have got this error during install zrp patch on ubuntu 12.04


#################
make[1]: Leaving directory `/home/imran/dir2/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/ucb'
make: Target `all' not remade because of errors.
for d in /usr/local/man/man1; do \
if [ ! -d $d ]; then \
mkdir -p $d ;\
fi;\
done
mkdir: cannot create directory `/usr/local/man/man1': Permission denied
make: *** [dirs] Error 1
###########
plz suggest me any solution to recover it

knudfl 07-10-2015 05:50 PM

Post #213, @mran01775 : Welcome to LQ.

You are showing some incomplete sequence.
Commands etc. are missing. And you (may) have a surplus 'make' command.

HOWTO ZRP + ns-2.33 , build example, the 32bits Ubuntu 12.04 :
a) $ tar xvf ns-allinone-2.33.tar.gz
b) $ cd ns-allinone-2.33/
c) $ patch -p0 < zrp-diff2014_ns233.patch
https://drive.google.com/file/d/0B7S...it?usp=sharing
d) $ patch -p0 < otcl_ns234_gcc-4.4.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
e) $ export CC=gcc-4.4 CXX=g++-4.4 && ./install
f) $ cd ns-2.33/
g) $ cp ns ns-zrp
h) $ sudo cp ns-zrp /usr/local/bin/
..... Then you can do $ ns-zrp zrp-Demo1-1.tcl
... etc. etc. from zrp-examples-2012.tar.bz2
https://drive.google.com/file/d/0B7S...it?usp=sharing
-------------------------------------------

Ns-2.35 + zrp : zrp-ns235.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing

(Old) ZRP info http://www.linuxquestions.org/questions/tags/zrp/

-

imran017751 08-07-2015 12:49 PM

firstly, i install ns2.33 then i run patchmyzrp.sh .it show the following command
""""
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/dir2/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/epa'
make[1]: Entering directory `/root/dir2/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/nlanr'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/dir2/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/nlanr'
make[1]: Entering directory `/root/dir2/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/ucb'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/root/dir2/ns-allinone-2.33/ns-2.33/indep-utils/webtrace-conv/ucb'
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
=====================================
ZRP Patching ended @ 13:31:48
"""""""""
i'm confuse my patch install or not

secondly,
then i again install ns2 following this command : sudo ./install
then it show this error
""""""""
trace/cmu-trace.o: In function `hdr_zrp::access(Packet const*)':
cmu-trace.cc:(.text._ZN7hdr_zrp6accessEPK6Packet[hdr_zrp::access(Packet const*)]+0x7): undefined reference to `hdr_zrp::offset_'
collect2: ld returned 1 exit status
make: *** [ns] Error 1
Ns make failed!

""""""""""""""
give me complete solution in details....plz

knudfl 08-07-2015 09:12 PM

Re #215.
Quote:

secondly,
then I again install ns2 following this command : sudo ./install
! The build command is 'export CC=gcc-4.4 CXX=g++-4.4 && ./install' !


You are not supposed to do 'make install'.
No need for 'ns'. Use 'ns-zrp' instead.
* Read post #214 :
f) $ cd ns-2.33/
g) $ cp ns ns-zrp
h) $ sudo cp ns-zrp /usr/local/bin/
Then you can do $ ns-zrp zrp-Demo1-1.tcl

-

mohidul 08-09-2015 05:16 AM

i am using #post 214 process to install zrp patch but i have found some problem when i am trying to install patch. please help me with complete solution


root@ubuntu:~/dir1/ns-allinone-2.33# patch -p0 < zrp-diff2014_ns233.patch
patching file ns-2.33/common/packet.h
Reversed (or previously applied) patch detected! Assume -R? [n] -R
Apply anyway? [n] y
Hunk #1 FAILED at 67.
Hunk #2 FAILED at 180.
Hunk #3 FAILED at 303.
3 out of 3 hunks FAILED -- saving rejects to file ns-2.33/common/packet.h.rej
patching file ns-2.33/Makefile.in
Reversed (or previously applied) patch detected! Assume -R? [n]

knudfl 08-09-2015 07:18 AM

Re #217.
Quote:

Reversed (or previously applied) patch detected! Assume -R? [n] -R
Happens (only) when the patch is applied more than one time.

May be you should start from scratch ...
And : /root/ is not supposed to be used for anything.
Running as root is unsafe. 'root' is for administrative tasks only.

Please log in as unprivileged user, and use /home/<name>/<dir>/
... to unpack a new ns-allinone-2.33.tar.gz


-

Darddy 01-06-2016 06:15 AM

how to install zrp patch on ns2.33
 
sir, i followed your instructions from post #5, and i install ns2.33 successfully.
but i could not install the patch. the second file you said to download and put in to the home directory is not there.
i really need your help sir.
thanks

knudfl 01-06-2016 06:35 PM

Post #219, @Darddy.

A patch is applied, not installed. The zrp patch must be present in ns-allinone-2.3x.

... Or you can use the absolute path like : $ patch -p0 < /home/name/Downloads/*.patch.

Build example https://groups.google.com/forum/?fro...8/x3YN7pG561MJ


-

megha_18 05-01-2016 02:42 AM

Quote:

Originally Posted by knudfl (Post 5474161)
Post #219, @Darddy.

A patch is applied, not installed. The zrp patch must be present in ns-allinone-2.3x.

... Or you can use the absolute path like : $ patch -p0 < /home/name/Downloads/*.patch.

Build example https://groups.google.com/forum/?fro...8/x3YN7pG561MJ


-

Sir i want to simulate zrp on ns-2.35 in ubuntu 14.04. I've tried patching it through the method you suggested but i keep getting an error:

invalid command name "Agent/ZRP"
while executing
"Agent/ZRP set radius_ 2 "
(file "zrp.tcl" line 17)

Also I've tried patching it in ns-2.33 using the method suggested in: http://magnet.daiict.ac.in/magnet_me...imulation.html

But I'm getting the same error. Please help me out with this as soon as possible!

knudfl 05-02-2016 10:50 AM

Re #221, @megha_18.

Please read the build and run example here ....
https://groups.google.com/forum/?fro...8/x3YN7pG561MJ
I.e. please use this command for the simulation :
$ ns235-zrp zrp-Demo1-1.tcl


Quote:

invalid command name "Agent/ZRP"
This usually means you are using a wrong executable 'ns'.
Hence the copy /usr/local/bin/ns235-zrp
... to be absolutely sure you are using the "ns" patched with ZRP.


-

jhon.kifle 03-22-2018 01:08 AM

When I try to compile my zrp.tcl program the following error popped.
invalid command name "Agent/ZRP"
while executing
"Agent/ZRP set radius_ 2 "

My computer OS specification is:
x86_64
ID=LinuxMint
Release=17.1

knudfl 03-22-2018 08:25 AM

Ref. #223 and https://www.linuxquestions.org/quest...post5822710/#2

Simulations : Not "compile", but run with 'ns-zrp' !
The simulation command is missing in post #223. Big mistake.

Please do : $ ns-zrp my-zrp.tcl

-

jhon.kifle 03-24-2018 03:09 AM

Sorry for the mistake. But, I do run the file with the command "ns-zrp myzrp.tcl".


All times are GMT -5. The time now is 01:43 AM.