LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   hwmp implementation on ns2.28 (https://www.linuxquestions.org/questions/linux-software-2/hwmp-implementation-on-ns2-28-a-860439/)

hend baklouti 02-03-2011 06:33 AM

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

knudfl 02-03-2011 08:24 AM

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.

..

hend baklouti 02-04-2011 04:32 AM

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?

TB0ne 04-02-2011 10:47 AM

Quote:

Originally Posted by hend baklouti (Post 4248028)
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.

houaidia 06-04-2012 05:18 PM

problem to download the hwmp patch
 
Quote:

Originally Posted by knudfl (Post 4247033)
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.

knudfl 06-04-2012 06:21 PM

# 5.

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


.

houaidia 06-05-2012 08:10 AM

Quote:

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

knudfl 06-05-2012 09:42 AM

Post # 7.

Which Linux OS are you using ? Please specify. Like Ubuntu 10.10, etc.

houaidia 06-05-2012 09:47 AM

Quote:

Originally Posted by knudfl (Post 4695994)
Post # 7.

Which Linux OS are you using ? Please specify. Like Ubuntu 10.10, etc.

I'm using Ubuntu 10.04.

knudfl 06-05-2012 10:07 AM

# 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

.

houaidia 06-05-2012 03:43 PM

Quote:

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

houaidia 06-05-2012 05:26 PM

Quote:

Originally Posted by houaidia (Post 4696246)
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.

knudfl 06-05-2012 05:27 PM

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

.

knudfl 06-05-2012 05:51 PM

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

.

knudfl 06-22-2013 05:21 AM

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


-


All times are GMT -5. The time now is 05:00 PM.