Ad-hoc and Mesh Networks MAP-I Manuel P. Ricardo Faculdade de - - PowerPoint PPT Presentation

ad hoc and mesh networks
SMART_READER_LITE
LIVE PREVIEW

Ad-hoc and Mesh Networks MAP-I Manuel P. Ricardo Faculdade de - - PowerPoint PPT Presentation

Ad-hoc+mesh-net 1 Ad-hoc and Mesh Networks MAP-I Manuel P. Ricardo Faculdade de Engenharia da Universidade do Porto Ad-hoc+mesh-net 2 What is an ad-hoc network? What are differences between layer 2 and layer 3 ad-hoc networks? What


slide-1
SLIDE 1

Ad-hoc+mesh-net 1

Ad-hoc and Mesh Networks

MAP-I

Manuel P. Ricardo

Faculdade de Engenharia da Universidade do Porto

slide-2
SLIDE 2

Ad-hoc+mesh-net 2

♦ What is an ad-hoc network? ♦ What are differences between layer 2 and layer 3 ad-hoc

networks?

♦ What are the differences between an IEEE mesh network and an

IETF MANET network?

♦ What are the differences between a mobile network and a mobile

terminal?

slide-3
SLIDE 3

Ad-hoc+mesh-net 3

♦ MANET – Ad-hoc Networks

» AODV, OLSR

♦ Mesh networks

» 802.11s

slide-4
SLIDE 4

Ad-hoc+mesh-net 4

Basics on ad-hoc networks

♦ What is an ad-hoc network? ♦ What are the differences between and ad-hoc wireless network

and a wired network?

♦ What are the characteristics of the most important ad-hoc

routing protocols?

slide-5
SLIDE 5

Ad-hoc+mesh-net 5

♦ Auto-configurable network ♦ Working over wireless links ♦ Nodes are mobile  dynamic network topology ♦ Isolated network, or interconnected to Internet ♦ Nodes forward traffic ♦ Routing protocol required

A B C

Ad-Hoc Network (Layer 3)

slide-6
SLIDE 6

Ad-hoc+mesh-net 6

IETF MANET - Mobile Ad-hoc Networking

Fixed Network Mobile Devices Mobile Router Manet Mobile IP, DHCP Router End system

slide-7
SLIDE 7

Ad-hoc+mesh-net 7

Route calculation in wired networks

♦ Distance vector

» Messages exchanged periodically with neighbours » Message indicates reachable nodes and their distance » Algorithm takes long time to converge » Eg. RIP

♦ Link state

» Router informs periodically the other routers about its links state » Every router gets information from all other routers » Lots of traffic » Eg. OSPF

4 3 6 2 1 9 1 1 D A F E B C

slide-8
SLIDE 8

Ad-hoc+mesh-net 8

Route calculation in Ad-Hoc Netoworks- Characteristics

Ad-hoc network

» Dynamic topology

– Depends on node mobility

» Interference

– Radio communications

» Asymmetric links

– Received powers and attenuation unequal in the two directions N1 N4 N2 N5 N3 N1 N4 N2 N5 N3 good link weak link time = t1 time = t2

slide-9
SLIDE 9

Ad-hoc+mesh-net 9

Routing in Ad-hoc Networks

♦ Conventional routing protocols

– Built for wired networks  whose topology varies slowly – Assume symmetric links

♦ In Ad-hoc networks

» Dynamic topology information required to be refreshed more frequently

– energy consumption – radio resources used for signaling information

» Wireless node may have scarce resources (bandwidth, energy) …

♦ New routing strategies / protocols for ad-hoc networks

– 2 type : reactive e pro-active

slide-10
SLIDE 10

Ad-hoc+mesh-net 10

To think about

♦ How can we avoid a large signaling overhead (number of

routing messages) in ad-hoc networks

slide-11
SLIDE 11

Ad-hoc+mesh-net 11

AODV – A needs to send packet to B

slide-12
SLIDE 12

Ad-hoc+mesh-net 12

AODV – A sends RouteRequest

slide-13
SLIDE 13

Ad-hoc+mesh-net 13

AODV – B replies with RouteReply

slide-14
SLIDE 14

Ad-hoc+mesh-net 14

To Think About

♦ Write the forwarding table of Node C

» Before receiving RREQ » After receiving RREQ e before receiving RREP » After Receiving RREP

♦ Represent an entry of the Forwarding Table as the tupple

<destination, gateway, interface> C

D E

slide-15
SLIDE 15

