Mannasim on ns 2.34 (and gcc 4.3)
Without much bragging about it:
After I read here that it was possible to run the Mannasim framework for ns2 on version 2.32, I thought that this might be as well possible for 2.34. Instead of philosophying about this (the source claims that it would take months and 1.5 years of C++ knowledge), I simply did it.
Here is a patch that installs mannasim into ns 2.34. http://www.box.net/shared/th6qi9b5v0
It is missing the tcl maker, but should otherwise work fine.
Read on! Knowledge hurts.
hii, im working with ns2.34 and want to install mannasim on it…plzzz.tell me the detailed steps for it……and the specific version of mannasim which i can use..
thanx
deepika - Tuesday, 27. July 2010 at 7:54 |
If you don’t know how to use a patch, just google how to use it 😉
Nah, I’ll be nice and give you a quick walkthrough: You download and unpack ns2.34, you download the patch and place it in the top directory of your unpacked ns2.34.
Use cd to change into this directory and then say
patch -P0 < patchfilename
if that doesn't seem to work (e.g. the correct files to patch are not found), play arround with the parameter (e.g. -P1 -P2). At some point you will succeed.
Good luck.
knowledgehurts - Tuesday, 27. July 2010 at 9:47 |
OMG, its so complicated…i have downloaded a setup for mannasim…..tell me how to install it.And then tell about patch..I WANT A FULL DISCRIPTION yr…..each n every step to install mannasim on NS2.34…….REMEMBER NS 2.34…..2.34…..2.34
deepika - Wednesday, 28. July 2010 at 7:37 |
If you don’t listen, you won’t learn…
Wowowow - Wednesday, 28. July 2010 at 8:58 |
i am working on ns2.34 for WSN. To incorporate mannasim …
i first install the ns2.34
then patch ns2 by your given patchfile(it patched).
then replace the some files as instruction given in mannasim’s website from
the folder “ns-modified-files”.Bytheway in your patch no folder is created after patch named “ns-modified-files”
then i did ./configure
but the example scripts that are given in mannasim’s website are not working.
so, do i need to install again after patching ?
and do i need to replace the files as said in mannasim’s website?
pls , i need help.
anjon - Thursday, 29. July 2010 at 10:37 |
i have installed mannasim patch on ns 2.34 ,but the examples are not working …it gives following errors :- INITIALIZE THE LIST xListHead
invalid command name “EnergyModel/Battery”
while executing
“EnergyModel/Battery create _o33 _o15 100.0 0.5 0.2”
invoked from within
“catch “$className create $o $args” msg”
invoked from within
“if [catch “$className create $o $args” msg] {
if [string match “__FAILED_SHADOW_OBJECT_” $msg] {
delete $o
return “”
}
global errorInfo
error “class $…”
(procedure “new” line 3)
invoked from within
“new $energyModel_ $node $initialEnergy_ $l1 $l2”
invoked from within
“if [info exists energyModel_] {
if [info exists level1_] {
set l1 $level1_
} else {
set l1 0.5
}
if [info exists level2_] {
set l2 $level2_
} else {…”
(procedure “_o3” line 115)
(Simulator create-wireless-node line 115)
invoked from within
“_o3 create-wireless-node”
(“eval” body line 1)
invoked from within
“eval $self create-wireless-node $args”
(procedure “_o3” line 23)
(Simulator node line 23)
invoked from within
“$ns_ node”
(procedure “create_sink” line 8)
invoked from within
“create_sink”
(file “mannasim1.tcl” line 351)
Darpan Dekivadiya - Tuesday, 31. July 2012 at 19:45 |
I dont know if it is right, but it seems worked…i did now again as followed :
1. patch ns2.34 by your patch file
2. install ns2.34
3. then the tcl scripts that is given in mannasim’s website worked. It made a trace file and write output in that trace file.
anjon - Thursday, 29. July 2010 at 11:19 |
i have installed mannasim patch on ns 2.34 ,but the examples are not working …it gives following errors
please help me :-
INITIALIZE THE LIST xListHead
invalid command name “EnergyModel/Battery”
while executing
“EnergyModel/Battery create _o33 _o15 100.0 0.5 0.2”
invoked from within
“catch “$className create $o $args” msg”
invoked from within
“if [catch “$className create $o $args” msg] {
if [string match “__FAILED_SHADOW_OBJECT_” $msg] {
delete $o
return “”
}
global errorInfo
error “class $…”
(procedure “new” line 3)
invoked from within
“new $energyModel_ $node $initialEnergy_ $l1 $l2”
invoked from within
“if [info exists energyModel_] {
if [info exists level1_] {
set l1 $level1_
} else {
set l1 0.5
}
if [info exists level2_] {
set l2 $level2_
} else {…”
(procedure “_o3” line 115)
(Simulator create-wireless-node line 115)
invoked from within
“_o3 create-wireless-node”
(“eval” body line 1)
invoked from within
“eval $self create-wireless-node $args”
(procedure “_o3” line 23)
(Simulator node line 23)
invoked from within
“$ns_ node”
(procedure “create_sink” line 8)
invoked from within
“create_sink”
(file “mannasim1.tcl” line 351)
Darpan Dekivadiya - Tuesday, 31. July 2012 at 19:46 |
hi
I am master student looking for mannasim patch on ns2.34
when i tried examples given on mannsim site i am getting errors like invalid command name “EnergyModel/Battery”
and lots of other errors can some one help me plzzzzzzzzzzz
apps
aparna - Tuesday, 17. August 2010 at 7:19 |
whether you solved your problem otherwise i will tell the procedure
balaji - Tuesday, 28. September 2010 at 17:28 |
you can try with ns2.29
else contact :9952696689 for more problems
CHINNAA - Saturday, 30. October 2010 at 19:07 |
Hi i am using ms2.29 bit still have this problem when running the examples
invalid command name “EnergyModel/Battery”
and other errors
plz help
anas - Saturday, 13. August 2011 at 23:44
http://windows-droid.blogspot.in/2012/08/install-mannasim-patch-in-ns-234.html
Darpan - Wednesday, 10. April 2013 at 6:17 |
hi
iam using ns2.34 in ubuntu 9.04,i created a scenario in mannasim with the script generator tool and got the trace files. Could you help me how to analyze the trace files and how to invoke the network animator ?
pravin - Monday, 13. September 2010 at 17:49 |
hi
im working with ns2.34 i need to kno which specific verison of mannasim ‘ll be supported by 2.34 and detailed steps for installing mannasim along with ns2.34.
shobana - Tuesday, 19. October 2010 at 5:44 |
At the moment, there is only one mannasim version available. It was originally released for ns 2.29. In this blog, I am explaining how to make it work with ns2.34
knowledgehurts - Wednesday, 2. March 2011 at 14:54 |
Hi
I ve been installed mannasim in ns 2.29 in both linux and xp..so u can better use of ns 2.29..if u still ve queries contact me @ 99945 66690…….
Thiyanes - Saturday, 23. October 2010 at 10:34 |
hi…! I have to create a simulation scenario in ns-2.34 for wireless sensor network for approx. 50 nodes. I am unable to understand whether any patch is needed for wsn simulations in ns-2.34 or not. Also, please suggest me the location for the appropriate patch if any. Its very urgent… please reply soon. tc
dsa - Thursday, 2. December 2010 at 8:12 |
There is no patches needed. Some simple WSN scenarios (AODV routing for example) work out of the box. However, they are perhaps not realistic enough (for 802.15.4 non-beacon mode simulations run with the on-board implementation could be sufficient). My advice: check what you want to show and what metrics you want to produce. Only if you are clear on that, you can clearly say if ns2 (with or without patches) is the right choice for simulation.
knowledgehurts - Wednesday, 2. March 2011 at 14:52 |
Hello,
I am new user of ns2. I would like to ask your help about the mobile-agents installation problems .
I need to integrate ns2.32 or ns2.34 with (http://www.cs.lamar.edu/faculty/osborne/Thesis/mobile-agents.tar)working on ns-2.1b9a.
But, when I modify NS-2.34 , it throws me error message.
please, show me steps how to install it in ns2.3x ?
thank you very much.
amine-ns - Friday, 31. December 2010 at 9:39 |
Hello
can anyone tell me….How to add patch in NS2.34?
i am unable to do it
Vishruti - Tuesday, 11. January 2011 at 12:40 |
You should probably be more specific if you expect help.
knowledgehurts - Wednesday, 2. March 2011 at 14:47 |
http://windows-droid.blogspot.in/2012/08/install-mannasim-patch-in-ns-234.html
Darpan - Wednesday, 10. April 2013 at 6:18 |
ns2.29 giving TK 8.4.11 error. I have gcc 4.4.3 on my machine so ns2.29 not getting installed on ubuntu lucid.
I want to patch mannasim
coolboy - Wednesday, 2. March 2011 at 13:38 |
So? Google the specific error!
knowledgehurts - Wednesday, 2. March 2011 at 14:46 |
mannasim not getting patched with ubuntu 2.34. if we follow the process like patching before installation and than installation, the install process completes without error but ./validate gives message “test output differs from reference output” for many tests, which is not the case for ns2.34 without mannasim. so can you describe the exact process patching mannasim with ns2.34. Moreover the patch does not have ns-modified folders
coolboy - Friday, 4. March 2011 at 7:10 |
Actually, the issue mentioned by coolboy on Friday, 4. March 2011 – the fact that ./validate does not behave as wished – is also present when installing the original Mannasim in ns2.27.
IMHO this is because the output of ns is altered by mannasim. Therefore the validate routine fails. This is not a bug in the patch or a compatibility issue with ns2.34.
@coolboy: since you seem to be into ns, I’d like you to invite you to add the ns-modified information… but I am not sure if the Mannasim extensions are really worth all this trouble, as I found them used in only one specific paper despite the authors’ claim that this is a “framework”…
knowledgehurts - Friday, 4. March 2011 at 10:03 |
hi i need a p2p protocol patch in NS2.3 in C++. i search it but didn’t get it.
gaya - Monday, 7. March 2011 at 8:53 |
hiii, i m using ns2.34 with gcc-4.3 and i have installed mannasim to using ‘mannasim-src-ns2.29.tar.gz’ ….after unzipping it, I did
cd ns-allinone-2.34 and run ./install
it is giving me following error
make: *** No rule to make target `tcp/tcp-qs.o’, needed by `ns’. Stop.
Ns make failed!
plzzzz help me out..
deepika - Sunday, 17. April 2011 at 9:56 |
yoi cann’t use mannasim patch 2.29 for the ns2.34 you should use mannasim patch for ns2.34 . this link may help you
http://windows-droid.blogspot.in/2012/08/install-mannasim-patch-in-ns-234.html
Darpan - Wednesday, 10. April 2013 at 6:25 |
Hi, For those who are unable to patch
Here is the link
http://www.wretch.cc/blog/ERIC80098/14177425
just go there and install it,
i have successfully patched my NS2..34, this is missing the Script generator tool as in version 2.29 it is present,
but further i dint know how to simulate WSN
if any one have any idea, please let me know
Thanks
Hammad - Monday, 25. July 2011 at 15:48 |
hello can you tell me how to download the patch file for 802.15.4.. is there any website for downloading it..please help me
dilja - Friday, 23. September 2011 at 18:03 |
hi
I am want to know how I simulate Energy mode in Wireless Sensor Network in ns 2.34.
Bhupendra - Thursday, 29. March 2012 at 19:42 |
Read this blog. Use google. And perhaps have a look at: https://knowledgehurts.wordpress.com/2012/03/30/simulating-wireless-sensor-networks-or-pretty-much-anything-on-ns2/
knowledgehurts - Friday, 30. March 2012 at 13:54 |
I too working on wireless sensor network. I am using ns2.34 on my ubuntu 10.04. but i dont know how to patch. i read that i have to install ns2.29 and then patch the mannasim to it..
please tell me how can i do this?
rawathi - Friday, 30. March 2012 at 13:25 |
Read the blog – or use google to know how to use the GNU patch utility
knowledgehurts - Friday, 30. March 2012 at 13:29 |
g++ -c -Wall -Wno-write-strings -DTCP_DELAY_BIND_ALL -DNO_TK -DTCLCL_CLASSINSTVAR -DNDEBUG -DLINUX_TCP_HEADER -DUSE_SHM -DHAVE_LIBTCLCL -DHAVE_TCLCL_H -DHAVE_LIBOTCL1_13 -DHAVE_OTCL_H -DHAVE_LIBTK8_4 -DHAVE_TK_H -DHAVE_LIBTCL8_4 -DHAVE_TCLINT_H -DHAVE_TCL_H -DHAVE_CONFIG_H -DNS_DIFFUSION -DSMAC_NO_SYNC -DCPP_NAMESPACE=std -DUSE_SINGLE_ADDRESS_SPACE -Drng_test -I. -I/home/virender/Desktop/ns-allinone-2.34/tclcl-1.19 -I/home/virender/Desktop/ns-allinone-2.34/otcl-1.13 -I/home/virender/Desktop/ns-allinone-2.34/include -I/home/virender/Desktop/ns-allinone-2.34/include -I/home/virender/Desktop/ns-allinone-2.34/include -I/usr/include/pcap -I./tcp -I./sctp -I./common -I./link -I./queue -I./adc -I./apps -I./mac -I./mobile -I./trace -I./routing -I./tools -I./classifier -I./mcast -I./diffusion3/lib/main -I./diffusion3/lib -I./diffusion3/lib/nr -I./diffusion3/ns -I./diffusion3/filter_core -I./asim/ -I./qs -I./diffserv -I./satellite -I./wpan -o tcp/tcp-asym-fs.o tcp/tcp-asym-fs.cc
make: *** No rule to make target `tcp/tcp-qs.o’, needed by `ns’. Stop.
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems
i am facing this kind of problem while installation of Mannasim on ns2.34
can any body help me
virender ranga - Wednesday, 18. July 2012 at 5:38 |
Can any one tell me how to add mannasim patch for ns-allinone-2.32 or ns-2.26. Its urgent
with regards
Manjula
rajamanjulajula - Tuesday, 24. July 2012 at 12:14 |
hi
i working with ns-2.29 and install mannasim in ns-2.29 but before install gcc-4.1 and g++-4.1 and patch mannasim in folder ns-allinone-2.29 then install ns2.29.
Hossein - Thursday, 16. August 2012 at 14:50 |
i need a link of manna sim installation file on ns2 2.35….and how to install it..plz do help me!
sravya - Wednesday, 20. March 2013 at 14:14 |
have you found how to do it??
if yes please tell me, i need it soooooooo much , thanks in advance, im waiting for your reply
nassima - Tuesday, 26. March 2013 at 17:20 |
Hello
i have used mannasim framework, and recently i’ve got som trouble . it generate some errors.
i would like to get a help to resolve this problem.
I’ve got a error concerning concerning META size , i have change ” char meta_[1000]” ; which was in (packet.h) struct hdr_rca to “char meta_[4000]”.
i’ve got another error message saying :
csEnd(code): code > CS_MAX_CODE?; 276535563 999
i tried to debug the code to know where is the problem ( a week of
debugging) with no result .
Please if there is any solution , patch , ….. are welcome
sof - Thursday, 28. March 2013 at 0:28 |
Go to following directory…
/ns-allinone-2.35/ns-2.35/mannasim/ sensedData.h
LINE NUM:47 #define BUFFER_SIZE 100
(DEFAULT VALUE)…
.then do ./configure
make clean
make
and then run your program
Vijay Patel - Sunday, 2. March 2014 at 20:31 |
PLEASE, knowledge hurts, does the patch of ns2.34 work with the ns2.35 version too??, please answer me
nassima - Thursday, 4. April 2013 at 10:07 |
Hello
There is patch for Mannasim in ns2.34
I works well, i ‘m actuellement preparing à patch for ns2.35.
Sof - Friday, 5. April 2013 at 22:53 |
ah ok, but when will you prepare it , can you tell me, or what can i do to change my ns version to 2.34? i m really late and i want to do quicly. please tell me what to do
nassima - Sunday, 7. April 2013 at 15:55
hi sof, in cant’ download mannasim for ns2.34, can you send it to me? please
zahra_5737@yahoo.com
zahra - Saturday, 31. January 2015 at 9:27
Hi can you give me the mannasim patch for 2.34
mohan - Wednesday, 2. October 2013 at 20:41 |
download it from here and follow the instructions
http://windows-droid.blogspot.com/2012/08/install-mannasim-patch-in-ns-234.html
@+
sof - Wednesday, 5. February 2014 at 23:16
ah ok, but when will you prepare it , can you tell me, or what can i do to change my ns version to 2.34? i m really late and i want to do quicly. please tell me what to do
nassima - Sunday, 7. April 2013 at 15:56 |
Hello
Voilà , here is the link for the patch file:
http://www.4shared.com/file/JeKlqNY_/ns235mannasim-gccmod2.html
You have to cpy it in folderns2.35 and then
 cd /ns-allinone2.35/ns2.35
make cleanÂ
patch -p2 < ns2.35mannasim-gccmod2.diff
./configure
 make
Example are in
 /ns2.35/mannasim/examples
Good luck
Sof - Monday, 8. April 2013 at 15:42 |
Thanks verry much for your helpfull spirit, knowlege hurts. But when i execute make clean, it gives me the following error: Impossible de supprimer “gen/version.o”: permission non- accordée Impossible de supprimer “gen/ns_tcl.o”: permission non- accordée Impossible de supprimer “gen/ptypes.o”: permission non- accordée Impossible de supprimer “gen/ns_tcl.cc”: permission non- accordée Impossible de supprimer “gen/version.o”: permission non- accordée … et d’autres instructions similaires. Pour cela, for that can u tell me how to remove this error? Please help me
Nassima Bousba - Monday, 8. April 2013 at 22:48
Hello,
I have notice that your are woking understandings Linux, to resolve this problem, you should get root permissions .
Ps: are you Algerian ?? !!!!
Good Luck
Sof - Thursday, 11. April 2013 at 14:01
can you tell me what can i do sof?, je suis bloquée et meme très pressée merciiiiii
nassima - Tuesday, 9. April 2013 at 15:08
sir
i have installed ns2.29 with mannasim patch on ubuntu 10.04
I want i know how to run mannasim script generator tool.
i followed the steps given on mannasim website.
I unpacked Mannasim src framework. But when I run ./configure and make command. I face error in leach protocol. make failed here.
I am new to WSN . plz give me details how to run msg.
Thanks in advance
Aska123 - Saturday, 20. April 2013 at 14:15 |
Hi aska, you have said that you have installed successfully ns2 with mannasim patch in ubuntu 10.04, can you help me and send me the installation steps of ns2.29 and its mannasim, pleaaaaaaaaaaaaaaaaaaase, i need it a lot, because i have tried to install it but i have failed :(,
so i m waiting for your reply as soon as possible, i will be so thankful 🙂 it is sooooooo emergent
thanks in advance
Nassima Mima B - Wednesday, 21. August 2013 at 16:59 |
permission denied couldn’t open .tr file while executing set tracefile [ open mannasim-rede-hierarquica.tr w]
Please can anybody help me how to come out of this problem while using mannasim
saurabh - Wednesday, 21. August 2013 at 9:56 |
Hi aska, you have said that you have installed successfully ns2 with mannasim patch in ubuntu 10.04, can you help me and send me the installation steps of ns2.29 and its mannasim, pleaaaaaaaaaaaaaaaaaaase, i need it a lot, because i have tried to install it but i have failed :(,
so i m waiting for your reply as soon as possible, i will be so thankful 🙂 it is sooooooo emergent
thanks in advance
Nassima Mima B - Wednesday, 21. August 2013 at 16:58 |
i have installed the mannasim patch as specofied in site , and also run ./configure but when i run ./make i get an error “no such file or directory”
can someone help
thanks
nivedita - Tuesday, 12. November 2013 at 19:30 |
can you help me or give me some details about how to implement mobile agent under ns-2?
rafat - Friday, 10. October 2014 at 0:01 |
[…] https://knowledgehurts.wordpress.com/2010/03/02/mannasim-on-ns-2-34-and-gcc-4-3/ increase buffer size in SensedData.h and reconfigure […]
Konfigurasi Mannasim Pada NS2.35 Untuk Protokol LEACH | @antonherutomo - Thursday, 14. May 2015 at 16:29 |