Lecture14 Network Layer
Lecture14 Network Layer
Copyright @ Hassaan
Credits and Acknowledgement
Many of the slides for this lecture series are copied directly from
Prof. CUI Yong’s and Dr. Ali Khayam’s lecture slides.
2
Outline
Introduction
MANET Routing Overview and Background
MANET Routing Protocol Design
– Reactive protocols
– Proactive protocols
– Hybrid protocols
Conclusion
3
Network Layer in Infrastructure Wireless LANs
4
Network Layer in Infrastructure Wireless LANs
5
Network Layer Challenges
6
Network Layer Challenges
7
Network Layer Challenges
Host mobility
– link failure/repair due to mobility may have different
characteristics than those due to other causes
Instability
– Rate of link failure/repair may be high when nodes move fast
8
Network Layer Challenges
Proposed protocols
– Some have been invented specifically for MANET
– Others are adapted from older protocols for wired networks
Bandwidth Limitations:
-- Wireless bandwidth is scarce
Shared Medium:
-- Channel contention and collisions can introduce significant delays
9
Network Layer Challenges
10
Classification of Routing protocols
11
Types of MANET
– Reactive Algorithms
– Proactive Algorithms
– Hybrid Algorithms
12
Types of Protocols
On-demand/reactive
– the routes are determined when they are required by the
source using a route discovery process;
13
Types of Protocols
14
Types of Protocols
– Scalable size
– High mobility
15
Types of Protocols
Global/proactive
– determine routes to all the destinations at the start
up
– maintain by using periodic route update process;
16
Types of Protocols
17
Types of Protocols
– Small size
– Low mobility
18
Types of Protocols
Hybrid
– combine the basic properties of the first two classes
of protocols into one.
19
Types of Protocols
20
Routing Choice
– Network Topology
22
How to send msg to destination
Routing
– Reactive
– Proactive
No routing in advance?
– Any simple solutions?
23
Flooding for Data Delivery
24
Flooding for Data Delivery
Y
Sending a packet from S to D
Z
S E
F
B
C M L
J
A G
H D
K
I N
Y
Broadcast transmission
Z
S E
F
B
C M L
J
A G
H D
K
I N
Z
S E
F
B
C M L
J
A G
H D
K
I N
Z
S E
F
B
C M L
J
A G
H D
K
I N
28
Flooding for Data Delivery
• Nodes J and K both broadcast packet P to node D
• Since nodes J and K are hidden from each other, their
transmissions may collide Y
=> Packet P may not be delivered to node D at all,
despite the use of flooding
Z
S E
F
B
C M L
J
A G
H D
K
I N
29
Route Reply in DSR
Z
S RREP [S,E,F,J,D]
E
F
B
C M L
J
A G
H D
K
I N
31
Route Discovery in DSR
Z
S E
F
B
C M L
J
A G
H D
K
I N
32
Route Discovery in DSR
Y
Broadcast transmission
[S] Z
S E
F
B
C M L
J
A G
H D
K
I N
Z
S [S,E]
E
F
B
C M L
J
A [S,C] G
H D
K
I N
Z
S E
F [S,E,F]
B
C M L
J
A G
H D
[S,C,G] K
I N
35
Route Discovery in DSR
Z
S E
F [S,E,F,J]
B
C M L
J
A G
H D
K
I [S,C,G,K] N
Z
S E
[S,E,F,J,M]
F
B
C M L
J
A G
H D
K
I N
37
Route Discovery in DSR
Route Reply
– Destination D on receiving the first RREQ, sends a
Route Reply (RREP)
38
Route Reply in DSR
If IEEE 802.11 MAC is used to send data, then links have to be bi-
directional (since ACK is used)
39
Dynamic Source Routing (DSR)
Three steps in DSR
– Route Discovery
– Data Delivery
– Route maintenance
Data delivery
– Node S on receiving RREP, caches the route included in the RREP
40
Data Delivery in DSR
DATA [S,E,F,J,D] Z
S E
F
B
C M L
J
A G
H D
K
I N
Any problem?
– Packet header size grows with route length
– Route failure may occur
• Who should recover the failure?
41
Data
RouteDelivery
Maintenance
in DSR
Y
Route Error (RERR)
RERR [J-D] Z
S E
F
B
C M L
J
A G
H D
K
I N
J sends a route error to S along route J-F-E-S when its attempt to forward the
data packet S (with route SEFJD) on J-D fails
42