aodv routing protocol

43
Routing protocols in Adhoc networks SUBMITTED BY: 13MIT0062

Upload: varsha-anandani

Post on 29-Jul-2015

76 views

Category:

Engineering


6 download

TRANSCRIPT

Page 1: AODV routing protocol

Routing protocols in Adhoc networks

SUBMITTED BY: 13MIT0062

Page 2: AODV routing protocol

MANET

Mobile adhoc networks

Mobile Ad hoc NET work (MANET) is a self configuring network of mobile routers (and associated hosts)

connected by wireless links – the union of which forms an arbitrary topology

Page 3: AODV routing protocol

Examples of such networks

Sensor networks Military applications

Page 4: AODV routing protocol

Sensor networks

Networks deployed in random distribution

Low power Delivering sensor

data to a central site for some purpose

Page 5: AODV routing protocol

Military applications

Combat regiment in the field Perhaps 4000-8000 objects in

constant unpredictable motion… Intercommunication of forces

Proximity, function, plan of battle

Special issues Low probability of detection Random association and

topology

Page 6: AODV routing protocol

Dynamic source routing

DSR is designed for MANETs DSR doesn’t need any network infrastructures

Loop free routing No routing information in the intermediate nodes

Nodes may easily cache this routing information for future use

Page 7: AODV routing protocol

DSR protocol activities

Route discovery

Undertaken when source needs a route

to a destination

Route maintenance

Used when link breaks, rendering

specified path unusable

Page 8: AODV routing protocol

http://ashrafsau.blogspot.in/

destination

source1

65

4

3

2

8

7

(1,4)

(1,2)

(1,3)

(1,3,5,6)(1,3,5)

(1,4,7)

source broadcasts a packet containing address of source and destination

The route looks up its route caches to look for a route to destinationIf not find, appends its address into the packet

The destination sends a reply packet to source.

The node discards the packets having been seen

Page 9: AODV routing protocol

http://ashrafsau.blogspot.in/

How to send a reply packet

If the destination has a route to the

source in its route cache, use it

Else if symmetric links are

supported, use the reverse of route

record

Else if symmetric links are not

supported, the destination initiates

route discovery to source

Page 10: AODV routing protocol

http://ashrafsau.blogspot.in/

Route Maintenance Whenever a node transmits a data packet, a

route reply, or a route error, it must verify that the next hop correctly receives the packet.

If not, the node must send a route error to the node responsible for generating this route header Intermediate nodes “eavesdrop”, adjust

cached routes Source deletes route; tries another if

one cached, or The source restart the route discovery

Page 11: AODV routing protocol

http://ashrafsau.blogspot.in/

Route Maintenance……

A B C D E

Route error message: C-D is broken

Page 12: AODV routing protocol

http://ashrafsau.blogspot.in/

Disadvantages

Packet header size grows with route length due to source routing.

Flood route request may potentially reach all nodes in the network.

Route reply storm problem.

Page 13: AODV routing protocol

AODV Overview

AODV is a packet routing protocol designed for use in mobile ad hoc networks (MANET)

Intended for networks that may contain thousands of nodes

Source, destination and next hop are addressed using IP addressing

Each node maintains a routing table that contains information about reaching destination nodes.

Page 14: AODV routing protocol

Main Features of the AODV Protocol

The Ad hoc On-Demand Distance Vector protocol is both an on-demand and a table-driven protocol.

The packet size in AODV is uniform unlike DSR. Unlike DSDV, there is no need for system-wide broadcasts due to local changes.

AODV supports multicasting and unicasting within a uniform framework.

14

Page 15: AODV routing protocol

Main Features of the AODV Protocol (II)

Each route has a lifetime after which the route expires if it is not used.

A route is maintained only when it is used and hence old and expired routes are never used.

Unlike DSR, AODV maintains only one route between a source-destination pair.

15

Page 16: AODV routing protocol

Routing Table Fields

Destination IP address Destination Sequence Number Valid Destination Sequence Number Flag Other state and routing flags Network Interface Hop Count (needed to reach destination) Next Hop Lifetime (route expiration or deletion time)

Page 17: AODV routing protocol

Lifetime of a Route-Table Entry

A lifetime is associated with the entry in the route table.

This is an important feature of AODV. If a route entry is not used within the specified lifetime, it is deleted.

A route is maintained only when it is used. A route that is unused for a long time is assumed to be stale.

17

Page 18: AODV routing protocol

Overview Routing table size is minimized by only including

next hop information, not the entire route to a destination node.

Sequence numbers for both destination and source are used.

Managing the sequence number is the key to efficient routing and route maintenance

Page 19: AODV routing protocol

Overview

The basic message set consists of: RREQ – Route request RREP – Route reply RERR – Route error HELLO – For link status monitoring

Page 20: AODV routing protocol

Messages

Route Request: “I need a route” Route Response: “Route

advertisement” Route Error: “Withdraw route”

Periodic route response to neighbors acts as “hello”, installing and refreshing route

Page 21: AODV routing protocol

RREQ Message

B?

B? B

?B

?

B?

B?

B?

B

A

Page 22: AODV routing protocol

Route Requests in AODV

22

B

A

E

F

H

JC

G

IK

Z

Y

