LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-03-2011, 05:33 AM   #1
hend baklouti
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Rep: Reputation: 1
hwmp implementation on ns2.28


Hello,
Can anyone help me on implementing hwmp protocol on ns2.28?
It's so urgent!!!
thank you in advance
 
Old 02-03-2011, 07:24 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
Welcome to LQ.

The new versions of HWMP are for ns-2.33 , ns-2.34
https://forge.iitp.ru/ns2/hwmp/

You can have two or more versions of ns-allinone-2.xx installed
at the same time with no problems.

No need to use ns-allinone-2.28 for HWMP.

..

Last edited by knudfl; 02-03-2011 at 07:26 AM.
 
Old 02-04-2011, 03:32 AM   #3
hend baklouti
LQ Newbie
 
Registered: Jan 2011
Posts: 3

Original Poster
Rep: Reputation: 1
In fact ,i need to use ns2.28 to be able to implement EDCA model (patches exist only for ns2.28)!!!
So can you help me?
 
1 members found this post helpful.
Old 04-02-2011, 09:47 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,520

Rep: Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944Reputation: 7944
Quote:
Originally Posted by hend baklouti View Post
In fact ,i need to use ns2.28 to be able to implement EDCA model (patches exist only for ns2.28)!!!
So can you help me?
This is a duplicate to the post you put in your OTHER thread that you hijacked. Someone else already asked this question, and got directed to the answers, complete with links.
 
Old 06-04-2012, 04:18 PM   #5
houaidia
LQ Newbie
 
Registered: Apr 2012
Posts: 6

Rep: Reputation: Disabled
problem to download the hwmp patch

Quote:
Originally Posted by knudfl View Post
Welcome to LQ.

The new versions of HWMP are for ns-2.33 , ns-2.34
https://forge.iitp.ru/ns2/hwmp/

You can have two or more versions of ns-allinone-2.xx installed
at the same time with no problems.

No need to use ns-allinone-2.28 for HWMP.

..
Hi all

I can't access the website providing the hwmp patch for ns2 https://forge.iitp.ru/ns2/hwmp/.
Can any one send me the source code or show me another available link.
Your help is extremely needed and will be sincerely appreciated.
Thanks in advance.
 
Old 06-04-2012, 05:21 PM   #6
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
# 5.

Please find a copy of 'ns233-hwmp_rev183.patch.tar.gz' here ..
https://docs.google.com/open?id=0B7S...Xg3NVFtMmZwVzg


.
 
Old 06-05-2012, 07:10 AM   #7
houaidia
LQ Newbie
 
Registered: Apr 2012
Posts: 6

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

Please find a copy of 'ns233-hwmp_rev183.patch.tar.gz' here ..
https://docs.google.com/open?id=0B7S...Xg3NVFtMmZwVzg


.
Thanks a lot for your help.
I install the patch following these steps :

$ cd ns-allinone-2.33/ns-2.33/
$ tar zxvf ns233-hwmp_rev183.patch.tar.gz
$ patch -p1 < ns233-hwmp_rev183.patch

But when i recompile ns2.33 by the "make" command i got this error.

hwmp/hwmp.cc: In member function ‘virtual int HWMP::command(int, const char* const*)’:
hwmp/hwmp.cc:88: error: overloaded function with no contextual type information
hwmp/hwmp.cc: In member function ‘virtual void HWMP::recv(Packet*, Handler*)’:
hwmp/hwmp.cc:158: warning: comparison between signed and unsigned integer expressions
make: *** [hwmp/hwmp.o] Erreur 1

Have you please any idea about this error?
Thanks in advance.
 
Old 06-05-2012, 08:42 AM   #8
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 # 7.

Which Linux OS are you using ? Please specify. Like Ubuntu 10.10, etc.
 
Old 06-05-2012, 08:47 AM   #9
houaidia
LQ Newbie
 
Registered: Apr 2012
Posts: 6

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

