SlideShare a Scribd company logo
Routing Protocols for Ad-Hoc Networks 
Ad-hoc On-Demand Distance 
Vector Routing 
& 
DSR: The Dynamic Source 
Routing Protocol for Multi-Hop 
Wireless Ad Hoc Networks
Outline 
q Ad-Hoc networks 
q Ad-hoc routing algorithms 
q Ad-Hoc on-demand Distance Vector Routing (AODV) 
q Dynamic Source Routing (DSR) 
q Comparison of AODV and DSR
Ad Hoc Networks 
Wireless networks can be divided in two fundamental 
categories: 
q Infrastructure-based 
Wireless clients connecting to a base-station (APs, 
Cell Towers) that provides all the traditional network 
services (routing, address assignment) 
q Infrastructure-less 
The clients themselves must provide all the traditional 
services to each other
Ad Hoc Networks 
Ad-hoc networks main features: 
q Decentralized 
q Do not rely on preexisting infrastructure 
q Each node participates in routing by 
forwarding data to neighbor nodes 
q Fast network topology changes due to nodes’ 
movement
Ad Hoc Networks 
Why do we need ad-hoc networks? 
q More laptop users 
q More smartphones users (e.g.. Android phones, 
iPhones) 
q More devices with Wi-Fi-support (e.g.. televisions, hi-fi, 
home-theaters, media servers etc.) 
q Moving users, vehicles, etc. 
q Outdoors places 
ü In all these occasions there is no centralized 
infrastructure (such APs) 
ü So ad-hoc network is a necessity
Ad Hoc Networks 
An infrastructure wireless network An Ad-hoc network
Outline 
q Ad-Hoc networks 
q Ad-hoc routing algorithms 
q Ad-Hoc on-demand Distance Vector Routing (AODV) 
q Dynamic Source Routing (DSR) 
q Comparison of AODV and DSR
Ad-hoc routing algorithms 
Hottest routing algorithm categories: 
q Pro-active (table-driven) routing 
Maintains fresh lists of destinations & their routes by periodically 
distributing routing tables 
Disadvantages: 
1. Respective amount of data for maintenance 
2. Slow reaction on restructuring and failures 
(e.g. OSLR, DSDV) 
q Reactive (on-demand) routing 
On demand route discovery by flooding the network with Route 
Request packets 
Disadvantages: 
1. High latency time in route finding 
2. Flooding can lead to network clogging 
(e.g. AODV, DSR)
Ad-hoc routing algorithms 
Discuss and comparison 
1. Ad-Hoc on-demand Distance Vector Routing (AODV) 
2. Dynamic Source Routing (DSR)
Outline 
q Ad-Hoc networks 
q Ad-hoc routing algorithms 
q Ad-Hoc on-demand Distance Vector Routing (AODV) 
Ø General info 
Ø Path Discovery 
Ø Path Maintenance 
Ø Local Connectivity Maintenance 
Ø Conclusion 
q Dynamic Source Routing (DSR) 
q Comparison of AODV and DSR
(AODV) General info 
q Reactive algorithms like AODV create routes on-demand. 
They must however, reduce as much as 
possible the acquisition time 
q We could largely eliminate the need of periodically 
system-wide broadcasts 
q AODV uses symmetric links between neighboring 
nodes. It does not attempt to follow paths 
between nodes when one of the nodes can not hear 
the other one
(AODV) General info 
q Nodes that have not participate yet in any packet 
exchange (inactive nodes), they do not maintain 
routing information 
q They do not participate in any periodic routing table 
exchanges
(AODV) General info 
q Each node can become aware of other nodes in its 
neighborhood by using local broadcasts known as 
hello messages 
q neighbor routing tables organized to : 
1. optimize response time to local movements 
2. provide quick response time for new routes 
requests
(AODV) General info 
AODV main features: 
q Broadcast route discovery mechanism 
q Bandwidth efficiently (small header information) 
q Responsive to changes in network topology 
q Loop free routing
Outline 
q Ad-Hoc networks 
q Ad-hoc routing algorithms 
q Ad-Hoc on-demand Distance Vector Routing (AODV) 
Ø General info 
Ø Path Discovery 
Ø Path Maintenance 
Ø Local Connectivity Maintenance 
Ø Conclusion 
q Dynamic Source Routing (DSR) 
q Comparison of AODV and DSR
(AODV) Path Discovery 
q Initiated when a source node needs to 
communicate with another node for which it has no 
routing info 
q Every node maintains two counters: 
Ø node_sequence_number 
Ø broadcast_id 
q The source node broadcast to the neighbors a 
route request packet (called RREQ)
(AODV) Path Discovery 
q RREQ structure 
<src_addr, src_sequence_#, broadcast_id, dest_addr, 
dest_sequence_#, hop_cnt> 
q src_addr and broadcast_id uniquely identifies a RREQ 
q broadcast_id is incremented whenever source node 
issues a RREQ 
q Each neighbor either satisfy the RREQ, by sending 
back a routing reply (RREP), or rebroadcast the RREQ 
to its own neighbors after increasing the hop_count by 
one.
(AODV) Path Discovery 
q If a node receives a RREQ that has the same 
<src_addr, broadcast_id> with a previous RREQ it 
drops it immediately 
q If a node cannot satisfy the RREQ, stores: 
Ø Destination IP 
Ø Source IP 
Ø broadcast_id 
Ø Expiration time (used for reverse path process) 
Ø src_sequence_#
(AODV) Path Discovery 
1. Reverse Path Setup 
q In each RREQ there are: 
Ø src_sequence_# 
Ø the last dest_sequence_# 
q src_sequence_# used to maintain freshness 
information about the reverse route to the source 
q dest_sequnece_# indicates how fresh a route must 
be, before it can be accepted by the source
(AODV) Path Discovery 
1.Reverse Path Setup (continue) 
q As RREQ travels from source to many destinations, it 
automatically sets up the reverse path, from all nodes 
back to the source. 
But how does it work? 
q Each node records the address of the neighbor from which it 
received the first copy of the RREQ 
q These entries are maintained for at least enough time, for the 
RREQ to traverse the network and produce a reply
(AODV) Path Discovery 
1.Reverse Path Setup (continue) 
U 
D 
Z 
Y 
W 
S 
V 
Source node 
Destination node 
S 
D 
W Z 
Neighbor 
nodes 
S sends 
RREQ 
Figure 1 
W, Y can not satisfy 
Z, V, U can not satisfy 
RREQ 
RREQ 
i. Set up reverse 
i. Set up path 
reverse path 
ii. Rebroadcast RREQ 
ii. Rebroadcast RREQ 
to neighbors 
to neighbors 
RREQ reached destination 
Reversed path is fully set 
up 
From which RREP can 
travel back to S
(AODV) Path Discovery 
2. Forward Path Setup 
q A node receiving a RREP propagates the first RREP 
for a given source towards the source (using the 
reverse path that has already established) 
q Nodes that are not in the path determined by the 
RREP will time out after 3000 ms and will delete the 
reverse pointers
(AODV) Path Discovery 
2. Forward Path Setup (continue) 
U 
D 
Z 
Y 
W 
S 
V 
S 
D 
W 
Source node 
Destination node 
Z W 
Z has a reversed path to 
W 
Figure 2 
Z W has a forward path to 
Z 
D replies with a 
RREP to Z 
Z receives 
RREP and set 
up a forward 
pointer 
The 
same for 
the other 
nodes 
Time out
(AODV) Path Discovery 
2. Forward Path Setup (Conclusion) 
q Minimum number of RREPs towards source 
q The source can begin data transmission as soon as 
the first RREP received and update later its routing 
information if it learns of a better route
Outline 
q Ad-Hoc networks 
q Ad-hoc routing algorithms 
q Ad-Hoc on-demand Distance Vector Routing (AODV) 
Ø General info 
Ø Path Discovery 
Ø Path Maintenance 
Ø Local Connectivity Maintenance 
Ø Conclusion 
q Dynamic Source Routing (DSR) 
q Comparison of AODV and DSR
(AODV) Path Maintenance 
q Movement of nodes not lying along an active path does NOT 
affect the route to that path's destination 
q If the source node moves, it can simply re-initiate the route 
discovery procedure 
q If the destination or some intermediate node moves, a 
special RREP is sent to the affected nodes 
q To find out nodes movements periodic hello messages can be 
used, or (LLACKS) link-layer acknowledgments (far less 
latency)
(AODV) Path Maintenance 
q When a node is unreachable the special RREP that 
is sent back towards the source, contains a new 
sequence number and hop count of ∞ 
Link between 
Z and D fails 
U 
D 
Z 
Y 
S 
V 
W 
Figure 3 
Z sents a 
special RREP 
So do W 
So now source must find a new path. To do that, it sents a RREQ with a new 
greater sequence number
Outline 
q Ad-Hoc networks 
q Ad-hoc routing algorithms 
q Ad-Hoc on-demand Distance Vector Routing (AODV) 
Ø General info 
Ø Path Discovery 
Ø Path Maintenance 
Ø Local Connectivity Maintenance 
Ø Conclusion 
q Dynamic Source Routing (DSR) 
q Comparison of AODV and DSR
(AODV) Local Connectivity 
Maintenance 
q Nodes learn of their neighbors in one or two ways: 
1. Whenever a node receives a broadcast from a 
neighbor it update its local connectivity information 
about this neighbor 
2. If a neighbor has not sent any packets within 
hello_interval it broadcasts a hello message, 
containing its identity and its sequence number
(AODV) Local Connectivity 
Maintenance 
How hello messages work: 
q Hello messages do not broadcasted outside the 
neighborhood because the contain a TTL (time to 
leave) value of 1. 
q Neighbors that receive the hello message update 
their local connectivity information to the node that 
have broadcasted the hello message
(AODV) Local Connectivity 
Maintenance 
How hello messages work: (continue) 
q Receiving a hello from a new neighbor, or failing to 
receive allowed_hello_loss (typically 2) consecutive 
hello messages from a node previously in the 
neighborhood, indicates that the local connectivity 
has changed
Outline 
q Ad-Hoc networks 
q Ad-hoc routing algorithms 
q Ad-Hoc on-demand Distance Vector Routing (AODV) 
Ø General info 
Ø Path Discovery 
Ø Path Maintenance 
Ø Local Connectivity Maintenance 
Ø Conclusion 
q Dynamic Source Routing (DSR) 
q Comparison of AODV and DSR
(AODV) Conclusion 
AODV main features: 
q Nodes store only the routes they need 
q Need for broadcast is minimized 
q Reduces memory requirements and needless 
duplications 
q Quick response to link breakage in active routes 
q Loop-free routes maintained by use of destination 
sequence numbers 
q Scalable to large populations of nodes
AODV
Outline 
q Ad-Hoc networks 
q Ad-hoc routing algorithms 
q Ad-Hoc on-demand Distance Vector Routing (AODV) 
q Dynamic Source Routing (DSR) 
Ø General 
Ø Basic Route Discovery 
Ø Basic Route Maintenance 
Ø Conclusion 
q Comparison of AODV and DSR
(DSR) General 
Two main mechanisms that work together to allow the 
discovery and maintainance of source routes: 
q Route discovery 
q Route maintainance
(DSR) General 
Route discovery: 
q Is the mechanism by which a source node S, obtains 
a route to a destination D 
q Used only when S attempt to send a packet to D and 
does not already knows a route to D
(DSR) General 
Route maintainance: 
q Is the mechanism by which source node S is able to 
detect if the network topology has changed and can 
no longer use its route to D 
q If S knows another route to D, use it 
q Else invoke route discovery process again to find a 
new route 
q Used only when S wants to send a packet to D
(DSR) General 
q Each mechanism operate entirely on demand 
q DSR requires no periodic packets of any kind at any 
level 
q Uni-directional and asymmetric routes support 
(e.g. send a packet to a node D through a route and receive a 
packet D from another route)
Outline 
q Ad-Hoc networks 
q Ad-hoc routing algorithms 
q Ad-Hoc on-demand Distance Vector Routing (AODV) 
q Dynamic Source Routing (DSR) 
Ø General 
Ø Basic Route Discovery 
Ø Basic Route Maintenance 
Ø Conclusion 
q Comparison of AODV and DSR
(DSR) Basic Route Discovery 
When S wants to sent a packet to D: 
q it places in the header of the packet a source route 
giving the sequence of hops that the packet should 
follow on its way to D 
q S obtains a suitable source route by searching its route 
table 
q If no route found for D, S initiate the Route Discovery 
protocol to dynamically find a new route to D
(DSR) Basic Route Discovery 
Sender 
q Broadcasts a Route Request Packet (RREQ) 
q RREQ contains a unique Request ID and the address of the 
sender 
Receiver 
q If this node is the destination node, or has route to the 
destination send a Route Reply packet (RREP) 
q Else if is the source, drop the packet 
q Else if is already in the RREQ's route table, 
drop the packet 
q Else append the node address in the RREQ's route table 
and broadcast the updated RREQ
(DSR) Basic Route Discovery 
U 
D 
Z 
Y 
W 
S 
V 
Source node 
Destination node 
S 
D 
W Z 
Neighbor 
nodes 
S sends 
RREQ 
Figure 4 
RREQ packet 
Id=2, {S} 
Id=2, {S} 
Id=2, {S, W} 
Id=2, {S, Y} 
Id=2, {S, Y} 
Id=2, {S, W, Z}
(DSR) Basic Route Discovery 
When a RREQ reaches the destination node, a RREP 
must be sent back to source 
The destination node: 
q Examine its own Route Cache for a route back to source 
q If found, it use this route to send back the RREP 
q Else, the destination node starts a new Route Discovery 
process to find a route towards source node 
ü In protocols that require bi-directional links like 802.11, the 
reversed route list of the RREQ packet can be used, in order to 
avoid the second Route Discovery
Outline 
q Ad-Hoc networks 
q Ad-hoc routing algorithms 
q Ad-Hoc on-demand Distance Vector Routing (AODV) 
q Dynamic Source Routing (DSR) 
Ø General 
Ø Basic Route Discovery 
Ø Basic Route Maintenance 
Ø Conclusion 
q Comparison of AODV and DSR
(DSR) Basic Route 
Each node transmMittainign at peanckaetn: ce 
q is responsible for confirming that the packet has been received 
by the next hop along the source route 
q The confirmation it is done with a standard part of MAC layer 
(e.g. Link-level ACKs in 802.11) 
q If none exists, a DSR-specific software takes the 
responsibility to sent back an ACK 
q When retransmissions of a packet in a node reach a maximum 
number, a Route Error Packet (RERR) is sent from the node 
back to the source, identifying the broken link
(DSR) Basic Route 
The source: Maintenance 
q Removes from the routing table the broken route 
q Retransmission of the original packet is a function of 
upper layers (e.g. TCP) 
q It searches the routing table for another route, or start 
a new Route Discovery process
(DSR) Basic Route 
Maintenance 
U 
D 
Z 
Y 
W 
S 
V 
Source node 
Destination node 
S 
D 
W Z 
Neighbor 
nodes 
Figure 5 
RERR packet 
Link fails 
Intermediate 
node RERR(sents Z, D) 
a 
RERR 
RERR(Z, D) 
Route Table 
D: S, W, Z, D 
V: S, Y, V
Outline 
q Ad-Hoc networks 
q Ad-hoc routing algorithms 
q Ad-Hoc on-demand Distance Vector Routing (AODV) 
q Dynamic Source Routing (DSR) 
Ø General 
Ø Basic Route Discovery 
Ø Basic Route Maintenance 
Ø Conclusion 
q Comparison of AODV and DSR
(DSR) Conclusion 
q Excellent performance for routing in multi-hop wireless 
ad hoc networks 
q Very low routing overhead even with continuous rapid 
motion, which scales to : 
1. zero when nodes are stationary 
2. the affected routes when nodes are moving 
q Completely self-organized & self-configuring network 
q Entirely on-demand operation. No periodic activity of any 
kind at any level
DSR
Outline 
q Ad-Hoc networks 
q Ad-hoc routing algorithms 
q Ad-Hoc on-demand Distance Vector Routing (AODV) 
q Dynamic Source Routing (DSR) 
q Comparison of AODV and DSR
Comparison of AODV and DSR 
Main common features: 
q On-demand route requesting 
q Route discovery based on requesting and replying 
control packets 
q Broadcast route discovery mechanism
Comparison of AODV and DSR 
Main common features: (continue) 
q Route information is stored in all intermediate nodes 
along the established path 
q Inform source node for a broken links 
q Loop-free routing
Comparison of AODV and DSR 
Main differences: 
q DSR can handle uni and bi-directional links, AODV uses 
only bi-directional 
q In DSR, using a single RREQ - RREP cycle, source and 
intermediate nodes can learn routes to other nodes on 
the route 
q DSR maintains many alternate routes to the destination, 
instead of AODV that maintains at most one entry per 
destination
Comparison of AODV and DSR 
Main differences: (continue) 
q DSR doesn’t contain any explicit mechanism to expire 
stale routes in the cache , In AODV if a routing table 
entry is not recently used , the entry is expired 
q DSR can’t prefer “fresher” routes when faced multiple 
choices for routes. In contrast, AODV always choose 
the fresher route (based on destination sequence 
numbers)
Comparison of AODV and DSR 
Main differences: (continue) 
q DSR’s RREQ has variable length depending on the nodes 
that the packet has traveled. AODV’s RREQ size is 
constant 
q As a result DSR’s header overhead may increase as more 
nodes become active, so we expect that AODV 
throughput in those scenarios to be better

