Error in simulating OLSR on ns-2.34
Hi all,
I am new to linux environemnt and learning ns2 for my thesis. So far I have installed ns-2.34 on fedora17 and patched olsr. This forum helped me a lot while installing as I had stumbled at many steps. Now I could simulate AODV and DSR properly however if I just change AODV to OLSR in the tcl file, it is resulting in following error. Please help, I'm not getting where to look for the error. Looking forward for your help. Code:
num_nodes is set 10 |
Welcome to LQ.
Which patch did you use ? The full file name, please. And what is "olsr_test.tcl" ? ( You can attach the file as olsr_test.tcl.txt ). - |
3 Attachment(s)
Hi,
Thanks for your time.. Name of the patch is, "um-olsr-2.34_v0.8.8.patch" And olsr_test.tcl is the wireless1.tcl file which I have updated for olsr. I have used the same tcl file to simulate AODV and DSR which did run correctly but giving error for OLSR. The tcl file, mobility file (mob_10) and traffic file(traffic_10) are attached. Mobility file and traffic were generated by me using setdest and cbegen.tcl which were inbuilt in NS2.34 Please also let me know if we get OLSR inbuilt in any NS2 version ? Looking forward for your suggestion. Thanks. |
# 3 : olsr_test2.tcl (Your edited olsr_test.tcl), lines 52, 53 :
Code:
set val(cp) "./traffic_10" ;#<-- traffic file Code:
$ ns-umolsr olsr_test2.tcl $ nam olsr_out.nam : OK. .. And "olsr_test2.tcl" still says OLSR in line 49, so I don't know why you fail. ('ns-umolsr' : I have 30 executable ns-*** so they must all have different names.) - |
#4
I did the changes on line 52 and 53 as you suggested but it shows same error :( I see in the code which you posted, you have used "ns-umolsr" to run the tcl file. I didn't get you. I use "ns" command from "ns-2.34" folder. Does that mean I have not patched OLSR correctly? or is there other version/distro of ns2 having capability to run olsr ? Also, I didn't get the last line of you reply. i.e "('ns-umolsr' : I have 30 executable ns-*** so they must all have different names.)" Please explain. Everything seems right in the tcl file as you said but still it is not running. Thanks. |
# 5
Quote:
Quote:
But with 30 times 'ns' in /usr/local/bin/ : Only one can be named ns, so all my ns are renamed to ns-<name>. The executable "ns-umolsr" works OK on Fedora 17 - 32bits (i686). (Could be made into an fc17 package, like "um-olsr-ns-2.34-1.fc17.i686.rpm" ~4.6 MB.) - |
I'm running Fedora17 64bit.
I'm not sure this package "um-olsr-ns-2.34-1.fc17.i686.rpm" would work on Fedora17 64 bit. I will try this anyway. Please provide link for 64 bit version um-olsr-ns-2.34 rpm if thats is available. Thanks.. |
OK, easy to build on the 64bits Fedora 17 :
cd ns-allinone-2.34/ && export CC=gcc34 CXX=g++34 && ./install $ cd umolsr-ex/ ; $ ns-umolsr olsr_test2.tcl : OK. Package um-olsr-ns-2.34-1.fc17.x86_64.rpm https://docs.google.com/file/d/0B7S2...it?usp=sharing cd Downloads/ ; # yum install um-olsr-ns-2.34-1.fc17.x86_64.rpm - |
Hello 'knudfl',
Thanks for all the information. Really appreciate it. I removed NS-2.34, did a clean install and used this patch "um-olsr_ns-2.34_v1.0.patch". And it is working perfectly. |
All times are GMT -5. The time now is 08:54 PM. |