LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   NS2 - AODV & OLSR - Ubuntu (https://www.linuxquestions.org/questions/linux-newbie-8/ns2-aodv-and-olsr-ubuntu-4175498542/)

david_diamond 03-17-2014 08:59 PM

NS2 - AODV & OLSR - Ubuntu
 
Hello everyone

My very first post here on this website. I am due an assignment soon and I'm assumed that i'll finish it off in the end never realizing that it would be a pain in the back.

Now, I'm wanting to do a performance comparison between AODV & OLSR and cover some basics metrics like throughput, jitter, eed, under NS2 and am using Ubuntu. Now, I found this software called 'NS2 Scenario Generator' who basically generates the tcl scripts for you which obviously would me amazing as I have very little knowledge in Programming but the only problem I'm having with this software is that it only does Proactive protocols, so it supports AODV but not OLSR.

So I'm really confused on what to do and how to do it?
And I wan't to be very open and honest, I have not got much time left to finish this off and this is like a big thing for me as if I don't do well in this assignment this will be the end of the world for me. Like literally.

So, I'm looking for some suggestions on how can I solve this problem?

Thanks, much appreciated!
David

knudfl 03-18-2014 05:17 AM

1 Attachment(s)
Welcome to LQ.

"ns2" : Lots of hard work. It's like "A week to learn building ns2" and
"Three months to learn how to use ns2".

There is no "AODV" in the OLSR examples that I know.

* Which "NS2 Scenario Generator" are you using ?
All files.tcl can be edited. They are plain text files.
You can add what you want. ( And sometimes it will also work.)

OLSR info at LQ http://www.linuxquestions.org/questions/tags/olsr/
-

david_diamond 03-18-2014 06:32 AM

Quote:

Originally Posted by knudfl (Post 5136631)
Welcome to LQ.

"ns2" : Lots of hard work. It's like "A week to learn building ns2" and
"Three months to learn how to use ns2".

There is no "AODV" in the OLSR examples that I know.

* Which "NS2 Scenario Generator" are you using ?
All files.tcl can be edited. They are plain text files.
You can add what you want. ( And sometimes it will also work.)

OLSR info at LQ http://www.linuxquestions.org/questions/tags/olsr/
-

Hi Knudfl,

Thanks for your reply.

I can understand that it is a lengthy process to go through from that but I barely got 2 weeks or so to get this done. I feel such an idiot that I left it all till the end. I have learned my lesson now seriously I'm so furious at this time.

As I said my assignment is not something nobody has ever done it before, as I can find numerous examples online meaning so much papers, articles published online who have already done this and are very similar to what I am doing but obviously none of of them explains on HOW TO DO IT? Meaning the whole process to get to that stage.

The software I'm talking about is the first hit if you google "NSG2" "TCL Script Generator" but here's the link anyway:
https://sites.google.com/site/pengjungwu/nsg

I mean from what I can understand is that I would do the AODV protocol experiments separate from the OLSR and then compare the output files received from each protocol by using xgraph, but I can't really seems to find an way to do this.

Also I have already been through the link you supplied, but nothing really matches there to my problem. Thanks anyway!

knudfl 03-18-2014 06:47 AM

When you add "um-olsr" to ns2, you actually have both protocols present,
but I'd neither know how to compare aodv+olsr in one simulation file.tcl .


But anyway lots of hits with Google .. compare aodv and olsr routing protocol ..
https://www.google.com/webhp?hl=all#...tocol&start=10

And Google .. ns2 compare aodv and olsr ..
https://www.google.com/webhp?hl=all#...+aodv+and+olsr
http://www.ijceronline.com/papers/Vo...O023704711.pdf
"Simulation is used to compare the performance of AODV, OLSR and .."

http://www.slideshare.net/mehedi480/...-olsr-protocol
"Comparison Between AODV and OLSR."

... etc. etc.

-

david_diamond 03-18-2014 07:32 AM

Quote:

Originally Posted by knudfl (Post 5136681)
When you add "um-olsr" to ns2, you actually have both protocols present,
but I'd neither know how to compare aodv+olsr in one simulation file.tcl .


But anyway lots of hits with Google .. compare aodv and olsr routing protocol ..
https://www.google.com/webhp?hl=all#...tocol&start=10

And Google .. ns2 compare aodv and olsr ..
https://www.google.com/webhp?hl=all#...+aodv+and+olsr
http://www.ijceronline.com/papers/Vo...O023704711.pdf
"Simulation is used to compare the performance of AODV, OLSR and .."

http://www.slideshare.net/mehedi480/...-olsr-protocol
"Comparison Between AODV and OLSR."

... etc. etc.

-

That's what I said to you in my previous post that there are many papers online like this but obviously, they don't give away the tcl scripts or any information on how this example was conducted. I have about 100's of links like this but none of them would explain on how to do it.

And, I don't want to just copy paste somebody else's work for the sake of my assignment. I really wan't to do it on my own and then know how to do it and obviously emend it according to my requirements. That's why I posted this on this forum to see if anybody knows the steps involved for this assignment.

david_diamond 03-23-2014 02:27 AM

OLSR patch 2.35 in Ubuntu 10.04
 
Hi everyone,

After the successful installation of ns2, I was trying to download the olsr protocol from this website:

http://www.nsnam.com/2013/11/olsr-pr...s-235-ns2.html

Once I do "/.configure" it comes up with this:

Code:

I do "/.configure" it comes up with this:

checking for init.tcl... ../lib/tcl8.5
checking for http.tcl... ../lib/tcl8.5/http1.0
checking Tcl http.tcl library... yes
checking for tclsh8.4.19... no
checking for tclsh8.4... /usr/bin/tclsh8.4
configure: error: Installation of tcl seems incomplete or can't be found automatically.
Please correct the problem by telling configure where tcl is
using the argument --with-tcl=/path/to/package
(perhaps after installing it),
or the package is not required, disable it with --with-tcl=no.

Can anyone please tell me how to get my way round it? Thanks

knudfl 03-23-2014 03:58 AM

# 6 .
The original file(s) http://sourceforge.net/projects/um-olsr/

`ns-2.35' : You will have to be lucky to use "./configure'.
I.e. ns-2.35 has a less advanced build system than ns-2.26 ..ns-2.34 .
The safe way is to go to the top directory, and do "./install".

** There is an Ubuntu example here, post #11 :
http://www.linuxquestions.org/questi...4175490225/#11
→ Start from scratch (tar xvf ns-allinone-2.35.tar.gz) ,,,
or do a 'make distclean' in ns-allinone-2.35/ns-2.35/ .
When the um-olsr/ olsr/ is in place, and the patching has been done,
change to the topdirectory "ns-allinone-2.35/" and use :
$ export CC=gcc-4.4 CXX=g++-4.4 && ./install

? Any questions ? Then please specify your OS :
a) $ uname -m <Enter>
b) The name and version of your OS.

-

david_diamond 03-26-2014 12:26 AM

Hi,

I have successfully managed to get OLSR working in NS2.

Now, the situation is, I have a tcl file for AODV & a tcl file for OLSR, which both seems to be working fine. As I can get 2 output files from both Protocols, 1 is ".tr" file and another is ".nam" file.

Also, I have also got some awk scripts for Jitter, Throughout, PDR and etc.

Now, I'm absolutely confused on what to do and how to do?

Would anyone be able to tell me the steps I have to do in order to finish off with this assignment please?

Thanks, Also, some list of commands would be really really appreciated.

Thanks again!

david_diamond 04-05-2014 11:55 PM

Jitter - Getting No Values
 
Hello everyone

Somehow after reading through a good number of threads, links and everything I have managed to get 70% of this assignment done. But now I'm stuck on calculating Jitter.

When I use the awk script for calculating Jitter, it terminals prints me this:

Code:

#  flow flowType src dst time jitter1 jitter2 jitter3 jitter4
Now, I'm not able to understand why it's doing this, where as when I run all other Awk scripts for Throughput, Delay and etc etc, I get a value which I then use to make graphs but when I'm running the awk script for Jitter I get this.

Does anyone know what this is and why I'm getting it?

Thanks for all your support, just need to get this sorted out and that will be pretty much with this.

Thanks again everyone!

knudfl 04-06-2014 03:34 AM

1 Attachment(s)
# 9 .

Assume $ awk -f instantJitter.awk out.tr
Quote:

# flow flowType src dst time jitter1 jitter2 jitter3 jitter4
.
Now, I'm not able to understand why it's doing this
You can find out "why" when you read the awk script :
The script will print the 8 coloms, flow .. .. jitter1 jitter2 jitter3 jitter4,
.. and use those coloms to print any output. ( If any output at all.)

I didn't find an olsr example that showed any "jitter output" with any awk script.

A good jitter example (LTE) :
A) $ ns-lte eyana.tcl B) $ awk -f instantJitter2009.awk out.tr
... Or B1) $ awk -f instantJitter2009.awk out.tr > y-jitter.txt
... to save the 5,000 lines jitter text ( 450 kB ! ).

? Did you test your .tr file with $ awk -f avgStats.awk out.tr
"awk_scripts_03.2014.tar.bz2" https://drive.google.com/file/d/0B7S...it?usp=sharing
-

muthana 06-03-2014 12:26 AM

Dear knudfl

I do the awk -f e2e.awk out.tr and also I did gawk -f e2e.awk out.tr the result for both is

awk: e2e.awk:17: (FILENAME=olsr_500.tr FNR=1219729) fatal: division by zero attempted
ht@hts

gawk: e2e.awk:17: (FILENAME=olsr_500.tr FNR=1219729) fatal: division by zero attempted
ht@hts

please can you help to solve this problem

note\\ for all the awk script (https://drive.google.com/file/d/0B7S...it?usp=sharing) #10 have the same error for the resulte

thanks

knudfl 06-03-2014 01:11 AM

# 11 .

"e2e.awk" : `end to end delay´ ? Why not try all the others ? ?
Note : Some trace files have combinations of figures that will show
"division by zero attempted".

List : delay.awk, delay-e2e.awk, e2edelay.awk, en2end-delay.awk,
end-to-end.awk, Endtoenddelay.awk, End-to-End-Delay.awk, tess-delay.awk.
... You can also modify a script to fit your needs.

Latest scripts package : awk_scripts-05.2014.tar.bz2
https://drive.google.com/file/d/0B7S...it?usp=sharing

-


All times are GMT -5. The time now is 10:20 PM.