Archive for the ‘My Lecture’ Category

TCL Script for AODV-UU in Ad hoc Hybrid Network

March 27, 2011

Here is my TCL script to running AODV-UU in ad hoc hybrid network scenario using NS-2.34 and AODV-UU-0.9.6. (more…)

Pertemuan #1 Sistem Multimedia : Pendahuluan dan Pengenalan

March 15, 2011

Pertemuan pertama matakuliah Sistem Multimedia akan membahas tentang materi serta aturan main pada kelas ini. Anda bisa mengunduh materi pdf disini.

Problem 'undefined' Protocol in Trace File

March 4, 2011

After I’ve ported & installed my new protocol into NS-2.34 on my Ubuntu 10.4, I’ve got something unusual in my trace file. It should be my protocol showed in trace file, but my trace file looks like this:
…..
…..
f -t 100.617533225 -Hs 9 -Hd 0 -Ni 9 -Nx 216.96 -Ny 129.62 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw — -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 12582914.255 -Id -1.255 -It undefined -Il 44 -If 0 -Ii 1949 -Iv 4
s -t 100.617708225 -Hs 9 -Hd 0 -Ni 9 -Nx 216.96 -Ny 129.62 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw — -Ma 0 -Md ffffffff -Ms 5 -Mt 800 -Is 12582914.255 -Id -1.255 -It undefined -Il 102 -If 0 -Ii 1949 -Iv 4
r -t 100.618524510 -Hs 5 -Hd 0 -Ni 5 -Nx 300.00 -Ny 150.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw — -Ma 0 -Md ffffffff -Ms 5 -Mt 800 -Is 12582914.255 -Id -1.255 -It undefined -Il 44 -If 0 -Ii 1949 -Iv 4
….
….
Almost 2 weeks I’ve been stuck in this problem. And, Alhamdulillah (*Thanks God*), now it’s SOLVED. The problem is I have to modified the packet.h file. Since NS-2.33 changed with adding support for dynamic libraries. The packet_t is changed from enum to unsigned int in order to allow dynamic definition of new packet types within dynamic libraries. Pre-defined packet types are implemented as static constanta.

And the packet.h file will added line as follows:

// PT_MYPROTO; ———————————> Changed!
static const packet_t PT_MYPROTO = 62;

// insert new packet types here
static packet_t PT_NTYPE = 63; // This MUST be the LAST. The original value is 62.

And add “type == PT_MYPROTO” on line 260.
static packetClass classify(packet_t type) {
if (type == PT_DSR ||
type == PT_MESSAGE ||
type == PT_TORA ||
type == PT_AODV ||
type == PT_MYPROTO)
return ROUTING;


Problem ‘undefined’ Protocol in Trace File

March 4, 2011

After I’ve ported & installed my new protocol into NS-2.34 on my Ubuntu 10.4, I’ve got something unusual in my trace file. It should be my protocol showed in trace file, but my trace file looks like this:
…..
…..
f -t 100.617533225 -Hs 9 -Hd 0 -Ni 9 -Nx 216.96 -Ny 129.62 -Nz 0.00 -Ne -1.000000 -Nl RTR -Nw — -Ma 0 -Md 0 -Ms 0 -Mt 0 -Is 12582914.255 -Id -1.255 -It undefined -Il 44 -If 0 -Ii 1949 -Iv 4
s -t 100.617708225 -Hs 9 -Hd 0 -Ni 9 -Nx 216.96 -Ny 129.62 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw — -Ma 0 -Md ffffffff -Ms 5 -Mt 800 -Is 12582914.255 -Id -1.255 -It undefined -Il 102 -If 0 -Ii 1949 -Iv 4
r -t 100.618524510 -Hs 5 -Hd 0 -Ni 5 -Nx 300.00 -Ny 150.00 -Nz 0.00 -Ne -1.000000 -Nl MAC -Nw — -Ma 0 -Md ffffffff -Ms 5 -Mt 800 -Is 12582914.255 -Id -1.255 -It undefined -Il 44 -If 0 -Ii 1949 -Iv 4
….
….
Almost 2 weeks I’ve been stuck in this problem. And, Alhamdulillah (*Thanks God*), now it’s SOLVED. The problem is I have to modified the packet.h file. Since NS-2.33 changed with adding support for dynamic libraries. The packet_t is changed from enum to unsigned int in order to allow dynamic definition of new packet types within dynamic libraries. Pre-defined packet types are implemented as static constanta.

And the packet.h file will added line as follows:

// PT_MYPROTO; ———————————> Changed!
static const packet_t PT_MYPROTO = 62;

// insert new packet types here
static packet_t PT_NTYPE = 63; // This MUST be the LAST. The original value is 62.

And add “type == PT_MYPROTO” on line 260.
static packetClass classify(packet_t type) {
if (type == PT_DSR ||
type == PT_MESSAGE ||
type == PT_TORA ||
type == PT_AODV ||
type == PT_MYPROTO)
return ROUTING;


Gnuplot Script for Routing Over Head, Packet Delivery Ratio and End-to-End Delay

March 3, 2011

Here are my gnuplot script to make a graph using gnuplot. In this case I compared 3 AODV routing protocols .

(more…)

Methods and Tools

February 20, 2011

Above is part of my survey of Ad hoc On-demand Distance Vector (AODV) routing protocols classification by methods and tools.

My Abstract for QiR 2011

February 15, 2011

Abstract

In mobile ad hoc networks (Manets), routing protocol plays the most important role. In the last decade, Ad hoc On-demand Distance Vector (AODV) routing protocol becomes the attention of focused research on Manets world wide. A lot of protocols had been proposed to improve and optimize AODV routing protocol to achieve the best in quest of reliable protocol. In this paper, we proposed a new variant of AODV routing protocol based on combination of two protocols, AODV+ and R-AODV. We called it AODV-UI. The proposed protocol has some advantages such as availability gateway mode and optimize route discovery which adopt reverse route.  This paper presents a performance analysis of our proposed protocol. We measure some performance indicators such as end-to-end delay, packet delivery ratio and routing overhead. The simulation results show that our proposed protocol AODV-UI outperformed AODV+ especially in terms of routing overhead. It decreases the end-to-end delay by 19.24% and increases the packet delivery ratio by 7.54% as well as decreases the routing overhead by 68.09%.

Keywords: AODV, routing protocol, performance analysis


Keywords: AODV, routing protocol, performance analysis

Problem with stack or memory allocation in NS-2

February 10, 2011

I’ve installed ns-2.34 and aodv-uu-0.9.6 on Ubuntu. But when I run simulation and type “ns”, I got error message like this :
(more…)

Patching AODV-UU-0.9.6 Into NS-2.34

February 3, 2011

Since the latest aodv-uu version (aodv-uu-0.9.6) only support till ns-2.32, I have to make my own patch aodv-uu-0.9.6 for ns-2.34.

1. Installing NS-2.34
This is my experience when I was installing ns-2.34 on Ubuntu 10.4. Make sure that before you perform installation, the following packages installed:

 ~$ sudo apt-get install libxt-dev libx11-dev libxmu-dev

I noticed that ns-2.34 did not build on the new version Ubuntu such as 9.10 – 10.10, due to this error when linking:
(more…)

AODV-UI

January 30, 2011

For my reseach project this semester, I tried to combine 2 protocols, AODV+ and R-AODV in NS-2.34. We called it AODV-UI. My goals is to combine gateway mode and reverse mode in route discovery mechanisme, so we’ve got a new variant AODV. Here the source code of AODV-UI. FYI, this aodv routing protocol is still in developing. And we’re working on it.