LinuxQuestions.org
Review your favorite Linux distribution.
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 02-07-2014, 02:08 AM   #1
bitsandeep
LQ Newbie
 
Registered: Feb 2014
Posts: 6

Rep: Reputation: Disabled
zrp installation in ns-2.35 on Fedora 19


Trying to patch zrp using similiar steps as for ns-2.34. but the error is there related to - ./common/packet.h:329:10: error: ‘PT_ZRP’ was not declared in this scope
 
Old 02-07-2014, 03:25 AM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,817

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
Quote:
./common/packet.h:329:10: error: ‘PT_ZRP’ was not declared in this scope
that looks like a gcc error
did you install gcc 3.4-compt on fedora 19 ?
the DEFAULT version 4.8 is WAY TO NEW to use to build ns2
and ARE you exporting cc=gcc34
or
set alternatives to use 3.4 ?
or
created sim-links to use 3.4
 
Old 02-07-2014, 01:28 PM   #3
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
@bitsandeep : Welcome to LQ.

Please make sure that you do the ns-allinone build with ..
$ cd ns-allinone-2.33/ && export CC=gcc34 CXX=g++34 && ./install

.. The text in the (ZRP) ns-2.33/Makefile, line 37, must be :
CPP = g++34

P.S. : There is no ZRP for ns-2.35 !
The good news : You can have as many versions of ns-allinone-2.xx as you want,
installed at the same time. But : Do not add any *PATH text to .bashrc :
* Not required, when it's your computer !

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

-

Last edited by knudfl; 02-07-2014 at 03:06 PM.
 
Old 02-13-2014, 02:53 AM   #4
bitsandeep
LQ Newbie
 
Registered: Feb 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
# 201, @knudfl.
Here is the code TCL file, traffic and scenario file for reference.
Attached Files
File Type: txt e-zrp.tcl.txt (7.2 KB, 32 views)
File Type: txt scenRWP-75.ns_movements.txt (23.7 KB, 25 views)
File Type: txt cbr-75-40.txt (17.8 KB, 22 views)
 
Old 02-13-2014, 03:25 AM   #5
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
Ref. #4 , and post #200 here
http://www.linuxquestions.org/questi...25/page14.html

From e-zrp.tcl :
"Usage: ns-zrp energy-zrp.tcl -scen <cp> -tfc <tfc> -tr <tr> -rpr <rpr>"

.. Which means you will also have to inform about all the commands you are using
for various simulations with <energy-zrp.tcl> (? alias e-zrp.tcl ?)
 
Old 02-13-2014, 11:59 PM   #6
bitsandeep
LQ Newbie
 
Registered: Feb 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
#5

I am using the following command to run the simulation:

ns-zrp e-zrp.tcl.txt -scen movement/scenRWP-75.ns_movements -tfc traffic/cbr-75-40 -tr e-zrp.tr -rpr ZRP
 
Old 02-14-2014, 05:21 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
#6 and #200 http://www.linuxquestions.org/questi...25/page14.html

Some hints about "Client Xx: Handoff Attempted"
https://www.google.com/webhp?hl=all#...andoff+attempt
> example http://mailman.isi.edu/pipermail/ns-...ly/068524.html
Quote:
the problem is with the setdest command. try to run the script with
preset coordinates first to make sure that there is no problem with the script
itself then check if the coordinates used by the setdest are within the
topology size that you specified and check if the command is written correctly
it seems that the arguments used for setdest are not correct.
My advice with ns2 start with a very simple script that works and add to it
little by little so that you can trace where the error is if you encounter one.
But anyway : You have the "259" MB trace file, and can analyse that.

-

Last edited by knudfl; 02-14-2014 at 05:23 AM.
 
Old 02-19-2014, 10:52 PM   #8
bitsandeep
LQ Newbie
 
Registered: Feb 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
I am again trying to implement ZRP in NS-2.34 on Fedora 19. Patch was not successful, I have done the steps manually, but in order to do it, it was AOMDV patch, which was a hurdle. So I made comment over PT_AOMDV, wherever it was in packet.h and other related files like cmu-trace. Now example zrp script is running, but in trace it is showing AOMDV instead of ZRP. Can you suggest the solution?
 
Old 02-20-2014, 03:31 AM   #9
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
# 8 .

@bitsandeep : Probably tell what you are doing / trying to do !


Looks like you want to add two patches at the same time ? AOMDV + ZRP ?

ZRP : Meant for ns-2.33 .
AOMDV : This code is for ns-2.33 → NS-2.33-AOMDV-Multiple-Interface.patch
http://205.196.123.186/jo1im19xaq0g/...nterface.patch


Quote:
in trace it is showing AOMDV instead of ZRP
Depends which aomdv you added, and how you added it.
! The most common is that one patch cancels the previous patching !
... But most often it's easy to combine two »extra protocols« : Write new patch / files.
... So which aomdv is it about ? A link please.
.
Attached Files
File Type: txt aomdv-links.txt (273 Bytes, 6 views)
 
Old 02-21-2014, 12:19 AM   #10
bitsandeep
LQ Newbie
 
Registered: Feb 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
#9

I don't want to add two patches. In fact AOMDV patch is already there in Ns-2.34. I have made a fresh installation of NS-2 and tried to patch ZRP. Automatically it didn't work, since some hunks were failed during patching. So I did the steps mentioned in ZRP patch file, manually in files like packet.h, cmu-trace.cc and other files mentioned in the patch. Now during manual patching I found AOMDV in packet.h particularly this line:

static const packet_t PT_AOMDV = 61

so i had commented the above line and inserted the following line as mentioned in patch

static const packet_t PT_ZRP = 61

Likewise at all other related places, I had inserted the ZRP lines and commented the AOMDV lines. ZRP example script executed finally. But in trace it is showing AOMDV instead of ZRP. This is the case.

Now please let me know:

1. Should I change the line in packet.h as

static const packet_t PT_ZRP = 62 - will it work

2. Whether there is any other file, where AOMDV is still alive and affecting the trace,
3. Can we have AOMDV and ZRP simultaneously in NS-2.34?
 
Old 02-21-2014, 01:22 AM   #11
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153Reputation: 3153
# 10 .

The ZRP code is for ns-2.33 . Do not expect it to work with other versions.

Latest install instructions, with a new "patch package" zrp-ns233-patching.tar.gz,
.. to make it impossible to fail :
http://www.linuxquestions.org/questi...-4175495477/#2

-
 
  


Reply

Tags
ns2, zrp


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
[SOLVED] How to make modified ZRP protocol from ZRP protocol vishalpolara Linux - Newbie 12 10-07-2015 06:02 AM
[SOLVED] ZRP patch farfattou Linux - Software 2 02-27-2013 06:43 AM
installation of ZRP patch error vishalpolara Linux - Newbie 13 11-19-2012 05:38 AM
Help me, code ZRP vuichoigiaitri Linux - Wireless Networking 2 08-19-2012 05:24 AM


All times are GMT -5. The time now is 06:01 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration