1 / 82

Mobile and Ad hoc Networks

Understand routing basics, protocols, differences between source and destination routing, and MANET specifics. Explore key protocols like DSR and AODV with detailed activities involved.

fhatcher
Download Presentation

Mobile and Ad hoc Networks

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Mobile and Ad hoc Networks Background of Ad hoc Wireless Networks Wireless Communication Technology and Research Ad hoc Routing and Mobile IP and Mobility Wireless Sensor and Mesh Networks Student Presentations Adhoc Network Routing http://web.uettaxila.edu.pk/CMS/SP2012/teAWNms/

  2. Routing Overview • Network with nodes, edges • Goal: Devise scheme for transferring message from one node to another • Which path? • Who decides – source or intermediate nodes?

  3. Which path? • Routing generally tries to optimize something: • Shortest path (fewest hops) • Shortest time (lowest latency) • Shortest weighted path (utilize available bandwidth) • Etc…

  4. Who determines route? Two general approaches: • Source (“path”) routing • Source specifies entire route: places complete path to destination in message header: A – D – F – G • Intermediate nodes just forward to specified next hop: D would look at path in header, forward to F • Like airline travel – get complete set of tickets to final destination before departing…

  5. Destination (“hop-by-hop”) routing • Source specifies only destination in message header: G • Intermediate nodes look at destination in header, consult internal tables to determine appropriate next hop • Like postal service – specify only the final destination on an envelope, and intermediate post offices select where to forward next…

  6. Source routing Moderate source storage (entire route for each desired dest.) No intermediate node storage Higher routing overhead (entire path in message header, route discovery messages) Destination routing No source storage High intermediate node storage (table with routing instructions for all possible dests.) Lower routing overhead (just dest in header, only routers need to deal with route discovery) Comparison

  7. Ad Hoc Routing • Every node participates in routing: no distinction between “routers” and “end nodes” • No external network setup: “self-configuring” • Especially useful when network topology is dynamic (frequent network changes – links break, nodes come and go)

  8. Common Application • Mobile wireless hosts • Only subset within range at given time • Want to communicate with any other node

  9. Ad Hoc Routing Protocols • Standardization effort led by IETF Mobile Ad-hoc Networks (MANET) task group • http://www.ietf.org/html.charters/manet-charter.html • 9 routing protocols in draft stage, 4 drafts dealing with broadcast / multicast / flow issues • Other protocols being researched • utilize geographic / GPS info, Ant-based techniques, etc.

  10. Why is Routing in MANET different ? • Host mobility • link failure/repair due to mobility may have different characteristics than those due to other causes • Rate of link failure/repair may be high when nodes move fast • New performance criteria may be used • route stability despite mobility • energy consumption

  11. Unicast Routing Protocols • Many protocols have been proposed • Some have been invented specifically for MANET • Others are adapted from previously proposed protocols for wired networks • No single protocol works well in all environments • some attempts made to develop adaptive protocols

  12. Routing Protocols • Proactive protocols • Determine routes independent of traffic pattern • Traditional link-state and distance-vector routing protocols are proactive • Reactive protocols • Maintain routes only if needed • Hybrid protocols

  13. Leading MANET Contenders • DSR: Dynamic Source Routing • Source routing protocol • AODV: Ad-hoc On-demand Distance Vector Routing • “Hop-by-hop” protocol • Both are “on demand” protocols: route information discovered only as needed

  14. Dynamic Source Routing • Draft RFC at http://www.ietf.org/internet-drafts/draft-ietf-manet-dsr-07.txt • Source routing: entire path to destination supplied by source in packet header • Utilizes extension header following standard IP header to carry protocol information (route to destination, etc.)

  15. DSR Protocol Activities • Route discovery • Undertaken when source needs a route to a destination • Route maintenance • Used when link breaks, rendering specified path unusable • Routing (easy!)

  16. Route Discovery • Route Request: • Source broadcasts Route Request message for specified destination • Intermediate node: • Adds itself to path in message • Forwards (broadcasts) message toward destination • Route Reply • Destination unicasts Route Reply message to source • will contain complete path built by intermediate nodes

  17. Details, details… • Intermediate nodes cache overheard routes • “Eavesdrop” on routes contained in headers • Reduces need for route discovery • Intermediate node may return Route Reply to source if it already has a path stored

  18. Route Maintenance • Used when link breakage occurs • Link breakage may be detected using link-layer ACKs, DSR ACK request • Route Error message sent to source of message being forwarded when break detected • Intermediate nodes “eavesdrop”, adjust cached routes • Source deletes route; tries another if one cached, or issues new Route Request • Piggybacks Route Error on new Route Request to clear intermediate nodes’ route caches, prevent return of invalid route

  19. Dynamic Source Routing (DSR) [Johnson96] • 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) • Each node appends own identifier when forwarding RREQ

  20. Route Discovery in DSR Y Z S E F B C M L J A G H D K I N Represents a node that has received RREQ for D from S

  21. Route Discovery in DSR Y Broadcast transmission Z [S] S E F B C M L J A G H D K I N Represents transmission of RREQ [X,Y] Represents list of identifiers appended to RREQ

  22. Route Discovery in DSR Y Z S [S,E] E F B C M L J A G [S,C] H D K I N • Node H receives packet RREQ from two neighbors: • potential for collision

  23. Route Discovery in DSR Y Z S E F [S,E,F] B C M L J A G H D K [S,C,G] I N • Node C receives RREQ from G and H, but does not forward • it again, because node C has already forwarded RREQ once

  24. Route Discovery in DSR Y Z S E F [S,E,F,J] B C M L J A G H D K I N [S,C,G,K] • Nodes J and K both broadcast RREQ to node D • Since nodes J and K are hidden from each other, their • transmissions may collide

  25. Route Discovery in DSR Y Z S E [S,E,F,J,M] F B C M L J A G H D K I N • Node D does not forward RREQ, because node D • is the intended target of the route discovery

  26. Route Discovery in DSR • Destination D on receiving the first RREQ, sends a Route Reply (RREP) • RREP is sent on a route obtained by reversing the route appended to received RREQ • RREP includes the route from S to D on which RREQ was received by node D

  27. Route Reply in DSR Y Z S RREP [S,E,F,J,D] E F B C M L J A G H D K I N Represents RREP control message

  28. Route Reply in DSR • Route Reply can be sent by reversing the route in Route Request (RREQ) only if links are guaranteed to be bi-directional • To ensure this, RREQ should be forwarded only if it received on a link that is known to be bi-directional • If unidirectional (asymmetric) links are allowed, then RREP may need a route discovery for S from node D • Unless node D already knows a route to node S • If a route discovery is initiated by D for a route to S, then the Route Reply is piggybacked on the Route Request from D. • If IEEE 802.11 MAC is used to send data, then links have to be bi-directional (since Ack is used)

  29. Dynamic Source Routing (DSR) • Node S on receiving RREP, caches the route included in the RREP • When node 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 a packet should be forwarded

  30. Data Delivery in DSR Y Z DATA [S,E,F,J,D] S E F B C M L J A G H D K I N Packet header size grows with route length

  31. When to Perform a Route Discovery • When node S wants to send data to node D, but does not know a valid route node D

  32. DSR Optimization: Route Caching • Each node caches a new route it learns by any means • When node S finds route [S,E,F,J,D] to node D, node S also learns route [S,E,F] to node F • When node K receives Route Request [S,C,G] destined for node, node K learns route [K,G,C,S] to node S • When node F forwards Route Reply RREP[S,E,F,J,D], node F learns route [F,J,D] to node 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

  33. Use of Route Caching • When node S learns that a route to node D is broken, it uses another route from its local cache, if such a route to D exists in its cache. Otherwise, node S initiates route discovery by sending a route request • Node X on receiving a Route Request for some node D can send a Route Reply if node X knows a route to node D • Use of route cache • can speed up route discovery • can reduce propagation of route requests

  34. Use of Route Caching [S,E,F,J,D] [E,F,J,D] S E [F,J,D],[F,E,S] F B [J,F,E,S] C M L J A G [C,S] H D K [G,C,S] I N Z [P,Q,R] Represents cached route at a node (DSR maintains the cached routes in a tree format)

  35. Use of Route Caching:Can Speed up Route Discovery [S,E,F,J,D] [E,F,J,D] S E [F,J,D],[F,E,S] F B [J,F,E,S] C M L [G,C,S] J A G [C,S] H D K [K,G,C,S] I N RREP RREQ Z When node Z sends a route request for node C, node K sends back a route reply [Z,K,G,C] to node Z using a locally cached route

  36. Use of Route Caching:Can Reduce Propagation of Route Requests Y [S,E,F,J,D] [E,F,J,D] S E [F,J,D],[F,E,S] F B [J,F,E,S] C M L [G,C,S] J A G [C,S] H D K [K,G,C,S] I N RREP RREQ Z Assume that there is no link between D and Z. Route Reply (RREP) from node K limits flooding of RREQ. In general, the reduction may be less dramatic.

  37. Route Error (RERR) Y Z RERR [J-D] S E F B C M L J A G H D K I N J sends a route error to S along route J-F-E-S when its attempt to forward the data packet S (with route SEFJD) on J-D fails Nodes hearing RERR update their route cache to remove link J-D

  38. Route Caching: Beware! • Stale caches can adversely affect performance • With passage of time and host mobility, cached routes may become invalid • A sender host may try several stale routes (obtained from local cache, or replied from cache by other nodes), before finding a good route • An illustration of the adverse impact on TCP is discussed in tutorial by [Holland99]

  39. Dynamic Source Routing: Advantages • Routes maintained only between nodes who need to communicate • reduces overhead of route maintenance • 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

  40. Dynamic Source Routing: Disadvantages • Packet header size grows with route length due to source routing • Flood of route requests may potentially reach all nodes in the network • Care must be taken to avoid collisions between route requests propagated by neighboring nodes • insertion of random delays before forwarding RREQ • Increased contention if too many route replies come back due to nodes replying using their local cache • Route Reply Storm problem • Reply storm may be eased by preventing a node from sending RREP if it hears another RREP with a shorter route

  41. Dynamic Source Routing: Disadvantages • An intermediate node may send Route Reply using a stale cached route, thus polluting other caches • This problem can be eased if some mechanism to purge (potentially) invalid cached routes is incorporated. • For some proposals for cache invalidation, see [Hu00Mobicom] • Static timeouts • Adaptive timeouts based on link stability

  42. Issues • Scalability • Discovery messages broadcast throughout network • Broadcast / Multicast • Use Route Request packets with data included • Duplicate rejection mechanisms prevent “storms” • Multicast treated as broadcast; no multicast-tree operation defined • Scalability issues • http://www.ietf.org/internet-drafts/draft-ietf-manet-simple-mbcast-01.txt

  43. Ad-hoc On-demand Distance Vector Routing • Draft RFC at http://www.ietf.org/internet-drafts/draft-ietf-manet-aodv-10.txt • “Hop-by-hop” protocol: intermediate nodes use lookup table to determine next hop based on destination • Utilizes only standard IP header

  44. AODV Protocol Activities • Route discovery • Undertaken whenever a node needs a “next hop” to forward a packet to a destination • Route maintenance • Used when link breaks, rendering next hop unusable • Routing (easy!)

  45. Route Discovery • Route Request: • Source broadcasts Route Request (RREQ) message for specified destination • Intermediate node: • Forwards (broadcasts) message toward destination • Creates next-hop entry for reverse path to source, to use when sending reply (assumes bidirectional link…)

  46. Route Reply • Destination unicasts Route Reply (RREP) message to source • RREP contains sequence number, hop-count field (initialized to 0) • Will be sent along “reverse” path hops created by intermediate nodes which forwarded RREQ • Intermediate node: • Create next-hop entry for destination as RREP is received, forward along “reverse path” hop • Increment hop-count field in RREP and forward • Source: • If multiple replies, uses one with lowest hop count

  47. Details again… • Each node maintains non-decreasing sequence number • Sent in RREQ, RREP messages; incremented with each new message • Used to “timestamp” routing table entries for “freshness” comparison • Intermediate node may return RREP if it has routing table entry for destination which is “fresher” than source’s (or equal with lower hop count) • Routing table entries assigned “lifetime”, deleted on expiration • Unique ID included in RREQ for duplicate rejection

  48. Route Maintenance • Used when link breakage occurs • Link breakage detected by link-layer ACK, AODV “Hello” messages • Detecting node may attempt “local repair” • Send RREQ for destination from intermediate node • Route Error (RERR) message generated • Contains list of unreachable destinations • Sent to “precursors”: neighbors who recently sent packet which was forwarded over broken link • Propagated recursively

  49. Ad Hoc On-Demand Distance Vector Routing (AODV) [Perkins99Wmcsa] • DSR includes source routes in packet headers • Resulting large headers can sometimes degrade performance • particularly when data contents of a packet are small • AODV attempts to improve on DSR by maintaining routing tables at the nodes, so that data packets do not have to contain routes • AODV retains the desirable feature of DSR that routes are maintained only between nodes which need to communicate

  50. 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 • AODV assumes symmetric (bi-directional) links • 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

More Related