2008年5月22日 星期四

lab 10 analysis of Adhoc routing protocol

Creating and analyzing the Ad Hoc model network by ns2.

point to point network access


Ad Hoc routing protocol
  • Proactive routing protocol
  • Reactive routing protocol
DSDV vs AODV vs DSR



tool of cbrgen and setdest

cbrgen
  • cbrgen can create TCP flow or CBR flow
  • follow the instruction in the book, we can get the output in cbr_n5_m2_r10
setdest

is developed for the node to move.





$ns_ at 0.000000000000 "$node_(0) setdest 156.840080144521 30.349526929832 0.011129687148"
moving to x=156.84 y=30.34

$ns_ at 0.000000000000 "$node_(1) setdest 132.171021306788 67.100889388701 3.213954821346"

example 1

assume we have 100 nodes simulation time 100s pause time 100s
no mobility, use CBR flow, max connection 10, 10 packets per sec.



read the example code lab10_1.tcl and evaluation program parse.awk

ns simulate the DSDV, AODV and DSR
DSDV


AODV


DSR



When the pause time set to 0.
the node is moving

DSDV



AODV



DSR


if the node is moving rapidly, AODV or DSR can make the first node receive earlier.
DSDV path is not always available. When it has to update routing table, the time will be delay in the first pakets.




2008年5月15日 星期四

Learn how to extend NS2

The ref

start from my own computer
Let's see what we got!
The directory structure of ns-allinone-2.29


All the