SlideShare a Scribd company logo
1 of 33
Download to read offline
1
Simulation in AODV and DSR
2
Outline
 Review DSR and AODV
 Simulation Environment
 Simulation Graph
 Simulation Result
 Conclusion
3
DSR Route Discovery
A
B
C
D
E G
F H
[A,G,ID,A]
[A,G,ID,AB] [A,G,ID,ABE]
[A,G,ID,AC]
Node E drop the
packet because it has
forward the same ID
packet
Source A forward
data to destination G
4
DSR Route Reply
A
B
C
D
E G
F H
[A,B,E]
[A,B,E][A,B,E]
[A,B,E]
Node A stores the route
from A to G in its route
cache
5
AODV Route Discovery
A
B
C
D
E G
F H
Source A forward
data to destination G
A broadcast RREQ
sets up a reverse
path
6
AODV Route Discovery
A
B
C
D
E G
F H
7
AODV Route Discovery
A
B
C
D
E G
F H
8
AODV Route RREP
A
B
C
D
E G
F H
<source_addr , broadcast_id>
9
DSR vs AODV
 Difference
 Cache and Table
 DSR forward greater packets than AODV
 AODV periodically forward Hello Message to
neighbors , DSR not.
10
Simulation Environment
 Software
 NS2
 Version:2.1b9a
 OS
 Linux-Red hat 7.3
 CPU
 P3 900
 Memory
 128MB
11
Simulation Environment
 Simulation Range
 1500*300 meters
 Number of node in the range
 Random creating 50 nodes
 Number of source node in the range
 Random 20 sources
 Random 40 sources
12
Simulation Environment
 Node radio range
 250 meters
 Traffic source
 CBR (Content Bit-Rate)
 Node radio bandwidth
 2Mb/sec
13
Simulation Environment
 Packet Length
 512 byte
 Node Buffer
 100
 Node speed
 0~20 meter/sec
14
Simulation Environment
 Random create 50 nodes in 1500*300
meters
 Random select 20(40) nodes to deliver
packets
 Each node starts its journey from a
random location to a random location
with a randomly chosen speed 0~20
m/s
15
Simulation Environment
 Each node move in 50 seconds, then
move again after pause 20(40 or 60 or
80) seconds
 Total Run Time: 300 seconds
16
Simulation of AODV
17
Simulation of AODV
18
Simulation of AODV
19
20
21
Performance Matrics
 Throughput
 The ratio of the data packets delivered to the
destinations to those generated by the CBR
sources.
 received packets / sent packets
22
Throughput(20sources)
20 sources
0
0.2
0.4
0.6
0.8
1
20 40 60 80
Pause Time (sec)
Throughput
AODV
DSR
23
Throughput(40sources)
40 sources
0
0.2
0.4
0.6
0.8
1
1.2
20 40 60 80
Pause Time (sec)
Throughput
AODV
DSR
24
Performance Matrics
 Average Delay
 For each packet with id of trace level (AGT)
and type (CBR), calculate the send(s) time(s)
and the receive(r) time(t) and average it
25
Average Delay (20 sources)
20 sources
0
0.005
0.01
0.015
0.02
0.025
0.03
20 40 60 80
Pause Time (sec)
AverageDelay(sec)
AODV
DSR
26
Average Delay (40 sources)
40 sources
0
0.005
0.01
0.015
0.02
0.025
0.03
20 40 60 80
Pause Time (sec)
AverageDelay(sec)
AODV
DSR
27
Performance Matrics
 Normalized Routing Overhead
 Normalized routing load = (routing packets sent)
/ receives
28
Normalized Routing Overhead
(20 sources)
20 sources
0
0.1
0.2
0.3
0.4
0.5
20 40 60 80
Pause Time (sec)
RoutingOverhead
AODV
DSR
29
Normalized Routing Overhead
(40 sources)
40 sources
0
0.1
0.2
0.3
0.4
0.5
0.6
20 40 60 80
Pause Time (sec)
RoutingOverhead
AODV
DSR
30
Source Code
31
Trace File
32
33
Conclusion
 DSR have triple numbers of control
