08-01-2013, 03:28 PM
Zone Routing Protocol (ZRP) in NS-2
Zone Routing Protocol.ppt (Size: 323 KB / Downloads: 32)
Routing protocols in ad-hoc networks
Proactive
Periodic routing updates
Pros: little delay when route is needed
Cons: lots of overhead in routing updates (especially in highly dynamic environment)
Ex.: DSDV, WRP
Reactive
Source initiated/ on-demand approach
Pros: no periodic routing update overhead
Cons:
still considerable control traffic for route searching (near flooding)
long route query delay
Ex.: DSR, AODV
Hybrid architecture
Routing zone:
Radius r
Interior nodes and border nodes
Inter-zone routing
When the destination can not be found in the zone: Initiate route query
bordercasting
Installation and Operation
NS-2.1b6
Follow the README
example.tcl
set opt(adhocRouting) ZRP
Trace format in cmu-trace.cc (/zrp/support_code)
Useful scripts (in /zrp/scripts) to get statistics from trace file
Very useful debug switches in zrp.h
Useful scripts
In /zrp/scripts
2count_packets:
echo 'received IARPS...'
grep '^r [0-9]*\.[0-9]*.*IARP' $1
additionneur.cc
process the outputs from 2count_packet and get statistics (overheads, sucessful rate…, etc.)