+ All Categories
Home > Documents > CEDAR Counter-Estimation Decoupling for Approximate Rates

CEDAR Counter-Estimation Decoupling for Approximate Rates

Date post: 23-Feb-2016
Category:
Upload: nitara
View: 29 times
Download: 0 times
Share this document with a friend
Description:
CEDAR Counter-Estimation Decoupling for Approximate Rates. Erez Tsidon. Joint work with Iddo Hanniel and Isaac Keslassy Technion , Israel. Network Flow Counters Usage. Network management applications require per-flow counters, for example: Congestion Control - PowerPoint PPT Presentation
Popular Tags:
21
CEDAR Counter-Estimation Decoupling for Approximate Rates Erez Tsidon Joint work with Iddo Hanniel and Isaac Keslassy Technion, Israel 1
Transcript
Page 1: CEDAR Counter-Estimation Decoupling for Approximate Rates

CEDARCounter-Estimation Decoupling for

Approximate Rates

Erez Tsidon

Joint work with Iddo Hanniel and Isaac KeslassyTechnion, Israel

1

Page 2: CEDAR Counter-Estimation Decoupling for Approximate Rates

Network Flow Counters Usage

Network management applications require per-flow counters, for example: Congestion Control Detection of Denial of Service Attacks Detection of Traffic Anomalies

Counter types: Packet counting Byte counting Rate measurement

2

Page 3: CEDAR Counter-Estimation Decoupling for Approximate Rates

Switch Example

DRAM is too slow, SRAM is too expensive

3

106 flows

Total Packet CountTotal Byte CountPacket RateCount event ACount event B

per-flow counters

64-bit width

High Speed Link Rate 10Gbps

Time frame of each packet is too short for DRAM access

Too much data to store on SRAM

Page 4: CEDAR Counter-Estimation Decoupling for Approximate Rates

Suggested Solutions

Hybrid SRAM-DRAM counters [Shah, Iyer, Prabhakar and McKeown ’02] Cannot support fast reading

Counter Braids – compress counters into small SRAM [Y. Lu et al ’08] Cannot decompress in real time

Heavy Hitters – store only high counters [Estan and Varghese ’03] No records of small counter values

4

Page 5: CEDAR Counter-Estimation Decoupling for Approximate Rates

Counter Estimation Solutions

Probabilistic way to estimate counters Less bits per counter, but estimation error cost

Intuitively we want counters to be as precise as possible, unbiased whenever possible, and scalable

SAC – R. Stanojevic, “Small Active Counters”, 2007 Exponent-Magnitude representation ScalableRestricted to specific representation that

prevents error optimization DISCO – C. Hu et al, “DISCO: Memory Efficient and Accurate Flow

Statistics for Network Measurement”, 2010 Convex conversion function that reduces increment valuesRestricted to a close function representation. No

scaling

5

Page 6: CEDAR Counter-Estimation Decoupling for Approximate Rates

Our Contributions

New CEDAR architecture: decoupling counters from estimators

Optimal estimators for the min-max relative error

Dynamic up-scale algorithm

6

Page 7: CEDAR Counter-Estimation Decoupling for Approximate Rates

CEDAR Architecture:Counter-Estimators Decoupling

7

995,784

1.2

1,000,000

1.2

Counter estimates

FN-1

FN-2

F1

F0

1,000,000

995,784

1.2

0

p(L-2)

p(1)

p(L-1)

p(1)

AL-1

AL-2

A1

A0

3.7 A2

Flow pointers

Shared estimators

FN-1

FN-2

F1

F0

Page 8: CEDAR Counter-Estimation Decoupling for Approximate Rates

01

4 4

CEDAR Increment Algorithm

941

A3

A2

A1

0A0

21113254.711

A7

A6

A5

A4

9410

21113254.711

9410

21113254.711

9410

21113254.711

time

p=1

p=1/3p=1/5

t=0 t=1 t=2 t=3

8

Upon packet arrival: with probability1j jF F 1

1

j jF F

pA A

Page 9: CEDAR Counter-Estimation Decoupling for Approximate Rates

Performance Measures

Traffic Amount : random variable that represents the number of real counter increments until we hit estimator

Relative error:

Known as “Coefficient of Variation” E.g. we may want a relative error of 1%

( )T a

X̂ a

9

2

( ) ( )( )

( ) ( )Var T a T a

T aE T a E T a

Page 10: CEDAR Counter-Estimation Decoupling for Approximate Rates

Min-Max Relative Error

Problem: given AL-1=M, find an estimation array that minimizes the maximal relative error δ such that:

Equivalently: δ is given maximize M Solution – equal relative error:

, ( )ll T A

10 , ( )ll T A

1

21

01 2

1 2

1

l

i ii

l l

A AA A

Page 11: CEDAR Counter-Estimation Decoupling for Approximate Rates

Equal Relative Error Example

11Estimation Values

Relative Error

δ

δ

A1 A2 A3

A1 A2 A3

δ

A1 A2 A3

Page 12: CEDAR Counter-Estimation Decoupling for Approximate Rates

Capacity Region of Static CEDAR

12

Example:• 12-bit counters• Max value 10^6min-max relative error 3%

Page 13: CEDAR Counter-Estimation Decoupling for Approximate Rates

4.5

1

Up-Scale Procedure

3

1

A3

A2

A1

0A0

211

132

54

11

A7

A6

A5

A4

24

5

2

0

517

314

156

93

54

11

p=0.5 0

p=0.43=(54-24)/(93-24)

93

13

A’ A’’

Up-scalethreshold

Initial relative error δ0

Increase the relative error

δ0+ δstep

Page 14: CEDAR Counter-Estimation Decoupling for Approximate Rates

CEDAR Unbiasedness

14Based on a real Internet trace. δ0 = 1%, δstep = 0.5%

Page 15: CEDAR Counter-Estimation Decoupling for Approximate Rates

CEDAR Equal Error

15

Page 16: CEDAR Counter-Estimation Decoupling for Approximate Rates

CEDAR Vs. SAC & DISCO 12-bit

16

4096 estima

tors

Page 17: CEDAR Counter-Estimation Decoupling for Approximate Rates

CEDAR Vs. SAC & DISCO 8-bit

17

256estima

tors

Page 18: CEDAR Counter-Estimation Decoupling for Approximate Rates

CEDAR Error Adjustment 12-bit

18

Page 19: CEDAR Counter-Estimation Decoupling for Approximate Rates

CEDAR Implementation on FPGA

19

5.4 Gbps

12K gates

Page 20: CEDAR Counter-Estimation Decoupling for Approximate Rates

CEDAR Summary

Decoupling flexible estimators Scalable estimation Attains the min-max relative error FPGA supports link rate of 5.4Gbps and may

increase to tens of Gbps on ASIC

20

Page 21: CEDAR Counter-Estimation Decoupling for Approximate Rates

Thank you.

21


Recommended