SlideShare a Scribd company logo
1 of 55
Download to read offline
1Challenge the future
Neighborhood Cardinality Estimation
in Dynamic Wireless Networks
Marco Cattani, M. Zuniga, A. Loukas, K. Langendoen
Embedded Software Group, Delft University of Technology
2Challenge the future
Motivations
Improve safety of people during an outdoor
festival
© Alex Prager
3Challenge the future
Motivations
Helping people to avoid areas where density
crosses dangerous thresholds
© Alex Prager
4Challenge the future
Requirements
•  Providing each participant
with a compact, battery
powered device
•  Concurrently estimate and
communicate the density of
the crowd
Helping people to avoid areas where density
crosses dangerous thresholds
5Challenge the future
Requirements
•  Providing each participant
with a compact, battery
powered device
•  Concurrently estimate and
communicate the density of
the crowd neighborhood
cardinality
Helping people to avoid areas where density
crosses dangerous thresholds
6Challenge the future
Existing solutions
Error Scale Energy Concur. Speed
Existing works on cardinality estimation do
not fit our requirements
7Challenge the future
Existing solutions
Error Scale Energy Concur. Speed
RFID Low 1000 Low No Fast
Existing works on cardinality estimation do
not fit our requirements
8Challenge the future
Existing solutions
Error Scale Energy Concur. Speed
RFID Low 1000 Low No Fast
Group testing Low 10 - No V. Fast
Existing works on cardinality estimation do
not fit our requirements
9Challenge the future
Existing solutions
Error Scale Energy Concur. Speed
RFID Low 1000 Low No Fast
Group testing Low 10 - No V. Fast
Neigh. Discovery Low 10 Low Yes Slow
Existing works on cardinality estimation do
not fit our requirements
10Challenge the future
Existing solutions
Error Scale Energy Concur. Speed
RFID Low 1000 Low No Fast
Group testing Low 10 - No V. Fast
Neigh. Discovery Low 10 Low Yes Slow
Mobile phones High 10 High Yes Fast
Existing works on cardinality estimation do
not fit our requirements
11Challenge the future
Existing solutions
Error Scale Energy Concur. Speed
RFID Low 1000 Low No Fast
Group testing Low 10 - No V. Fast
Neigh. Discovery Low 10 Low Yes Slow
Mobile phones High 10 High Yes Fast
Estreme Low 100s Low Yes Fast
Existing works on cardinality estimation do
not fit our requirements
12Challenge the future
Estreme’s mechanism
13Challenge the future
The basic idea
When a room get crowded, the more persons
the less is the personal space (in orange)
Person
Personal
space
14Challenge the future
The basic idea
When a room get crowded, the more persons
the less is the personal space (in orange)
15Challenge the future
The basic idea
When a room get crowded, the more persons
the less is the personal space (in orange)
16Challenge the future
The same idea applies in time.
17Challenge the future
The basic idea
The more devices (that periodically generate
an event), the shorter is the inter-arrival time
1
2
7
Period
Inter-arrival time
Event
18Challenge the future
The basic idea
The more devices (that periodically generate
an event), the shorter is the inter-arrival time
1
2
3
7
19Challenge the future
The basic idea
The more devices (that periodically generate
an event), the shorter is the inter-arrival time
1
2
4
5
3
7
20Challenge the future
The basic idea
The more devices (that periodically generate
an event), the shorter is the inter-arrival time
1
2
4
5
3
6
7
21Challenge the future
Model
E(n) = ( period / cardinality )
Given N devices (that periodically generate an
event), the expected inter-arrival length (n) is
22Challenge the future
Model
E(n) = ( period / cardinality )
inverting
Cardinality = ( period / n ) – 1
Given N devices (that periodically generate an
event), the expected inter-arrival length (n) is
23Challenge the future
Model
E(n) = ( period / cardinality )
inverting
Cardinality = ( period / n ) – 1
Given N devices (that periodically generate an
event), the expected inter-arrival length (n) is
ESTREME
24Challenge the future
Implementation
25Challenge the future
Implementation
•  Duty cycling
Apply Estreme
•  Periodic event: wakeup
We implemented Estreme in Contiki OS, on top
of an asynchronous low-power listening MAC
1
2
rendezvous
B1 BB
4 A1
3
inter-
arrival
26Challenge the future
Implementation
•  Duty cycling
•  Low-power listening
•  First (next) awake neighbor
Apply Estreme
•  Periodic event: wakeup
•  Inter-arrival: rendezvous
We implemented Estreme in Contiki OS, on top
of an asynchronous low-power listening MAC
1
2
rendezvous
B1 BB
4 A1
3
inter-
arrival
27Challenge the future
Implementation
•  Detect collision
•  Retransmit the last ACK with
a given probability
Nodes must rendezvous with the first awake
neighbor
A1
B B1
2
rendezvous
B1 BB
4 A1
3
inter-
arrival
A1
delay
28Challenge the future
Implementation
•  Detect collision
•  Retransmit the last ACK with
a given probability
•  Accurate timing
•  Measure delay
Still, due to delays, the rendezvous time is
longer than the inter-arrival time
A1
B1
2
rendezvous
B1 BB
4 A1
3
inter-
arrival
A1
delays
29Challenge the future
Implementation
•  Detect collision
•  Retransmit the last ACK with
a given probability
•  Accurate timing
•  Measure delay
Still, due to delays, the rendezvous time is
longer than the inter-arrival time
A1
B1
2
rendezvous
B1 BB
4 A1
3
inter-
arrival
A1
delays
30Challenge the future
Implementation
•  Detect collision
•  Retransmit the last ACK with
a given probability
•  Accurate timing
•  Measure delay
Still, due to delays, the rendezvous time is
longer than the inter-arrival time
A1
B1
2
rendezvous
B1 BB
4 A1
3
inter-
arrival
A1
delays
31Challenge the future
Implementation
•  Detect collision
•  Retransmit the last ACK with
a given probability
•  Accurate timing
•  Measure delay
Still, due to delays, the rendezvous time is
longer than the inter-arrival time
A1
B1
2
rendezvous
B1 BB
4 A1
3
inter-
arrival
A1
delays
32Challenge the future
A1
B1
2
rendezvous
B1 BB
4 A1
3
inter-
arrival
A1
delays
Implementation
•  Detect collision
•  Retransmit the last ACK with
a given probability
•  Accurate timing
•  Measure delay
•  Append delay to
acknowledgments
Still, due to delays, the rendezvous time is
longer than the inter-arrival time
33Challenge the future
Implementation
•  Detect collision
•  Retransmit the last ACK with
a given probability
•  Accurate timing
•  Measure delay
•  Append delay to
acknowledgments
Still, due to delays, the rendezvous time is
longer than the inter-arrival time
A1
B1
2
rendezvous
B1 BB
4 A1
3
inter-
arrival
A1
delays
34Challenge the future
Tight bound
Effects of a delay (ε) in the measurements on
the estimation error (e)
Ε[e]= Θ −
ρ
1+ ρ
$
%
&
'
(
) , ρ =
ε(n +1)
period
35Challenge the future
Tight bound
1.  To reduce the error we want ρ to be as small as possible.
A longer delay ε, increases the estimation error (under-
estimation).
Effects of a delay (ε) in the measurements on
the estimation error (e)
Ε[e]= Θ −
ρ
1+ ρ
$
%
&
'
(
) , ρ =
ε(n +1)
period
36Challenge the future
Tight bound
2.  Given a fixed delay, a shorter period increases the
estimation error
Effects of a delay (ε) in the measurements on
the estimation error (e)
Ε[e]= Θ −
ρ
1+ ρ
$
%
&
'
(
) , ρ =
ε(n +1)
period
37Challenge the future
Tight bound
3.  Given a fixed delay, with more devices, the estimation error
increases
Effects of a delay (ε) in the measurements on
the estimation error (e)
Ε[e]= Θ −
ρ
1+ ρ
$
%
&
'
(
) , ρ =
ε(n +1)
period
38Challenge the future
Tight bound
4.  Estreme requires sub-millisecond accuracy. Example:
Period = 1 s, n = 100 neighbors, ε = 1 ms à 9% error
Effects of a delay (ε) in the measurements on
the estimation error (e)
Ε[e]= Θ −
ρ
1+ ρ
$
%
&
'
(
) , ρ =
ε(n +1)
period
39Challenge the future
Implementation
•  T-Estreme (Time)
•  Periodically measure the
inter-arrival times
•  Average the last
measured samples (n)
Nodes must collect several inter-arrival times
(samples) to estimate the cardinality
2
3 2 3 4 3
1
2 2 1 3 2
B
A
40Challenge the future
Implementation
•  T-Estreme (Time)
•  Periodically measure the
inter-arrival times
•  S-Estreme (Space)
•  Periodically exchange
average inter-arrivals
Nodes must collect several inter-arrival times
(samples) to estimate the cardinality
2
3 2 3 4 3
1
2 2 1 3 2
B
A
2
3
41Challenge the future
Evaluation
42Challenge the future
Evaluation
0
20
40
60
80
100
cardinality
node positions
L R
Our testbed consists of 100 nodes with
MSP430 processors and CC1101 transceivers
43Challenge the future
Evaluation
0
20
40
60
80
100
cardinality
node positions
L R
It offers a wide range of neighborhood
cardinalities
44Challenge the future
Evaluation
0
20
40
60
80
100
cardinality
node positions
L R
And a long transmission range. This means
high cardinalities, but also drastic changes!
45Challenge the future
Evaluation
•  Inspired by most recent works in group testing protocols
•  On-demand cardinality estimator based on rounds
•  Each round, nodes answer with a decreasing probability
•  Count number of non-empty rounds (RSSI)
PROS: fast and resilient to collisions
CONS: sensitive to noise, only one estimator
Compared Estreme to a state-of-the-art
technique (Baseline)
46Challenge the future
Accuracy in static scenarios
1) At low cardinalities, Estreme is comparable
to state-of-the-art techniques
10 15 20 30 40 50 60 80 100
0
0.2
0.4
0.6
neighborhood cardinality
relativeerror
T−Estreme S−Estreme Baseline
47Challenge the future
Accuracy in static scenarios
2) At higher cardinalities, Estreme is way
better than the state-of-the-art
10 15 20 30 40 50 60 80 100
0
0.2
0.4
0.6
neighborhood cardinality
relativeerror
T−Estreme S−Estreme Baseline
48Challenge the future
Accuracy in static scenarios
3) Estreme’ s accuracy is stable across
different cardinalities
10 15 20 30 40 50 60 80 100
0
0.2
0.4
0.6
neighborhood cardinality
relativeerror
T−Estreme S−Estreme Baseline
49Challenge the future
Tight bound
3.  Given a fixed delay, with more devices, the estimation error
increases
Effects of a delay (ε) in the measurements on
the estimation error (e)
Ε[e]= Θ −
ρ
1+ ρ
$
%
&
'
(
) , ρ =
ε(n +1)
period
50Challenge the future
Accuracy in static scenarios
Why is the estimation accuracy stable across
all the densities?
0
200
10 15 20
0
200
30 40 50
−40 0 40
0
200
60
−40 0 40
80
−40 0 40
100
Count
Deviation from expected value [ms]
Cardinality
51Challenge the future
Estimation characteristics
S-Estreme provide a smoother signal, but
suffers when the cardinality changes in space
0
50
100
150
nodes
cardinality
L R
T−Estreme S−Estreme Ground truth
52Challenge the future
Adaptability to changes
Under network dynamics, Estreme adapts to
sudden cardinality changes in few minutes
0 15 30 45 60 75 90
0
50
100
150
time (minutes)
cardinality
T−Estreme S−Estreme Ground truth
53Challenge the future
Adaptability to changes
An hybrid solution provides the right
trade-off between crispness and smoothness
0 5 10 15 20 25 30 35 40 45
0
50
100
150
L R
time (minutes)
cardinality
T−Estreme S−Estreme Hybrid G.Truth
54Challenge the future
Conclusions
Problem
Neighborhood Cardinality
Estreme
Generic Framework
Implementation
Cooperative Behaviors
Evaluation
Accurate and Agile
55Challenge the future
Conclusions
Problem
Neighborhood Cardinality
Estreme
Generic Framework
Implementation
Cooperative Behaviors
Evaluation
Accurate and Agile

More Related Content

Similar to Lightweight Neighborhood Cardinality Estimation in Dynamic Wireless Networks (IPSN 2014)

2014.10.dartmouth
2014.10.dartmouth2014.10.dartmouth
2014.10.dartmouthQiqi Wang
 
Mncs 16-08-3주-변승규-opportunistic flooding in low-duty-cycle wireless sensor ne...
Mncs 16-08-3주-변승규-opportunistic flooding in low-duty-cycle wireless sensor ne...Mncs 16-08-3주-변승규-opportunistic flooding in low-duty-cycle wireless sensor ne...
Mncs 16-08-3주-변승규-opportunistic flooding in low-duty-cycle wireless sensor ne...Seung-gyu Byeon
 
Tracing Tuples Across Dimensions: A Comparison of Scatterplots and Parallel C...
Tracing Tuples Across Dimensions: A Comparison of Scatterplots and Parallel C...Tracing Tuples Across Dimensions: A Comparison of Scatterplots and Parallel C...
Tracing Tuples Across Dimensions: A Comparison of Scatterplots and Parallel C...Kimberly Aguada
 
Aritra Sarkar - Search and Optimisation Algorithms for Genomics on Quantum Ac...
Aritra Sarkar - Search and Optimisation Algorithms for Genomics on Quantum Ac...Aritra Sarkar - Search and Optimisation Algorithms for Genomics on Quantum Ac...
Aritra Sarkar - Search and Optimisation Algorithms for Genomics on Quantum Ac...Tom Hubregtsen
 
Cost Optimized Design Technique for Pseudo-Random Numbers in Cellular Automata
Cost Optimized Design Technique for Pseudo-Random Numbers in Cellular AutomataCost Optimized Design Technique for Pseudo-Random Numbers in Cellular Automata
Cost Optimized Design Technique for Pseudo-Random Numbers in Cellular Automataijait
 
Virus, Vaccines, Genes and Quantum - 2020-06-18
Virus, Vaccines, Genes and Quantum - 2020-06-18Virus, Vaccines, Genes and Quantum - 2020-06-18
Virus, Vaccines, Genes and Quantum - 2020-06-18Aritra Sarkar
 
Improving Hardware Efficiency for DNN Applications
Improving Hardware Efficiency for DNN ApplicationsImproving Hardware Efficiency for DNN Applications
Improving Hardware Efficiency for DNN ApplicationsChester Chen
 
Audio Processing
Audio ProcessingAudio Processing
Audio Processinganeetaanu
 
QX Simulator and quantum programming - 2020-04-28
QX Simulator and quantum programming - 2020-04-28QX Simulator and quantum programming - 2020-04-28
QX Simulator and quantum programming - 2020-04-28Aritra Sarkar
 
SVD and the Netflix Dataset
SVD and the Netflix DatasetSVD and the Netflix Dataset
SVD and the Netflix DatasetBen Mabey
 
