RAP A RealTime Communication Architecture for LargeScale Wireless

  • Slides: 36
Download presentation
RAP: A Real-Time Communication Architecture for Large-Scale Wireless Sensor Networks C. Lu, B. M.

RAP: A Real-Time Communication Architecture for Large-Scale Wireless Sensor Networks C. Lu, B. M. Blum, T. F. Abdelzaher, J. A. Stankovic, and T. He Adapted Chenyang Lu’s slides Chenyang Lu

Design Requirements n n Minimize end-to-end deadline miss ratio Support distributed micro-sensing n High-level

Design Requirements n n Minimize end-to-end deadline miss ratio Support distributed micro-sensing n High-level service API Large scale, high density n Scalability is key Extreme resource constraints n Minimal overheads 10/29/2020 2

Location-based Communication Location-based ID-based n n n From ID to ID What is the

Location-based Communication Location-based ID-based n n n From ID to ID What is the reading of sensor 125. 111. 1. 5? Rely on (unreliable) individual sensors n n n 10/29/2020 From location to location What is the virus density in south terminal of airport? Individual sensors NOT important Local coordination: Sensors in interested area aggregate data Sensor-base comm: Send aggregated result to base station 3

RAP: Real-time loc. Ation-based Protocols Sensing/Control Application Query/Event Service APIs Query/Event Service Coordination Service

RAP: Real-time loc. Ation-based Protocols Sensing/Control Application Query/Event Service APIs Query/Event Service Coordination Service Location-Addressed Protocol Geographic Forwarding Velocity Monotonic Scheduling Prioritized MAC 10/29/2020 4

Query/Event Service Coordination Service Location-Addressed Protocol Query/Event API n Geographic Forwarding Velocity Monotonic Scheduling

Query/Event Service Coordination Service Location-Addressed Protocol Query/Event API n Geographic Forwarding Velocity Monotonic Scheduling Prioritized MAC RAP provides the following query/event service APIs. query { attribute_list, area, timing_constraints, querier_loc } register_event { event, area, query } Assume that the locations of the base stations are fixed. 10/29/2020 5

Query/Event Service Coordination Service Location-Addressed Protocol Example Geographic Forwarding Velocity Monotonic Scheduling Prioritized MAC