More Related Content

PDF
DSDV VS AODV
PDF
PERFORMANCE ANALYSIS AND COMPARISON OF IMPROVED DSR WITH DSR, AODV AND DSDV R...
DOCX
Dsdv
PDF
AODV protocol
PPTX
Performance analysis of AODV And OLSR
PPTX
DYNAMIC SOURCE ROUTING (DSR)
PPTX
AODV (Ad hoc On-demand Distance Vector) VS AOMDV (Ad hoc On-demand Multipath ...
DSDV VS AODV
PERFORMANCE ANALYSIS AND COMPARISON OF IMPROVED DSR WITH DSR, AODV AND DSDV R...
Dsdv
AODV protocol
Performance analysis of AODV And OLSR
DYNAMIC SOURCE ROUTING (DSR)
AODV (Ad hoc On-demand Distance Vector) VS AOMDV (Ad hoc On-demand Multipath ...

What's hot (20)

PPT
Comparison between aodv and olsr protocol
PPT
Performance Evaluation of Routing Protocols
PPTX
Zone Routing Protocol
PPT
Routing in Manet
PPTX
Ad hoc On-demand Distance Vector (AODV) Routing Protocol by Ashok Panwar
PPTX
Simulation & comparison of aodv & dsr protocol
PPTX
Routing protocol
PPTX
Dynamic source routing
PPT
Wireless routing protocols
PPT
Global state routing
PPTX
AODV Protocol
PPT
Aodv slide final
PPT
Routing protocols
PPTX
Dynamic source routing in ad hoc wireless networks
PDF
Mobile Ad-hoc Network (MANET) Routing Algorithms─ Part 2
PDF
Lecture 11 14. Adhoc routing protocols cont..
PDF
Performance Analysis and Simulation of OLSR Routing Protocol in MANET
PDF
Ad hoc network-performance_analysis and simulation
PPT
Media Access and Internetworking
PPTX
BASICS OF ROUTING IN NETWORKS
Comparison between aodv and olsr protocol
Performance Evaluation of Routing Protocols
Zone Routing Protocol
Routing in Manet
Ad hoc On-demand Distance Vector (AODV) Routing Protocol by Ashok Panwar
Simulation & comparison of aodv & dsr protocol
Routing protocol
Dynamic source routing
Wireless routing protocols
Global state routing
AODV Protocol
Aodv slide final
Routing protocols
Dynamic source routing in ad hoc wireless networks
Mobile Ad-hoc Network (MANET) Routing Algorithms─ Part 2
Lecture 11 14. Adhoc routing protocols cont..
Performance Analysis and Simulation of OLSR Routing Protocol in MANET
Ad hoc network-performance_analysis and simulation
Media Access and Internetworking
BASICS OF ROUTING IN NETWORKS
Ad

Similar to Adhoc routing protocols (20)

PPTX
Adhoc routing protocols
PPT
RoutingProtocols.ppt
PDF
Routing in Mobile Ad hoc Networks
PDF
PPTX
Classification of routing protocols
PPTX
a-seminar-on-manet.pptx
PPTX
PPT on Project Report Ashutosh Kumar.pptx
PPT
introAdhocRoutingRoutingRoutingRouting-new.ppt
PDF
A Study on Ad Hoc on Demand Distance Vector AODV Protocol
PDF
IT6601 MOBILE COMPUTING
PPT
Routing
PPTX
AODV routing protocol
PPT
Unit VIII wireless sensor networks
PPTX
Reactive or on-demand routing protocolss
PPT
PPT
Manet By Vikas mainanwal
PPTX
analysins aodv
PPT
Default and On demand routing - Advance Computer Networks
PDF
ex11-routing-performance.pdf
PPT
Zone Routing Protocol (ZRP) in Adhoc Network.ppt
Adhoc routing protocols
RoutingProtocols.ppt
Routing in Mobile Ad hoc Networks
Classification of routing protocols
a-seminar-on-manet.pptx
PPT on Project Report Ashutosh Kumar.pptx
introAdhocRoutingRoutingRoutingRouting-new.ppt
A Study on Ad Hoc on Demand Distance Vector AODV Protocol
IT6601 MOBILE COMPUTING
Routing
AODV routing protocol
Unit VIII wireless sensor networks
Reactive or on-demand routing protocolss
Manet By Vikas mainanwal
analysins aodv
Default and On demand routing - Advance Computer Networks
ex11-routing-performance.pdf
Zone Routing Protocol (ZRP) in Adhoc Network.ppt
Ad

More from Senthil Kanth (20)

PPT
Wireless Communication and Networking by WilliamStallings Chap2
PPT
wireless communication and networking Chapter 1
PPT
WML Script by Shanti katta
PPT
WAP- Wireless Application Protocol
PPT
What is WAP?
PPT
Introduction to Mobile Application Development
PPT
Markup Languages
PPT
MOBILE APPs DEVELOPMENT PLATFORMS
PPT
Introduction to wireless application protocol (wap)ogi
PPT
XML Programming WML by Dickson K.W. Chiu PhD, SMIEEE
PPT
Wireless Application Protocol WAP by Alvinen
DOC
HR QUESTIONS, INTERVIEW QUESTIONS
DOC
HR QUESTIONS
TXT
STOCK APPLICATION USING CORBA
DOC
RSA alogrithm
PDF
Zone Routing Protocol (ZRP)
PDF
On-Demand Multicast Routing Protocol
PPT
16.Distributed System Structure
PPT
15.Security
PPT
14.Protection
Wireless Communication and Networking by WilliamStallings Chap2
wireless communication and networking Chapter 1
WML Script by Shanti katta
WAP- Wireless Application Protocol
What is WAP?
Introduction to Mobile Application Development
Markup Languages
MOBILE APPs DEVELOPMENT PLATFORMS
Introduction to wireless application protocol (wap)ogi
XML Programming WML by Dickson K.W. Chiu PhD, SMIEEE
Wireless Application Protocol WAP by Alvinen
HR QUESTIONS, INTERVIEW QUESTIONS
HR QUESTIONS
STOCK APPLICATION USING CORBA
RSA alogrithm
Zone Routing Protocol (ZRP)
On-Demand Multicast Routing Protocol
16.Distributed System Structure
15.Security
14.Protection

Recently uploaded (20)

PDF
RMMM.pdf make it easy to upload and study
PPTX
Lesson notes of climatology university.
PDF
Computing-Curriculum for Schools in Ghana
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
A systematic review of self-coping strategies used by university students to ...
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
Practical Manual AGRO-233 Principles and Practices of Natural Farming
PPTX
Digestion and Absorption of Carbohydrates, Proteina and Fats
DOC
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
1_English_Language_Set_2.pdf probationary
PPTX
History, Philosophy and sociology of education (1).pptx
PDF
Paper A Mock Exam 9_ Attempt review.pdf.
PDF
Classroom Observation Tools for Teachers
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PPTX
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
What if we spent less time fighting change, and more time building what’s rig...
RMMM.pdf make it easy to upload and study
Lesson notes of climatology university.
Computing-Curriculum for Schools in Ghana
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
A systematic review of self-coping strategies used by university students to ...
Weekly quiz Compilation Jan -July 25.pdf
Practical Manual AGRO-233 Principles and Practices of Natural Farming
Digestion and Absorption of Carbohydrates, Proteina and Fats
Soft-furnishing-By-Architect-A.F.M.Mohiuddin-Akhand.doc
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
1_English_Language_Set_2.pdf probationary
History, Philosophy and sociology of education (1).pptx
Paper A Mock Exam 9_ Attempt review.pdf.
Classroom Observation Tools for Teachers
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Onco Emergencies - Spinal cord compression Superior vena cava syndrome Febr...
Chinmaya Tiranga quiz Grand Finale.pdf
احياء السادس العلمي - الفصل الثالث (التكاثر) منهج متميزين/كلية بغداد/موهوبين
Supply Chain Operations Speaking Notes -ICLT Program
What if we spent less time fighting change, and more time building what’s rig...

Adhoc routing protocols

  • 1. Routing Protocols for Ad-Hoc Networks Ad-hoc On-Demand Distance Vector Routing & DSR: The Dynamic Source Routing Protocol for Multi-Hop Wireless Ad Hoc Networks
  • 2. Outline q Ad-Hoc networks q Ad-hoc routing algorithms q Ad-Hoc on-demand Distance Vector Routing (AODV) q Dynamic Source Routing (DSR) q Comparison of AODV and DSR
  • 3. Ad Hoc Networks Wireless networks can be divided in two fundamental categories: q Infrastructure-based Wireless clients connecting to a base-station (APs, Cell Towers) that provides all the traditional network services (routing, address assignment) q Infrastructure-less The clients themselves must provide all the traditional services to each other
  • 4. Ad Hoc Networks Ad-hoc networks main features: q Decentralized q Do not rely on preexisting infrastructure q Each node participates in routing by forwarding data to neighbor nodes q Fast network topology changes due to nodes’ movement
  • 5. Ad Hoc Networks Why do we need ad-hoc networks? q More laptop users q More smartphones users (e.g.. Android phones, iPhones) q More devices with Wi-Fi-support (e.g.. televisions, hi-fi, home-theaters, media servers etc.) q Moving users, vehicles, etc. q Outdoors places ü In all these occasions there is no centralized infrastructure (such APs) ü So ad-hoc network is a necessity
  • 6. Ad Hoc Networks An infrastructure wireless network An Ad-hoc network
  • 7. Outline q Ad-Hoc networks q Ad-hoc routing algorithms q Ad-Hoc on-demand Distance Vector Routing (AODV) q Dynamic Source Routing (DSR) q Comparison of AODV and DSR
  • 8. Ad-hoc routing algorithms Hottest routing algorithm categories: q Pro-active (table-driven) routing Maintains fresh lists of destinations & their routes by periodically distributing routing tables Disadvantages: 1. Respective amount of data for maintenance 2. Slow reaction on restructuring and failures (e.g. OSLR, DSDV) q Reactive (on-demand) routing On demand route discovery by flooding the network with Route Request packets Disadvantages: 1. High latency time in route finding 2. Flooding can lead to network clogging (e.g. AODV, DSR)
  • 9. Ad-hoc routing algorithms Discuss and comparison 1. Ad-Hoc on-demand Distance Vector Routing (AODV) 2. Dynamic Source Routing (DSR)
  • 10. Outline q Ad-Hoc networks q Ad-hoc routing algorithms q Ad-Hoc on-demand Distance Vector Routing (AODV) Ø General info Ø Path Discovery Ø Path Maintenance Ø Local Connectivity Maintenance Ø Conclusion q Dynamic Source Routing (DSR) q Comparison of AODV and DSR
  • 11. (AODV) General info q Reactive algorithms like AODV create routes on-demand. They must however, reduce as much as possible the acquisition time q We could largely eliminate the need of periodically system-wide broadcasts q AODV uses symmetric links between neighboring nodes. It does not attempt to follow paths between nodes when one of the nodes can not hear the other one
  • 12. (AODV) General info q Nodes that have not participate yet in any packet exchange (inactive nodes), they do not maintain routing information q They do not participate in any periodic routing table exchanges
  • 13. (AODV) General info q Each node can become aware of other nodes in its neighborhood by using local broadcasts known as hello messages q neighbor routing tables organized to : 1. optimize response time to local movements 2. provide quick response time for new routes requests
  • 14. (AODV) General info AODV main features: q Broadcast route discovery mechanism q Bandwidth efficiently (small header information) q Responsive to changes in network topology q Loop free routing
  • 15. Outline q Ad-Hoc networks q Ad-hoc routing algorithms q Ad-Hoc on-demand Distance Vector Routing (AODV) Ø General info Ø Path Discovery Ø Path Maintenance Ø Local Connectivity Maintenance Ø Conclusion q Dynamic Source Routing (DSR) q Comparison of AODV and DSR
  • 16. (AODV) Path Discovery q Initiated when a source node needs to communicate with another node for which it has no routing info q Every node maintains two counters: Ø node_sequence_number Ø broadcast_id q The source node broadcast to the neighbors a route request packet (called RREQ)
  • 17. (AODV) Path Discovery q RREQ structure <src_addr, src_sequence_#, broadcast_id, dest_addr, dest_sequence_#, hop_cnt> q src_addr and broadcast_id uniquely identifies a RREQ q broadcast_id is incremented whenever source node issues a RREQ q Each neighbor either satisfy the RREQ, by sending back a routing reply (RREP), or rebroadcast the RREQ to its own neighbors after increasing the hop_count by one.
  • 18. (AODV) Path Discovery q If a node receives a RREQ that has the same <src_addr, broadcast_id> with a previous RREQ it drops it immediately q If a node cannot satisfy the RREQ, stores: Ø Destination IP Ø Source IP Ø broadcast_id Ø Expiration time (used for reverse path process) Ø src_sequence_#
  • 19. (AODV) Path Discovery 1. Reverse Path Setup q In each RREQ there are: Ø src_sequence_# Ø the last dest_sequence_# q src_sequence_# used to maintain freshness information about the reverse route to the source q dest_sequnece_# indicates how fresh a route must be, before it can be accepted by the source
  • 20. (AODV) Path Discovery 1.Reverse Path Setup (continue) q As RREQ travels from source to many destinations, it automatically sets up the reverse path, from all nodes back to the source. But how does it work? q Each node records the address of the neighbor from which it received the first copy of the RREQ q These entries are maintained for at least enough time, for the RREQ to traverse the network and produce a reply
  • 21. (AODV) Path Discovery 1.Reverse Path Setup (continue) U D Z Y W S V Source node Destination node S D W Z Neighbor nodes S sends RREQ Figure 1 W, Y can not satisfy Z, V, U can not satisfy RREQ RREQ i. Set up reverse i. Set up path reverse path ii. Rebroadcast RREQ ii. Rebroadcast RREQ to neighbors to neighbors RREQ reached destination Reversed path is fully set up From which RREP can travel back to S
  • 22. (AODV) Path Discovery 2. Forward Path Setup q A node receiving a RREP propagates the first RREP for a given source towards the source (using the reverse path that has already established) q Nodes that are not in the path determined by the RREP will time out after 3000 ms and will delete the reverse pointers
  • 23. (AODV) Path Discovery 2. Forward Path Setup (continue) U D Z Y W S V S D W Source node Destination node Z W Z has a reversed path to W Figure 2 Z W has a forward path to Z D replies with a RREP to Z Z receives RREP and set up a forward pointer The same for the other nodes Time out
  • 24. (AODV) Path Discovery 2. Forward Path Setup (Conclusion) q Minimum number of RREPs towards source q The source can begin data transmission as soon as the first RREP received and update later its routing information if it learns of a better route
  • 25. Outline q Ad-Hoc networks q Ad-hoc routing algorithms q Ad-Hoc on-demand Distance Vector Routing (AODV) Ø General info Ø Path Discovery Ø Path Maintenance Ø Local Connectivity Maintenance Ø Conclusion q Dynamic Source Routing (DSR) q Comparison of AODV and DSR
  • 26. (AODV) Path Maintenance q Movement of nodes not lying along an active path does NOT affect the route to that path's destination q If the source node moves, it can simply re-initiate the route discovery procedure q If the destination or some intermediate node moves, a special RREP is sent to the affected nodes q To find out nodes movements periodic hello messages can be used, or (LLACKS) link-layer acknowledgments (far less latency)
  • 27. (AODV) Path Maintenance q When a node is unreachable the special RREP that is sent back towards the source, contains a new sequence number and hop count of ∞ Link between Z and D fails U D Z Y S V W Figure 3 Z sents a special RREP So do W So now source must find a new path. To do that, it sents a RREQ with a new greater sequence number
  • 28. Outline q Ad-Hoc networks q Ad-hoc routing algorithms q Ad-Hoc on-demand Distance Vector Routing (AODV) Ø General info Ø Path Discovery Ø Path Maintenance Ø Local Connectivity Maintenance Ø Conclusion q Dynamic Source Routing (DSR) q Comparison of AODV and DSR
  • 29. (AODV) Local Connectivity Maintenance q Nodes learn of their neighbors in one or two ways: 1. Whenever a node receives a broadcast from a neighbor it update its local connectivity information about this neighbor 2. If a neighbor has not sent any packets within hello_interval it broadcasts a hello message, containing its identity and its sequence number
  • 30. (AODV) Local Connectivity Maintenance How hello messages work: q Hello messages do not broadcasted outside the neighborhood because the contain a TTL (time to leave) value of 1. q Neighbors that receive the hello message update their local connectivity information to the node that have broadcasted the hello message
  • 31. (AODV) Local Connectivity Maintenance How hello messages work: (continue) q Receiving a hello from a new neighbor, or failing to receive allowed_hello_loss (typically 2) consecutive hello messages from a node previously in the neighborhood, indicates that the local connectivity has changed
  • 32. Outline q Ad-Hoc networks q Ad-hoc routing algorithms q Ad-Hoc on-demand Distance Vector Routing (AODV) Ø General info Ø Path Discovery Ø Path Maintenance Ø Local Connectivity Maintenance Ø Conclusion q Dynamic Source Routing (DSR) q Comparison of AODV and DSR
  • 33. (AODV) Conclusion AODV main features: q Nodes store only the routes they need q Need for broadcast is minimized q Reduces memory requirements and needless duplications q Quick response to link breakage in active routes q Loop-free routes maintained by use of destination sequence numbers q Scalable to large populations of nodes
  • 34. AODV
  • 35. Outline q Ad-Hoc networks q Ad-hoc routing algorithms q Ad-Hoc on-demand Distance Vector Routing (AODV) q Dynamic Source Routing (DSR) Ø General Ø Basic Route Discovery Ø Basic Route Maintenance Ø Conclusion q Comparison of AODV and DSR
  • 36. (DSR) General Two main mechanisms that work together to allow the discovery and maintainance of source routes: q Route discovery q Route maintainance
  • 37. (DSR) General Route discovery: q Is the mechanism by which a source node S, obtains a route to a destination D q Used only when S attempt to send a packet to D and does not already knows a route to D
  • 38. (DSR) General Route maintainance: q Is the mechanism by which source node S is able to detect if the network topology has changed and can no longer use its route to D q If S knows another route to D, use it q Else invoke route discovery process again to find a new route q Used only when S wants to send a packet to D
  • 39. (DSR) General q Each mechanism operate entirely on demand q DSR requires no periodic packets of any kind at any level q Uni-directional and asymmetric routes support (e.g. send a packet to a node D through a route and receive a packet D from another route)
  • 40. Outline q Ad-Hoc networks q Ad-hoc routing algorithms q Ad-Hoc on-demand Distance Vector Routing (AODV) q Dynamic Source Routing (DSR) Ø General Ø Basic Route Discovery Ø Basic Route Maintenance Ø Conclusion q Comparison of AODV and DSR
  • 41. (DSR) Basic Route Discovery When S wants to sent a packet to D: q it places in the header of the packet a source route giving the sequence of hops that the packet should follow on its way to D q S obtains a suitable source route by searching its route table q If no route found for D, S initiate the Route Discovery protocol to dynamically find a new route to D
  • 42. (DSR) Basic Route Discovery Sender q Broadcasts a Route Request Packet (RREQ) q RREQ contains a unique Request ID and the address of the sender Receiver q If this node is the destination node, or has route to the destination send a Route Reply packet (RREP) q Else if is the source, drop the packet q Else if is already in the RREQ's route table, drop the packet q Else append the node address in the RREQ's route table and broadcast the updated RREQ
  • 43. (DSR) Basic Route Discovery U D Z Y W S V Source node Destination node S D W Z Neighbor nodes S sends RREQ Figure 4 RREQ packet Id=2, {S} Id=2, {S} Id=2, {S, W} Id=2, {S, Y} Id=2, {S, Y} Id=2, {S, W, Z}
  • 44. (DSR) Basic Route Discovery When a RREQ reaches the destination node, a RREP must be sent back to source The destination node: q Examine its own Route Cache for a route back to source q If found, it use this route to send back the RREP q Else, the destination node starts a new Route Discovery process to find a route towards source node ü In protocols that require bi-directional links like 802.11, the reversed route list of the RREQ packet can be used, in order to avoid the second Route Discovery
  • 45. Outline q Ad-Hoc networks q Ad-hoc routing algorithms q Ad-Hoc on-demand Distance Vector Routing (AODV) q Dynamic Source Routing (DSR) Ø General Ø Basic Route Discovery Ø Basic Route Maintenance Ø Conclusion q Comparison of AODV and DSR
  • 46. (DSR) Basic Route Each node transmMittainign at peanckaetn: ce q is responsible for confirming that the packet has been received by the next hop along the source route q The confirmation it is done with a standard part of MAC layer (e.g. Link-level ACKs in 802.11) q If none exists, a DSR-specific software takes the responsibility to sent back an ACK q When retransmissions of a packet in a node reach a maximum number, a Route Error Packet (RERR) is sent from the node back to the source, identifying the broken link
  • 47. (DSR) Basic Route The source: Maintenance q Removes from the routing table the broken route q Retransmission of the original packet is a function of upper layers (e.g. TCP) q It searches the routing table for another route, or start a new Route Discovery process
  • 48. (DSR) Basic Route Maintenance U D Z Y W S V Source node Destination node S D W Z Neighbor nodes Figure 5 RERR packet Link fails Intermediate node RERR(sents Z, D) a RERR RERR(Z, D) Route Table D: S, W, Z, D V: S, Y, V
  • 49. Outline q Ad-Hoc networks q Ad-hoc routing algorithms q Ad-Hoc on-demand Distance Vector Routing (AODV) q Dynamic Source Routing (DSR) Ø General Ø Basic Route Discovery Ø Basic Route Maintenance Ø Conclusion q Comparison of AODV and DSR
  • 50. (DSR) Conclusion q Excellent performance for routing in multi-hop wireless ad hoc networks q Very low routing overhead even with continuous rapid motion, which scales to : 1. zero when nodes are stationary 2. the affected routes when nodes are moving q Completely self-organized & self-configuring network q Entirely on-demand operation. No periodic activity of any kind at any level
  • 51. DSR
  • 52. Outline q Ad-Hoc networks q Ad-hoc routing algorithms q Ad-Hoc on-demand Distance Vector Routing (AODV) q Dynamic Source Routing (DSR) q Comparison of AODV and DSR
  • 53. Comparison of AODV and DSR Main common features: q On-demand route requesting q Route discovery based on requesting and replying control packets q Broadcast route discovery mechanism
  • 54. Comparison of AODV and DSR Main common features: (continue) q Route information is stored in all intermediate nodes along the established path q Inform source node for a broken links q Loop-free routing
  • 55. Comparison of AODV and DSR Main differences: q DSR can handle uni and bi-directional links, AODV uses only bi-directional q In DSR, using a single RREQ - RREP cycle, source and intermediate nodes can learn routes to other nodes on the route q DSR maintains many alternate routes to the destination, instead of AODV that maintains at most one entry per destination
  • 56. Comparison of AODV and DSR Main differences: (continue) q DSR doesn’t contain any explicit mechanism to expire stale routes in the cache , In AODV if a routing table entry is not recently used , the entry is expired q DSR can’t prefer “fresher” routes when faced multiple choices for routes. In contrast, AODV always choose the fresher route (based on destination sequence numbers)
  • 57. Comparison of AODV and DSR Main differences: (continue) q DSR’s RREQ has variable length depending on the nodes that the packet has traveled. AODV’s RREQ size is constant q As a result DSR’s header overhead may increase as more nodes become active, so we expect that AODV throughput in those scenarios to be better

Editor's Notes

  • #2: &amp;lt;number&amp;gt;
  • #3: &amp;lt;number&amp;gt;
  • #4: &amp;lt;number&amp;gt;
  • #5: &amp;lt;number&amp;gt;
  • #6: &amp;lt;number&amp;gt;
  • #7: &amp;lt;number&amp;gt; An real time example will be shown at the end Explained the circles at the ad hoc Emphasize the existence of the Access Point
  • #8: &amp;lt;number&amp;gt;
  • #9: &amp;lt;number&amp;gt; Pro-active (table-driven) routing This type of protocols maintains fresh lists of destinations and their routes by periodically distributing routing tables throughout the network. The main disadvantages of such algorithms are: Respective amount of data for maintenance. Slow reaction on restructuring and failures. Reactive (on-demand) routing This type of protocols finds a route on demand by flooding the network with Route Request packets. The main disadvantages of such algorithms are: High latency time in route finding Excessive flooding can lead to network clogging
  • #10: &amp;lt;number&amp;gt; Pro-active (table-driven) routing This type of protocols maintains fresh lists of destinations and their routes by periodically distributing routing tables throughout the network. The main disadvantages of such algorithms are: Respective amount of data for maintenance. Slow reaction on restructuring and failures. Reactive (on-demand) routing This type of protocols finds a route on demand by flooding the network with Route Request packets. The main disadvantages of such algorithms are: High latency time in route finding Excessive flooding can lead to network clogging
  • #11: &amp;lt;number&amp;gt;
  • #12: &amp;lt;number&amp;gt; For the 1st bullet , As we noticed before …… High latency time in route finding , so , ….. ,
  • #13: &amp;lt;number&amp;gt; 2nd bullet : instead of Distance Vector for Wired networks &amp; OSLR (an Ad-hoc pro-active algorithm) that both participate in periodic table exchanges. Each node does not have to discover or maintain a route to another node until the two need to communicate, unless one of the nodes offering its services as intermediate forwarding station to maintain connectivity between two other nodes
  • #14: &amp;lt;number&amp;gt; *** NO SPACE , 1st bullet paei sthn 12 , 2nd deleted.
  • #15: &amp;lt;number&amp;gt;
  • #16: &amp;lt;number&amp;gt;
  • #17: &amp;lt;number&amp;gt;
  • #18: &amp;lt;number&amp;gt;
  • #19: &amp;lt;number&amp;gt;
  • #20: &amp;lt;number&amp;gt;
  • #21: &amp;lt;number&amp;gt;
  • #22: &amp;lt;number&amp;gt;
  • #23: &amp;lt;number&amp;gt;
  • #24: &amp;lt;number&amp;gt;
  • #25: &amp;lt;number&amp;gt;
  • #26: &amp;lt;number&amp;gt;
  • #27: &amp;lt;number&amp;gt; Moves means that we change a neighborhood due to position change
  • #28: &amp;lt;number&amp;gt;
  • #29: &amp;lt;number&amp;gt;
  • #30: &amp;lt;number&amp;gt;
  • #31: &amp;lt;number&amp;gt;
  • #32: &amp;lt;number&amp;gt;
  • #33: &amp;lt;number&amp;gt;
  • #34: &amp;lt;number&amp;gt;
  • #35: &amp;lt;number&amp;gt;
  • #36: &amp;lt;number&amp;gt;
  • #37: &amp;lt;number&amp;gt;
  • #38: &amp;lt;number&amp;gt;
  • #39: &amp;lt;number&amp;gt;
  • #40: &amp;lt;number&amp;gt;
  • #41: &amp;lt;number&amp;gt;
  • #42: &amp;lt;number&amp;gt;
  • #43: &amp;lt;number&amp;gt;
  • #44: &amp;lt;number&amp;gt;
  • #45: &amp;lt;number&amp;gt;
  • #46: &amp;lt;number&amp;gt;
  • #47: &amp;lt;number&amp;gt;
  • #48: &amp;lt;number&amp;gt;
  • #49: &amp;lt;number&amp;gt;
  • #50: &amp;lt;number&amp;gt;
  • #51: &amp;lt;number&amp;gt;
  • #52: &amp;lt;number&amp;gt;
  • #53: &amp;lt;number&amp;gt;
  • #54: &amp;lt;number&amp;gt;
  • #55: &amp;lt;number&amp;gt; Remember what happened when a node receives a RREQ that contains itself (DSR) Source_addr, broadcast_id unique identifies the RREQ (AODV)
  • #56: &amp;lt;number&amp;gt; Remember what happened when a node receives a RREQ that contains itself (DSR) Source_addr, broadcast_id unique identifies the RREQ (AODV)
  • #57: &amp;lt;number&amp;gt; Remember what happened when a node receives a RREQ that contains itself (DSR) Source_addr, broadcast_id unique identifies the RREQ (AODV)
  • #58: &amp;lt;number&amp;gt; Remember what happened when a node receives a RREQ that contains itself (DSR) Source_addr, broadcast_id unique identifies the RREQ (AODV)