Staffetta: Smart Duty-Cycling for Opportunistic Data Collection
Staffetta: Smart Duty-Cycling for Opportunistic Data CollectionStaffetta: Smart Duty-Cycling for Opportunistic Data Collection
Staffetta: Smart Duty-Cycling for Opportunistic Data CollectionMarco Cattani
 
Go Reactive: Event-Driven, Scalable, Resilient & Responsive Systems
Go Reactive: Event-Driven, Scalable, Resilient & Responsive SystemsGo Reactive: Event-Driven, Scalable, Resilient & Responsive Systems
Go Reactive: Event-Driven, Scalable, Resilient & Responsive SystemsJonas Bonér
 
Quarks zk study-club
Quarks zk study-clubQuarks zk study-club
Quarks zk study-clubAlex Pruden
 
The Extraordinary World of Quantum Computing
The Extraordinary World of Quantum ComputingThe Extraordinary World of Quantum Computing
The Extraordinary World of Quantum ComputingTim Ellison
 
Adaptive Honeypot Engagement through Reinforcement Learning of Semi-Markov De...
Adaptive Honeypot Engagement through Reinforcement Learning of Semi-Markov De...Adaptive Honeypot Engagement through Reinforcement Learning of Semi-Markov De...
Adaptive Honeypot Engagement through Reinforcement Learning of Semi-Markov De...Linan Huang
 
Intelligent Handwriting Recognition_MIL_presentation_v3_final
Intelligent Handwriting Recognition_MIL_presentation_v3_finalIntelligent Handwriting Recognition_MIL_presentation_v3_final
Intelligent Handwriting Recognition_MIL_presentation_v3_finalSuhas Pillai
 
Computational Techniques for the Statistical Analysis of Big Data in R
Computational Techniques for the Statistical Analysis of Big Data in RComputational Techniques for the Statistical Analysis of Big Data in R
Computational Techniques for the Statistical Analysis of Big Data in Rherbps10
 
EC8553 Discrete time signal processing
EC8553 Discrete time signal processing EC8553 Discrete time signal processing
EC8553 Discrete time signal processing ssuser2797e4
 

Similar to Lightweight Neighborhood Cardinality Estimation in Dynamic Wireless Networks (IPSN 2014) (20)

2014.10.dartmouth
2014.10.dartmouth2014.10.dartmouth
2014.10.dartmouth
 
Mncs 16-08-3주-변승규-opportunistic flooding in low-duty-cycle wireless sensor ne...
Mncs 16-08-3주-변승규-opportunistic flooding in low-duty-cycle wireless sensor ne...Mncs 16-08-3주-변승규-opportunistic flooding in low-duty-cycle wireless sensor ne...
Mncs 16-08-3주-변승규-opportunistic flooding in low-duty-cycle wireless sensor ne...
 
Tracing Tuples Across Dimensions: A Comparison of Scatterplots and Parallel C...
Tracing Tuples Across Dimensions: A Comparison of Scatterplots and Parallel C...Tracing Tuples Across Dimensions: A Comparison of Scatterplots and Parallel C...
Tracing Tuples Across Dimensions: A Comparison of Scatterplots and Parallel C...
 
Aritra Sarkar - Search and Optimisation Algorithms for Genomics on Quantum Ac...
Aritra Sarkar - Search and Optimisation Algorithms for Genomics on Quantum Ac...Aritra Sarkar - Search and Optimisation Algorithms for Genomics on Quantum Ac...
Aritra Sarkar - Search and Optimisation Algorithms for Genomics on Quantum Ac...
 
Cost Optimized Design Technique for Pseudo-Random Numbers in Cellular Automata
Cost Optimized Design Technique for Pseudo-Random Numbers in Cellular AutomataCost Optimized Design Technique for Pseudo-Random Numbers in Cellular Automata
Cost Optimized Design Technique for Pseudo-Random Numbers in Cellular Automata
 
Virus, Vaccines, Genes and Quantum - 2020-06-18
Virus, Vaccines, Genes and Quantum - 2020-06-18Virus, Vaccines, Genes and Quantum - 2020-06-18
Virus, Vaccines, Genes and Quantum - 2020-06-18
 
Improving Hardware Efficiency for DNN Applications
Improving Hardware Efficiency for DNN ApplicationsImproving Hardware Efficiency for DNN Applications
Improving Hardware Efficiency for DNN Applications
 
Audio Processing
Audio ProcessingAudio Processing
Audio Processing
 
2017 10 17_quantum_program_v2
2017 10 17_quantum_program_v22017 10 17_quantum_program_v2
2017 10 17_quantum_program_v2
 
QX Simulator and quantum programming - 2020-04-28
QX Simulator and quantum programming - 2020-04-28QX Simulator and quantum programming - 2020-04-28
QX Simulator and quantum programming - 2020-04-28
 
SVD and the Netflix Dataset
SVD and the Netflix DatasetSVD and the Netflix Dataset
SVD and the Netflix Dataset
 
Staffetta: Smart Duty-Cycling for Opportunistic Data Collection
Staffetta: Smart Duty-Cycling for Opportunistic Data CollectionStaffetta: Smart Duty-Cycling for Opportunistic Data Collection
Staffetta: Smart Duty-Cycling for Opportunistic Data Collection
 
Go Reactive: Event-Driven, Scalable, Resilient & Responsive Systems
Go Reactive: Event-Driven, Scalable, Resilient & Responsive SystemsGo Reactive: Event-Driven, Scalable, Resilient & Responsive Systems
Go Reactive: Event-Driven, Scalable, Resilient & Responsive Systems
 
Quarks zk study-club
Quarks zk study-clubQuarks zk study-club
Quarks zk study-club
 
The Extraordinary World of Quantum Computing
The Extraordinary World of Quantum ComputingThe Extraordinary World of Quantum Computing
The Extraordinary World of Quantum Computing
 
Adaptive Honeypot Engagement through Reinforcement Learning of Semi-Markov De...
Adaptive Honeypot Engagement through Reinforcement Learning of Semi-Markov De...Adaptive Honeypot Engagement through Reinforcement Learning of Semi-Markov De...
Adaptive Honeypot Engagement through Reinforcement Learning of Semi-Markov De...
 
Intelligent Handwriting Recognition_MIL_presentation_v3_final
Intelligent Handwriting Recognition_MIL_presentation_v3_finalIntelligent Handwriting Recognition_MIL_presentation_v3_final
Intelligent Handwriting Recognition_MIL_presentation_v3_final
 
GDRR Opening Workshop - Variance Reduction for Reliability Assessment with St...
GDRR Opening Workshop - Variance Reduction for Reliability Assessment with St...GDRR Opening Workshop - Variance Reduction for Reliability Assessment with St...
GDRR Opening Workshop - Variance Reduction for Reliability Assessment with St...
 
Computational Techniques for the Statistical Analysis of Big Data in R
Computational Techniques for the Statistical Analysis of Big Data in RComputational Techniques for the Statistical Analysis of Big Data in R
Computational Techniques for the Statistical Analysis of Big Data in R
 
EC8553 Discrete time signal processing
EC8553 Discrete time signal processing EC8553 Discrete time signal processing
EC8553 Discrete time signal processing
 

Recently uploaded

Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLScyllaDB
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
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
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
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
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationSlibray Presentation
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Commit University
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfRankYa
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr LapshynFwdays
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfSeasiaInfotech2
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 

Recently uploaded (20)

Developer Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQLDeveloper Data Modeling Mistakes: From Postgres to NoSQL
Developer Data Modeling Mistakes: From Postgres to NoSQL
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
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
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
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
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Connect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck PresentationConnect Wave/ connectwave Pitch Deck Presentation
Connect Wave/ connectwave Pitch Deck Presentation
 
Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!Nell’iperspazio con Rocket: il Framework Web di Rust!
Nell’iperspazio con Rocket: il Framework Web di Rust!
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
Search Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdfSearch Engine Optimization SEO PDF for 2024.pdf
Search Engine Optimization SEO PDF for 2024.pdf
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
"Federated learning: out of reach no matter how close",Oleksandr Lapshyn
 
The Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdfThe Future of Software Development - Devin AI Innovative Approach.pdf
The Future of Software Development - Devin AI Innovative Approach.pdf
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 

Lightweight Neighborhood Cardinality Estimation in Dynamic Wireless Networks (IPSN 2014)

  • 1. 1Challenge the future Neighborhood Cardinality Estimation in Dynamic Wireless Networks Marco Cattani, M. Zuniga, A. Loukas, K. Langendoen Embedded Software Group, Delft University of Technology
  • 2. 2Challenge the future Motivations Improve safety of people during an outdoor festival © Alex Prager
  • 3. 3Challenge the future Motivations Helping people to avoid areas where density crosses dangerous thresholds © Alex Prager
  • 4. 4Challenge the future Requirements •  Providing each participant with a compact, battery powered device •  Concurrently estimate and communicate the density of the crowd Helping people to avoid areas where density crosses dangerous thresholds
  • 5. 5Challenge the future Requirements •  Providing each participant with a compact, battery powered device •  Concurrently estimate and communicate the density of the crowd neighborhood cardinality Helping people to avoid areas where density crosses dangerous thresholds
  • 6. 6Challenge the future Existing solutions Error Scale Energy Concur. Speed Existing works on cardinality estimation do not fit our requirements
  • 7. 7Challenge the future Existing solutions Error Scale Energy Concur. Speed RFID Low 1000 Low No Fast Existing works on cardinality estimation do not fit our requirements
  • 8. 8Challenge the future Existing solutions Error Scale Energy Concur. Speed RFID Low 1000 Low No Fast Group testing Low 10 - No V. Fast Existing works on cardinality estimation do not fit our requirements
  • 9. 9Challenge the future Existing solutions Error Scale Energy Concur. Speed RFID Low 1000 Low No Fast Group testing Low 10 - No V. Fast Neigh. Discovery Low 10 Low Yes Slow Existing works on cardinality estimation do not fit our requirements
  • 10. 10Challenge the future Existing solutions Error Scale Energy Concur. Speed RFID Low 1000 Low No Fast Group testing Low 10 - No V. Fast Neigh. Discovery Low 10 Low Yes Slow Mobile phones High 10 High Yes Fast Existing works on cardinality estimation do not fit our requirements
  • 11. 11Challenge the future Existing solutions Error Scale Energy Concur. Speed RFID Low 1000 Low No Fast Group testing Low 10 - No V. Fast Neigh. Discovery Low 10 Low Yes Slow Mobile phones High 10 High Yes Fast Estreme Low 100s Low Yes Fast Existing works on cardinality estimation do not fit our requirements
  • 13. 13Challenge the future The basic idea When a room get crowded, the more persons the less is the personal space (in orange) Person Personal space
  • 14. 14Challenge the future The basic idea When a room get crowded, the more persons the less is the personal space (in orange)
  • 15. 15Challenge the future The basic idea When a room get crowded, the more persons the less is the personal space (in orange)
  • 16. 16Challenge the future The same idea applies in time.
  • 17. 17Challenge the future The basic idea The more devices (that periodically generate an event), the shorter is the inter-arrival time 1 2 7 Period Inter-arrival time Event
  • 18. 18Challenge the future The basic idea The more devices (that periodically generate an event), the shorter is the inter-arrival time 1 2 3 7
  • 19. 19Challenge the future The basic idea The more devices (that periodically generate an event), the shorter is the inter-arrival time 1 2 4 5 3 7
  • 20. 20Challenge the future The basic idea The more devices (that periodically generate an event), the shorter is the inter-arrival time 1 2 4 5 3 6 7
  • 21. 21Challenge the future Model E(n) = ( period / cardinality ) Given N devices (that periodically generate an event), the expected inter-arrival length (n) is
  • 22. 22Challenge the future Model E(n) = ( period / cardinality ) inverting Cardinality = ( period / n ) – 1 Given N devices (that periodically generate an event), the expected inter-arrival length (n) is
  • 23. 23Challenge the future Model E(n) = ( period / cardinality ) inverting Cardinality = ( period / n ) – 1 Given N devices (that periodically generate an event), the expected inter-arrival length (n) is ESTREME
  • 25. 25Challenge the future Implementation •  Duty cycling Apply Estreme •  Periodic event: wakeup We implemented Estreme in Contiki OS, on top of an asynchronous low-power listening MAC 1 2 rendezvous B1 BB 4 A1 3 inter- arrival
  • 26. 26Challenge the future Implementation •  Duty cycling •  Low-power listening •  First (next) awake neighbor Apply Estreme •  Periodic event: wakeup •  Inter-arrival: rendezvous We implemented Estreme in Contiki OS, on top of an asynchronous low-power listening MAC 1 2 rendezvous B1 BB 4 A1 3 inter- arrival
  • 27. 27Challenge the future Implementation •  Detect collision •  Retransmit the last ACK with a given probability Nodes must rendezvous with the first awake neighbor A1 B B1 2 rendezvous B1 BB 4 A1 3 inter- arrival A1 delay
  • 28. 28Challenge the future Implementation •  Detect collision •  Retransmit the last ACK with a given probability •  Accurate timing •  Measure delay Still, due to delays, the rendezvous time is longer than the inter-arrival time A1 B1 2 rendezvous B1 BB 4 A1 3 inter- arrival A1 delays
  • 29. 29Challenge the future Implementation •  Detect collision •  Retransmit the last ACK with a given probability •  Accurate timing •  Measure delay Still, due to delays, the rendezvous time is longer than the inter-arrival time A1 B1 2 rendezvous B1 BB 4 A1 3 inter- arrival A1 delays
  • 30. 30Challenge the future Implementation •  Detect collision •  Retransmit the last ACK with a given probability •  Accurate timing •  Measure delay Still, due to delays, the rendezvous time is longer than the inter-arrival time A1 B1 2 rendezvous B1 BB 4 A1 3 inter- arrival A1 delays
  • 31. 31Challenge the future Implementation •  Detect collision •  Retransmit the last ACK with a given probability •  Accurate timing •  Measure delay Still, due to delays, the rendezvous time is longer than the inter-arrival time A1 B1 2 rendezvous B1 BB 4 A1 3 inter- arrival A1 delays
  • 32. 32Challenge the future A1 B1 2 rendezvous B1 BB 4 A1 3 inter- arrival A1 delays Implementation •  Detect collision •  Retransmit the last ACK with a given probability •  Accurate timing •  Measure delay •  Append delay to acknowledgments Still, due to delays, the rendezvous time is longer than the inter-arrival time
  • 33. 33Challenge the future Implementation •  Detect collision •  Retransmit the last ACK with a given probability •  Accurate timing •  Measure delay •  Append delay to acknowledgments Still, due to delays, the rendezvous time is longer than the inter-arrival time A1 B1 2 rendezvous B1 BB 4 A1 3 inter- arrival A1 delays
  • 34. 34Challenge the future Tight bound Effects of a delay (ε) in the measurements on the estimation error (e) Ε[e]= Θ − ρ 1+ ρ $ % & ' ( ) , ρ = ε(n +1) period
  • 35. 35Challenge the future Tight bound 1.  To reduce the error we want ρ to be as small as possible. A longer delay ε, increases the estimation error (under- estimation). Effects of a delay (ε) in the measurements on the estimation error (e) Ε[e]= Θ − ρ 1+ ρ $ % & ' ( ) , ρ = ε(n +1) period
  • 36. 36Challenge the future Tight bound 2.  Given a fixed delay, a shorter period increases the estimation error Effects of a delay (ε) in the measurements on the estimation error (e) Ε[e]= Θ − ρ 1+ ρ $ % & ' ( ) , ρ = ε(n +1) period
  • 37. 37Challenge the future Tight bound 3.  Given a fixed delay, with more devices, the estimation error increases Effects of a delay (ε) in the measurements on the estimation error (e) Ε[e]= Θ − ρ 1+ ρ $ % & ' ( ) , ρ = ε(n +1) period
  • 38. 38Challenge the future Tight bound 4.  Estreme requires sub-millisecond accuracy. Example: Period = 1 s, n = 100 neighbors, ε = 1 ms à 9% error Effects of a delay (ε) in the measurements on the estimation error (e) Ε[e]= Θ − ρ 1+ ρ $ % & ' ( ) , ρ = ε(n +1) period
  • 39. 39Challenge the future Implementation •  T-Estreme (Time) •  Periodically measure the inter-arrival times •  Average the last measured samples (n) Nodes must collect several inter-arrival times (samples) to estimate the cardinality 2 3 2 3 4 3 1 2 2 1 3 2 B A
  • 40. 40Challenge the future Implementation •  T-Estreme (Time) •  Periodically measure the inter-arrival times •  S-Estreme (Space) •  Periodically exchange average inter-arrivals Nodes must collect several inter-arrival times (samples) to estimate the cardinality 2 3 2 3 4 3 1 2 2 1 3 2 B A 2 3
  • 42. 42Challenge the future Evaluation 0 20 40 60 80 100 cardinality node positions L R Our testbed consists of 100 nodes with MSP430 processors and CC1101 transceivers
  • 43. 43Challenge the future Evaluation 0 20 40 60 80 100 cardinality node positions L R It offers a wide range of neighborhood cardinalities
  • 44. 44Challenge the future Evaluation 0 20 40 60 80 100 cardinality node positions L R And a long transmission range. This means high cardinalities, but also drastic changes!
  • 45. 45Challenge the future Evaluation •  Inspired by most recent works in group testing protocols •  On-demand cardinality estimator based on rounds •  Each round, nodes answer with a decreasing probability •  Count number of non-empty rounds (RSSI) PROS: fast and resilient to collisions CONS: sensitive to noise, only one estimator Compared Estreme to a state-of-the-art technique (Baseline)
  • 46. 46Challenge the future Accuracy in static scenarios 1) At low cardinalities, Estreme is comparable to state-of-the-art techniques 10 15 20 30 40 50 60 80 100 0 0.2 0.4 0.6 neighborhood cardinality relativeerror T−Estreme S−Estreme Baseline
  • 47. 47Challenge the future Accuracy in static scenarios 2) At higher cardinalities, Estreme is way better than the state-of-the-art 10 15 20 30 40 50 60 80 100 0 0.2 0.4 0.6 neighborhood cardinality relativeerror T−Estreme S−Estreme Baseline
  • 48. 48Challenge the future Accuracy in static scenarios 3) Estreme’ s accuracy is stable across different cardinalities 10 15 20 30 40 50 60 80 100 0 0.2 0.4 0.6 neighborhood cardinality relativeerror T−Estreme S−Estreme Baseline
  • 49. 49Challenge the future Tight bound 3.  Given a fixed delay, with more devices, the estimation error increases Effects of a delay (ε) in the measurements on the estimation error (e) Ε[e]= Θ − ρ 1+ ρ $ % & ' ( ) , ρ = ε(n +1) period
  • 50. 50Challenge the future Accuracy in static scenarios Why is the estimation accuracy stable across all the densities? 0 200 10 15 20 0 200 30 40 50 −40 0 40 0 200 60 −40 0 40 80 −40 0 40 100 Count Deviation from expected value [ms] Cardinality
  • 51. 51Challenge the future Estimation characteristics S-Estreme provide a smoother signal, but suffers when the cardinality changes in space 0 50 100 150 nodes cardinality L R T−Estreme S−Estreme Ground truth
  • 52. 52Challenge the future Adaptability to changes Under network dynamics, Estreme adapts to sudden cardinality changes in few minutes 0 15 30 45 60 75 90 0 50 100 150 time (minutes) cardinality T−Estreme S−Estreme Ground truth
  • 53. 53Challenge the future Adaptability to changes An hybrid solution provides the right trade-off between crispness and smoothness 0 5 10 15 20 25 30 35 40 45 0 50 100 150 L R time (minutes) cardinality T−Estreme S−Estreme Hybrid G.Truth
  • 54. 54Challenge the future Conclusions Problem Neighborhood Cardinality Estreme Generic Framework Implementation Cooperative Behaviors Evaluation Accurate and Agile
  • 55. 55Challenge the future Conclusions Problem Neighborhood Cardinality Estreme Generic Framework Implementation Cooperative Behaviors Evaluation Accurate and Agile