Your SlideShare is downloading. ×
Simulation and Performance Analysis of AODV using NS-2.34
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Saving this for later?

Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime - even offline.

Text the download link to your phone

Standard text messaging rates apply

Simulation and Performance Analysis of AODV using NS-2.34

10,854
views

Published on

Published in: Technology

0 Comments
10 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
10,854
On Slideshare
0
From Embeds
0
Number of Embeds
1
Actions
Shares
0
Downloads
339
Comments
0
Likes
10
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide

Transcript

  • 1. Simulation and Performance Analysis of AODV using NS-2.34 Shaikhul Islam Chowdhury Student ID : 20107745 WMCS Lab
  • 2. What is AODV ?
    • A d-hoc O n-demand D istance V ector R outing Protocol for Mobile Ad-hoc Network
    • Its called reactive table driven routing protocol
    • Descendent of DSDV
  • 3. Principles of AODV
    • It uses routing table with [dest id, dest seq no. next hop, life time]
    • Uses RREQ,RREP for route discovery, route reply
    • Backward path setup
    • Forward path setup
    • Can receive multiple RREP, will use only with recent seq. no or smallest hop no
    • Route failure, RERR
    • Route expires after route life time
    • Use hello messages for local connectivity maintenance
  • 4. Simulation of AODV with ns-2.34
    • Experimental Setup
    Vary Constant Speed(10-50s) No of nodes(50), pause time(0s), max connections(10) Pause time(0-300) No of nodes(50),speed(25m/s), max connections(25) Max connections(5-25) No of nodes(50), speed(25m/s), pause time(0) No of nodes(20-60) Pause time(0s), max speed(10 m/s), max connections(10)
  • 5. Simulation of AODV with ns-2.34 (cont.)
    • Simulation Parameters:
    Parameter Name Value Simulation Area 1000x800 Type of Traffic CBR Packet size 512 bytes Packet rate 4 packet/s Max connections 25
  • 6. Simulation of AODV with ns-2.34 (cont.)
    • Performance metrics
      • Packet delivery fraction – total rcv : total sent
      • End to end delay – avg time between a pkt sent and rcv
      • Drop rate – total dropped pkt for routing : total packet sent
      • Routing overhead – total no of routing pkt transmitted
      • Normalized routing load – total no of routing pkt : total rcv data packt
  • 7. Simulation of AODV with ns-2.34 (cont.)
    • Fixed parameters
    Parameter Value addressingType Flat Lltype LinkLayer macType Mac/802.11 ifqType Queue/Droptail/PriQueue phyType Phy/WirelessPhy antType Antenna/OmniAntenna channelType Channel/WirelessChannel
  • 8. Tcl config
    • Set options
    • set val(chan) Channel/WirelessChannel ;# channel type
    • set val(prop) Propagation/TwoRayGround ;# radio-propagation model
    • set val(netif) Phy/WirelessPhy ;# network interface type
    • set val(mac) Mac/802_11 ;# MAC type
    • set val(ifq) Queue/DropTail/PriQueue ;# interface queue type
    • set val(ll) LL ;# link layer type
    • set val(ant) Antenna/OmniAntenna ;# antenna model
    • set val(ifqlen) 50 ;# max packet in ifq
    • set val(nn) 50 ;# number of mobilenodes
    • set val(rp) AODV ;# routing protocol
    • set val(x) 1200 ;# x point of topography
    • set val(y) 800 ;# y point of topography
    • set val(seed) 1.0 ;# psudo random number
    • set val(cp) "scene/cbr-50-25-4-512“ ;# traffic pattern
    • set val(sc) "scene/scen-1200-800-50-0-25" ;# mobility model
  • 9. Tcl config (cont.)
    • Configure node
    • -llType $val(ll)
    • -macType $val(mac)
    • -ifqType $val(ifq)
    • -ifqLen $val(ifqlen)
    • -antType $val(ant)
    • -propType $val(prop)
    • -phyType $val(netif)
    • -topoInstance $topo
    • -agentTrace ON
    • -routerTrace ON
    • -macTrace OFF
    • -movementTrace OFF
    • -channel $chan_1_
  • 10. Tcl config (cont.)
    • Disable random motion for each node by using tcl command ‘ random-motion 0 ’
    • Use a file for wireless trace ‘aodv.tr’
    • Load node movement : ‘ source $val(sc) ’
    • Load traffic pattern : ‘ source $val(cp) ’
    • Finally tell each nodes when the simulation ends
    • Run the simulation
  • 11. Scenario generator
    • MobileNode Movement
      • $ ./setdest –n <no_of_nodes> -p <pause_time> -s <speed setting> -M <max speed> -t <simtime> -x <maxX> -y <maxY>
    • Traffic Pattern
      • $ ns cbrgen.tcl –type <cbr> –nn <no_of_nodes> -seed <seed> -mc <max_con> -rate <rate>
    $ ./setdest –n 50 –p 0 –s 10 –M 10 –t 900 –x 500 –y 500 > output dir $ ns cbrgen.tcl –n 50 –p 0 –s 10 –M 10 –t 900 –x 500 –y 500 > output dir
  • 12. Trace file analysis
    • Send pkt detection: it should starts with ‘s’ , -Nl AGT and –It CBR
    • Rcv pkt detection: it should starts with ‘r’ , -Nl AGT and –It CBR
    • Routing pkt detection: it should starts with ‘s’ || ‘f’, -Nl RTR and –It AODV
    • Routing drop pkt detection: it should starts with ‘d’ and –Nl RTR
    Nl – Node Trace Level [AGT, RTR, MAC] It – Packet type [message, cbr, tcp, AODV]
  • 13. Performance Analysis (cont.)
    • Varying max speed (10,20,30,40,50 m/s)
  • 14. Performance Analysis (cont.)
    • Varying pause time (0, 100, 200,300,400)
  • 15. Performance Analysis (cont.)
    • Varying max connections (5-40)
  • 16. Performance Analysis (cont.)
    • Varying number of nodes (10,20,30,40,50)
  • 17. Conclusion
    • AODV performs worse when speed of nodes increases
    • Perform better in high pause times
  • 18. References
    • NS-2 Manual
    • web - Marc Greis tutorial
    • A Review of current routing protocols for ad hoc mobile wireless networks , Elizabeth M. Royer, Chai-Keong Toh
    • Performance Analysis of Proactive and Reactive Routing Protocols for Ad hoc networks , S.S Tyagi and R.K Chauhan
  • 19. Thank You!