LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 03-17-2015, 02:21 AM   #211
shruti0753
LQ Newbie
 
Registered: Feb 2015
Posts: 4

Rep: Reputation: Disabled

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)

Last edited by shruti0753; 03-17-2015 at 02:22 AM.
 
Old 03-18-2015, 02:29 AM   #212
shruti0753
LQ Newbie
 
Registered: Feb 2015
Posts: 4

Rep: Reputation: Disabled
plz reply me soon ....
 
Old 07-10-2015, 05:12 PM   #213
imran01775
LQ Newbie
 
Registered: Jul 2015
Posts: 1

Rep: Reputation: Disabled
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
 
Old 07-10-2015, 05:50 PM   #214
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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/

-

Last edited by knudfl; 07-10-2015 at 05:56 PM.
 
Old 08-07-2015, 12:49 PM   #215
imran017751
LQ Newbie
 
Registered: Aug 2015
Posts: 1

Rep: Reputation: Disabled
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:ffset_'
collect2: ld returned 1 exit status
make: *** [ns] Error 1
Ns make failed!

""""""""""""""
give me complete solution in details....plz
 
Old 08-07-2015, 09:12 PM   #216
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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

-

Last edited by knudfl; 08-07-2015 at 09:32 PM.
 
Old 08-09-2015, 05:16 AM   #217
mohidul
LQ Newbie
 
Registered: Aug 2015
Posts: 3

Rep: Reputation: Disabled
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]
 
Old 08-09-2015, 07:18 AM   #218
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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


-
 
Old 01-06-2016, 06:15 AM   #219
Darddy
LQ Newbie
 
Registered: Jan 2016
Posts: 2

Rep: Reputation: Disabled
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
 
Old 01-06-2016, 06:35 PM   #220
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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


-
 
1 members found this post helpful.
Old 05-01-2016, 02:42 AM   #221
megha_18
LQ Newbie
 
Registered: Mar 2016
Posts: 2

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
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!
 
Old 05-02-2016, 10:50 AM   #222
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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.


-
 
Old 03-22-2018, 01:08 AM   #223
jhon.kifle
LQ Newbie
 
Registered: Nov 2017
Posts: 5

Rep: Reputation: Disabled
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
 
Old 03-22-2018, 08:25 AM   #224
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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

-
 
Old 03-24-2018, 03:09 AM   #225
jhon.kifle
LQ Newbie
 
Registered: Nov 2017
Posts: 5

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


Reply

Tags
ns2, setdest, zrp, zrp#2



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to patch GPSR routing protocol to ns-2.34 nimacasino Linux - Software 287 06-10-2014 12:27 PM
LXer: Tutorial: Border Gateway Protocol, The Routing Protocol of the Internet LXer Syndicated Linux News 0 11-13-2008 05:11 AM
Time Zone patch diskoe Slackware 41 03-13-2007 12:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 10:24 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration