How do i run ZRP in ns2
hello all...
i have installed ns2.33 and patched ZRP successfully but i don't exactly know how to run this protocol on ns2... can anybody help me ? |
Welcome to LQ.
ZRP info http://www.linuxquestions.org/questions/tags/zrp/ Building ZRP, example http://www.linuxquestions.org/questi...25/page11.html → post #154 Using : $ ns test_zrp.tcl $ ns zrp-Demo1-1.tcl ... etc. etc. from zrp-examples-2012.tar.bz2 https://drive.google.com/file/d/0B7S...it?usp=sharing - |
thnku so much for the help
but some type of error occured in zrp patch dnt know how....i don't know how it happened and what to do now...!! as i wrote this command [mann@localhost ns-allinone-2.33]$ patch -p1 < PatchZRP.patch error occured as: patching file ns-2.33/common/packet.h Reversed (or previously applied) patch detected! Assume -R? [n] n Apply anyway? [n] n Skipping patch. 3 out of 3 hunks ignored -- saving rejects to file ns-2.33/common/packet.h.rej patching file ns-2.33/Makefile Hunk #1 FAILED at 53. Hunk #2 FAILED at 259. 2 out of 2 hunks FAILED -- saving rejects to file ns-2.33/Makefile.rej patching file ns-2.33/tcl/lib/ns-agent.tcl Reversed (or previously applied) patch detected! Assume -R? [n] n Apply anyway? [n] n Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file ns-2.33/tcl/lib/ns-agent.tcl.rej patching file ns-2.33/tcl/lib/ns-default.tcl Reversed (or previously applied) patch detected! Assume -R? [n] n Apply anyway? [n] n Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file ns-2.33/tcl/lib/ns-default.tcl.rej patching file ns-2.33/tcl/lib/ns-lib.tcl Reversed (or previously applied) patch detected! Assume -R? [n] n Apply anyway? [n] n Skipping patch. 2 out of 2 hunks ignored -- saving rejects to file ns-2.33/tcl/lib/ns-lib.tcl.rej patching file ns-2.33/tcl/lib/ns-packet.tcl Reversed (or previously applied) patch detected! Assume -R? [n] n Apply anyway? [n] n Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file ns-2.33/tcl/lib/ns-packet.tcl.rej patching file ns-2.33/trace/cmu-trace.cc Reversed (or previously applied) patch detected! Assume -R? [n] n Apply anyway? [n] n Skipping patch. 3 out of 3 hunks ignored -- saving rejects to file ns-2.33/trace/cmu-trace.cc.rej patching file ns-2.33/trace/cmu-trace.h Reversed (or previously applied) patch detected! Assume -R? [n] n Apply anyway? [n] n Skipping patch. 1 out of 1 hunk ignored -- saving rejects to file ns-2.33/trace/cmu-trace.h.rej |
← #3 .
May be it's time to make a new and better patch. Ubuntu and Co. doesn't work well with many of the old patches. ← #1 . Quote:
You should be able to run the 8 examples with the 'ns' you already have. Any more questions ? Then please specify your OS. Name and version, please. And the reply from the command $ uname -m - |
i am first time user of linux
i am working on fedora 20, ns-2.33 now how do i remove this old patch..?? |
← #5 .
Why would you remove the patch ? ( No Fedora issues.) What happened since yesterday, when you said "patched successfully" ? And : No reason to change anything, you can build another ns-2.33 : You can have an infinite number of ns-allinone-2.xx, installed at the same time. But do not add any PATH text to .bashrc . - |
Yes I have installed another ns-2.33 successfully... I will try to patch in this one
Thnx for your help |
hello sir...
i have installed ns2 again successfully i am working on fedora 20..64bits now when i tried to patch ZRP i got this error [root@localhost ns-allinone-2.33]# patch -p1 < PatchZRP.patch patching file ns-2.33/common/packet.h patching file ns-2.33/Makefile Hunk #1 FAILED at 53. 1 out of 2 hunks FAILED -- saving rejects to file ns-2.33/Makefile.rej patching file ns-2.33/tcl/lib/ns-agent.tcl patching file ns-2.33/tcl/lib/ns-default.tcl patching file ns-2.33/tcl/lib/ns-lib.tcl patching file ns-2.33/tcl/lib/ns-packet.tcl patching file ns-2.33/trace/cmu-trace.cc patching file ns-2.33/trace/cmu-trace.h [root@localhost ns-allinone-2.33]# i have not done next step yet...plz tell me what to do now |
plz help me...
i need this for my project |
← Ref. post #8 .
1) Hunk #1 FAILED at 53. " : Can be ignored. (Line 56, CCOPT = -Wall ). 2) There is actually a new "patch package", zrp-ns233-patching.tar.gz , from Febuary 2014 .. ( Sorry, totally forgotten by me.) http://www.linuxquestions.org/questi...-4175495477/#2 .. which makes things easier : The 'make -k' is written into the file 'install'. * Please read the linked post #2 : Fedora . 3) A new one from today : zrp-diff2014_ns233.patch ... Created with Fedora 20 - 64 ... https://drive.google.com/file/d/0B7S...it?usp=sharing .. so you still can read, what's changed. (Like the old PatchZRP.patch.) 3.1) a) $ tar xvf ns-allinone-2.33.tar.gz b) $ cd ns-allinone-2.33/ c) $ patch p0 < zrp-diff2014_ns233.patch d) etc. etc.: export CC.. CXX.., and ./install , etc. - |
okkkk....
thanku so much bt i am still confused about one thing as u said that "But do not add any PATH text to .bashrc " what does it mean....should i not add PATH to .bashrc after installation of ns2 or should i not add PATH to .bashrc after ZRP patch |
← Ref. post #11.
About the 15 year old text that ends the text output from ./install : The *PATH text in .bashrc was meant to be used on a University owned computer. Today most students have their own equipment, and can do : $ cd ns-allinone-2.33/ns-2.33/ # make install ('make install' will copy 'ns' to /usr/local/bin/.) *** The executable 'ns' is hard coded to know the library location : → ns-allinone-2.33/{bin, lib} . No extra PATH setting is required ! Alternatively, and when you have two or more ns2 ( no limit, I have a hundred) : $ cd ns-allinone-2.33/ns-2.33/ $ cp ns ns-zrp # cp ns-zrp /usr/local/bin/ *** All zrp simulations will work with : $ ns-zrp file.tcl - |
sir,
i got this error now [mann@localhost ns-allinone-2.33]$ patch p0 < zrp-diff2014_ns233.patch patching file p0 Hunk #1 FAILED at 67. Hunk #2 FAILED at 180. Hunk #3 FAILED at 303. patch: **** Can't reopen file p0 : No such file or directory |
when i tried with "zrp-ns233-patching.tar.gz"
at the end when i run tcl file i got this [root@localhost zrp-examples]# ns-zrp example-zrp.tcl invalid command name "Agent/ZRP" while executing "Agent/ZRP set radius_ 2 " (file "example-zrp.tcl" line 68) |
← #13, #14.
When you add a new file.patch : Start from scratch with a new unpacked ns-allinone-2.33.tar.gz in a new folder. *** zrp-ns233-patching.tar.gz can be used in an existing ns-allinone-2.33/ : $ cd ns-allinone-2.33/ns-2.33/ && make clean && rm ns-zrp $ cd ../ && tar xvf zrp-ns233-patching.tar.gz $ export CC=gcc34 CXX=g++34 && ./install $ cd ns-2.33/ && cp ns ns-zrp # cp ns-zrp /usr/local/bin/ http://www.linuxquestions.org/questi...-4175495477/#2 "example-zrp.tcl" will sometimes fail. Please do : $ ns-zrp zrp-Demo1-1.tcl P.S.: Nam for Fedora http://www.linuxquestions.org/questi...-4175517981/#2 - |
All times are GMT -5. The time now is 08:55 AM. |