Top Banner
ROUTING PROTOCOLS Dr. Ahmed Khattab EECE Department Cairo University Fall 2012 ELC 659/ELC724
45

Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Apr 24, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

ROUTING PROTOCOLSDr. Ahmed Khattab

EECE DepartmentCairo University

Fall 2012

ELC 659/ELC724

Page 2: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Routing• Network-wide process the determine the end to end paths

that packets take from a source to a destination• Analogies:

• Travel from Cairo to Houston City (No direct flight)• Sending a postcard (has only sender and receiver addresses)

• Routing Protocol:• The algorithm that adaptively computes these paths (routing tables)

• Each packet has a field to indicate the distention ID (e.g. address, or prefix)

• Manual route configuration is unrealistic • Error-prone (human factor), slow, non-adaptive, ……

Dr. Ahmed Khattab Fall 2012 2

Page 3: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Aspect of Routing• Measurement

• Determines the cost of links (distance, delay, energy, …)

• Protocol• How to distribute information (e.g., distance)

• Algorithm• How to calculate the route (e.g., shortest path, least cost, min energy)

Dr. Ahmed Khattab Fall 2012 3

Page 4: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Routing Requirements• Given:

• Network Graph: G = (V, E)• Each edge e in E has a cost

• Required:• Fast lookups (i.e., small tables)

• Minimal control messages

• Robust (avoid loops, oscillations)

• Use optimal paths (based on a target cost function)

Dr. Ahmed Khattab Fall 2012 4

B

C

D

E

A F

1

1

3

2

5

4

2

5

1

Page 5: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Basic Routing Approaches• Link State

• Computes shortest distance path using global and complete knowledge about the network

• Distance Vector• Computes shortest paths in an iterative and distributed way

based only on the knowledge of the distance to immediate nodes

Dr. Ahmed Khattab Fall 2012 5

Page 6: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Link State Routing • Each node broadcast link state packets to all nodes in the

network (flooding)

• Each node collects all these packets • Hence, each node knows the entire topology

• Each node locally computes the shortest path itself• Dijkestra’s Algorithm

• Has a set P (permanent) of nodes which shortest path is known (have distance Da

x)• Add set T (temporary) that contains nodes directly reachable (1-hop) by P• Pick closest node(s) that minimize min (dij + Da

x) for all i in P and j in T and add it to P

• Repeat until P contains all nodes

Dr. Ahmed Khattab Fall 2012 6

Node Neighbor Cost

Page 7: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Distance Vector Routing (Bellman-Ford)

• Initialize distance vectors (DV)

• Exchange DV’s with nearest neighbors ONLY

• Update DV

• Go to step 2 unless convergence is reached

Dr. Ahmed Khattab Fall 2012 7

Page 8: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Distance Vector Routing

Dr. Ahmed Khattab Fall 2012 8

Slide courtesy of Dr. Hongyi Wu.

Page 9: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Distance Vector Routing

Dr. Ahmed Khattab Fall 2012 9

Slide courtesy of Dr. Hongyi Wu.

Page 10: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Distance Vector Routing

Dr. Ahmed Khattab Fall 2012 10

Slide courtesy of Dr. Hongyi Wu.

Page 11: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Distance Vector Routing (New Node)

Dr. Ahmed Khattab Fall 2012 11

Slide courtesy of Dr. Hongyi Wu.

Page 12: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Distance Vector Routing (New Node)

Dr. Ahmed Khattab Fall 2012 12

Slide courtesy of Dr. Hongyi Wu.

Page 13: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Distance Vector Routing (New Node)

Dr. Ahmed Khattab Fall 2012 13

Slide courtesy of Dr. Hongyi Wu.

Page 14: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Distance Vector Routing (New Node)

Dr. Ahmed Khattab Fall 2012 14

Slide courtesy of Dr. Hongyi Wu.

Page 15: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Distance Vector Routing (Broken Link)

Dr. Ahmed Khattab Fall 2012 15

Slide courtesy of Dr. Hongyi Wu.

Page 16: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Distance Vector Routing (Loops)

Dr. Ahmed Khattab Fall 2012 16

Slide courtesy of Dr. Hongyi Wu.

Page 17: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Distance Vector Routing (Loops)

Dr. Ahmed Khattab Fall 2012 17

Slide courtesy of Dr. Hongyi Wu.

Page 18: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Distance Vector Routing (Loops)

Dr. Ahmed Khattab Fall 2012 18

Slide courtesy of Dr. Hongyi Wu.

Page 19: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Distance Vector Routing (Count to infinity)

Dr. Ahmed Khattab Fall 2012 19

Slide courtesy of Dr. Hongyi Wu.

Page 20: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

MANET Challenges• Lack of a centralized entity• Network topology changes frequently and unpredictably• Routing and Mobility Management• Channel access/Bandwidth availability• Hidden/Exposed station problem• Asymmetrical links• Power limitation

Dr. Ahmed Khattab Fall 2012 20

Page 21: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

MANET Routing Protocols

• Proactive Protocols• Table driven• Continuously evaluate

routes• Low latency in route

discovery• Large capacity to keep

network information current

• A lot of routing information may never be used!

• Reactive Protocols• On Demand• Route discovery by

some global search• Bottleneck due to

latency of route discovery

• May not be appropriate for realtimecommunication

• Scalability

Dr. Ahmed Khattab Fall 2012 21

Page 22: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

MANET Routing Protocols

Dr. Ahmed Khattab Fall 2012 22

Slide courtesy of Dr. Hongyi Wu.

Page 23: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Destination Sequence Distance Vector Routing• Keep the simplicity of Distance Vector

• Guarantee Loop Free• New Table Entry for Destination Sequence Number

• Allow fast reaction to topology changes• Make immediate route advertisement on significant changes in

routing table• but wait with advertising of unstable routes (damping fluctuations)

Dr. Ahmed Khattab Fall 2012 23

Page 24: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

DSDV• Advertise to each neighbor own routing information

• Destination Address• Metric = Number of Hops to Destination• Destination Sequence Number• Other info

• Rules to set sequence number information• On each advertisement, the node increases own destination

sequence number by 2 (use only even numbers)• If a node is no more reachable (timeout) increase sequence number

of this node by 1 (odd sequence number) and set metric = ∞.

Dr. Ahmed Khattab Fall 2012 24

Page 25: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

DSDV (no loops, no count to infinity)

Dr. Ahmed Khattab Fall 2012 25

Slide courtesy of Dr. Hongyi Wu.

Page 26: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

DSDV (no loops, no count to infinity)

Dr. Ahmed Khattab Fall 2012 26

Slide courtesy of Dr. Hongyi Wu.

Page 27: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

DSDV (no loops, no count to infinity)

Dr. Ahmed Khattab Fall 2012 27

Slide courtesy of Dr. Hongyi Wu.

Page 28: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Dynamic Source Routing (DSR)• The nodes don’t maintain routing table

• When node S wants to send a packet to node D, but does not know a route to D, node S initiates a route discovery

• Source node S floods Route Request (RREQ)• Sender Address• Receiver Address• Request id, determined by sender• Each intermediate node appends own identifier when forwarding

RREQ

Dr. Ahmed Khattab Fall 2012 28

Page 29: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Dynamic Source Routing (DSR)

Dr. Ahmed Khattab Fall 2012 29

Slide courtesy of Dr. Hongyi Wu.

Page 30: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Dynamic Source Routing (DSR)

Dr. Ahmed Khattab Fall 2012 30

Slide courtesy of Dr. Hongyi Wu.

Page 31: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Dynamic Source Routing (DSR)

Dr. Ahmed Khattab Fall 2012 31

Slide courtesy of Dr. Hongyi Wu.

Page 32: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Dynamic Source Routing (DSR)

Dr. Ahmed Khattab Fall 2012 32

Slide courtesy of Dr. Hongyi Wu.

Page 33: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Dynamic Source Routing (DSR)

Dr. Ahmed Khattab Fall 2012 33

Slide courtesy of Dr. Hongyi Wu.

Page 34: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Dynamic Source Routing (DSR)

Dr. Ahmed Khattab Fall 2012 34

Slide courtesy of Dr. Hongyi Wu.

Page 35: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Dynamic Source Routing (DSR)

Dr. Ahmed Khattab Fall 2012 35

Slide courtesy of Dr. Hongyi Wu.

Page 36: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Dynamic Source Routing (DSR)

Dr. Ahmed Khattab Fall 2012 36

Slide courtesy of Dr. Hongyi Wu.

Page 37: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Ad hoc On-demand DistanceVector (AODV)

Dr. Ahmed Khattab Fall 2012 37

Slide courtesy of Dr. Hongyi Wu.

Page 38: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Ad hoc On-demand DistanceVector (AODV)

Dr. Ahmed Khattab Fall 2012 38

Slide courtesy of Dr. Hongyi Wu.

Page 39: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Ad hoc On-demand DistanceVector (AODV)

Dr. Ahmed Khattab Fall 2012 39

Slide courtesy of Dr. Hongyi Wu.

Page 40: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Ad hoc On-demand DistanceVector (AODV)

Dr. Ahmed Khattab Fall 2012 40

Slide courtesy of Dr. Hongyi Wu.

Page 41: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Ad hoc On-demand DistanceVector (AODV)

Dr. Ahmed Khattab Fall 2012 41

Slide courtesy of Dr. Hongyi Wu.

Page 42: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Ad hoc On-demand DistanceVector (AODV)

Dr. Ahmed Khattab Fall 2012 42

Slide courtesy of Dr. Hongyi Wu.

Page 43: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Ad hoc On-demand DistanceVector (AODV)

Dr. Ahmed Khattab Fall 2012 43

Slide courtesy of Dr. Hongyi Wu.

Page 44: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Ad hoc On-demand DistanceVector (AODV)

Dr. Ahmed Khattab Fall 2012 44

Slide courtesy of Dr. Hongyi Wu.

Page 45: Routing - cuakhattab/files/courses/wsn/Routing.pdf · Link State Routing • Each node broadcast link state packets to all nodes in the network (flooding) • Each node collects all

Ad hoc On-demand DistanceVector (AODV)

Dr. Ahmed Khattab Fall 2012 45