messages than AODV
 AODV has difficult when the nodes are
moving fast
 AODV has the shortest end-to-end
delay
 DSR has higher routing overhead than
AODV

More Related Content

Similar to 2 simulation in aodv and dsr

Extreme Computing for Extreme Adaptive Optics: The Key to Finding Life Outsid...
Extreme Computing for Extreme Adaptive Optics: The Key to Finding Life Outsid...Extreme Computing for Extreme Adaptive Optics: The Key to Finding Life Outsid...
Extreme Computing for Extreme Adaptive Optics: The Key to Finding Life Outsid...
inside-BigData.com
 
IAP presentation-1.pptx
IAP presentation-1.pptxIAP presentation-1.pptx
IAP presentation-1.pptx
HirazNor
 
RoutingProtocols.ppt
RoutingProtocols.pptRoutingProtocols.ppt
RoutingProtocols.ppt
ImXaib
 

Similar to 2 simulation in aodv and dsr (20)

Extreme Computing for Extreme Adaptive Optics: The Key to Finding Life Outsid...
Extreme Computing for Extreme Adaptive Optics: The Key to Finding Life Outsid...Extreme Computing for Extreme Adaptive Optics: The Key to Finding Life Outsid...
Extreme Computing for Extreme Adaptive Optics: The Key to Finding Life Outsid...
 
Adhoc routing protocols
Adhoc routing protocolsAdhoc routing protocols
Adhoc routing protocols
 
SPICE MODEL of TPCP8204 (Professional+BDP Model) in SPICE PARK
SPICE MODEL of TPCP8204 (Professional+BDP Model) in SPICE PARKSPICE MODEL of TPCP8204 (Professional+BDP Model) in SPICE PARK
SPICE MODEL of TPCP8204 (Professional+BDP Model) in SPICE PARK
 
SPICE MODEL of TK8A50D (Standard+BDS Model) in SPICE PARK
SPICE MODEL of TK8A50D (Standard+BDS Model) in SPICE PARKSPICE MODEL of TK8A50D (Standard+BDS Model) in SPICE PARK
SPICE MODEL of TK8A50D (Standard+BDS Model) in SPICE PARK
 
Candidate Core Selection for Load-Balanced Multicore Shared Tree Multicasting
Candidate Core Selection for Load-Balanced Multicore Shared Tree MulticastingCandidate Core Selection for Load-Balanced Multicore Shared Tree Multicasting
Candidate Core Selection for Load-Balanced Multicore Shared Tree Multicasting
 
Dsdv
DsdvDsdv
Dsdv
 
Dsdv
DsdvDsdv
Dsdv
 
analog to digital converter.ppt
analog to digital converter.pptanalog to digital converter.ppt
analog to digital converter.ppt
 
IAP presentation-1.pptx
IAP presentation-1.pptxIAP presentation-1.pptx
IAP presentation-1.pptx
 
homework.pdf
homework.pdfhomework.pdf
homework.pdf
 
Lecture set 5
Lecture set 5Lecture set 5
Lecture set 5
 
Part7-routing.pptx
Part7-routing.pptxPart7-routing.pptx
Part7-routing.pptx
 
SPICE MODEL of TK8A50D (Professional+BDP Model) in SPICE PARK
SPICE MODEL of TK8A50D (Professional+BDP Model) in SPICE PARKSPICE MODEL of TK8A50D (Professional+BDP Model) in SPICE PARK
SPICE MODEL of TK8A50D (Professional+BDP Model) in SPICE PARK
 
SPICE MODEL of SSM3K320T (Standard+BDS Model) in SPICE PARK
SPICE MODEL of SSM3K320T (Standard+BDS Model) in SPICE PARKSPICE MODEL of SSM3K320T (Standard+BDS Model) in SPICE PARK
SPICE MODEL of SSM3K320T (Standard+BDS Model) in SPICE PARK
 
SPICE MODEL of 2SK3934 (Standard+BDS Model) in SPICE PARK
SPICE MODEL of 2SK3934 (Standard+BDS Model) in SPICE PARKSPICE MODEL of 2SK3934 (Standard+BDS Model) in SPICE PARK
SPICE MODEL of 2SK3934 (Standard+BDS Model) in SPICE PARK
 
