Author: Chengchen, Bin Liu Publisher: International Conference on Computational Science and...

13
Self-Tuning the Parameter of Adaptive Non-Linear Sampling Method for Flow Statistics Author: Chengchen, Bin Liu Publisher: International Conference on Computational Science and Engineering Presenter: Yun-Yan Chang Date: 2012/04/18 1

Transcript of Author: Chengchen, Bin Liu Publisher: International Conference on Computational Science and...

Page 1: Author: Chengchen, Bin Liu Publisher: International Conference on Computational Science and Engineering Presenter: Yun-Yan Chang Date: 2012/04/18 1.

1

Self-Tuning the Parameter of Adaptive Non-LinearSampling Method for Flow StatisticsAuthor: Chengchen, Bin Liu Publisher: International Conference on Computational Science and EngineeringPresenter: Yun-Yan ChangDate: 2012/04/18

Page 2: Author: Chengchen, Bin Liu Publisher: International Conference on Computational Science and Engineering Presenter: Yun-Yan Chang Date: 2012/04/18 1.

2

Flow statistics is a basic task of passive measurement and has been widely used to characterize the state of the network.

Adaptive Non-Linear Sampling (ANLS) is one of the most accurate and memory-efficient flow statistics method proposed recently.

This paper studies the parameter setting problem for ANLS.

Proposed a parameter self-tuning algorithm which enlarges the parameter to a equilibrium tuning point and renormalizes the counter when it overflows.

Introduction

Page 3: Author: Chengchen, Bin Liu Publisher: International Conference on Computational Science and Engineering Presenter: Yun-Yan Chang Date: 2012/04/18 1.

3

A method that adjusts the sampling rate according to the counter value.

No prediction or estimation of flow size distribution is required beforehand.

The counting process can be presented as   c ← c + 1 with probability p(c)

◦ c : the counter value◦ , 0 < a < 1.

Estimate flow length can be formulated as f(c)=[(1+a)c-1]/a.

Relative error of flow size can be presented as .

n: real flow size

ANLS

2/)/11( ane

1)1(1

)(

cacp

Page 4: Author: Chengchen, Bin Liu Publisher: International Conference on Computational Science and Engineering Presenter: Yun-Yan Chang Date: 2012/04/18 1.

4

Two major performance metrics for flow statistics:◦ Relative error

Measures the accuracy of a flow statistics method and can be quantified by coefficient of variation as shown in (3) for ANLS

◦ Counting range (related to memory consumption)

The largest flow size that a flow statistics method could record.

For ANLS, the counting range is B=[(1+a)c-1]/a.

Problem Statement

Page 5: Author: Chengchen, Bin Liu Publisher: International Conference on Computational Science and Engineering Presenter: Yun-Yan Chang Date: 2012/04/18 1.

5

Tradeoff between small relative error and large counting range

Problem Statement

Fig. 1. Relative error vs. parameter a when flow size n = 5000.

Fig. 2. Counting range vs. parameter a when the largest counter value is 256 (the counter is 8-bit width).

Page 6: Author: Chengchen, Bin Liu Publisher: International Conference on Computational Science and Engineering Presenter: Yun-Yan Chang Date: 2012/04/18 1.

6

When a counter overflows, a is adjusted from a1 to a larger value a2, and renormalized to a smaller value according to the reconfigured a2.

Parameter Self-Tuning Algorithm

Page 7: Author: Chengchen, Bin Liu Publisher: International Conference on Computational Science and Engineering Presenter: Yun-Yan Chang Date: 2012/04/18 1.

7

Determine the equilibrium point for tuning the parameter.◦ Accuracy utility (Ue)

e1 and e2 are the relative error before and after the parameter tuning.

◦ Counting Range Utility (Ub)

B1 and B2 are the counting range before and after the parameter tuning.

Equilibrium Tuning Point

1max

2max

eE

eEU e

2

12

B

BBU b

Page 8: Author: Chengchen, Bin Liu Publisher: International Conference on Computational Science and Engineering Presenter: Yun-Yan Chang Date: 2012/04/18 1.

8

Equilibrium Tuning Point

Fig. 3. Finding the equilibrium tuning point.

Page 9: Author: Chengchen, Bin Liu Publisher: International Conference on Computational Science and Engineering Presenter: Yun-Yan Chang Date: 2012/04/18 1.

9

To keep the inverse estimations before and after the tuning is the same.◦ Suppose the counter value and parameter before tuning

is c1 and a1, after tuning is c2 and a2, the estimations are:

◦ (13) and (14) provide the same estimation

Renormalization

Page 10: Author: Chengchen, Bin Liu Publisher: International Conference on Computational Science and Engineering Presenter: Yun-Yan Chang Date: 2012/04/18 1.

10

To keep the inverse estimations before and after the tuning is the same.

Renormalization

The counter is renormalized to with probability x - , and is reset to with probability 1 − (x− ).

X X

X X

Page 11: Author: Chengchen, Bin Liu Publisher: International Conference on Computational Science and Engineering Presenter: Yun-Yan Chang Date: 2012/04/18 1.

11

Prove that the renormalization process does not introduce error and ensure the estimation is the same before and after renormalization.

Theorem: The expect error in renormalization process is zero.

Proof: Let From the Algorithm 3, the expected value of c2 can be

formulated asE(c2) = (X − ) + (1 − X + ) = X

Namely, f(E(c2)) = f(c1).

Evaluation

X X X X

Page 12: Author: Chengchen, Bin Liu Publisher: International Conference on Computational Science and Engineering Presenter: Yun-Yan Chang Date: 2012/04/18 1.

12

Growth of ANLS with and without counter renormalization.

Evaluation

Fig.4 Grow of the counter value

Page 13: Author: Chengchen, Bin Liu Publisher: International Conference on Computational Science and Engineering Presenter: Yun-Yan Chang Date: 2012/04/18 1.

13

Relative error of ANLS with and without parameter tuning under different traffic scenarios.

Evaluation