LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 12-22-2012, 04:32 AM   #1
tugasakhir
LQ Newbie
 
Registered: Dec 2012
Posts: 4

Rep: Reputation: Disabled
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...
 
Old 12-22-2012, 05:22 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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/

.
 
Old 12-22-2012, 06:02 AM   #3
tugasakhir
LQ Newbie
 
Registered: Dec 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
why may it conflict, sir?
my research is to compare performance routing between zrp and hwmp..
 
Old 12-22-2012, 06:52 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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


.

Last edited by knudfl; 12-22-2012 at 08:54 AM.
 
Old 02-11-2013, 09:23 PM   #5
tugasakhir
LQ Newbie
 
Registered: Dec 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
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?
 
Old 05-16-2019, 10:01 PM   #6
novanmf
LQ Newbie
 
Registered: May 2019
Posts: 3

Rep: Reputation: Disabled
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
 
Old 05-17-2019, 04:01 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
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 !

-
 
1 members found this post helpful.
Old 05-17-2019, 05:07 AM   #8
novanmf
LQ Newbie
 
Registered: May 2019
Posts: 3

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


Reply

Tags
hwmp, hwmp-mesh, ns2



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
LXer: How To Install Mozilla Thunderbird 3.1 (Final) In Ubuntu LXer Syndicated Linux News 0 06-24-2010 10:00 PM
LXer: How To Install VLC 1.1.0 (Final) In Ubuntu LXer Syndicated Linux News 0 06-23-2010 07:20 AM
LXer: VLC 1.1.0 Final is released! Install via PPA in Ubuntu 10.04 LXer Syndicated Linux News 0 06-22-2010 11:20 PM
please help me...for my final project mkaz Linux - Newbie 3 05-13-2009 07:56 AM
unable to install netbeans ,urgent help needed,its required for a final sem project!! wrapster Linux - Software 4 06-09-2008 04:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:15 AM.

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
Open Source Consulting | Domain Registration