Ad-hoc+mesh-net 15

AODV - Characteristics

» Decision to request a route » Broadcast of Route-request » Intermediate nodes get routes to node A » Route-reply sent in unicast by same path » Intermediate nodes get also route to node B » Routes have Time-to-live, in every node » Needs symmetric graph

slide-16
SLIDE 16

Ad-hoc+mesh-net 16

Pro-active routing protocols

♦ Routes built using continuous control traffic ♦ Routes are maintained ♦ Advantages, disadvantages

» Constant control traffic » Routes always available

♦ Example – OLSR (RFC 3626)

» OLSR - Optimized Link-State Routing protocol

slide-17
SLIDE 17

Ad-hoc+mesh-net 17

OLSR – Main functions

♦ Detection of links to neighbour nodes ♦ Optimized forwarding / flooding (MultiPoint Relaying)

slide-18
SLIDE 18

Ad-hoc+mesh-net 18

OLSR – Detecting links to neighbour nodes

♦ Using HELLO messages ♦ All nodes transmit periodically HELLO messages ♦ HELLO messages group neighbour by their state

slide-19
SLIDE 19

Ad-hoc+mesh-net 19

OLSR – MultiPoint Relaying (MPR)

♦ MultiPoint Relaying (MPR)

» Special nodes in the network » Used to limit number of nodes generating route signalling traffic

♦ Each node selects its MPRs, which must

» Be at 1 hop distance » Have symmetric links

♦ The set of MPRs selected by a node must

» Be minimum » Enable communication with every 2-hop-away nodes

♦ Node is MPR if it has been selected by other node

slide-20
SLIDE 20

Ad-hoc+mesh-net 20

OLSR – Link State

♦ In OSPF, in wired networks,

» Every node floods the network with information about its links state

♦ OLSR does the same, using 2 optimizations

» Only the MPR nodes generate/forward link state messages  Small number of nodes generating routing messages » Only nodes associated to MPR are declared in link state message  Small message length

slide-21
SLIDE 21

Ad-hoc+mesh-net 21

OLSR – Link state, example

♦ Messages which declare the links state

» “Topology Control Messages”

slide-22
SLIDE 22

Ad-hoc+mesh-net 22

The IEEE 802.11 mesh networks

♦ How will the 802.11s Mesh Network work?

slide-23
SLIDE 23

Ad-hoc+mesh-net 23

Note

» This set of slides reflects the view of a 802.11s draft standard.

To read

» GUIDO R. HIERTZ et al, “IEEE 802.11S: THE WLAN MESH STANDARD”, IEEE Wireless Communications, February, 2010

slide-24
SLIDE 24

Ad-hoc+mesh-net 24

IEEE 802.11s - Main Characteristics

♦ Network topology and discovery ♦ Inter-working ♦ Path Selection and Forwarding ♦ MAC Enhancements

slide-25
SLIDE 25

Ad-hoc+mesh-net 25

Elements of a WLAN Mesh Network

  • MP - Mesh Point

– establishes links with neighbor MPs

  • MAP - Mesh AP

– MP + AP

  • MPP - Mesh Portal
  • STA – 802.11 station

– standard 802.11 STA

Bridge

  • r Router

Mesh Portal MP

MAP MAP

STA STA MP

slide-26
SLIDE 26

Ad-hoc+mesh-net 26

L2 Mesh Network - Emulates 802 LAN Segment

5 9 7 10 6 2 4 3

Support for connecting an 802.11s mesh to an 802.1D bridged LAN

  • Broadcast LAN (transparent forwarding)
  • Learning bridge
  • Support for bridge-to-bridge communications: Mesh Portal participates in STP

802 LAN

Broadcast LAN

  • Unicast delivery
  • Broadcast delivery
  • Multicast delivery

11

13 12

slide-27
SLIDE 27

Ad-hoc+mesh-net 27

To think about

♦ Suppose A sends a frame to B (MAC layer). What MAC

addresses are required for the frame transmitted between the two Ethernet switches?

♦ And what MAC addresses are required for the frame transmitted

between the two MAPs? Why are the 2 cases different?

ethernet switch ethernet switch

A B

MAP MAP

A B ))) ))) )))

I) II)

slide-28
SLIDE 28

Ad-hoc+mesh-net 28

Mesh Data Frames

♦ Data frames

» based on 802.11 frames - 4 MAC address format » extended with: 802.11e QoS header, and new Mesh Control header field

♦ Mesh Control field

