LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-17-2014, 09:59 PM   #1
david_diamond
LQ Newbie
 
Registered: Mar 2014
Posts: 6

Rep: Reputation: Disabled
Thumbs down 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
 
Old 03-18-2014, 06:17 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
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/
-
Attached Files
File Type: txt olsr-examples0613.tar.bz2.txt (10.6 KB, 83 views)
 
Old 03-18-2014, 07:32 AM   #3
david_diamond
LQ Newbie
 
Registered: Mar 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Post

Quote:
Originally Posted by knudfl View Post
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!
 
Old 03-18-2014, 07:47 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
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.

-
 
Old 03-18-2014, 08:32 AM   #5
david_diamond
LQ Newbie
 
Registered: Mar 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
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.
 
Old 03-23-2014, 03:27 AM   #6
david_diamond
LQ Newbie
 
Registered: Mar 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
Angry 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
 
Old 03-23-2014, 04:58 AM   #7
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 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.

-
 
Old 03-26-2014, 01:26 AM   #8
david_diamond
LQ Newbie
 
Registered: Mar 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
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!
 
Old 04-06-2014, 12:55 AM   #9
david_diamond
LQ Newbie
 
Registered: Mar 2014
Posts: 6

Original Poster
Rep: Reputation: Disabled
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!
 
Old 04-06-2014, 04:34 AM   #10
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 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
-
Attached Files
File Type: txt y-jitter.txt.bz2.txt (5.8 KB, 23 views)

Last edited by knudfl; 04-06-2014 at 04:53 AM.
 
Old 06-03-2014, 01:26 AM   #11
muthana
Member
 
Registered: Oct 2013
Posts: 61

Rep: Reputation: Disabled
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
 
Old 06-03-2014, 02:11 AM   #12
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen, DK
Distribution: pclos2016, Slack14.1 Deb Jessie, + 50+ other Linux OS, for test only.
Posts: 16,276

Rep: Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154Reputation: 3154
# 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

-
 
  


Reply

Tags
ns2, olsr


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
olsr patch for ns2.35 ubuntu 12.10 alr_m Linux - Software 1 01-15-2014 10:11 AM
OLSR implementation in NS2 Ashish Kots Linux - Wireless Networking 2 05-18-2013 06:25 AM
ns2 installation on ubuntu with olsr patch giving following error bhushan0710 Linux - Newbie 8 01-21-2013 05:09 AM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration