Professional Documents
Culture Documents
1
This lecture: from DV-related (DSDV and AODV) to
Link-State-related (OLSR)
2
DV associated with the Distributed Bellman-Ford
algorithm.
LS (Link State) associated with Dijikstra’s algorithm.
3
Conventional Link-State: each node will know and broadcast all the
link states, A-B, B-C, B-D, D-E, E-F, E-G, G-H, and F-H.
link costs
F
H
B
C
G
D
4
Conventional Link State Routing (LSR)
Retransmission node
5
OLSR Overview
In conventional LSR (Link State Routing) , as can be seen from
the previous slide
a lot of control messages unnecessarily duplicated and retransmitted
In OLSR
only certain nodes known as MPR (MultiPoint Relay) can retransmit
control messages (containing link-state info):
Reduce size of control message;
Minimize flooding
Other advantages (the same as for LSR):
As stable as LSR protocol;
Proactive protocol(routes already known);
Does not depend upon any central entity;
Tolerates loss of control messages;
Supports node mobility.
Good for dense network
6
LSR versus OLSR
7
OLSR Overview (contd)
OLSR
9
1. OLSR HELLO messages
Each node periodically broadcasts its HELLO messages
to its neighbour(s): in the form:
<NBR(N), MPR(N)>
Where NBR(N) = set of N’s neighbours and
MPR(N) = set of multipoint relays of N; empty at start-up.
10
1. OLSR HELLO messages (cont.)
11
2. Neighbour Table
12
2. Neighbour Table (cont)
Example of neighbor table at Node B (see the next fig) – holding
time columns not shown; MPR defined in Step 3.
One-hop neighbors Two-hop neighbors
Neighbor’s id State of Link Neighbor’s id Access through
A Bidirectional E C
G Bidirectional D C
C MPR
F Bidirectional … …
13
2. Neighbour Table (cont)
E
D
F
A
14
3. OLSR – Multipoint relays of Node N
(MPR(N))
On the basis of the information in the Neighbour Table, each node
performs the selection of its multipoint relays as follows.
A node, say N, checks its two-hop neighbors (from the 2-hop neighbour
table). For each two-hop neighbour, N checks which one of N’s one-hop
neighbours is linked to this 2-hop neighbour – if there are more than one
alternative one-hop neighbours linked to this 2-hop neighbour, N will
select the optimal one-hop neighbour (say X) with the most connectivity
to X’s neighbours.
E
D
F
A
16
3.1 Eg. OLSR – Multipoint relays
(cont.)
Via C and F, B is able to cover all its 2-hop neighbours
(D and E), but C is selected as the preferred neighbour
of B because it has the most conectivity to its
neighbours.
17
4. OLSR – MS(N) and How to calculate it?
On reception of HELLO messages <NBR(), MPR()> by a node, say
Node X, from all its neighbours, Node X checks if it is a member in
the MPR() sets based on all the neighbours’ HELLO messages, i.e.
to check if it (the Node X) is selected by any of its neighbours as
an MPR. If it is selected, then the selector (say Node P) is listed in
MS(X) = { .,.,. P, . ,}
That is MPR Selector set of X, MS(X) = a set of neighbour nodes of
Node X, which select X as one of their MPRs.
In other words, a node X constructs its MPR Select set, MS(X)
based on the MPR(each of X’s neighbours) sets in the HELLO
messages received from all X’s neighbours.
MS(X) set sequence number is incremented by 1 when MS(X)
needs an update with info received in the HELLO message
indicating a change in its neighbour’s MPR set.
18
4.1 Eg. How to calculate MS of a node
Find MPR set for each node (eg MPR(B) = {A,C}). Find MS set for each node (eg.
MS(A) = {B,H, I}, MS(C) = {B,D,E}.) How?
E F H
MS(A) = {B,H,I}
D C B A I
19
5. Topology Control (TC) Message
20
5. TC message (cont.)
22
6.1 Example Topology Table. Notes in this example: suppose M is
selected as an MPR node by X, Y, and Z, plus later update to include R.
Each topology entry also has holding time – not shown in S’s topology
table. Upon receipt of M’s TC, S updates its TT to include R and MS
seq #.
Dest’ MS
Dest’ MPR
address sequence
X M 1
S
Y M 1
P
Z M 1
.. .. .. M
M Y 2
M Z 2
M R 2
23
7. Routing Table calculation/construction
As devices move
As devices move
Topological relationships change
Routes change
Backbone shape and
composition change
28