RoutingProtocols.ppt
RoutingProtocols.pptRoutingProtocols.ppt
RoutingProtocols.ppt
 
SPICE MODEL of TK10A50D (Professional+BDP Model) in SPICE PARK
SPICE MODEL of TK10A50D (Professional+BDP Model) in SPICE PARKSPICE MODEL of TK10A50D (Professional+BDP Model) in SPICE PARK
SPICE MODEL of TK10A50D (Professional+BDP Model) in SPICE PARK
 
Fet basics-1
Fet basics-1Fet basics-1
Fet basics-1
 
Fet full explanations
Fet full explanationsFet full explanations
Fet full explanations
 
SPICE MODEL of TPCP8205-H (Standard+BDS Model) in SPICE PARK
SPICE MODEL of TPCP8205-H (Standard+BDS Model) in SPICE PARKSPICE MODEL of TPCP8205-H (Standard+BDS Model) in SPICE PARK
SPICE MODEL of TPCP8205-H (Standard+BDS Model) in SPICE PARK
 

More from Abhishek Kesharwani

More from Abhishek Kesharwani (20)

uptu web technology unit 2 html
uptu web technology unit 2 htmluptu web technology unit 2 html
uptu web technology unit 2 html
 
uptu web technology unit 2 html
uptu web technology unit 2 htmluptu web technology unit 2 html
uptu web technology unit 2 html
 
uptu web technology unit 2 html
uptu web technology unit 2 htmluptu web technology unit 2 html
uptu web technology unit 2 html
 
uptu web technology unit 2 html
uptu web technology unit 2 htmluptu web technology unit 2 html
uptu web technology unit 2 html
 
uptu web technology unit 2 html
uptu web technology unit 2 htmluptu web technology unit 2 html
uptu web technology unit 2 html
 
uptu web technology unit 2 Css
uptu web technology unit 2 Cssuptu web technology unit 2 Css
uptu web technology unit 2 Css
 
uptu web technology unit 2 Css
uptu web technology unit 2 Cssuptu web technology unit 2 Css
uptu web technology unit 2 Css
 
uptu web technology unit 2 Xml2
uptu web technology unit 2 Xml2uptu web technology unit 2 Xml2
uptu web technology unit 2 Xml2
 
uptu web technology unit 2 Xml2
uptu web technology unit 2 Xml2uptu web technology unit 2 Xml2
uptu web technology unit 2 Xml2
 
uptu web technology unit 2 Xml2
uptu web technology unit 2 Xml2uptu web technology unit 2 Xml2
uptu web technology unit 2 Xml2
 
uptu web technology unit 2 Xml2
uptu web technology unit 2 Xml2uptu web technology unit 2 Xml2
uptu web technology unit 2 Xml2
 
Unit 1 web technology uptu slide
Unit 1 web technology uptu slideUnit 1 web technology uptu slide
Unit 1 web technology uptu slide
 
Unit1 Web Technology UPTU UNIT 1
Unit1 Web Technology UPTU UNIT 1 Unit1 Web Technology UPTU UNIT 1
Unit1 Web Technology UPTU UNIT 1
 
Unit1 2
Unit1 2 Unit1 2
Unit1 2
 
Web Technology UPTU UNIT 1
Web Technology UPTU UNIT 1 Web Technology UPTU UNIT 1
Web Technology UPTU UNIT 1
 
Mtech syllabus computer science uptu
Mtech syllabus computer science uptu Mtech syllabus computer science uptu
Mtech syllabus computer science uptu
 
Wi max tutorial
Wi max tutorialWi max tutorial
Wi max tutorial
 
Virtual lan
Virtual lanVirtual lan
Virtual lan
 
Virtual lan
Virtual lanVirtual lan
Virtual lan
 
Tcp traffic control and red ecn
Tcp traffic control and red ecnTcp traffic control and red ecn
Tcp traffic control and red ecn
 

2 simulation in aodv and dsr