Mister Disagree

"Be the change you wanna see in the world" - Michael Scofield

Project title: Performance Comparison Between IPv4 and IPv6 over WLAN Technology
Scope: more focus on ad hoc network architecture (multi-hop ad hoc network)

4 type of environment:
1) Mobile IPv4 TCP
2) Mobile IPv6 TCP
3) Mobile IPv4 UDP
4) Mobile IPv6 UDP

Comparison crateria:
1) Average delay
2) Average throughput
3) Speed
4) Packet loss rate

Language use:
1) TCL language - for generate network environment in NS2
2) AWK language - for manipulate tracefile to display network statistic

overall process:


logical design:

Figure 1: logical design of MIPv4TCP, MIPv6TCP, MIPv4UDP,MIPv6UDP

physical design:
Figure 1: Physical design of MIPv4TCP, MIPv6TCP, MIPv4UDP,MIPv6UDP


SAMPLE PROCESS (MIPv4TCP)

1) install NS-2 (*please view entry posted before)
2) Create TCL script to create the network environment
Figure 3: MIPv4TCP's tcl script

3) Compile the script
i- Log in as root
ii- Enter the folder contain tcl script file (MIPv4TCP.tcl)
iii- Compile the script

*By compiling the MIPv4TCP.tcl, 2 type of file will be directly created which are MIPv4TCP.nam and MIPv4TCP.tr
* File .tr (tracefile) is a file contain the entire network behavior during the simulation process.
* File .nam (network animation) is a file contain 2D animation that display the network simulation process.

Figure 4: compile the script

Figure 5: Folder container b4 and after compile all 4 environment


Figure 6: MIPv4TCP.nam

Figure 7: MIPv4TCP.tr

4) Create awk script to measure and calculate network statistic
i. save the script as "all_parameter.awk"
ii. recommend to save within the same folder contain the trace file

Figure 8: all_parameter.awk script

5) Run the awk script by invoke the trace file that want to be measure
i. Via terminal, enter the directory contain "all_parameter.awk" and "MIPv4TCP.tr"
ii. command: awk -f all_parameter.awk MIPv4TCP.tr
iii. Result as shown below will apppear.

Figure 9: MIPv4TCP statistic

6) Compare the difference between all 4 environment
7) Make a decision which IP address format is the best approach in wireless environment for TCP and UDP.

*Project enhancement for PSM 2
i. Search 3 journal that discuss about project methedology, then state why do i choose my current methedology
ii. Search 3 journals that discuss about awk and pearl language, then state why do i choose my current language
iii. Enhance IPv6 script
iv. Add more comparison crateria (Handover delay, jitter)
v. Implement graph to illustrate the comparison result

STEP 1

From terminal login as super user and do the following.(internet must also be connected in order to install the package dependencies.

yum install autoconf
yum install automake
yum install gcc-c++
yum install libX11-devel
yum install xorg-x11-proto-devel
yum install libXt-devel
And for nam installation (optional):
yum install libXmu-devel

STEP 2

From terminal go to the folder where the ns-allinone patch is placed and type the following to extract
$ tar -xzf ns-allinone-2.31.tar.gz
$ cd ns-allinone-2.29
$. /install

STEP 3

Now go to /etc folder and type

gedit ~/.bashrc

Add the following lines to the end of it. Remember replace "/your/path" by something like "/home/kazim". And accordingly also change the version numbers. This is for ns 2.31.

# LD_LIBRARY_PATH
OTCL_LIB=/your/path/ns-allinone-2.31/otcl-1.13
NS2_LIB=/your/path/ns-allinone-2.31/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB

# TCL_LIBRARY
TCL_LIB=/your/path/ns-allinone-2.31/tcl8.4.14/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB

# PATH
XGRAPH=/your/path/ns-allinone-2.31/bin:/your/path/ns-allinone-2.31/tcl8.4.14/unix:/your/path/ns-allinone-2.31/tk8.4.14/unix
NS=/your/path/ns-allinone-2.31/ns-2.31/
NAM=/your/path/ns-allinone-2.31/nam-1.13/
PATH=$PATH:$XGRAPH:$NS:$NAM

Let it take effect immediately

source ~/.bashrc

NS-2
stand 4 Network simulator version 2...
develop utk run kat linux environment...
tp skrng da bleh implement kat OS lain...
even windows...
NS-2 gune language tcl...
never heard before...
tp nk sng bleh gne NS-3 yg just gne c++ je...
tp 2 cter lain...
NS-2 is totally coding..
dr nk create node sampai nk create whole network environment...
node,channel,link,protocol,bandwidth, bla bla bla...
compile bru display similation...
sbnr nyer after compile...
2 bnde akan terhasil...
NAM & trace file...
NAM...
NS-2 integrate skali ngn NAM...
NAM stand 4 network animator...
rusult yg terhasil akan di simulate gune NAM..
baru la sdp mate memandang...

trace file...
trace file gune utk analyze result yg terhasil...
tp bkn bleh bace tros dr trace file...
coz trace file cme akan papar result yg blom d proses lg..
means raw data la...
utk dpt result yg lbh detail n spesifik...
perlu run gune mathlab or xpss software...
baru sng nak analyze...
by the way...
bkn mudah nk install NS-2...
lg2 kat linux...
ni website yg tnjuk full step utk install NS-2
renung2 kan..da selamat beramal....