LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-21-2013, 04:55 AM   #1
vishalpolara
Member
 
Registered: Nov 2012
Posts: 47

Rep: Reputation: Disabled
How to make modified ZRP protocol from ZRP protocol


hello sir

i want to do modification in ZRP protocol.

i can make modification in ZRP.cc file or ZRP.h file which is in ZRP patch.

but how to apply this thing as a new name like AZRP in ns-2.

what changes i have to made for this in ns-2.33? in order to work with AZRP like ZRP.
 
Old 03-21-2013, 05:49 AM   #2
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
Very simple :

1) cd ns-allinone-2.33/ns-2.33/
2) cp ns ns-zrp : All known simulation examples can use $ ns-zrp <ex>.tcl
3) make clean
4) make : Your changes will be compiled into a new executable 'ns'.
5) cp ns ns-azrp


All zrp examples : zrp-examples-2012.tar.bz2
https://docs.google.com/file/d/0B7S2...it?usp=sharing

-

Last edited by knudfl; 03-21-2013 at 05:52 AM.
 
Old 03-21-2013, 09:00 AM   #3
vishalpolara
Member
 
Registered: Nov 2012
Posts: 47

Original Poster
Rep: Reputation: Disabled
actually i am asking that .

here the example provided by you in that Zrp-demo1.tcl file

you have write routing protocol ZRP in tcl file.

so can i write as AZRP in tcl file after applying above changes specify by you.

i want to implement query detection mechanism in ZRP to improve performance.

please reply

thanks in advanced
 
Old 03-21-2013, 12:34 PM   #4
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
# 3 . OK. So you are adding a new protocol ?

Please read "PatchZRP.patch" to know what's usually added,
to have a new protocol recognized.