Query/Event Service Coordination Service Location-Addressed Protocol Example Geographic Forwarding Velocity Monotonic Scheduling Prioritized MAC register_event { virus. Found(0, 0, 100), // area to post event query { // query to be triggered virus. count, // attribute area=(x-1, y-1, x+1, y+1), // query area period=1. 5, deadline=5, // timing info base=(100, 100) // base station location } } n Registers a virus_count query for a virus_found event. n If any viruses are found in a rectangular area (0, 0, 100), return the average density of the viruses of the 2*2 square area centered at the event location (Xevent, Yevent) n Peirod: 1. 5 sec. n End-to-end deadline: 5 sec 10/29/2020 6

Query/Event Service Geographic Forwarding Coordination Service Location-Addressed Protocol Geographic Forwarding Velocity Monotonic Scheduling Closest

Query/Event Service Geographic Forwarding Coordination Service Location-Addressed Protocol Geographic Forwarding Velocity Monotonic Scheduling Closest to C A ü ü E Prioritized MAC C Local state Scalability – Routing decisions are local Dense network Efficient greedy forwarding works well Dense network #hop proportional to distance Location-based comm. No location directory service 10/29/2020 7

Background – GF GF always chooses the node that is closest to the destination

Background – GF GF always chooses the node that is closest to the destination in FS. n s 10/29/2020 d 8

Deadline & Distance Aware n n FCFS scheduling does not work well for real-time

Deadline & Distance Aware n n FCFS scheduling does not work well for real-time communication Deadline-aware n n The shorter the deadline, the higher the packet priority Distance-aware n The longer the distance, the higher the packet priority 10/29/2020 9

Query/Event Service Velocity Coordination Service Location-Addressed Protocol Geographic Forwarding Velocity Monotonic Scheduling Prioritized MAC

Query/Event Service Velocity Coordination Service Location-Addressed Protocol Geographic Forwarding Velocity Monotonic Scheduling Prioritized MAC n n n Timing constraint: deadline Location constraint: distance to destination Requested Velocity n n n Embody both constraints Reflect local urgency Velocity Monotonic Scheduling (VMS): Priority = Requested Velocity 10/29/2020 10

Example dis = 90 m; D = 2 s V = 45 m/s HIGH

Example dis = 90 m; D = 2 s V = 45 m/s HIGH Priority D A C B dis = 60 m; D = 2 s V = 30 m/s LOW Priority 10/29/2020 11

Velocity Monotonic Scheduling Static VMS n n Fixed velocity on each hop V =

Velocity Monotonic Scheduling Static VMS n n Fixed velocity on each hop V = dis(x 0, y 0, xd, yd)/D n Source location: (x 0, y 0) n Destination location: (xd, yd) n End-to-end deadline: D Dynamic VMS n n Adapt velocity at intermediate node based on progress Vi = dis(xi, yi, xd, yd)/Si n Velocity at node: Vi n Location of node i: (xi, yi) n Slack: Si = D – elapsed time 10/29/2020 12

Priority Queue n Single Queue Ordered by priority If queue is full, higher priority

Priority Queue n Single Queue Ordered by priority If queue is full, higher priority incoming packets overwrite lower priority Implement a priority queue: Overhead is (log n) where n is the number of packets in the queue n Multiple Queue Priority corresponds to a range of requested velocities. A packet is first mapped to a priority, and then inserted into the FIFO queue based on its priority Packets that miss their deadlines are useless -> Actively drop packets that have missed their deadlines to avoid wasting bandwidth 10/29/2020 13

Query/Event Service Prioritized MAC Coordination Service Location-Addressed Protocol Geographic Forwarding Velocity Monotonic Scheduling Prioritized

Query/Event Service Prioritized MAC Coordination Service Location-Addressed Protocol Geographic Forwarding Velocity Monotonic Scheduling Prioritized MAC Collision Avoidance (CA) n Channel idle wait for DIFS = BASE_DIFS PRI n Packets with a higher priority (corresponding to a smaller PRIORITY value) on average choose a smaller waiting period. n Contention n Collision (No CTS or No ACK) CW = CW*(2+(PRI-1)/MAXPRI) n MAXPRI is the maximum value of priority (corresponding to the lowest priority). The backoff counter of a node with a pending lower priority packet increases faster than a node with a pending packet with a higher priority. n n Similar to 802. 11’s EDCF Acquire Channel Idle BASE_DIFS PRI Avoidance 10/29/2020 CW Contention Exponential Backoff Time Transmission 14

Simulation in Glo. Mo. Sim: Biometric Sensing n n 100 nodes on 136 X

Simulation in Glo. Mo. Sim: Biometric Sensing n n 100 nodes on 136 X 136 m 2 Periodic query count on 31 nodes; detail on 15 nodes Base Station Hot Regions (sources) FAR 10/29/2020 15

Workload n Network (roughly approximate MICA mote) n n Communication range: 30. 5 m

Workload n Network (roughly approximate MICA mote) n n Communication range: 30. 5 m Packet size: 32 B (count), 160 B (detail) Bandwidth: 200 kbps (> MICA) Protocols n n n Routing: DSR (Dynamic Source Routing), GF (Geographic Forwarding) Scheduling: FIFO, DS (Deadline-based), SVM, DVM MAC: 802. 11, extended 802. 11 with prioritization 10/29/2020 16

Flow of Packets Base station GF – Flow of Packets 10/29/2020 DSR – Flow

Flow of Packets Base station GF – Flow of Packets 10/29/2020 DSR – Flow of Packets 17

Deadline Miss Ratio Overall Glomo. Sim simulation (deadline: detail: 5 s, count: 10 s)

Deadline Miss Ratio Overall Glomo. Sim simulation (deadline: detail: 5 s, count: 10 s) 10/29/2020 18

Deadline Miss Ratio: FAR hot region Glomo. Sim simulation (deadline: detail: 5 s, count:

Deadline Miss Ratio: FAR hot region Glomo. Sim simulation (deadline: detail: 5 s, count: 10 s) 10/29/2020 19

Distance Fairness n SVM provides “fairer” service to remote sensors n Critical for scalability

Distance Fairness n SVM provides “fairer” service to remote sensors n Critical for scalability of sensor networks! 10/29/2020 20

Conclusion n Velocity Monotonic Scheduling Reduce end-to-end deadline miss ratio Fair service to remote

Conclusion n Velocity Monotonic Scheduling Reduce end-to-end deadline miss ratio Fair service to remote sensors Event/query service API’s High-level abstraction for distributed microsensing Location-based protocol stack Scalable Small protocol overhead 10/29/2020 21

Research Issues n VMS n DVM is worse than SVM? No schedulability analysis or

Research Issues n VMS n DVM is worse than SVM? No schedulability analysis or admission control No guarantee Is velocity the right trade-off between distance and time? How about ETX? Should we consider potential retransmissions for real-time routing? VMS is not a routing but a scheduling scheme! What if there’s a void? GF does not work n Just-in-Time Scheduling n n n What if network is congested? Location of the base station is fixed 10/29/2020 22

Mobility-based communication in wireless sensor networks E. Ekici, Y. Gu, D. Bozdag Chenyang Lu

Mobility-based communication in wireless sensor networks E. Ekici, Y. Gu, D. Bozdag Chenyang Lu

Common approaches n Connectivity n n Deploy a sufficient number of sensors or use

Common approaches n Connectivity n n Deploy a sufficient number of sensors or use nodes with long-range communication capabilities to maintain a connected graph Network lifetime n n Energy efficient protocols & algorithms Energy replenishment 10/29/2020 24

Motivations n n n Use mobile platforms, e. g. , soldiers & UAVs in

Motivations n n n Use mobile platforms, e. g. , soldiers & UAVs in a battlefield, animals in habit monitoring, and buses in traffic monitoring, to maintain connectivity and improve network lifetime Connectivity: Use mobile devices to carry info between isolated parts in WSNs Energy efficiency: Use mobile devices to reduce multihop routing 10/29/2020 25

Representative approaches n Mobile base station (MBS)-based solutions n n Use a mobile sink

Representative approaches n Mobile base station (MBS)-based solutions n n Use a mobile sink MBS during operation Still multihop routing but more uniform energy consumptions across the network No long-term buffering is required Mobile data collector (MDC)-based solutions n n A mobile sink MDC visits sensors Buffer data at sources until the MDC visits and downloads the info via one hop wireless communication 10/29/2020 26

Representative approaches n Rendezvous-based solutions n n n Hybrid approach Sensor data are sent

Representative approaches n Rendezvous-based solutions n n n Hybrid approach Sensor data are sent to a rendezvous points close to the path of mobile devices Data are buffered at rendezvous points until downloaded by mobile devices 10/29/2020 27

MBS-based approaches n Base station relocation [2] n n Change MBS locations along the

MBS-based approaches n Base station relocation [2] n n Change MBS locations along the periphery of the sensing filed to balance the energy consumption of individual sensors Two objective functions n n 10/29/2020 Total energy consumption of all sensors More data are collected throughout the network lifetime (according to simulation results) Max energy consumption of any sensor Longer network lifetime (defined to be the time until the first node dies) 28

Joint mobility and routing [3] n Analytic work n n n Assume sensors are

Joint mobility and routing [3] n Analytic work n n n Assume sensors are deployed in a circle Network lifetime can be improved even when an optimally placed fixed sink, i. e. , sink located in the center of the circle, is replaced by a randomly moving MBS Optimal movement of MBS is to follow the periphery when the deployment area is circular n 10/29/2020 Best way to disperse network flows 29

Joint mobility and routing [3] (Cont’d) n Heuristic for joint mobility and routing n

Joint mobility and routing [3] (Cont’d) n Heuristic for joint mobility and routing n n n MBS moves on a circular trajectory inside the deployment region Nodes inside the trajectory send their packets to MBS on shortest paths Nodes outside the trajectory use paths composed of arcs followed by straight lines directed toward the trajectory center to reach MBS to utilize residual energy in outer nodes 10/29/2020 30

MDC-based solutions n Sparse WSNs are used to collect data in large areas n

MDC-based solutions n Sparse WSNs are used to collect data in large areas n Observation of traffic density in a big city n n n 10/29/2020 Sensors are placed on roads to observe vehicles A small number of sensors is sufficient as the number of cars along a road segment is highly correlaed Utilizing many relay nodes or using long-range comm interface can be expensive Instead, use MDCs that gathers data from sensors by visiting them No multihop routing Long-term buffering 31

Data Mules [6] n n n MDCs move randomly to collect data opportunistically from

Data Mules [6] n n n MDCs move randomly to collect data opportunistically from sensors in their direct comm range Carry collected data to a wireless access point Msg transfer delay is unbounded as MDCs move randomly 10/29/2020 32

Predictable data collection [7] n n Data are collected by vehicles which pass near

Predictable data collection [7] n n Data are collected by vehicles which pass near sensors Sensors know the trajectory of MDCs, e. g. , buses n n Predict when data transfer will take place Sensors can sleep until the predicted transfer time 10/29/2020 33

Mobile element scheduling [8] n n n Sensors may generate data at different rates

Mobile element scheduling [8] n n n Sensors may generate data at different rates MDC called mobile element (ME) is scheduled to visit sensors such that no sensor buffer overflow occurs ME scheduling is NP-complete EDF: Earliest buffer overflow deadline first Minimum Weight Sum First: Consider distances between nodes in addition to buffer overflow deadlines Back-and-forth movements btwn far away nodes are not avoided completely Analogous to real-time disk scheduling 10/29/2020 34

Rendezvous-based solutions n n n When WSNs consist of isolated network partitions, data generated

Rendezvous-based solutions n n n When WSNs consist of isolated network partitions, data generated in a partition can be accumulated at designated sensors that buffer data until they are relayed to a MDC Can save energy in a connected WSN too Relayed data collection [5] n n MDC traverses a linear path and collect data from designated sensors when it enters their transmission range Remaining sensors relay their data to the nodes closest to the MDC path via multihop routing 10/29/2020 35

Questions? 10/29/2020 36

Questions? 10/29/2020 36