Which Linux OS are you using ? Please specify. Like Ubuntu 10.10, etc.
I'm using Ubuntu 10.04.
 
Old 06-05-2012, 09:07 AM   #10
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
# 9.

sudo apt-get install g++-4.1


Start from scratch with a new unpacked ns-allinone-2.33.tar.gz,
or do a 'make clean' in all applications, + delete the Makefile's.
And :
cd ns-allinone-2.33/ && export CC=gcc-4.1 CXX=g++-4.1 && ./install

.
 
Old 06-05-2012, 02:43 PM   #11
houaidia
LQ Newbie
 
Registered: Apr 2012
Posts: 6

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

sudo apt-get install g++-4.1


Start from scratch with a new unpacked ns-allinone-2.33.tar.gz,
or do a 'make clean' in all applications, + delete the Makefile's.
And :
cd ns-allinone-2.33/ && export CC=gcc-4.1 CXX=g++-4.1 && ./install

.
Unfortunately that does not work anyway. I got this error :
/usr/bin/ld: cannot open output file ns: Is a directory
collect2: ld returned 1 exit status
make: *** [ns] Erreur 1
Ns make failed!
 
Old 06-05-2012, 04:26 PM   #12
houaidia
LQ Newbie
 
Registered: Apr 2012
Posts: 6

Rep: Reputation: Disabled
Quote:
Originally Posted by houaidia View Post
Unfortunately that does not work anyway. I got this error :
/usr/bin/ld: cannot open output file ns: Is a directory
collect2: ld returned 1 exit status
make: *** [ns] Erreur 1
Ns make failed!
It finally worked.
I had an error in ns2 validation However I used gcc-4.3 instead of gcc-4.1.
Thanks a lot for your help. You save me
It would be so grateful if you can send me examples of configuration (tcl script using hwmp)
Sincerely.
 
Old 06-05-2012, 04:27 PM   #13
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
# 11.
Quote:
/usr/bin/ld: cannot open output file ns: Is a directory
Well, better have a look into ns-allinone-2.33/ns-2.33/ ,
and check if a folder by name "ns" is present, and delete it.
( Wherever it came from ? )

A test run on Ubuntu 10.04 : I get no errors.
The binary 'ns' is created OK.

.
 
Old 06-05-2012, 04:51 PM   #14
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
#12.

The patch ns233-hwmp_rev183.patch supplies these examples :
( ns-2.33/hwmp/hwmp.tcl )
ns-2.33/hwmp/mesh_hwmp_example.tcl
ns-2.33/tcl/ex/wireless-mitf.tcl

./ns mesh_hwmp_example.tcl : OK. Creates namout.nam and tracefile.tr .
>>> nam namout.nam : OK.
( hwmp.tcl is probably a file that's used by './ns mesh_hwmp_example.tcl'.)

./ns wireless-mitf.tcl : OK. Creates wireless_mitf.nam and wireless_mitf.tr .
>>> nam wireless_mitf.nam : OK.

.

Last edited by knudfl; 06-05-2012 at 04:52 PM.
 
Old 06-22-2013, 04:21 AM   #15
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
HWMP , Hybrid Wireless Mesh Protocol :

New links for the hwmp patches / the patched ns-2.33, post #7, #8 here
http://www.linuxquestions.org/questi...-4175465910/#7

( The original link is down.)


-

Last edited by knudfl; 06-22-2013 at 04:27 AM.
 
  


Reply

Tags
hwmp, ns2


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
Regarding NS2 implementation lalithimral Programming 1 05-03-2011 04:17 PM
i am using ubuntu as os. for NS2 to implement a routing protocol in ns2. sujovasu Programming 1 07-27-2010 01:44 AM
weight throwing protocol using ns2 code,diffusion based protocol using ns2 code rajrupa Linux - Networking 1 05-27-2010 03:39 AM
NS2 help to_veeresh Linux - Newbie 5 09-22-2008 05:17 AM
ns2 md_imranullah LQ Suggestions & Feedback 2 01-25-2008 02:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:43 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