Professional Documents
Culture Documents
Faster and More Accurate Measurement Through Additive-Error Counters
Faster and More Accurate Measurement Through Additive-Error Counters
Measurement through
Additive-Error Counters
Ran Ben Basat Michael Mitzenmacher
Harvard University Harvard University
INFOCOM 2020
Network Measurements
Applications:
• DDoS prevention
• Traffic engineering
• SLA enforcement VM1 VM2 VM3 VM4
APP APP APP APP
•… OS OS OS OS
vSwitch
• Cache residency
• Harder to support high rates
• Constraints:
• Limited memory.
• Limited processing time per item.
𝑤𝑖𝑑𝑡h 𝑤
Count Min Sketch (Cormode et al.,
2005)
0 0 0 0 0 0 0 0 0 0 h1
𝑑𝑒𝑝𝑡h 𝑑 0 0 0 0 0 0 0 0 0 0 h2
0 0 0 0 0 0 0 0 0 0 h3
𝑤𝑖𝑑𝑡h 𝑤
h1 ( )% 𝑤 h2 ( ) % 𝑤 h3 () % 𝑤
Count Min Sketch (Cormode et al.,
2005)
0 0 0 1 0 0 0 0 0 0 h1
𝑑𝑒𝑝𝑡h 𝑑 1 0 0 0 0 0 0 0 0 0 h2
0 0 0 0 0 0 0 1 0 0 h3
𝑤𝑖𝑑𝑡h 𝑤
h1 ( )% 𝑤 h2 ( ) % 𝑤 h3 () % 𝑤
Count Min Sketch (Cormode et al.,
2005)
0 0 0 1 0 0 0 0 0 0 h1
𝑑𝑒𝑝𝑡h 𝑑 1 0 0 0 0 0 0 0 0 0 h2
0 0 0 0 0 0 0 1 0 0 h3
𝑤𝑖𝑑𝑡h 𝑤
h1 ( )% 𝑤 h2 ( ) % 𝑤 h3 () % 𝑤
Count Min Sketch (Cormode et al.,
2005)
0 0 0 2 0 0 0 0 0 0 h1
𝑑𝑒𝑝𝑡h 𝑑 1 0 0 0 1 0 0 0 0 0 h2
0 1 0 0 0 0 0 1 0 0 h3
𝑤𝑖𝑑𝑡h 𝑤
Count Min Sketch (Cormode et al.,
2005)
0 0 0 2 0 0 0 0 0 0 h1
𝑑𝑒𝑝𝑡h 𝑑 1 0 0 0 1 0 0 0 0 0 h2
0 1 0 0 0 0 0 1 0 0 h3
𝑤𝑖𝑑𝑡h 𝑤
h1 ( )% 𝑤 h2 ( ) % 𝑤 h3 () % 𝑤
Count Min Sketch (Cormode et al.,
2005)
0 0 0 2 0 0 0 0 0 1 h1
𝑑𝑒𝑝𝑡h 𝑑 2 0 0 0 1 0 0 0 0 0 h2
0 1 0 0 0 0 0 2 0 0 h3
𝑤𝑖𝑑𝑡h 𝑤
Count Min Sketch (Cormode et al.,
2005)
0 0 0 2 0 0 0 0 0 1 h1
𝑑𝑒𝑝𝑡h 𝑑 2 0 0 0 1 0 0 0 0 0 h2
0 1 0 0 0 0 0 2 0 0 h3
𝑤𝑖𝑑𝑡h 𝑤
( ) = min( h1 ( )% 𝑤 ,
h2 ( ) % 𝑤 ,
) = min(2,1,1) = 1
Count Min Sketch (Cormode et al.,
2005)
0 0 0 2 0 0 0 0 0 1 h1
𝑑𝑒𝑝𝑡h 𝑑 2 0 0 0 1 0 0 0 0 0 h2
0 1 0 0 0 0 0 2 0 0 h3
𝑤𝑖𝑑𝑡h 𝑤
( ) = min ( h1 ( )% 𝑤 ,
h2 ( ) % 𝑤 ,
) = min(2,2,2) = 2
Count Min Sketch (Cormode et al.,
2005)
𝑑𝑒𝑝𝑡h 𝑑
𝑤𝑖𝑑𝑡h 𝑤
0.99 Ignore
packet
Revisiting sketch counters
*
Overview of related work
0 0 0 2 0 0 0 0 0 1 h1
𝑑𝑒𝑝𝑡h 𝑑 3 0 0 0 1 0 0 0 0 0 h2
0 1 0 0 0 0 0 2 0 0 h3
𝑤𝑖𝑑𝑡h 𝑤
( )
𝑤𝑖𝑑𝑡h 𝑤
(3,2,2) =2
𝑤𝑖𝑑𝑡h 𝑤
𝑝 ( 2 )=0.5
𝑤𝑖𝑑𝑡h 𝑤
𝑝 ( 2 )=0.5
Accuracy Speed
Estimators
Sampling
Our work
Where is the magic?
Related work
1. Access sketch counters
2. Calculate the minimum
3. Flip a coin to increment the minimal counters
Our work
1. Flip a coin (with high probability do nothing)
2. Access sketch counters
3. Increment the minimal counters
Our Additive Error Estimators (AEE)
Probabilistic increment (): Adds one to our estimator with a
(fixed) probability .
𝑄𝑢𝑒𝑟𝑦=8 , 𝐸𝑥𝑎𝑐𝑡=8
***Overflow? then, before adding 1: 𝑝=0.25 1 0
Our : Additive Error Estimators (AEE)
AEE:
Probability bits 𝑓 (𝜖 , 𝛿)
Our : Additive Error Estimators (AEE)
AEE:
Probability bits 𝑓 (𝜖 , 𝛿)
AEE array:
Our: Additive Error Estimators (AEE)
AEE array:
𝑝 Data
1− 𝑝 Structure
Ignore
packet
Evaluation
• A single Core: i7-7700 CPU @3.60GHz.
*Yang, et al. "A Generic Technique for Sketches to Adapt to Different Counting Ranges." INFOCOM’19.
Evaluation: Accuracy