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

en.khalid82 05-24-2013 03:03 AM

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

knudfl 05-24-2013 04:40 AM

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

en.khalid82 05-24-2013 05:22 AM

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

Thanks

knudfl 05-24-2013 05:45 AM

# 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

-

en.khalid82 05-24-2013 06:04 AM

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

knudfl 05-24-2013 07:46 AM

# 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

en.khalid82 05-25-2013 03:55 AM

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

knudfl 05-25-2013 04:10 AM

# 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

-

en.khalid82 05-25-2013 06:43 AM

Quote:

Originally Posted by knudfl (Post 4958600)
# 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

knudfl 05-25-2013 07:51 AM

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

-

en.khalid82 06-01-2013 02:24 AM

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

uzmag 08-13-2013 12:12 PM

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

uzmag 08-13-2013 12:20 PM

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

uzmag 08-13-2013 12:28 PM

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

knudfl 08-13-2013 01:11 PM

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.

-


All times are GMT -5. The time now is 02:19 AM.