Presentation is loading. Please wait.

Presentation is loading. Please wait.

Wireless & Mobile Networking CS 752/852 - Spring 2011 Tamer Nadeem Dept. of Computer Science Ad Hoc Routing Layer - I.

Similar presentations


Presentation on theme: "Wireless & Mobile Networking CS 752/852 - Spring 2011 Tamer Nadeem Dept. of Computer Science Ad Hoc Routing Layer - I."— Presentation transcript:

1 Wireless & Mobile Networking CS 752/852 - Spring 2011 Tamer Nadeem Dept. of Computer Science Ad Hoc Routing Layer - I

2 Page 2 Spring 2011 CS 752/852 - Wireless and Mobile Networking The OSI Communication Model

3 Page 3 Spring 2011 CS 752/852 - Wireless and Mobile Networking The OSI Communication Model

4 Page 4 Spring 2011 CS 752/852 - Wireless and Mobile Networking MANET – Mobile Ad Hoc Networks Collection of mobile nodes connected by wireless links, forming an autonomous network Nodes run on batteries – power consumption is an issue Thus routing is multi-hop each node also acts as a router Scalability is an issue B A S E F H J D C G I K M

5 Page 5 Spring 2011 CS 752/852 - Wireless and Mobile Networking MANET No infrastructure, lack of centralized control Frequent topology changes due to node mobility All communications over wireless medium Cellular Communications Fixed, pre-located base stations Static backbone network topology Reliable backbone links; only last link is wireless MANET vs Cellular

6 Page 6 Spring 2011 CS 752/852 - Wireless and Mobile Networking Applications Civilian environments meeting rooms smart homes multimedia classrooms Emergency operations disaster relief search and rescue law enforcement Military applications

7 Page 7 Spring 2011 CS 752/852 - Wireless and Mobile Networking 7 Challenges Limited wireless transmission range Broadcast nature of the wireless medium Packet losses due to transmission errors Mobility-induced route changes Mobility-induced packet losses Battery constraints Potentially frequent network partitions Ease of snooping on wireless transmissions (security hazard)

8 Page 8 Spring 2011 CS 752/852 - Wireless and Mobile Networking Network connectivity defined by node proximity and wireless medium characteristics 1 2 3 4 1 2 3 4 Topology Challenges 1 2 3 4 1 2 3 4 Due to mobility the network topology undergoes rapid changes

9 Page 9 Spring 2011 CS 752/852 - Wireless and Mobile Networking MAC Challenges Hidden terminal problem Unreliable physical layer multi-path fading high Bit Error Rate (BER) other impairments Mobility

10 Page 10 Spring 2011 CS 752/852 - Wireless and Mobile Networking Routing Schemes Broadcast Multicast Unicast Anycast Geocast

11 Page 11 Spring 2011 CS 752/852 - Wireless and Mobile Networking Unicast Routing in Mobile Ad Hoc Networks

12 Page 12 Spring 2011 CS 752/852 - Wireless and Mobile Networking Routing in MANET Why is routing in MANET challenging? Without (necessarily) using a pre-existing infrastructure Main culprit: mobility network topology is changing rapidly (link failure/repair) Rate of link failure/repair may be high when nodes move fast Main challenge: maintain and distribute up-to-date routing information without saturating the network

13 Page 13 Spring 2011 CS 752/852 - Wireless and Mobile Networking Routing in MANET Numerous protocols have been proposed Flavors: adapted from protocols previously proposed for wired networks invented specifically for MANET Major approaches Proactive: routing information is maintained proactively regardless of communication requests e.g. traditional link-state and distance-vector routing protocols are proactive Reactive: a route to a destination is found and maintained only when the route is needed

14 Page 14 Spring 2011 CS 752/852 - Wireless and Mobile Networking Proactive vs Reactive Latency of route discovery proactive protocols may have lower latency since routes are maintained at all times reactive protocols may have higher latency because a route from X to Y will be found only when X attempts to send to Y Overhead of route discovery/maintenance reactive protocols may have lower overhead since routes are determined only if needed proactive protocols can (but not necessarily) result in higher overhead due to continuous route updating Which approach is better depends on traffic and mobility patterns

15 Page 15 Spring 2011 CS 752/852 - Wireless and Mobile Networking Sample Routing Protocols Pure flooding DSR AODV LAR

16 Page 16 Spring 2011 CS 752/852 - Wireless and Mobile Networking Flooding (1/5) Sender S broadcasts data packet P to all its neighbors Each node receiving P forwards P to its neighbors Sequence numbers are used to avoid forwarding the same packet more than once The destination D does not forward the packet

17 Page 17 Spring 2011 CS 752/852 - Wireless and Mobile Networking B A S E F H J D C G I K Represents transmission of packet P Represents a node that receives packet P for the first time Z Y Broadcast transmission M N L Flooding (2/5)

18 Page 18 Spring 2011 CS 752/852 - Wireless and Mobile Networking B A S E F H J D C G I K Node H receives packet P from two neighbors: potential for collision Z Y M N L Flooding (3/5)

19 Page 19 Spring 2011 CS 752/852 - Wireless and Mobile Networking B A S E F H J D C G I K Node C receives packet P from G and H, but does not forward it again, because node C has already forwarded packet P Z Y M N L Flooding (4/5)

20 Page 20 Spring 2011 CS 752/852 - Wireless and Mobile Networking B A S E F H J D C G I K Flooding completed Nodes unreachable from S do not receive packet P (e.g., node Z) Nodes for which all paths from S go through the destination D also do not receive packet P (example: node N) Z Y M N L Flooding (5/5)

21 Page 21 Spring 2011 CS 752/852 - Wireless and Mobile Networking Advantage: simplicity Potentially, very high overhead data packets may be delivered to too many nodes who do not need to receive them Potentially lower reliability of data delivery flooding uses MAC broadcasting -- hard to implement reliable broadcast delivery without significantly increasing overhead Broadcasting in IEEE 802.11 MAC is unreliable Need end-to-end reliability Flooding: Summary

22 Page 22 Spring 2011 CS 752/852 - Wireless and Mobile Networking Flooding Control Packets Many protocols perform limited flooding of control packets, instead of data packets Control packets are used to discover routes or to send link- state updates Discovered routes are subsequently used to send data packet(s) Overhead of control packet flooding is amortized over data packets transmitted between consecutive control packet floods

23 Page 23 Spring 2011 CS 752/852 - Wireless and Mobile Networking Dynamic Source Routing (DSR) [Johnson96] When source S wants to send a packet to node D, but does not know a route to D, it initiates a route discovery Source node S floods a Route Request (RREQ) Each node appends own identifier when forwarding the RREQ

24 Page 24 Spring 2011 CS 752/852 - Wireless and Mobile Networking DSR: Route Discovery (1/3) B A S E F H J D C G I K Represents transmission of RREQ Z Y Broadcast transmission M N L [S] [X,Y] Represents list of identifiers appended to RREQ

25 Page 25 Spring 2011 CS 752/852 - Wireless and Mobile Networking B A S E F H J D C G I K Z Y M N L [S,E] [S,C] DSR: Route Discovery (2/3)

26 Page 26 Spring 2011 CS 752/852 - Wireless and Mobile Networking B A S E F H J D C G I K Z Y M Nodes J and K both broadcast RREQ to node D Since nodes J and K are hidden from each other, their transmissions may collide N L [S,C,G,K] [S,E,F,J] DSR: Route Discovery (3/3)

27 Page 27 Spring 2011 CS 752/852 - Wireless and Mobile Networking Destination D upon receiving the first RREQ, sends back to S a Route Reply (RREP) RREP is sent on the route obtained by reversing the route appended to the received RREQ RREP includes the route from S to D on which RREQ was received by node D DSR: Route Reply (1/2)

28 Page 28 Spring 2011 CS 752/852 - Wireless and Mobile Networking B A S E F H J D C G I K Z Y M N L RREP [S,E,F,J,D] Represents RREP control message DSR: Route Reply (2/2)

29 Page 29 Spring 2011 CS 752/852 - Wireless and Mobile Networking S upon receiving RREP, caches the route included in the RREP When S sends a data packet to D, the entire route is included in the packet header hence the name source routing Intermediate nodes use the source route included in a packet to determine to whom the packet should be forwarded DSR: Data Delivery (1/2)

30 Page 30 Spring 2011 CS 752/852 - Wireless and Mobile Networking B A S E F H J D C G I K Z Y M N L DATA [S,E,F,J,D] Packet header size grows with route length DSR: Data Delivery (2/2)

31 Page 31 Spring 2011 CS 752/852 - Wireless and Mobile Networking DSR Optimization: Route Caching Each node caches a new route it learns by some means When S finds route [S,E,F,J,D] to node D, S also learns route [S,E,F] to node F When node K receives the Route Request [S,C,G], K learns route [K,G,C,S] to S When node F forwards Route Reply RREP [S,E,F,J,D], F learns route [F,J,D] to D When node E forwards Data [S,E,F,J,D], it learns route [E,F,J,D] to node D A node may also learn a route when it overhears data packets

32 Page 32 Spring 2011 CS 752/852 - Wireless and Mobile Networking Advantages: can speed up route discovery can reduce propagation of route requests (RREQ) DSR: Route Caching (1/3)

33 Page 33 Spring 2011 CS 752/852 - Wireless and Mobile Networking B A S E F H J D C G I K Z Y M N L [S,E,F,J,D] [E,F,J,D] [C,S] [G,C,S] [F,J,D],[F,E,S] [J,F,E,S] RREQ Route Reply (RREP) from node K limits flooding of RREQ In general, the reduction may be less dramatic [K,G,C,S] RREP DSR: Route Caching (2/3)

34 Page 34 Spring 2011 CS 752/852 - Wireless and Mobile Networking Stale caches can adversely affect performance With passage of time and host mobility, cached routes may become invalid In some cases, a sender may try several stale routes (obtained from its local cache, or from cache of some other node), before finding a good route DSR: Route Caching (3/3)

35 Page 35 Spring 2011 CS 752/852 - Wireless and Mobile Networking DSR: Route Maintenance - Route Error (RERR) B A S E F H J D C G I K Z Y M N L RERR [J-D] When J’s attempt to forward a data packet (with route S-E-F-J-D) on link (J-D) fails, J sends a route error (RERR) to S along route J-F-E-S Nodes hearing RERR update their route cache to remove link (J-D) When node S receives the RERR, it initiates a new RREQ

36 Page 36 Spring 2011 CS 752/852 - Wireless and Mobile Networking Summary of DSR Routes maintained only between nodes who need to communicate Route caching can further reduce route discovery overhead A single route discovery may yield many routes to the destination, due to intermediate nodes replying from local caches Complicated Cache Management mechanisms Packet header size grows with route length due to source routing

37 Page 37 Spring 2011 CS 752/852 - Wireless and Mobile Networking Ad-hoc On-Demand Distance Vector Routing (AODV) Route Requests (RREQ) are forwarded in a manner similar to DSR When a node re-broadcasts a Route Request, it sets up a reverse path pointing towards the source When the intended destination receives a Route Request, it replies by sending a Route Reply Route Reply travels along the reverse path set-up when Route Request is forwarded

38 Page 38 Spring 2011 CS 752/852 - Wireless and Mobile Networking AODV: Route Request (1/5) B A S E F H J D C G I K Represents transmission of RREQ Z Y Broadcast transmission M N L

39 Page 39 Spring 2011 CS 752/852 - Wireless and Mobile Networking B A S E F H J D C G I K Represents links on Reverse Path Z Y M N L AODV: Route Request (2/5)

40 Page 40 Spring 2011 CS 752/852 - Wireless and Mobile Networking B A S E F H J D C G I K F sets up a reverse path entry in its routing table: Z Y M N L DestinationNext Hop SE reverse path entry Represents links on Reverse Path AODV: Route Request (3/5)

41 Page 41 Spring 2011 CS 752/852 - Wireless and Mobile Networking B A S E F H J D C G I K Z Y M N L AODV: Route Request (4/5)

42 Page 42 Spring 2011 CS 752/852 - Wireless and Mobile Networking B A S E F H J D C G I K Z Y D does not forward RREQ, because it is the intended target of the RREQ M N L AODV: Route Request (5/5)

43 Page 43 Spring 2011 CS 752/852 - Wireless and Mobile Networking B A S E F H J D C G I K Z Y Represents links on path taken by RREP M N L AODV: Route Reply (1/2)

44 Page 44 Spring 2011 CS 752/852 - Wireless and Mobile Networking An intermediate node may also send a Route Reply (RREP) provided that it knows a more recent path than the one previously known to sender S To determine whether the path known to an intermediate node is more recent, destination sequence numbers are used Forward links are set up when RREP travels along the reverse path AODV: Route Reply (1/2)

45 Page 45 Spring 2011 CS 752/852 - Wireless and Mobile Networking AODV: Forward Path Setup B A S E F H J D C G I K Z Y M N L F adds a forward path entry in its routing table: DestinationNext Hop SE DJ forward path entry

46 Page 46 Spring 2011 CS 752/852 - Wireless and Mobile Networking B A S E F H J D C G I K Z Y M N L Routing table entries used to forward data packet Route is not included in packet header DATA Represents a link on the forward path AODV: Data Delivery

47 Page 47 Spring 2011 CS 752/852 - Wireless and Mobile Networking AODV: Route Maintenance - Route Error (RERR) 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

48 Page 48 Spring 2011 CS 752/852 - Wireless and Mobile Networking Information “Freshness” Assured Each originating node maintains a monotonically increasing sequence number. Used by other nodes to determine the freshness of the information. Every nodes routing table contains the latest information available about the sequence number for the IP address of the destination node for which the routing information is maintained. Updated whenever a node receives new information about the sequence number from RREQ, RREP, or RERR messages received related to that destination.

49 Page 49 Spring 2011 CS 752/852 - Wireless and Mobile Networking Information “Freshness” Assured AODV depends on each node in the network to own and maintain its destination sequence number. A destination node increments its own sequence number immediately before it originates a route discovery A destination node increments its own sequence number immediately before it originates a RREP in response to a RREQ The node treats its sequence number as an unsigned number when incrementing accomplishing sequence number rollover. Destination information is assured by comparing the sequence number of the incoming AODV message with its sequence number for that destination.

50 Page 50 Spring 2011 CS 752/852 - Wireless and Mobile Networking ADOV: Summary Nodes maintain routing tables containing entries only for routes that are in active use Routes are not included in packet headers At most one next-hop per destination is maintained at each node DSR may maintain several routes for a single destination

51 Page 51 Spring 2011 CS 752/852 - Wireless and Mobile Networking Flooding of Control Packets How to reduce the scope of the route request flood ? LAR [Ko98Mobicom] Query localization [Castaneda99Mobicom] How to reduce redundant broadcasts ? The Broadcast Storm Problem [Ni99Mobicom]

52 Page 52 Spring 2011 CS 752/852 - Wireless and Mobile Networking Location-Aided Routing (LAR) [Ko98Mobicom] Exploits location information to limit scope of route request flood Location information may be obtained using GPS Expected Zone is determined as a region that is expected to hold the current location of the destination Expected region determined based on potentially old location information, and knowledge of the destination’s speed Route requests limited to a Request Zone that contains the Expected Zone and location of the sender node

53 Page 53 Spring 2011 CS 752/852 - Wireless and Mobile Networking Expected Zone in LAR X Y r X = last known location of node D, at time t0 Y = location of node D at current time t1, unknown to node S r = (t1 - t0) * estimate of D’s speed Expected Zone

54 Page 54 Spring 2011 CS 752/852 - Wireless and Mobile Networking Request Zone in LAR X Y r S Request Zone Network Space B A

55 Page 55 Spring 2011 CS 752/852 - Wireless and Mobile Networking LAR Only nodes within the request zone forward route requests Node A does not forward RREQ, but node B does (see previous slide) Request zone explicitly specified in the route request Each node must know its physical location to determine whether it is within the request zone If route discovery using the smaller request zone fails to find a route, the sender initiates another route discovery (after a timeout) using a larger request zone the larger request zone may be the entire network

56 Page 56 Spring 2011 CS 752/852 - Wireless and Mobile Networking LAR Variations: Adaptive Request Zone Each node may modify the request zone included in the forwarded request Modified request zone may be determined using more recent/accurate information, and may be smaller than the original request zone S B Request zone adapted by B Request zone defined by sender S

57 Page 57 Spring 2011 CS 752/852 - Wireless and Mobile Networking 57 Location Aided Routing (LAR) Advantages reduces the scope of route request flood reduces overhead of route discovery Disadvantages Nodes need to know their physical locations Does not take into account possible existence of obstructions for radio transmissions

58 Page 58 Spring 2011 CS 752/852 - Wireless and Mobile Networking Other Routing Protocols Plenty of other routing protocols Geographic Distance Routing (GEDIR) Energy-aware routing QoS routing Routing with Guaranteed Delivery

59 Page 59 Spring 2011 CS 752/852 - Wireless and Mobile Networking MANET Routing: Issues How to compare these protocols fairly? Message overhead Routing delays Throughput Energy Consumption Comparisons are based mainly on empirical results Lack of analytical results Interaction with MAC protocols Scalability: >200 nodes is already a problem A possible solution for scalability: hierarchical organization of ad hoc networks

60 Page 60 Spring 2011 CS 752/852 - Wireless and Mobile Networking Fully Symmetric Environment all nodes have identical capabilities and responsibilities Asymmetric Capabilities transmission ranges and radios may differ battery life at different nodes may differ processing capacity may be different at different nodes speed of movement Asymmetric Responsibilities only some nodes may route packets some nodes may act as leaders of nearby nodes (e.g., cluster head) MANET Routing: Many Variations

61 Page 61 Spring 2011 CS 752/852 - Wireless and Mobile Networking Traffic characteristics may differ in different ad hoc networks bit rate timeliness constraints reliability requirements unicast / multicast / geocast host-based addressing / content-based addressing / capability-based addressing May co-exist (and co-operate) with an infrastructure-based network MANET Routing: Many Variations

62 Page 62 Spring 2011 CS 752/852 - Wireless and Mobile Networking Mobility patterns may be different people sitting at an airport lounge New York taxi cabs kids playing military movements personal area network Mobility characteristics speed predictability direction of movement pattern of movement uniformity (or lack thereof) of mobility characteristics among different nodes MANET Routing: Many Variations

63 Page 63 Spring 2011 CS 752/852 - Wireless and Mobile Networking Research on Mobile Ad Hoc Networks Variations in capabilities & responsibilities X Variations in traffic characteristics, mobility models, etc. X Performance criteria (e.g., optimize throughput, reduce energy consumption) = Significant research activity

64 Page 64 Spring 2011 CS 752/852 - Wireless and Mobile Networking Questions

65 Page 65 Spring 2011 CS 752/852 - Wireless and Mobile Networking More on IEEE 802.11 DCF Collision Avoidance Mechanism CSMA + RTS/CTS (physical/virtual carrier sensing) Collision Resolution Mechanism Binary Exponential Backoff (BEB) Does IEEE802.11 DCF work well in multi-hop networks? Answer: No! (has known fairness problems)

66 Page 66 Spring 2011 CS 752/852 - Wireless and Mobile Networking What is Fairness? What does fairness mean in a multi-hop environment? Max-min fairness an allocation is max-min fair if there is no way to give more bandwidth to a flow without decreasing the allocation of a flow of lesser or equal bandwidth Practical approach ensure that each flow gets a minimum share of the bandwidth allow those flows that are not interfering with the current transmitting flows to send simultaneously

67 Page 67 Spring 2011 CS 752/852 - Wireless and Mobile Networking Throughput of each flow: f0: 1298 f1: 684 f2: 47 f3: 1173 f4: 1913 f0 f1f2f3 f4 A BCDEF Unfairness in IEEE 802.11 DCF

68 Page 68 Spring 2011 CS 752/852 - Wireless and Mobile Networking f0f1f2f3 f4 A B C DEF f0f2f4 f1f3 The Flow Contention Graph Nodes represent flows Two flows connected by an edge means they conflict with each other

69 Page 69 Spring 2011 CS 752/852 - Wireless and Mobile Networking f0f2f4 f1f3 Flow Contention Graph Scheduling: Slot 1: f0 + f3/f4 Slot 2: f1 + f4 Slot 3: f2 Slot 4: f3 + f0 Slot 5: f4 +f0/f1 …… Slot 6: f0 + f3/f4 Slot 7: f1 + f4 Slot 8: f2 Slot 9: f3 + f0 Slot 10: f4 +f0/f1 …… Each flow is guaranteed to be scheduled once in every 5 slots! An example of scheduling

70 Page 70 Spring 2011 CS 752/852 - Wireless and Mobile Networking f0f2f4 f1f3 Improved schedule: Slot 1: f0 + f3 Slot 2: f1 + f4 Slot 3: f2 Slot 4: f0+f3 Slot 5: f1+f4 Slot 6: f2 …… Each flow is guaranteed to be scheduled once in every 3 slots! Flow Contention Graph One can do better…

71 Page 71 Spring 2011 CS 752/852 - Wireless and Mobile Networking Challenges Which scheduling is better? Trade-off between fairness and overall throughput How to implement a fair scheduler in a fully distributed way?


Download ppt "Wireless & Mobile Networking CS 752/852 - Spring 2011 Tamer Nadeem Dept. of Computer Science Ad Hoc Routing Layer - I."

Similar presentations


Ads by Google