SlideShare a Scribd company logo
1 of 34
15-441: Computer Networking
Lecture 24: Ad-Hoc Wireless Networks
2
Scenarios and Roadmap
• Point to point wireless networks (last lecture)
• Example: your laptop to CMU wireless
• Challenges: Poor and variable link quality, hidden and exposed
terminals
• Ad hoc networks (no infrastructure)
• Example: military surveillance network
• Extra challenges: Routing and possible mobility
• Sensor networks (ad hoc++)
• Example: network to monitor temperatures in a volcano
• Extra challenge: serious resource constraints
• Vehicular networks (ad hoc+++)
• Example: vehicle-2-vehicle game network
• Extra challenge: extreme mobility
3
Wireless Challenges (review)
• Interference causes losses, which TCP handles poorly
• Collisions
• Multipath interference
• Environmental (e.g. microwaves)
• Hidden & exposed terminals
• Contention makes it slow
• Solutions at the Link Layer
• Local retransmissions
• RTS/CTS
4
Ad Hoc Networks
• All the challenges of wireless, plus:
• No fixed infrastructure
• Mobility (on short time scales)
• Chaotically decentralized
• Multi-hop!
• Nodes are both traffic sources/sinks and
forwarders, no specialized routers
• The biggest challenge: routing
5
Ad Hoc Routing
• Find multi-hop paths through network
• Adapt to new routes and movement /
environment changes
• Deal with interference and power issues
• Scale well with # of nodes
• Localize effects of link changes
6
Traditional Routing vs Ad Hoc
• Traditional network:
• Well-structured
• ~O(N) nodes & links
• All links work ~= well
• Ad Hoc network
• O(N^2) links - but most are bad!
• Topology may be really weird
• Reflections & multipath cause strange interference
• Change is frequent
7
Problems Using DV or LS
• DV loops are very expensive
• Wireless bandwidth << fiber bandwidth…
• LS protocols have high overhead
• N^2 links cause very high cost
• Periodic updates waste power
• Need fast, frequent convergence
8
Proposed Protocols
• Destination-Sequenced Distance Vector (DSDV)
• Addresses DV loops
• Ad Hoc On-Demand Distance Vector (AODV)
• Forwarders store route info
• Dynamic Source Routing (DSR)
• Route stored in the packet header
• Let’s look at DSR
9
DSR
• Source routing keeps changes local
• Intermediate nodes can be out of date
• On-demand route discovery
• Don’t need periodic route advertisements
• (Design point: on-demand may be better or
worse depending on traffic patterns…)
10
DSR Components
• Route discovery
• The mechanism by which a sending node
obtains a route to destination
• Route maintenance
• The mechanism by which a sending node
detects that the network topology has changed
and its route to destination is no longer valid
11
DSR Route Discovery
• Route discovery - basic idea
• Source broadcasts route-request to
Destination
• Each node forwards request by adding own
address and re-broadcasting
• Requests propagate outward until:
• Target is found, or
• A node that has a route to Destination is found
12
C Broadcasts Route Request to F
A
Source
C
G H
Destination
F
E
D
B
Route Request
13
C Broadcasts Route Request to F
A
Source
C
G H
Destination
F
E
D
B
Route Request
14
H Responds to Route Request
A
Source
C
G H
Destination
F
E
D
B
G,H,F
15
C Transmits a Packet to F
A
Source
C
G H
Destination
F
E
D
B
F
H,F
G,H,F
16
Forwarding Route Requests
• A request is forwarded if:
• Node doesn’t know the destination
• Node not already listed in recorded source
route (loop avoidance)
• Node has not seen request with same
sequence number (duplicate suppression)
• IP TTL field may be used to limit scope
• Destination copies route into a Route-reply
packet and sends it back to Source
17
Route Cache
• All source routes learned by a node are
kept in Route Cache
• Reduces cost of route discovery
• If intermediate node receives RR for
destination and has entry for destination in
route cache, it responds to RR and does not
propagate RR further
• Nodes overhearing RR/RP may insert
routes in cache
18
Sending Data
• Check cache for route to destination
• If route exists then
• If reachable in one hop
• Send packet
• Else insert routing header to destination and
send
• If route does not exist, buffer packet and
initiate route discovery
19
Discussion
• Source routing is good for on demand
routes instead of a priori distribution
• Route discovery protocol used to obtain
routes on demand
• Caching used to minimize use of discovery
• Periodic messages avoided
• But need to buffer packets
• How do you decide between links?
20
Forwarding Packets is Expensive
• Throughput of 802.11b =~ 11Mbits/s
• In reality, you can get about 5.
• What is throughput of a chain?
• A -> B -> C ?
• A -> B -> C -> D ?
• Assume minimum power for radios.
• Routing metric should take this into account
21
ETX Routing metric
• Measure each link’s delivery probability with
broadcast probes (& measure reverse)
• P(delivery) = 1 / ( df * dr ) (ACK must be
delivered too)
• Link ETX = 1 / P(delivery)
• Route ETX = sum of link ETX
• (Assumes all hops interfere - not true, but
seems to work okay so far)
22
Capacity of Multi-Hop Network
• Assume N nodes, each wants to talk to everyone
else. What total throughput (ignore previous slide
to simplify things)
• O(n) concurrent transmissions. Great! But:
• Each has length O(sqrt(n)) (network diameter)
• So each Tx uses up sqrt(n) of the O(n) capacity.
• Per-node capacity scales as 1/sqrt(n)
• Yes - it goes down! More time spent Tx’ing other peoples
packets…
• But: If communication is local, can do much
better, and use cool tricks to optimize
• Like multicast, or multicast in reverse (data fusion)
• Hey, that sounds like … a sensor network!
23
Sensor Networks – Smart Devices
• First introduced in late 90’s by groups at
UCB/UCLA/USC
• Small, resource limited devices
• CPU, disk, power, bandwidth, etc.
• Simple scalar sensors – temperature, motion
• Single domain of deployment
• farm, battlefield, bridge, rain forest
• for a targeted task
• find the tanks, count the birds, monitor the bridge
• Ad-hoc wireless network
24
Sensor Example – Smart-Dust
• Hardware
• UCB motes
• 4 MHz CPU
• 4 kB data RAM
• 128 kB code
• 50 kb/sec 917 Mhz radio
• Sensors: light, temp.,
• Sound, etc.,
• And a battery.
25
Sensors, Power and Radios
• Limited battery life drives most goals
• Radio is most energy-expensive part.
• 800 instructions per bit. 200,000
instructions per packet. (!)
• That’s about one message per second for
~2 months if no CPU.
• Listening is expensive too. :(
26
Sensor Nets Goals
• Replace communication with computation
• Turn off radio receiver as often as possible
• Keep little state (limited memory).
27
Power
• Which uses less power?
• Direct sensor -> base station Tx
• Total Tx power: distance^2
• Sensor -> sensor -> sensor -> base station?
• Total Tx power: n * (distance/n) ^2 =~ d^2 / n
• Why? Radios are omnidirectional, but only one direction matters.
Multi-hop approximates directionality.
• Power savings often makes up for multi-hop capacity
• These devices are *very* power constrained!
• Reality: Many systems don’t use adaptive power control.
This is active research, and fun stuff.
28
Example: Aggregation
• Find average temperature in GHC 8th floor.
• Naïve: Flood query, let a collection point compute avg.
• Huge overload near the CP. Lots of loss, and local nodes use
lots of energy!
• Better:
• Take local avg. first, & forward that.
• Send average temp + # of samples
• Aggregation is the key to scaling these nets.
• The challenge: How to aggregate.
• How long to wait?
• How to aggregate complex queries?
• How to program?
29
Beyond Sensors –
Vehicular Ad-Hoc Networks
• Aggregation is not everything
• Power and computation constraints limiting
• What can we use as highly mobile and powerful
ad hoc network nodes? Cars!
• Potential applications for VANETs
• Collision avoidance
• Virtual traffic signals
• (Semi-)Autonomous driving
• Infotainment
30
Vehicular Networks – Challenges?
• Extreme mobility
• DSR won’t work if the routes keep changing
• Scale
• Possibly the largest ever ad-hoc networks
• Topology
• Deployment/density not controlled by designer (e.g.,
highway vs city)
• Gradual deployment (new cars equipped from the
factory in the near future)
31
VANET Routing – Simple case
• Topology based routing
• DSR won’t work because the nodes keep changing
• Can form clusters and route through cluster heads
(LORA_CBF)
• Geographical routing
• Use relative position between node, source and
destination to, on the fly, decide whether to forward or
not (GPSR)
32
VANET Routing – General case
• Cities, rural areas
• Topology-based routing fails, geographical routing
harder
• Local minima/network holes: no neighbor is closer to the
destination than we are
• Greedy Perimeter Stateless Routing (GPSR) routes around the
perimeter
• What we would really want
• To have a density map of the network to help us choose
forwarders
33
VANET Routing – General case
• Learning about node density in VANETs
• Use road maps and statistical traffic information (A-
CAR)
• Coarse-grained
• Local, neighbor based estimation
• Local optimum != global optimum
• Online, large scale estimation
• High overhead
• No perfect solution – open research topic
34
Important Lessons
• Wireless is challenging
• Assumptions made for the wired world don’t hold
• Ad-hoc wireless networks
• Need routing protocol but mobility and limited capacity are
problems
• On demand can reduce load; broadcast reduces overhead
• Special case 1 – Sensor networks
• Power is key concern
• Trade communication for computation
• Special case 2 – Vehicular networks
• No power constraints but high mobility makes routing even
harder, geographical routing

More Related Content

Similar to 24-ad-hoc.ppt

BIT3114 lecture6 WAN.ppt
BIT3114 lecture6 WAN.pptBIT3114 lecture6 WAN.ppt
BIT3114 lecture6 WAN.pptAmanyaLaban
 
Module-4 Short notes.pptx
Module-4 Short notes.pptxModule-4 Short notes.pptx
Module-4 Short notes.pptxAzmiNizar1
 
Introduction to backwards learning algorithm
Introduction to backwards learning algorithmIntroduction to backwards learning algorithm
Introduction to backwards learning algorithmRoshan Karunarathna
 
Unit 4_Network Layer_Part II.pptx
Unit 4_Network Layer_Part II.pptxUnit 4_Network Layer_Part II.pptx
Unit 4_Network Layer_Part II.pptxHODElex
 
Unit 3_Network Layer_Part II.pptx
Unit 3_Network Layer_Part II.pptxUnit 3_Network Layer_Part II.pptx
Unit 3_Network Layer_Part II.pptxHODElex
 
Module 3 Part B - computer networks module 2 ppt
Module 3 Part B - computer networks module 2 pptModule 3 Part B - computer networks module 2 ppt
Module 3 Part B - computer networks module 2 pptanushaj46
 
NetworkAlgorithms.ppt
NetworkAlgorithms.pptNetworkAlgorithms.ppt
NetworkAlgorithms.ppt21121A0594
 
Dc ch10 : circuit switching and packet switching
Dc ch10 : circuit switching and packet switchingDc ch10 : circuit switching and packet switching
Dc ch10 : circuit switching and packet switchingSyaiful Ahdan
 
Dc ch11 : routing in switched networks
Dc ch11 : routing in switched networksDc ch11 : routing in switched networks
Dc ch11 : routing in switched networksSyaiful Ahdan
 
12 ipt 0303 transmitting and receiving
12 ipt 0303   transmitting and receiving12 ipt 0303   transmitting and receiving
12 ipt 0303 transmitting and receivingctedds
 
Computer networks unit iii
Computer networks    unit iiiComputer networks    unit iii
Computer networks unit iiiJAIGANESH SEKAR
 
Chapter 2 Switches in network.ppt
Chapter 2 Switches in network.pptChapter 2 Switches in network.ppt
Chapter 2 Switches in network.pptmonikarawat57
 
CS553_ST7_Ch15-LANOverview (1).ppt
CS553_ST7_Ch15-LANOverview (1).pptCS553_ST7_Ch15-LANOverview (1).ppt
CS553_ST7_Ch15-LANOverview (1).pptMekiPetitSeg
 
CS553_ST7_Ch15-LANOverview.ppt
CS553_ST7_Ch15-LANOverview.pptCS553_ST7_Ch15-LANOverview.ppt
CS553_ST7_Ch15-LANOverview.pptSmitNiks
 
CS553_ST7_Ch15-LANOverview.ppt
CS553_ST7_Ch15-LANOverview.pptCS553_ST7_Ch15-LANOverview.ppt
CS553_ST7_Ch15-LANOverview.pptssuser2cc0d4
 
ROUTING PROTOCOLS new.pptx
ROUTING PROTOCOLS new.pptxROUTING PROTOCOLS new.pptx
ROUTING PROTOCOLS new.pptxAayushMishra89
 

Similar to 24-ad-hoc.ppt (20)

Overview
OverviewOverview
Overview
 
BIT3114 lecture6 WAN.ppt
BIT3114 lecture6 WAN.pptBIT3114 lecture6 WAN.ppt
BIT3114 lecture6 WAN.ppt
 
Module-4 Short notes.pptx
Module-4 Short notes.pptxModule-4 Short notes.pptx
Module-4 Short notes.pptx
 
Introduction to backwards learning algorithm
Introduction to backwards learning algorithmIntroduction to backwards learning algorithm
Introduction to backwards learning algorithm
 
Unit 4_Network Layer_Part II.pptx
Unit 4_Network Layer_Part II.pptxUnit 4_Network Layer_Part II.pptx
Unit 4_Network Layer_Part II.pptx
 
Unit 3_Network Layer_Part II.pptx
Unit 3_Network Layer_Part II.pptxUnit 3_Network Layer_Part II.pptx
Unit 3_Network Layer_Part II.pptx
 
Network devices
Network devicesNetwork devices
Network devices
 
Module 3 Part B - computer networks module 2 ppt
Module 3 Part B - computer networks module 2 pptModule 3 Part B - computer networks module 2 ppt
Module 3 Part B - computer networks module 2 ppt
 
NetworkAlgorithms.ppt
NetworkAlgorithms.pptNetworkAlgorithms.ppt
NetworkAlgorithms.ppt
 
Dc ch10 : circuit switching and packet switching
Dc ch10 : circuit switching and packet switchingDc ch10 : circuit switching and packet switching
Dc ch10 : circuit switching and packet switching
 
Dc ch11 : routing in switched networks
Dc ch11 : routing in switched networksDc ch11 : routing in switched networks
Dc ch11 : routing in switched networks
 
12 ipt 0303 transmitting and receiving
12 ipt 0303   transmitting and receiving12 ipt 0303   transmitting and receiving
12 ipt 0303 transmitting and receiving
 
Computer networks unit iii
Computer networks    unit iiiComputer networks    unit iii
Computer networks unit iii
 
Wsn protocols
Wsn protocolsWsn protocols
Wsn protocols
 
Chapter 2 Switches in network.ppt
Chapter 2 Switches in network.pptChapter 2 Switches in network.ppt
Chapter 2 Switches in network.ppt
 
Unit 33-routing protocols for wsn
Unit 33-routing protocols for wsnUnit 33-routing protocols for wsn
Unit 33-routing protocols for wsn
 
CS553_ST7_Ch15-LANOverview (1).ppt
CS553_ST7_Ch15-LANOverview (1).pptCS553_ST7_Ch15-LANOverview (1).ppt
CS553_ST7_Ch15-LANOverview (1).ppt
 
CS553_ST7_Ch15-LANOverview.ppt
CS553_ST7_Ch15-LANOverview.pptCS553_ST7_Ch15-LANOverview.ppt
CS553_ST7_Ch15-LANOverview.ppt
 
CS553_ST7_Ch15-LANOverview.ppt
CS553_ST7_Ch15-LANOverview.pptCS553_ST7_Ch15-LANOverview.ppt
CS553_ST7_Ch15-LANOverview.ppt
 
ROUTING PROTOCOLS new.pptx
ROUTING PROTOCOLS new.pptxROUTING PROTOCOLS new.pptx
ROUTING PROTOCOLS new.pptx
 

Recently uploaded

Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsMark Billinghurst
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentationphoebematthew05
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfngoud9212
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsHyundai Motor Group
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsAndrey Dotsenko
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Neo4j
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxnull - The Open Security Community
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 

Recently uploaded (20)

Human Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR SystemsHuman Factors of XR: Using Human Factors to Design XR Systems
Human Factors of XR: Using Human Factors to Design XR Systems
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
costume and set research powerpoint presentation
costume and set research powerpoint presentationcostume and set research powerpoint presentation
costume and set research powerpoint presentation
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
Bluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdfBluetooth Controlled Car with Arduino.pdf
Bluetooth Controlled Car with Arduino.pdf
 
The transition to renewables in India.pdf
The transition to renewables in India.pdfThe transition to renewables in India.pdf
The transition to renewables in India.pdf
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter RoadsSnow Chain-Integrated Tire for a Safe Drive on Winter Roads
Snow Chain-Integrated Tire for a Safe Drive on Winter Roads
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024Build your next Gen AI Breakthrough - April 2024
Build your next Gen AI Breakthrough - April 2024
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptxMaking_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
Making_way_through_DLL_hollowing_inspite_of_CFG_by_Debjeet Banerjee.pptx
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 

24-ad-hoc.ppt

  • 1. 15-441: Computer Networking Lecture 24: Ad-Hoc Wireless Networks
  • 2. 2 Scenarios and Roadmap • Point to point wireless networks (last lecture) • Example: your laptop to CMU wireless • Challenges: Poor and variable link quality, hidden and exposed terminals • Ad hoc networks (no infrastructure) • Example: military surveillance network • Extra challenges: Routing and possible mobility • Sensor networks (ad hoc++) • Example: network to monitor temperatures in a volcano • Extra challenge: serious resource constraints • Vehicular networks (ad hoc+++) • Example: vehicle-2-vehicle game network • Extra challenge: extreme mobility
  • 3. 3 Wireless Challenges (review) • Interference causes losses, which TCP handles poorly • Collisions • Multipath interference • Environmental (e.g. microwaves) • Hidden & exposed terminals • Contention makes it slow • Solutions at the Link Layer • Local retransmissions • RTS/CTS
  • 4. 4 Ad Hoc Networks • All the challenges of wireless, plus: • No fixed infrastructure • Mobility (on short time scales) • Chaotically decentralized • Multi-hop! • Nodes are both traffic sources/sinks and forwarders, no specialized routers • The biggest challenge: routing
  • 5. 5 Ad Hoc Routing • Find multi-hop paths through network • Adapt to new routes and movement / environment changes • Deal with interference and power issues • Scale well with # of nodes • Localize effects of link changes
  • 6. 6 Traditional Routing vs Ad Hoc • Traditional network: • Well-structured • ~O(N) nodes & links • All links work ~= well • Ad Hoc network • O(N^2) links - but most are bad! • Topology may be really weird • Reflections & multipath cause strange interference • Change is frequent
  • 7. 7 Problems Using DV or LS • DV loops are very expensive • Wireless bandwidth << fiber bandwidth… • LS protocols have high overhead • N^2 links cause very high cost • Periodic updates waste power • Need fast, frequent convergence
  • 8. 8 Proposed Protocols • Destination-Sequenced Distance Vector (DSDV) • Addresses DV loops • Ad Hoc On-Demand Distance Vector (AODV) • Forwarders store route info • Dynamic Source Routing (DSR) • Route stored in the packet header • Let’s look at DSR
  • 9. 9 DSR • Source routing keeps changes local • Intermediate nodes can be out of date • On-demand route discovery • Don’t need periodic route advertisements • (Design point: on-demand may be better or worse depending on traffic patterns…)
  • 10. 10 DSR Components • Route discovery • The mechanism by which a sending node obtains a route to destination • Route maintenance • The mechanism by which a sending node detects that the network topology has changed and its route to destination is no longer valid
  • 11. 11 DSR Route Discovery • Route discovery - basic idea • Source broadcasts route-request to Destination • Each node forwards request by adding own address and re-broadcasting • Requests propagate outward until: • Target is found, or • A node that has a route to Destination is found
  • 12. 12 C Broadcasts Route Request to F A Source C G H Destination F E D B Route Request
  • 13. 13 C Broadcasts Route Request to F A Source C G H Destination F E D B Route Request
  • 14. 14 H Responds to Route Request A Source C G H Destination F E D B G,H,F
  • 15. 15 C Transmits a Packet to F A Source C G H Destination F E D B F H,F G,H,F
  • 16. 16 Forwarding Route Requests • A request is forwarded if: • Node doesn’t know the destination • Node not already listed in recorded source route (loop avoidance) • Node has not seen request with same sequence number (duplicate suppression) • IP TTL field may be used to limit scope • Destination copies route into a Route-reply packet and sends it back to Source
  • 17. 17 Route Cache • All source routes learned by a node are kept in Route Cache • Reduces cost of route discovery • If intermediate node receives RR for destination and has entry for destination in route cache, it responds to RR and does not propagate RR further • Nodes overhearing RR/RP may insert routes in cache
  • 18. 18 Sending Data • Check cache for route to destination • If route exists then • If reachable in one hop • Send packet • Else insert routing header to destination and send • If route does not exist, buffer packet and initiate route discovery
  • 19. 19 Discussion • Source routing is good for on demand routes instead of a priori distribution • Route discovery protocol used to obtain routes on demand • Caching used to minimize use of discovery • Periodic messages avoided • But need to buffer packets • How do you decide between links?
  • 20. 20 Forwarding Packets is Expensive • Throughput of 802.11b =~ 11Mbits/s • In reality, you can get about 5. • What is throughput of a chain? • A -> B -> C ? • A -> B -> C -> D ? • Assume minimum power for radios. • Routing metric should take this into account
  • 21. 21 ETX Routing metric • Measure each link’s delivery probability with broadcast probes (& measure reverse) • P(delivery) = 1 / ( df * dr ) (ACK must be delivered too) • Link ETX = 1 / P(delivery) • Route ETX = sum of link ETX • (Assumes all hops interfere - not true, but seems to work okay so far)
  • 22. 22 Capacity of Multi-Hop Network • Assume N nodes, each wants to talk to everyone else. What total throughput (ignore previous slide to simplify things) • O(n) concurrent transmissions. Great! But: • Each has length O(sqrt(n)) (network diameter) • So each Tx uses up sqrt(n) of the O(n) capacity. • Per-node capacity scales as 1/sqrt(n) • Yes - it goes down! More time spent Tx’ing other peoples packets… • But: If communication is local, can do much better, and use cool tricks to optimize • Like multicast, or multicast in reverse (data fusion) • Hey, that sounds like … a sensor network!
  • 23. 23 Sensor Networks – Smart Devices • First introduced in late 90’s by groups at UCB/UCLA/USC • Small, resource limited devices • CPU, disk, power, bandwidth, etc. • Simple scalar sensors – temperature, motion • Single domain of deployment • farm, battlefield, bridge, rain forest • for a targeted task • find the tanks, count the birds, monitor the bridge • Ad-hoc wireless network
  • 24. 24 Sensor Example – Smart-Dust • Hardware • UCB motes • 4 MHz CPU • 4 kB data RAM • 128 kB code • 50 kb/sec 917 Mhz radio • Sensors: light, temp., • Sound, etc., • And a battery.
  • 25. 25 Sensors, Power and Radios • Limited battery life drives most goals • Radio is most energy-expensive part. • 800 instructions per bit. 200,000 instructions per packet. (!) • That’s about one message per second for ~2 months if no CPU. • Listening is expensive too. :(
  • 26. 26 Sensor Nets Goals • Replace communication with computation • Turn off radio receiver as often as possible • Keep little state (limited memory).
  • 27. 27 Power • Which uses less power? • Direct sensor -> base station Tx • Total Tx power: distance^2 • Sensor -> sensor -> sensor -> base station? • Total Tx power: n * (distance/n) ^2 =~ d^2 / n • Why? Radios are omnidirectional, but only one direction matters. Multi-hop approximates directionality. • Power savings often makes up for multi-hop capacity • These devices are *very* power constrained! • Reality: Many systems don’t use adaptive power control. This is active research, and fun stuff.
  • 28. 28 Example: Aggregation • Find average temperature in GHC 8th floor. • Naïve: Flood query, let a collection point compute avg. • Huge overload near the CP. Lots of loss, and local nodes use lots of energy! • Better: • Take local avg. first, & forward that. • Send average temp + # of samples • Aggregation is the key to scaling these nets. • The challenge: How to aggregate. • How long to wait? • How to aggregate complex queries? • How to program?
  • 29. 29 Beyond Sensors – Vehicular Ad-Hoc Networks • Aggregation is not everything • Power and computation constraints limiting • What can we use as highly mobile and powerful ad hoc network nodes? Cars! • Potential applications for VANETs • Collision avoidance • Virtual traffic signals • (Semi-)Autonomous driving • Infotainment
  • 30. 30 Vehicular Networks – Challenges? • Extreme mobility • DSR won’t work if the routes keep changing • Scale • Possibly the largest ever ad-hoc networks • Topology • Deployment/density not controlled by designer (e.g., highway vs city) • Gradual deployment (new cars equipped from the factory in the near future)
  • 31. 31 VANET Routing – Simple case • Topology based routing • DSR won’t work because the nodes keep changing • Can form clusters and route through cluster heads (LORA_CBF) • Geographical routing • Use relative position between node, source and destination to, on the fly, decide whether to forward or not (GPSR)
  • 32. 32 VANET Routing – General case • Cities, rural areas • Topology-based routing fails, geographical routing harder • Local minima/network holes: no neighbor is closer to the destination than we are • Greedy Perimeter Stateless Routing (GPSR) routes around the perimeter • What we would really want • To have a density map of the network to help us choose forwarders
  • 33. 33 VANET Routing – General case • Learning about node density in VANETs • Use road maps and statistical traffic information (A- CAR) • Coarse-grained • Local, neighbor based estimation • Local optimum != global optimum • Online, large scale estimation • High overhead • No perfect solution – open research topic
  • 34. 34 Important Lessons • Wireless is challenging • Assumptions made for the wired world don’t hold • Ad-hoc wireless networks • Need routing protocol but mobility and limited capacity are problems • On demand can reduce load; broadcast reduces overhead • Special case 1 – Sensor networks • Power is key concern • Trade communication for computation • Special case 2 – Vehicular networks • No power constraints but high mobility makes routing even harder, geographical routing