LinuxQuestions.org
Help answer threads with 0 replies.
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 05-24-2013, 03:03 AM   #151
en.khalid82
Member
 
Registered: Apr 2013
Posts: 53

Rep: Reputation: Disabled

Dear Mr.knudfl, when I tried to re-install ZRP in ns-2.33 the following things appeared

khalid@khalid-linux:~/ns-allinone-2.33$ patch -p1 < PatchZRP.patch
patching file ns-2.33/common/packet.h
Reversed (or previously applied) patch detected! Assume -R? [n]

what can I do to re-install it.

Thanks
 
Old 05-24-2013, 04:40 AM   #152
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,926

Rep: Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587
# 151 .
Quote:
Reversed (or previously applied) patch detected! Assume -R? [n]
Happens when you apply the patch more than once.

A clean reinstall : Unpack a new ns-allinone-2.33.tar.gz in a new directory.
 
Old 05-24-2013, 05:22 AM   #153
en.khalid82
Member
 
Registered: Apr 2013
Posts: 53

Rep: Reputation: Disabled
Thank you so much Mr.knudfl, please how can I patch ZRP package in ubuntu 10.10 32bit step by step, if possible.

Thanks
 
Old 05-24-2013, 05:45 AM   #154
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,926

Rep: Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587
# 153 : Probably read post # 6 ...

"It is assumed, that you have a working ns-allinone-2.33,
i.e. the './install' command was run with no errors".
Ubuntu 10.10 : $ export CC=gcc41 CXX=g++41 && ./install

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

-
 
Old 05-24-2013, 06:04 AM   #155
en.khalid82
Member
 
Registered: Apr 2013
Posts: 53

Rep: Reputation: Disabled
Thank you Mr.knudfl, I really appreciate your efforts with me. please may you send me the file of awk in quote 141 because it doesn't work.

Thanks
 
Old 05-24-2013, 07:46 AM   #156
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,926

Rep: Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587
# 155 .

How to unpack ns2-awk_scripts0513.tar.bz2.txt :
1) mv ns2-awk_scripts0513.tar.bz2.txt ns2-awk_scripts0513.tar.bz2
2) tar xvf ns2-awk_scripts0513.tar.bz2
 
1 members found this post helpful.
Old 05-25-2013, 03:55 AM   #157
en.khalid82
Member
 
Registered: Apr 2013
Posts: 53

Rep: Reputation: Disabled
Thank you so much Mr.knudf, please may you help me about how can I using version 2 of generating scenario file for mobility simulation.

Thanks
 
Old 05-25-2013, 04:10 AM   #158
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,926

Rep: Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587
# 157 .

"version 2 of generating scenario file for mobility simulation" :
Unknown application / term.

Please rephrase / explain. Which tool is it about ?

IX.2. http://www.isi.edu/nsnam/ns/tutorial/nsscript5.html

> XI.1. http://www.isi.edu/nsnam/ns/tutorial...pt7.html#first

-
 
Old 05-25-2013, 06:43 AM   #159
en.khalid82
Member
 
Registered: Apr 2013
Posts: 53

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 157 .

"version 2 of generating scenario file for mobility simulation" :
Unknown application / term.

Please rephrase / explain. Which tool is it about ?

IX.2. http://www.isi.edu/nsnam/ns/tutorial/nsscript5.html

> XI.1. http://www.isi.edu/nsnam/ns/tutorial...pt7.html#first

-
dear Mr.knudfl, the following command for version 1

./setdest -v 1 -n 20 -p 2.0 -s 10.0 -t 200 -x 500 -y 500 >

How can I use version 2

Thanks
 
Old 05-25-2013, 07:51 AM   #160
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,926

Rep: Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587
# 159 .

http://www.isi.edu/nsnam/ns/tutorial/nsscript7.html
XI.2.
"CMU's version of setdest used system dependent /dev/random
and made calls to library functions initstate() for generating
random numbers. That was replaced (2003) with a more portable
random number generator (class RNG) available in ns."
v 1 : Year 1999. ( setdest.cc line 188.)
v 2 : Year 2003. ( setdest.cc line 193.)
... I.e. from my understanding it works this way :
All 'setdest' in ns2.26...ns2.35 will automatically use "v 2".

http://ant.comm.ccu.edu.tw/course/10...014_f2f757.ppt

If you want more information : Google .. setdest -v 1 ..

-

Last edited by knudfl; 05-25-2013 at 07:53 AM.
 
1 members found this post helpful.
Old 06-01-2013, 02:24 AM   #161
en.khalid82
Member
 
Registered: Apr 2013
Posts: 53

Rep: Reputation: Disabled
dear Mr.knudfl, please may you help me about this question? if I send data packet (cbr) 512 bytes with transmission rate 4 packet/second and 5 connection rate. for example, if the receive is 100%. How much throughput in kbps should deleiver.

Thanks
 
Old 08-13-2013, 12:12 PM   #162
uzmag
LQ Newbie
 
Registered: Aug 2013
Posts: 20

Rep: Reputation: Disabled
plz help me,i have installed ns-2.34
want to patch zrp
but when i download zrp three files .sh .patch and .tar.gz and put in ns-allinone-2.34
then after that i give command 1
 
Old 08-13-2013, 12:20 PM   #163
uzmag
LQ Newbie
 
Registered: Aug 2013
Posts: 20

Rep: Reputation: Disabled
ns-allinone-2.33$ patch -p1 < PatchZRP.patch
they give me error that - is wrong and after that when i give second command,the new error appears
touch file not found
and can anyone tell me which file is patching should i write when during patching the command appear?
plz reply me
and tel me time when anyone can help me
because its urgent
 
Old 08-13-2013, 12:28 PM   #164
uzmag
LQ Newbie
 
Registered: Aug 2013
Posts: 20

Rep: Reputation: Disabled
please tell me all the steps to install zrp patch?
i have read post 6 and try to do accordingly but after every command when i enter gives me error??
should i have to give commands by going into root directory?
tel me step by step please with folder names and locations or if possible please reply with screen shots
 
Old 08-13-2013, 01:11 PM   #165
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2014.08, Slack14.1 DebWheezy, +50+ other Linux OS, for test only.
Posts: 13,926

Rep: Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587Reputation: 2587
Posts #162 #163 #164, @uzmag : Welcome to LQ.

The file patchmyZRP.sh is not to be used.

Patching : Please read the latest update = post #154.

About "export CC=gcc41 CXX=g++41 && ./install" : Depends on your OS.
Please specify OS name, version, architecture :
1) $ uname -m <Enter>
2) $ cat /etc/*release* <Enter>

** ZRP examples : Please see the link in post #143.
** A binary package, post #117, for all Ubuntu versions 10* .. 13* - 32bits.

-
 
  


Reply

Tags
ns2, setdest, zrp, zrp#2


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
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


All times are GMT -5. The time now is 02:55 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration