for your eyes only
Knowledge Hurts – a blog of thoughts, things and stuff.

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.

61 Responses to “Mannasim on ns 2.34 (and gcc 4.3)”

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

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

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

  4. If you don’t listen, you won’t learn…

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

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

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

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

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

  8. 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 ?

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

    • 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

  10. 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…….

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

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

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

  13. Hello
    can anyone tell me….How to add patch in NS2.34?
    i am unable to do it

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

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

  16. 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”…

  17. hi i need a p2p protocol patch in NS2.3 in C++. i search it but didn’t get it.

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

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

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

  21. hi
    I am want to know how I simulate Energy mode in Wireless Sensor Network in ns 2.34.

  22. 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?

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

  24. Can any one tell me how to add mannasim patch for ns-allinone-2.32 or ns-2.26. Its urgent
    with regards
    Manjula

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

  26. i need a link of manna sim installation file on ns2 2.35….and how to install it..plz do help me!

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

    • 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

  28. PLEASE, knowledge hurts, does the patch of ns2.34 work with the ns2.35 version too??, please answer me

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

    • 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

      • 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

      • 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

      • can you tell me what can i do sof?, je suis bloquée et meme très pressée merciiiiii

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

    • 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

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

    • 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

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

  33. can you help me or give me some details about how to implement mobile agent under ns-2?


Leave a reply to Hammad Cancel reply