Represents a node that has received RREQ for D from S

M

N

L

D

S

Page 23: AODV routing protocol

Route Requests in AODV

23

B

A

E

F

H

JC

G

IK

Represents transmission of RREQ

Z

YBroadcast transmission

M

N

L

S

D

Page 24: AODV routing protocol

Route Requests in AODV

24

B

A

E

F

H

JC

G

IK

Represents links on Reverse Path

Z

Y

M

N

L

S

D

Page 25: AODV routing protocol

Reverse Path Setup in AODV

25

B

A

E

F

H

JC

G

IK

• Node C receives RREQ from G and H, but does not forward it again, because node C has already forwarded RREQ once

Z

Y

M

N

L

S

D

Page 26: AODV routing protocol

Reverse Path Setup in AODV

26

B

A

E

F

H

JC

G

IK

Z

Y

M

N

L

S

D

Page 27: AODV routing protocol

Reverse Path Setup in AODV

27

B

A

E

F

H

JC

G

IK

Z

Y

• Node D does not forward RREQ, because node D is the intended target of the RREQ

M

N

L

S

D

Page 28: AODV routing protocol

Forward Path Setup in AODV

28

B

A

E

F

H

JC

G

IK

Z

Y

M

N

L

Forward links are setup when RREP travels alongthe reverse path

Represents a link on the forward path

S

D

Page 29: AODV routing protocol

RREP Message

B

A

A

A

A

A

A

A

Page 30: AODV routing protocol

Message routing

A

B D

FC

G

E

RREQ

RREQ

RREQ

RREQ

RREQ

RREQRREQ

RREQ

RREQ

RREP

RREP

RREP

Source

Destination

Page 31: AODV routing protocol

Discovery

Broadcast RREQ messages. Intermediate nodes update their routing table Forward the RREQ if it is not the destination. Maintain back-pointer to the originator. Destination generates RREQ message. RREQ sent back to source using the reverse

pointer set upby the intermediate nodes.

RREQ reaches destination, communication starts.

Page 32: AODV routing protocol

Route Discovery A route between two nodes is

found by sending an Route Request to a locality Initial locality small, grows

with failure After that, a little larger than

the locality target last found in Route Response sent

By target if necessary By neighboring routing node if

possible to “join” existing route

Network stores the routed

j k l

ihg

f

A

e

C

B

Page 33: AODV routing protocol

Route Errors Routes expire if not

refreshed routing nodes log recent

downstream users of a route

When routes expire or are flushed, downstream users are notified to flush

New route request triggeredd

j k l

ihg

f

A

e

C

B

Page 34: AODV routing protocol

AODV Routing

There are two phases Route Discovery. Route Maintenance.

Each node maintains a routing table with knowledge about the network.

AODV deals with route table management. Route information maintained even for short lived routes –

reverse pointers.

Page 35: AODV routing protocol

Maintenance

Hello messages broadcast by active nodes periodically HELLO_INTERVAL.

No hello message from a neighbor in DELETE_PERIOD,link failure identified.

A local route repair to that next hop initiated. After a timeout ,error propagated both to originator and

destination. Entries based on the node invalidated.

Page 36: AODV routing protocol

Congestion Handling

One method that AODV handle congestion is: If the source node receives no RREP from the

destination, it may broadcast another RREQ, up to a maximum of RREQ_RETRIES.

For each additional attempt that a source node tried to broadcast RREQ, the waiting time for the RREP is multiplied by 2.

DSR is not capable of handling congestion.

Page 37: AODV routing protocol

Congestion Handling

Other possible methods to improve AODV congestion handling: A route may predict when congestion is about

to occur and try to avoid it by reduce the transmission rate.

Schedule the requests so that it will not overload the network.

Page 38: AODV routing protocol

Link Failure

A neighbor of node X is considered active for a routing table entry if the neighbor sent a packet within active_route_timeout interval which was forwarded using that entry

Neighboring nodes periodically exchange hello message

When the next hop link in a routing table entry breaks, all active neighbors are informed

Link failures are propagated by means of Route Error (RERR) messages, which also update destination sequence numbers

38

Page 39: AODV routing protocol

Route Error

When node X is unable to forward packet P (from node S to node D) on link (X,Y), it generates a RERR message

Node X increments the destination sequence number for D cached at node X

The incremented sequence number N is included in the RERR

When node S receives the RERR, it initiates a new route discovery for D using destination sequence number at least as large as N

When node D receives the route request with destination sequence number N, node D will set its sequence number to N, unless it is already larger than N

39

Page 40: AODV routing protocol

Security Attacks in AODV 1 Black hole attack2 Message tampering attack3 Message dropping attack

Page 41: AODV routing protocol

AODV: Summary

Routes need not be included in packet headers

Nodes maintain routing tables containing entries only for routes that are in active use

At most one next-hop per destination maintained at each nodeDSR may maintain several routes for a single

destination

Sequence numbers are used to avoid old/broken routes

Sequence numbers prevent formation of routing loops

Unused routes expire even if topology does not change

41

Page 42: AODV routing protocol

DSR vs AODV

I. Packet header overheadII. Route learning capabilityIII. Handling multiple route repliesIV. ScalabilityV. Security

Page 43: AODV routing protocol