These files are changed :
common/packet.h
tcl/lib/ns-agent.tcl , + Agent/ZRP set sport_ 0 , + Agent/ZRP set dport_
tcl/lib/ns-default.tcl , + Agent/ZRP set packetSize_ 100 , etc.
tcl/lib/ns-lib.tcl , + Simulator instproc create-zrp-agent { node } { , + set ragent , etc.
* tcl/lib/ns-packet.tcl , + ZRP
trace/cmu-trace.cc
trace/cmu-trace.h
.. I guess you will have to add AZRP in one or more of the tcl/lib/ files.

-
 
Old 03-21-2013, 09:48 PM   #5
vishalpolara
Member
 
Registered: Nov 2012
Posts: 47

Original Poster
Rep: Reputation: Disabled
i want to implement query control mechanism of ZRP.

in that "query detection"i want to implement in my work.

can you help me what changes i have to make in zrp.cc file.

to implement query detection method.


thanks in advanced
 
Old 03-22-2013, 02:44 AM   #6
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 #1 says :
Quote:
I can make modification in ZRP.cc
Which is the same as saying that you also know how to write the code ?

I do not code. And cannot help with c++ code, sorry.

There are descriptions that tell how "query control mechanism of ZRP" works.
But not really how to implement. ( BRP ? )

Google .. query control mechanism of ZRP .. ( 9,000 hits )
Examples
* http://www.netlab.tkk.fi/opetus/s380...08-Nicklas.pdf
http://www.techrepublic.com/whitepap...anets/32839095
http://tools.ietf.org/html/draft-ietf-manet-zone-zrp-04
http://citeseerx.ist.psu.edu/viewdoc...=rep1&type=pdf
* https://sites.google.com/site/secure...outingprotocol
http://www.docstoc.com/docs/10290616...-Zone-Routing-
* http://magnet.daiict.ac.in/magnet_me...sh/Thesis.html

-
 
Old 03-25-2013, 02:59 AM   #7
vishalpolara
Member
 
Registered: Nov 2012
Posts: 47

Original Poster
Rep: Reputation: Disabled
tx for your reply
 
Old 06-08-2013, 03:45 AM   #8
anchal kumawat
LQ Newbie
 
Registered: Jun 2013
Posts: 3

Rep: Reputation: Disabled
information

dear sir....
i want to ask about tcl script of zrp routing protocol.
when i run that tcl script i found the following error...


num_nodes is set 20

(_o15 cmd line 1)
invoked from within
"_o15 cmd addr"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o15" line 2)
(SplitObject unknown line 2)
invoked from within
"_o15 addr"
("eval" body line 1)
invoked from within
"eval $node addr $args"
("default" arm line 2)
invoked from within
"switch -exact $routingAgent_ {
DSDV {
set ragent [$self create-dsdv-agent $node]
}
DSR {
$self at 0.0 "$node start-dsr"
}
AODV {
set ragent [$self cre..."
(procedure "_o3" line 14)
(Simulator create-wireless-node line 14)
invoked from within
"_o3 create-wireless-node"
("eval" body line 1)
invoked from within
"eval $self create-wireless-node $args"
(procedure "_o3" line 23)
(Simulator node line 23)
invoked from within
"$ns_ node"
("for" body line 2)
invoked from within
"for {set i 0} {$i < $val(nn) } { incr i } {
set node_($i) [$ns_ node]
$node_($i) random-motion 0
$ns_ initial_node_pos $node_($i) 120
}"
(file "eg_zrp.tcl" line 84)


could you please solve my problem....
i will be very greatful to you...
 
Old 06-08-2013, 03:51 AM   #9
anchal kumawat
LQ Newbie
 
Registered: Jun 2013
Posts: 3

Rep: Reputation: Disabled
want to get information

Hello sir....

All zrp examples : zrp-examples-2012.tar.bz2
https://docs.google.com/file/d/0B7S2...it?usp=sharing

this link is very helpful to download this zrp examples.
but when i run that tcl examples of that tar folder i found following error..



dcs@ubuntu:~/Documents/zrp-examples$ ns example-zrp.tcl
invalid command name "Agent/ZRP"
while executing
"Agent/ZRP set radius_ 2 "
(file "example-zrp.tcl" line 68)



Could u please tell me that why this type of error is coming in all tcl script of zrp?
reply me..

thanks
 
Old 06-08-2013, 07:52 AM   #10
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
# 9, @ anchal kumawat : Welcome to LQ.
Quote:
Could you please tell me that why this type of error is coming in all tcl script of zrp ?
The executable 'ns' used is an ns with no ZRP.

Please read http://www.linuxquestions.org/questions/tags/zrp/
Install zrp http://www.linuxquestions.org/questi...34-a-905025/#6
>>> post #6, a b c d.


# 8 : eg_zrp.tcl : Unknown file.

? More question ? Then you will have to specify your Linux OS, please :
1) $ cat /etc/*release*
2) $ uname -m

-

Last edited by knudfl; 06-08-2013 at 07:53 AM.
 
Old 06-10-2013, 04:12 AM   #11
anchal kumawat
LQ Newbie
 
Registered: Jun 2013
Posts: 3

Rep: Reputation: Disabled
want to get information

thank u for your reply......
could u please tell me from the starting point of view...
Like firstly what are the steps to install zrp in ns2.33 in ubuntu 11.10
because i am getting the error till now..
and then how to run all tcl scripts of ZRP ?


Please reply...
 
Old 06-10-2013, 04:58 AM   #12
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
# 11 .

OK, Ubuntu 11.10 . Please show the output from $ uname -m <Enter>

The build command for a 32bits (i686) Ubuntu 11.10 is :
$ export CC=gcc41 CXX=g++41 && ./install


To use 'export CC=gcc41 CXX=g++41' in a 32bits Ubuntu 11.10,
you will have to install the "gcc 4.1 compilers". Post # 47 here
http://www.linuxquestions.org/questi...532/page4.html

-
 
Old 10-07-2015, 05:02 AM   #13
shivee
Member
 
Registered: Nov 2013
Posts: 30

Rep: Reputation: Disabled
I have been trying to modify zrp.cc in order to improve energy efficiency. However i am unclear as to how to proceed. Can you please send your modified code so that I can use it for reference?
 
  


Reply

Tags
ns2, zrp



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 install ZRP (Zone routing protocol) patch in ns-2.34 hassan329 Ubuntu 225 03-24-2018 06:58 AM
How to install ZRP (Zone routing protocol) patch in ns-2.35 dmaa Linux - Software 42 01-09-2016 05:19 PM
ZRP protocol patch for NS 2.34 rasha7442 Linux - Newbie 1 01-17-2013 05:36 AM
Zone Routing Protocol (ZRP) ttungl Linux - Newbie 0 04-02-2012 06:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:40 PM.

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