» TTL – eliminates possibility of infinite loops (recall these are mesh networks!) » More addresses are required for particular situations

MAC Header

Frame Control Dur Addr 1 Addr 2 Addr 3 Seq Control Addr 4 QoS Control Mesh Control Body FCS

2 2 6 6 6 2 6 2 6-24 4

slide-29
SLIDE 29

Ad-hoc+mesh-net 29

Topology Formation

♦ Mesh Point discovers candidate neighbors

» based on beacons that contain mesh information

– WLAN Mesh capabilities – Mesh ID

♦ Membership in a WLAN Mesh Network

» determined by (secure) association with neighbors

slide-30
SLIDE 30

Ad-hoc+mesh-net 30

Mesh Association

5 7 1 2 6 4 3 MeshID: mesh-A Mesh Profile: (link state, …) X

Capabilities:

Path Selection: distance vector, link state

  • 1. MP X discovers Mesh mesh-A with

profile (link state, …)

  • 2. MP X associates /

authenticates with neighbors in the mesh, since it can support the Profile

  • 3. MP X begins participating in

link state path selection and data forwarding protocol

One active protocol in one mesh but alternative protocols in different meshes

8

slide-31
SLIDE 31

Ad-hoc+mesh-net 31

Interworking - Packet Forwarding

11

5 9 7 10 6 2 4 3 13 12

Destination inside or outside the Mesh? Portal forwards the message Use path to the destination

slide-32
SLIDE 32

Ad-hoc+mesh-net 32

Hybrid Wireless Mesh Protocol (HWMP)

Combines

» on-demand route discovery

– based on AODV

» proactive routing to a mesh portal

– distance vector routing tree built and maintained rooted at the Portal

slide-33
SLIDE 33

Ad-hoc+mesh-net 33

HWMP Example 1: No Root, Destination Inside the Mesh

  • Communication: MP4  MP9
  • MP4

– checks its forwarding table for an entry to MP9 – If no entry exists, MP4 sends a broadcast RREQ to discover the best path to MP9

  • MP9 replies with unicast RREP
  • Data communication begins

5 9 7 10 6 4 3 2 1 8

X On-demand path

slide-34
SLIDE 34

Ad-hoc+mesh-net 34

HWMP Example 3: No Root, Destination Outside the Mesh

♦ Communication: MP4  X ♦ MP4

» first checks its forwarding table for an entry to X » If no entry exists, MP4 sends a broadcast RREQ to discover the best path to X » When no RREP received, MP4 assumes X is

  • utside the mesh and sends messages destined to

X to Mesh Portals

♦ Mesh Portal that knows X may respond

with a unicast RREP

5 9 7 10 6 4 3 2 1 8

X On-demand path

slide-35
SLIDE 35

Ad-hoc+mesh-net 35

To Think About

♦ How many addresses are required in this frame?

5 9 7 10 6 4 3 2 1 8

X

slide-36
SLIDE 36

Ad-hoc+mesh-net 36

HWMP Example 2: Root, Destination Inside the Mesh

♦ Communication: MP 4  MP 9 ♦ MPs learn Root MP1 through Root Announcement

messages

♦ MP 4 checks its forwarding table for an entry to

MP9

♦ If no entry exists, MP4 forwards message on the

proactive path to Root MP1

♦ When MP1 receives the message, it forwards on the

proactive path to MP9

♦ MP9, receiving the message, may issue a RREQ

back to MP 4 to establish a path that is more efficient than the path via Root MP1

5 9 7 10 6 4 3 2 1 8

X Proactive path

Root

On-demand path

slide-37
SLIDE 37

Ad-hoc+mesh-net 37

HWMP Example 4: Root, Destination Outside the Mesh

♦ Communication: MP4  X ♦ MPs learn Root MP1 through Root Announcement

messages

♦ If MP4 has no entry for X in its forwarding table,

MP 4 may forward the message on the proactive path toward the Root MP1

♦ When MP1 receives the message, if it does not have

an active forwarding entry to X it may assume the destination is outside the mesh

♦ Mesh Portal MP1 forwards messages to other LAN

segments

5 9 7 10 6 4 3 2 1 8

X Proactive path

Root

slide-38
SLIDE 38

Ad-hoc+mesh-net 38

Radio Aware OLSR (RA-OLSR)

♦ OLSR may be used in alternative to AODV ♦ RA-OLSR proactively maintains link-state for routing

slide-39
SLIDE 39

Ad-hoc+mesh-net 39

Routing metrics in Wireless Networks - ETX (Expected Transmission Count)

♦ Successful transmission probabilities for forward / reverse link

» Sf: probability data packet successfully arrives to recipient » Sr: probability ACK packet is successfully received

♦ ETX=1/(Sf*Sr) ♦ E.g.: Sf=0.6, Sr=0.5, ETX=3,3 ♦ Routing protocol

» finds path that minimizes sum of ETXs

39

slide-40
SLIDE 40

Ad-hoc+mesh-net 40

Routing metrics in Wireless Networks - ETT (Expected Transmission Time)

♦ Improves ETX by considering also link bandwidth ♦ Packet size = S, Link bandwidth = B ♦ ETT=ETX*S/B

(sec)

40

slide-41
SLIDE 41

Ad-hoc+mesh-net 41

Routing Metric in IEEE 802.11s – Airtime Link Cost

802.11s default routing metric: Airtime link Cost

» Amount of time required to transmit a frame » r = transmission bitrate » ept = frame error ratio

41

slide-42
SLIDE 42

Ad-hoc+mesh-net 42

Problem in Mesh Networks – Nominal Capacity at MAC Layer

Assume all nodes send same traffic G towards GW

» Capacity of WMN is smaller than capacity of wireless LAN

– due to multi-hop forwarding

» Capacity can be bounded by the bottleneck collision domain

42

slide-43
SLIDE 43

Ad-hoc+mesh-net 43

Multi-channel, Multi-radio

♦ WMN depends on MAC protocols ♦ Distributed MAC protocols

» Single channel, single radio

– One radio interface per node, one static channel

» Muti-channel, single radio

– One radio interface per node – Fast channel switching

» Multi-radio

– Multiple radio interfaces in use – Usually working in different channels

43

slide-44
SLIDE 44

Ad-hoc+mesh-net 44

Multi-channel multi-radio WMN

» Complex network planning

Channel assignment, Routing

» Research on topology control required!

44

slide-45
SLIDE 45

Ad-hoc+mesh-net 45

Multi-gateway WMNs

♦ Multiple gateways to the Internet ♦ Important to

» Keep routes to the Internet short (few hops) » Increase access capacity

♦ Problems

» Gateway detection » Routing » Multi-homing (?)

slide-46
SLIDE 46

Ad-hoc+mesh-net 46

MAC Enhancements for Mesh

♦ Intra-mesh Congestion Control ♦ Common Channel Framework (Optional)

slide-47
SLIDE 47

Ad-hoc+mesh-net 47

Need for Congestion Control

♦ Mesh characteristics

» Heterogeneous link capacities along the path of a flow » Traffic aggregation: Multi-hop flows sharing intermediate links

♦ Issues with the 802.11 MAC for mesh

» Nodes blindly transmit as many packets as possible, regardless of how many reach the destination » Results in throughput degradation and performance inefficiency

2 1 7 6 3 High capacity link Low capacity link Flow 4 5

slide-48
SLIDE 48

Ad-hoc+mesh-net 48

Intra-Mesh Congestion Control Mechanisms

♦ Local congestion monitoring (informative)

» Each node actively monitors local channel utilization » If congestion detected,

notifies previous-hop neighbors and/or the neighborhood

♦ Congestion control signaling

» Congestion Control Request (unicast) » Congestion Control Response (unicast) » Neighborhood Congestion Announcement (broadcast)

slide-49
SLIDE 49

Ad-hoc+mesh-net 49

Common Channel

♦ Common channel

» Unified Channel on which MPs jointly operate

» Using RTX, the transmitter suggests a destination channel » Receiver accepts/declines the suggested channel using CTX » The transmitter and receiver switch to the destination channel » Data is transmitted » Then they switch back

RTX MP1 MP2 MP3 MP4 Common Channel Data Channel n Data Channel m CTX SIFS CTX SIFS RTX ≥ DIFS DIFS DATA Switching Delay ACK SIFS CTX SIFS RTX ≥ DIFS Switching Delay DATA Switching Delay DIFS ACK SIFS

slide-50
SLIDE 50

Ad-hoc+mesh-net 50

Control Frames

♦ Request to Switch (RTX) Frame ♦ Clear to Switch (CTX) Frame

Frame Control Duration/ ID RA TA Destination Channel Info. FCS 2 2 6 6 2 4 Frame Control Duration/ ID RA Destination Channel Info. FCS 2 2 6 2 4