olsr ad-hoc

Embed Size (px)

Citation preview

  • 8/13/2019 olsr ad-hoc

    1/41

    Qamar A Tarar OLSR Protocol 1

    Optimized Link State Routing

    Protocol for Ad Hoc Networks

    Qamar Abbas Tarar

    Mobile ad-hoc networks based on wireless LAN

  • 8/13/2019 olsr ad-hoc

    2/41

    Qamar A Tarar OLSR Protocol 2

    Problems in MANETs

    Scalabil i ty QoS

    Secur i ty

    Interoperat ion with the Internet

    Lim ited Battery Life

    Node Mob i l i ty

    Unrel iable radio ch annelHidden terminal pro blem

    Route maintenace

    Unpredictable l ink propert ies

  • 8/13/2019 olsr ad-hoc

    3/41

    Qamar A Tarar OLSR Protocol 3

    Unicast-Routing Protocol for

    MANET (Topology-based)

    Table-Driven/

    Proactive

    Hybrid On-Demand-

    driven/Reactive

    Clusterbased/

    Hierarchical

    Distance-

    Vector

    Link-

    State

    ZRP DSR

    AODV

    TORA

    LANMAR

    CEDAR

    DSDV OLSR

    TBRPF

    FSR

    STARMANET: Mobile Ad hoc Network

    (IETF working group)

    Classification of Routing Protocols for

    MANETS

    CBRP

  • 8/13/2019 olsr ad-hoc

    4/41

    Qamar A Tarar OLSR Protocol 4

    Proactive vs Reactive Routing Protocols

    Proactive Routing Protocols (DSDV, OLSR)+ Routes to all reachable nodes in the network available.

    + Minimal initial delay for application.

    - Larger signalling traffic and power consumption.

    Reactive Routing Protocols (DSR, CBR etc)

    + Smaller signalling traffic and power consumption.

    - A long delay for application when no route to the

    destination available

  • 8/13/2019 olsr ad-hoc

    5/41

    Qamar A Tarar OLSR Protocol 5

    Structure

    OLSR

    Overview

    Multipoint relays

    Neighbor sensing

    MPR selection

    MPR information declaration

    Routing table calculation

    Extensions in OLSR

    Conclusions

  • 8/13/2019 olsr ad-hoc

    6/41

    Qamar A Tarar OLSR Protocol 6

    Overview

    OLSR Developed by IETF

    Table driven

    Inherits Stability of

    Link-state protocol

    Selective Flooding

    Periodic Link State

    Information generated only by MPR

    MPRs employed for optimization

  • 8/13/2019 olsr ad-hoc

    7/41

    Qamar A Tarar OLSR Protocol 7

    Link State Routing (eg, OSPF)

    Each node periodically floods status of its links

    Each node re-broadcasts link state

    information received from its neighbour

    Each node keeps track of link state

    information received from other nodes

    Each node uses above information to

    determine next hope to each destination24 retransmissions to diffusea message up to 3 hops

    Retransmission node

  • 8/13/2019 olsr ad-hoc

    8/41

    Qamar A Tarar OLSR Protocol 8

    OLSR Overview

    In LSR

    protocol a lot of control messages unnecessary duplicated In OLSR

    onlyMPRretransmit control messages:

    Reduce size of control message;

    Minimize flooding

    Other advantages (the same as for LSR): As stableas LSR protocol;

    Proactiveprotocol(routes already known);

    Does not depend upon any central entity;

    Tolerates loss of control messages;

    Supports nodes mobility.

    Good for dense network

  • 8/13/2019 olsr ad-hoc

    9/41

    Qamar A Tarar OLSR Protocol 9

    Optimized Link state routing (OLSR)

    24 retransmissions to diffusea message up to 3 hops

    Retransmission node

    11 retransmission to diffuse amessage up to 3 hops

    Retransmission node

  • 8/13/2019 olsr ad-hoc

    10/41

  • 8/13/2019 olsr ad-hoc

    11/41

  • 8/13/2019 olsr ad-hoc

    12/41

    Qamar A Tarar OLSR Protocol 12

    Example of neighbor table

    One-hop neighbors

    Neighbors id State of Link

    B Bidirectional

    G UnidirectionalC MPR

    Two-hop neighbors

    Neighbors id Access though

    E C

    D C

    Also every entry in the table has a timestamp, after which the

    entry in not valid

  • 8/13/2019 olsr ad-hoc

    13/41

    Qamar A Tarar OLSR Protocol 13

    Multipoint Relays (MPR)

    N

    Reducere-transmission

    in the same region Each node select a set

    of MPR Selecto rs

    MPR Selectors of node

    N - MPR(N)- one-hop neighbors of N

  • 8/13/2019 olsr ad-hoc

    14/41

    Qamar A Tarar OLSR Protocol 14

    Multipoint Relays (MPR)

    N

    Reducere-transmission

    in the same region Each node select a set

    of MPR Selecto rs

    MPR Selectors of node

    N - MPR(N)- one-hop neighbors of N

    MPR set of Node N

    Set of MPRs is able to

    transmit to all two-hop neighbors

    Link between node and its MPR is

    bidirectional.

  • 8/13/2019 olsr ad-hoc

    15/41

    Qamar A Tarar OLSR Protocol 15

    Every node keeps a table of routes to all knowndestination through its MPR nodes

    Every node periodically broadcasts list of its MPR

    Selectors (instead of the whole list of neighbors).

    Upon receipt of MPR information each noderecalculates and updates routes to each known

    destination

    Multipoint Relays (MPR)

  • 8/13/2019 olsr ad-hoc

    16/41

    Qamar A Tarar OLSR Protocol 16

    MRP selection in OLSR

    Node 1 Hop Neighbors 2 Hop Neighbors MPR(s)

    B A,C,F,G D,E C

    Available BW

    OLSR: node B will select C as itsMPR So all the other nodes know

    that they can reach B via C

    30

    10050110

    25

    60

    10

    40

    510

    D->B route is D-C-B, whosebottleneck BW is 3

    3

  • 8/13/2019 olsr ad-hoc

    17/41

    Qamar A Tarar OLSR Protocol 17

    MRP selection in OLSR

    Node 1 Hop Neighbors 2 Hop Neighbors MPR(s)

    B A,C,F,G D,E C

    Available BW

    OLSR: node B will select C as itsMPR So all the other nodes know

    that they can reach B via C

    30

    10050110

    25

    60

    10

    40

    510

    D->B route is D-C-B, whosebottleneck BW is 3

    3

    Optimal route (i.e., path with

    maximum bottleneck bandwidth:

    D-F-B (bottleneck bandwidth of 10)

  • 8/13/2019 olsr ad-hoc

    18/41

    Qamar A Tarar OLSR Protocol 18

    Multi-Point Relays/routers

    Passes Topology Information

    Acts as router between hosts

    Minimizes information retransmission

    Forms a routing backbone

  • 8/13/2019 olsr ad-hoc

    19/41

    Qamar A Tarar OLSR Protocol 19

    Structure of an OLSR Network

    MPRs form routing backbone

    Other nodes act as hosts

  • 8/13/2019 olsr ad-hoc

    20/41

    Qamar A Tarar OLSR Protocol 20

    Structure of an OLSR Network

    MPRs form routing backbone

    Other nodes act as hosts

    As devices move

  • 8/13/2019 olsr ad-hoc

    21/41

    Qamar A Tarar OLSR Protocol 21

    Structure of an OLSR Network

    MPRs form routing backbone

    Other nodes act as hosts

    As devices moveTopological relationships change

    Routes changeBackbone shape andcomposition changes

  • 8/13/2019 olsr ad-hoc

    22/41

    Qamar A Tarar OLSR Protocol 22

    MPR information declaration

    TCTopology control message:

    Sent periodically. Message might not be sent if there are no

    updates and sent earlier if there are updates

    Contains:

    MPR Selector Table

    Sequence number

    Each node maintainsa Topology Tablebased on TC messages

    Routing Tablesare calculated based on Topology tables

  • 8/13/2019 olsr ad-hoc

    23/41

    Qamar A Tarar OLSR Protocol 23

    Topology Table

    Destination

    address

    Destinations

    MPR

    MPR Selector

    sequencenumber

    Holding time

    MPR Selector in

    the received TC

    message

    Last-hop node to the

    destination.

    Originator of TC

    message

  • 8/13/2019 olsr ad-hoc

    24/41

  • 8/13/2019 olsr ad-hoc

    25/41

    Qamar A Tarar OLSR Protocol 25

    Routing Table

    Each nodemaintains a routing table to all known

    destinations in the network Routing table is calculatedfrom Topological Table,

    taking the connected pairs

    Routing table: Destination address

    Next Hop address

    Distance

    Routing Table is recalculatedafter every change inneighborhood table or in topological table

  • 8/13/2019 olsr ad-hoc

    26/41

    Qamar A Tarar OLSR Protocol 26

    Extensions in OLSR

    QosOLSR

    FastOLSR

    Towards IPv6OLSR

    Power saver mode

    Change in the contents of TCpacket

  • 8/13/2019 olsr ad-hoc

    27/41

    Qamar A Tarar OLSR Protocol 27

    QoS Routing: Difficulties in QoS routing

    Due to mobility

    Availability and manageability of Link state metrics

    Link quality changes quickly and continuously

    Computational cost and protocol overhead affect

    the performance of the QoS routing protocol

    Protocol performance evaluation is complex

  • 8/13/2019 olsr ad-hoc

    28/41

    Qamar A Tarar OLSR Protocol 28

    Proactive QoS Routing

    Advantages suitable for the unpredictable nature of Ad-Hoc networks

    suitable for the requirement of quick reaction to QoS demands

    makes call admission control possible

    avoids the waste of network resources

    Disadvantages

    introduces additional protocol overhead

    trade-off between the QoS performance and traditional protocol

    performance

    But..

    Little work has been done to analyse the impact of the additional

    overhead on pro-active QoS routing

  • 8/13/2019 olsr ad-hoc

    29/41

    Qamar A Tarar OLSR Protocol 29

    QoS Versions of OLSR

    30

    10050110

    25

    60

    10

    40

    5

    10

    OLSR protocol does not guarantee

    to find the best bandwidth route

    3 heuristics are proposed to enhanceOLSR in bandwidth aspect

    The heuristics select good bandwidth

    neighbour as MPR

    3

  • 8/13/2019 olsr ad-hoc

    30/41

    Qamar A Tarar OLSR Protocol 30

    QoS Versions of OLSR

    OLSR_R1: similar to OLSR (i.e., choose 1-hop neighbours that cover

    max. number of 2-hop neighbours), tie-breaker now max BWNode 1 Hop Neighbors 2 Hop Neighbors MPR(s)

    B A,C,F,G D,E C

    OLSR_R2: select the best BW neighbors as

    MPRs until all the 2-hop neighbors are covered.

    Node 1 Hop Neighbors 2 Hop Neighbors MPR(s)

    B A,C,F,G D,E F

    OLSR_R3: selects the MPRs in a way such that

    all the 2-hop neighbors have the max. bottleneckBW path through the MPRs to the current node.

    Node 1 Hop Neighbors 2 Hop Neighbors MPR(s)

    B A,C,F,G D,E A,F

    30

    10050110

    25

    60

    10

    40

    5103

  • 8/13/2019 olsr ad-hoc

    31/41

    Qamar A Tarar OLSR Protocol 31

    Evaluation of QoS OLSR

    Simulation: generate networks, run OLSR algorithms, compare results

    against paths calculated by Link-State algorithm (i.e. completeknowledge, all-pair shortest path)

    Network area: 1000 M 1000 M

    Number of nodes: 100

    Transmission range: 100 M, 200 M, 300 M

    Bandwidth: assigned randomly

    Results are averaged over 100 randomly generated networks

    f i

  • 8/13/2019 olsr ad-hoc

    32/41

    Qamar A Tarar OLSR Protocol 32

    Performance Metrics

    Error rate:percentage of routes with non-optimal bandwidth

    Average difference: for routes with non-optimal bandwidth,

    how far off the optimal bandwidth are we

    Overhead: the average number of control messages

    transmitted per node

    MPR count: average number of MPRs in the network

    E i l R l

  • 8/13/2019 olsr ad-hoc

    33/41

    Qamar A Tarar OLSR Protocol 33

    Experimental Results

    Algorithm Transmissi

    on

    Range

    Performace Cost

    Error

    Rate

    Average difference Over-

    head

    MPR

    CountStandard

    OLSR300M 28% 46% 12 65

    200 M 41% 51% 24 68

    100 M 12% 45% 5 42

    OLSR_R1 300 M 14% 22% 12 65

    200 M 21% 26% 24 68

    100 M 8% 44% 5 42

    OLSR_R2 300 M 0% 0% 18 70

    200 M 0% 0% 33 72

    100 M 0% 0% 5.7 45

    OLSR_R3 300 M 0% 0% 26 71

    200 M 0% 0% 38 73

    100 M 0% 0% 5.7 44

    Pure Link

    State

    Algorithm

    300 M 0% 0% 1245 100

    200 M 0% 0% 979 100

    100 M 0% 0% 28 100

  • 8/13/2019 olsr ad-hoc

    34/41

    N i hb Di i F OLSR

  • 8/13/2019 olsr ad-hoc

    35/41

    Qamar A Tarar OLSR Protocol 35

    Neighbor Discovery in Fast OLSR

    3-procedures:

    Switch to Fast-Moving/Default mode:

    In Fast mode,send Fast-Hellos and vice versa.

    A Fast-Hello is smaller than a Hello

    Establishing fast Links:

    A node in Fast-Moving mode sends Fast-Hello

    messages at high frequency.

    Refresh Fast links & Detect new broken links:

    by sending periodic Fast-Hellos

    T d IP 6 OLSR

  • 8/13/2019 olsr ad-hoc

    36/41

    Qamar A Tarar OLSR Protocol 36

    Towards IPv6 OLSR

    OLSR operate well with both IPv4 and IPv6

    To operate with IPv6, the only required change

    is to replace the IPv4 addresses with IPv6 address.

    The minimum packet and message sizes should be

    adjusted accordingly, considering the greater size of

    IPv6 addresses.

    P d

  • 8/13/2019 olsr ad-hoc

    37/41

    Qamar A Tarar OLSR Protocol 37

    Power saver mode

    A node can indicate if it agrees to keep the packets of its neighbors

    Any node, who wants to go in sleep mode, will select ONLY that

    neighbor as MPR who can keep its packets

    TC packet will diffuse this info, and all data packets will be routed

    through that power saver node

    Ch i th t t f TC k t

  • 8/13/2019 olsr ad-hoc

    38/41

    Qamar A Tarar OLSR Protocol 38

    Change in the contents of TC packet

    Instead of advertising its set of MPRs, a nodewill list its neighbors who has selected him as

    an MPR

    Many nodes (loosely connected, or at the

    boundaries) will not be selected MPRany node. So they will not send any TC

    (25% less overhead)

    Less frequent changes in this set

    Conclusions

  • 8/13/2019 olsr ad-hoc

    39/41

    Qamar A Tarar OLSR Protocol 39

    Advantages

    Route immediately available

    Reactivity to topological changes can be adjusted bysetting the time interval for HELLO messages

    Minimize flooding by using MPR

    Can be integrated into existing system as it requires nochange to IP format

    Disadvantages

    Bigger overhead

    Need more power

    Not all allgoritms pubically documented

    Needs more operational experience to debug

    Conclusions

    R di

  • 8/13/2019 olsr ad-hoc

    40/41

    Qamar A Tarar OLSR Protocol 40

    Readings

    G. Pei, M. Gerla, and X. Hong, "LANMAR: Landmark Routing for

    Large Scale Wireless Ad Hoc Networks with Group Mobility," InProceedings of IEEE/ACM MobiHOC 2000, Boston, MA, Aug.

    2000.

    R. Ogier, F. Templin, M. Lewis, "Topology Dissemination Based on

    Reverse-Path Forwarding (TBRPF) ," IETF Internet Draft , July 28

    2003. Thomas Clausen, Philippe Jacquet, "Optimized Link State Routing

    Protocol (OLSR) ," IETF Internet Draft , July 3 2003.

    X. Hong, K. Xu, and M. Gerla, "Scalable Routing Protocols for

    Mobile Ad Hoc Networks" IEEE Network Magazine, July-Aug,

    2002, pp. 11-21 Thomas Kunz,Ying Ge, Louise Lamont, Quality of Service Routing

    in Ad-Hoc Networks Using OLSR Carleton University, CRC,2002

    M Benzaid, P Minet and K A Agha, Integrating fast mobility in the

    OLSR routing protocol INRIA, LRI, France,September 2002.

    http://www.cs.ucla.edu/classes/fall03/cs218/paper/mobihoc00.pdfhttp://www.cs.ucla.edu/classes/fall03/cs218/paper/mobihoc00.pdfhttp://www.cs.ucla.edu/classes/fall03/cs218/paper/draft-ietf-manet-tbrpf-10.txthttp://www.cs.ucla.edu/classes/fall03/cs218/paper/draft-ietf-manet-tbrpf-10.txthttp://www.cs.ucla.edu/classes/fall03/cs218/paper/draft-ietf-manet-olsr-11.txthttp://www.cs.ucla.edu/classes/fall03/cs218/paper/draft-ietf-manet-olsr-11.txthttp://www.cs.ucla.edu/classes/fall03/cs218/paper/network-hxy.pdfhttp://www.cs.ucla.edu/classes/fall03/cs218/paper/network-hxy.pdfhttp://www.cs.ucla.edu/classes/fall03/cs218/paper/network-hxy.pdfhttp://www.cs.ucla.edu/classes/fall03/cs218/paper/network-hxy.pdfhttp://www.cs.ucla.edu/classes/fall03/cs218/paper/network-hxy.pdfhttp://www.cs.ucla.edu/classes/fall03/cs218/paper/draft-ietf-manet-olsr-11.txthttp://www.cs.ucla.edu/classes/fall03/cs218/paper/draft-ietf-manet-olsr-11.txthttp://www.cs.ucla.edu/classes/fall03/cs218/paper/draft-ietf-manet-olsr-11.txthttp://www.cs.ucla.edu/classes/fall03/cs218/paper/draft-ietf-manet-tbrpf-10.txthttp://www.cs.ucla.edu/classes/fall03/cs218/paper/draft-ietf-manet-tbrpf-10.txthttp://www.cs.ucla.edu/classes/fall03/cs218/paper/draft-ietf-manet-tbrpf-10.txthttp://www.cs.ucla.edu/classes/fall03/cs218/paper/draft-ietf-manet-tbrpf-10.txthttp://www.cs.ucla.edu/classes/fall03/cs218/paper/draft-ietf-manet-tbrpf-10.txthttp://www.cs.ucla.edu/classes/fall03/cs218/paper/mobihoc00.pdfhttp://www.cs.ucla.edu/classes/fall03/cs218/paper/mobihoc00.pdfhttp://www.cs.ucla.edu/classes/fall03/cs218/paper/mobihoc00.pdf
  • 8/13/2019 olsr ad-hoc

    41/41

    Q A T OLSR P l 41

    Q & A