LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   how to install patch hwmp in ns-2.33 and in ubuntu 8.04 (need help for final project) (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-install-patch-hwmp-in-ns-2-33-and-in-ubuntu-8-04-need-help-for-final-project-4175442542/)

tugasakhir 12-22-2012 04:32 AM

how to install patch hwmp in ns-2.33 and in ubuntu 8.04 (need help for final project)
 
could you help me and guide me how to install hwmp patch in ns-2.33??
i'm doing research about analysis routing protocol in wireless mesh network..?
thank you...

knudfl 12-22-2012 05:22 AM

First : You can have as many versions of ns-allinone-2.xx as you want,
installed at the same time. But do not add any of them to a *PATH.

The HWMP patch is available for ns-2.33 ( And ns-2.34 ) :
But do not expect it to live together with other patches.
May conflict with the ZRP, that you are also using.
The best solution is probably a separate "ns-allinone-2.33" for HWMP.

HWMP, Ubuntu http://www.linuxquestions.org/questi...2-28-a-860439/

.

tugasakhir 12-22-2012 06:02 AM

why may it conflict, sir?
my research is to compare performance routing between zrp and hwmp.. :(

knudfl 12-22-2012 06:52 AM

Well, you can open the two patches in an editor, and read the contradictions.
( PatchZRP.patch, ns233-hwmp_rev183.patch ).

Some files are patched with different / possibly contradicting modifications :
common/packet.h
tcl/lib/packet.tcl
trace/cmu-trace.cc
trace/cmu-trace.h


.

tugasakhir 02-11-2013 09:23 PM

reply
 
thank you, sir..

oh sir, can you help me to find delay time to compare ZRP and HWMP in ns2?
and then why is Packet Delivery Ratio in ZRP better than HWMP?

novanmf 05-16-2019 10:01 PM

Sir can you help me ? I have a problem about install patch hwmp in ns2.35 :(
 
novanmf@novanmf-VirtualBox:~/ns-allinone-2.35/ns-2.35$ patch -p1 < ns233-hwmp_rev183.patch
patching file Makefile.in
Hunk #1 FAILED at 271.
Hunk #2 succeeded at 547 (offset 17 lines).
1 out of 2 hunks FAILED -- saving rejects to file Makefile.in.rej
patching file mac/mac-802_11.cc
Hunk #1 succeeded at 2033 (offset 4 lines).
patching file hwmp/hwmp.cc
patching file hwmp/hwmp.h
patching file hwmp/mesh_hwmp_example.tcl
patching file hwmp/hwmp_rqueue.cc
patching file hwmp/hwmp_rqueue.h
patching file hwmp/hwmp_packet.h
patching file hwmp/hwmp_rtable.cc
patching file hwmp/hwmp_rtable.h
patching file hwmp/hwmp.tcl
patching file tcl/lib/ns-lib.tcl
Hunk #1 FAILED at 630.
Hunk #2 succeeded at 883 (offset 33 lines).
1 out of 2 hunks FAILED -- saving rejects to file tcl/lib/ns-lib.tcl.rej
patching file tcl/lib/ns-agent.tcl
Hunk #1 FAILED at 192.
1 out of 1 hunk FAILED -- saving rejects to file tcl/lib/ns-agent.tcl.rej
patching file tcl/lib/ns-packet.tcl
Hunk #1 succeeded at 171 (offset 9 lines).
patching file tcl/ex/wireless-mitf.tcl
patching file aodv/aodv_rqueue.cc
patching file aodv/aodv_rqueue.h
patching file aodv/aodv_rtable.cc
patching file aodv/aodv.cc
Hunk #1 succeeded at 54 (offset -2 lines).
Hunk #2 succeeded at 139 (offset -2 lines).
Hunk #3 FAILED at 159.
Hunk #4 succeeded at 219 (offset -2 lines).
Hunk #5 succeeded at 260 (offset -2 lines).
Hunk #6 succeeded at 284 (offset -2 lines).
Hunk #7 succeeded at 292 (offset -2 lines).
Hunk #8 succeeded at 440 (offset -2 lines).
Hunk #9 FAILED at 560.
Hunk #10 FAILED at 999.
Hunk #11 succeeded at 1273 (offset 3 lines).
Hunk #12 succeeded at 1357 (offset 3 lines).
Hunk #13 succeeded at 1381 (offset 3 lines).
3 out of 13 hunks FAILED -- saving rejects to file aodv/aodv.cc.rej
patching file queue/queue.cc
patching file queue/dsr-priqueue.cc
patching file queue/priqueue.cc
Hunk #1 FAILED at 35.
Hunk #2 FAILED at 53.
Hunk #3 succeeded at 186 (offset 2 lines).
2 out of 3 hunks FAILED -- saving rejects to file queue/priqueue.cc.rej
patching file common/packet.h
Hunk #1 FAILED at 180.
Hunk #2 FAILED at 245.
Hunk #3 FAILED at 376.
3 out of 3 hunks FAILED -- saving rejects to file common/packet.h.rej
patching file trace/cmu-trace.cc
Hunk #1 FAILED at 51.
Hunk #2 succeeded at 914 (offset 20 lines).
Hunk #3 FAILED at 941.
Hunk #4 succeeded at 1426 with fuzz 2 (offset 217 lines).
2 out of 4 hunks FAILED -- saving rejects to file trace/cmu-trace.cc.rej
patching file trace/cmu-trace.h
Hunk #1 FAILED at 159.
1 out of 1 hunk FAILED -- saving rejects to file trace/cmu-trace.h.rej

knudfl 05-17-2019 04:01 AM

Post #6, @novanmf : Welcome to LQ.

Wrong patch. Use hwmp_ns235.patch (= rev 282) for ns-2.35 ! (rev 183 is old.)

Build example
Code:

$ tar xvf ns-allinone-2.35_gcc5.tar.gz          // 2014 update
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ cd ns-allinone-2.35/
$ patch -p0 < hwmp_ns235.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing
$ export CC=gcc-4.8 CXX=g++-4.8 && ./install
$ cd ns-2.35/
$ cp ns ns235-hwmp
$ sudo cp ns235-hwmp /usr/local/bin/

--------- Simulation ------------
$ ns235-hwmp wireless-mitf.tcl

All ~300 ns2 patch https://drive.google.com/drive/folde...00?usp=sharing

ns2-INFO https://drive.google.com/file/d/1FCj...ew?usp=sharing

Important note
:
Conditions for ns2 → A 'Linux OS' installed to hard disk.
Both VirtualBox and wmWare have resulted in poor unusable 'ns' executable the last couple of years. No OK results at all !

-

novanmf 05-17-2019 05:07 AM

Thank you sir :). I successfully installed hwmp patch. And thank you for the patch on Google Drive,, you are the best sir.. :D


All times are GMT -5. The time now is 09:35 PM.