320 likes | 464 Views
Addressing Burstiness for Reliable Communication and Latency Bound Generation in Wireless Sensor Networks. Department of Computer Science University of Virginia. Sirajum Munir , Shan Lin, Enamul Hoque, S. M. Shahriar Nirjon, John A. Stankovic, and Kamin Whitehouse. Problem Definition.
E N D
Addressing Burstiness for Reliable Communication and Latency Bound Generation in Wireless Sensor Networks Department of Computer Science University of Virginia Sirajum Munir, Shan Lin, Enamul Hoque, S. M. Shahriar Nirjon, John A. Stankovic, and Kamin Whitehouse
Problem Definition • Reliable delivery • Retry on each link until the packet is received Source N1 N2 N3 2 3 3 N4 N6 N5 N7 5 N8 N10 N9 Destination
Problem Definition • Reliable delivery • Retry on each link until the packet is received • Problem: • Unbounded E2E latency • Not acceptable for real-time applications Source N1 N2 N3 N4 N6 N5 N7 N8 N10 N9 Destination
Overview • Basic Approach • Estimate maximum “burst” length for each link • #consecutive failures Source 100 N1 N2 N3 2 3 200 3 5 N4 3 N6 N5 N7 35 2 5 4 5 62 3 N8 N10 N9 Destination
Overview • Basic Approach • Estimate maximum “burst” length for each link • Key insight: • Burstiness caused by physical world dynamics • Some links are relatively insulated from these dynamics Source 100 N1 N2 N3 2 3 200 3 5 N4 3 N6 N5 N7 35 2 5 4 5 62 3 N8 N10 N9 Destination
Overview • Basic Approach • Estimate maximum “burst” length for each link • Choose routes that only use non-bursty links Source 100 N1 N2 N3 2 3 200 3 5 N4 3 N6 N5 N7 35 2 5 4 5 62 3 N8 N10 N9 Destination
Overview • Basic Approach • Estimate maximum “burst” length for each link • Choose routes that only use non-bursty links • Schedule packet transmission to avoid interference between links Source1 Destination2 N1 N2 N3 N4 N6 N5 N7 N8 N10 N9 Source2 Destination1
Outline • Modeling link burstiness • E2E latency bounds • Evaluation
Modeling Burstiness • Modeling link Bursts • Bmax, B’min per link • Bmax = Maximum No. of time slots where transmission can fail • B’min = Minimum No. of time slots available for transmission • W = Bmax + B’min • Example • B’min = 1 • W = 2 1 0 0 1 1 0 1 …
Modeling Burstiness 1 0 0 1 1 0 1 … • Modeling link bursts • Bmax, B’min per link • Bmax = Maximum No. of time slots where transmission can fail • B’min = Minimum No. of time slots available for transmission • W = Bmax + B’min • Example • B’min = 1 • W = 3 • Bmax = 2
Modeling Burstiness • X X X X X X XX X … • Different from existing models • The β Factor [Srinivasan et al.] • Models burstiness based on the distribution of burst lengths • Our model only cares about the maximum burst length
Empirical Study • 21 Days-long • Indoor testbed • 48 Tmote Sky nodes • 3.6 M packets/link • 200 packets/sec • Compute Bmax, B’min, PRR of every link
Empirical Study • Verified: • Some links are very bursty • Some links are not bursty • Bmax is not predicted by PRR • Some highly reliable links (PRR>0.99) still have very large bursts
Outline • Modeling link burstiness • E2E latency bounds • Evaluation
E2E Latency Bound Source Source Bmax N1 N1 N2 N2 N3 N3 Bmax Bmax Bmax Bmax Bmax N4 N4 Bmax N6 N6 N5 N7 N5 N7 Bmax Bmax Bmax Bmax Bmax Bmax Bmax N8 N8 N10 N10 N9 N9 Destination Destination • Min Latency Bound: NP-Hard • Greedy solution: Principles • Routing : Least burst routing
E2E Latency Bound Source N1 N2 N3 N4 N6 N5 N7 N8 N10 N9 Destination • Greedy solution : Principles • Routing: Least burst route • Schedule packet transmission • Allocating time slots: • How many time slots to allocate per link? • Allocate Bmaxi+1 contiguous time slots, for i-th link • Can we do even better? • Yes ! Overlap some streams’ time slot allocation
E2E Latency Bound N1 N2 Time Slots Schedule w/ overlapping Schedule w/o overlapping Prioritizing rule • What is overlapping? • Assume Link L(1,2) has Bmax=2, B’min=4 • 2 Streams: S1, S2 • Why do we need overlapping ? • W/O overlapping: Avg LB = (3 + 6)/2 = 4.5 • W/ overlapping: Avg LB = (3 + 4) /2 = 3.5
E2E Latency Bound N1 N2 Time Slots Complete overlapping: Doesn’t work ! Time Slots • How much to overlap? • Assume Link L(1,2) has Bmax=2, B’min=4 • 2 Streams: S1, S2 • Overlap at most B’min number of streams
E2E Latency Bound N1 N2 Time Slots Complete overlapping: Doesn’t work ! Time Slots • How much to overlap? • Assume Link L(1,2) has Bmax=2, B’min=4 • 2 Streams: S1, S2 • Overlap at most B’min number of streams
E2E Latency Bound N1 N2 Time Slots Complete overlapping: Doesn’t work ! Time Slots • How much to overlap? • Assume Link L(1,2) has Bmax=2, B’min=4 • 2 Streams: S1, S2 • Overlap at most B’min number of streams
E2E Latency Bound Summary • Greedy solution : Principles • Routing: Least burst routing • Allocating time slots: • How many time slots to allocate per link? • Bmaxi+1 contiguous time slots • Without complete overlapping • How much to overlap? • Overlap at most B’mini streams’ time slot allocation • How to handle interference? • Use IM to avoid interference
Outline • Modeling link burstiness • E2E latency bounds • Evaluation
Evaluation • Experimental Setup • Same testbed as empirical study • 48 Tmote Sky nodes • Same packet transmission rate • 200 packets/sec • RBS style time-synchronization
Evaluation 12.4% • Effect of Bmax • B’min = 1 • Multiplying factor: K • Allocate Bmaxi*K + 1 time slots, for i-thlink • As K increases • Average LB increase linearly • E2E DMR becomes 0 at K = 0.6 ! • Allocate Bmaxi*0.6 + 1 time slots -> save 12.4% latency • K allows us to control E2E DMR and LB ! • Avg. LB increases linearly
Evaluation • Effect of B’min • As B’min increases • LB decreases • Then starts to increases again ! • Minimize average LB by an intelligent selection of B’min.
Contributions • New model of link burstiness • Estimates maximum consecutive packet loss • Not captured by βfactor or PRR • New scheduling algorithms for E2E latency bounds • Empirical evaluation • 21 day link characterization • Testbed evaluation of LB miss ratio with 10 simultaneous streams
Conclusions • Can provide reasonable estimate of latency bounds • Not a guarantee • The “K” parameter helps control the trade-off between miss ratio and latency • One important step to combine wireless networking with real-time control
One Final Issue… • Change in burst behavior? • Packet Recovery • Each node queues un-transmitted packets. • Transmits later if free slot available. • Link Adaptation • Each node keeps a record when it fails to transmit • Sends this report to B.S. periodically • B.S. reschedules by doubling/ halving the allocated time slots • LB expands/shrinks dynamically
Stationarity • Can we assume that Bmax is stationary? • Can classify links: • Bursty links had highly variable Bmax • Non-bursty links were more consistent • Why? Due to physical dynamics • Must ensure that measurement period captures all physical dynamics • No stronger requirement than any model
IM • Characterizing Interference: • Define an Interference Matrix, IM • Measurement based on PRR