36
Internet Tomography Bin Yu Statistics Department, UC Berkeley

Internet Tomography Bin Yu Statistics Department, UC Berkeley

Embed Size (px)

Citation preview

Page 1: Internet Tomography Bin Yu Statistics Department, UC Berkeley

Internet Tomography

Bin Yu

Statistics Department, UC Berkeley

Page 2: Internet Tomography Bin Yu Statistics Department, UC Berkeley

J. Cao, D. Davis, S. Vander Wiel,

G. Liang,

R. Castro, M. Coates, A. Hero, R. Nowak,

N. Taft.

Related papers:

Cao, Davis, Vander Wiel, and Yu (JASA, 2000), Coates, Hero, Nowak, and Yu (SPM, 2001) Liang and Yu (IEEE-SP, 2003), Castro, Coates, Liang, Nowak, and Yu (Statist. Sci., 2004), Liang, Yu, and Taft (Proc. ISIT04).

Collaborators

Page 3: Internet Tomography Bin Yu Statistics Department, UC Berkeley

Medical Tomography

• Computer assisted tomography (CAT scanning)• Positron emission tomography (PET scanning)• Single photon emission tomography (SPECT scanning)

All are inverse problems…

Page 4: Internet Tomography Bin Yu Statistics Department, UC Berkeley

Internet Tomography

Page 5: Internet Tomography Bin Yu Statistics Department, UC Berkeley

A Lucent Network

Page 6: Internet Tomography Bin Yu Statistics Department, UC Berkeley

Network Tomography

The term network tomography was first used by Vardi (1996) to capture the similarities between origin destination (OD) matrix estimation through link counts and medical tomography: in network inference, it is common that one does not observe quantities of interest but their aggregations instead and this goes beyond OD estimation.

Vardi (1996) also devised the linear tomography Poisson model for OD traffic estimation and the linear form (not the Poisson assumption) is shown later to approximate other network tomography problems (cf. Coates, Nowak, Hero and Yu, 2002).

Page 7: Internet Tomography Bin Yu Statistics Department, UC Berkeley

Why Network Tomography (NT)?

• Network monitoring and management need

- Link packet loss probability - Link delay - Origin-Destination (OD) traffic matrix - Topology/connectivity discovery - Intrusion detection and prevention - ...

They are not easily measured directly, but easily measurable indirectly.

• Network engineering and resource allocation include

- Routing optimization (OD information needed) - Quality of service guarantee - …

Page 8: Internet Tomography Bin Yu Statistics Department, UC Berkeley

NT Example 1: Multicast Link Delay Estimation

Probes are sent from the root of a multicasting tree (where routers duplicate the probes and send them to its downstream routers) and delays (Y) are observed at the receiver nodes only. The problem is to infer the distribution of internal links delay (X). Obviously, we have

Y=AX,

where 1's in the ith row of A specify the links that the ith component Y travels through.

t

t

t

t

t

x

x

x

y

y

,3

,2

,1

,2

,1

101

011

Page 9: Internet Tomography Bin Yu Statistics Department, UC Berkeley

dst-fddi1

dst-switch2

dst-local3

dst-corp4 total

4 1 4 2 4 3 4 4 4 orig-corp

3 1 3 2 3 3 3 4 3 orig-local

2 1 2 2 2 3 2 4 2 orig-switch

1 1 1 2 1 3 1 4 1 orig-fddi

• n = 4 edge nodes, 1 router, J=8, I=16.• J = n2 = 16 OD pairs in X • I = 7 independent links in Y

NT Example 2: OD Traffic Matrix Estimation

Page 10: Internet Tomography Bin Yu Statistics Department, UC Berkeley

Router 1 Link Data, Feb. 22

Page 11: Internet Tomography Bin Yu Statistics Department, UC Berkeley

General Linear Network Tomography Model

At a given time t,

X : unknown quantity of interest (of dim J) (e.g, link delay, traffic flow counts).

Y : known aggregations of X (of dim I).

Problem: predict or estimate X from Y with

AX = Y,

where A is a 0-1 routing matrix. Usually the number J of unknowns is much larger than number I of knowns, so it is a badly ill-posed linear inverse problem.

The special case of OD traffic matrix estimation is of most interest because of its importance to major service providers such as Sprint and AT&T.

Page 12: Internet Tomography Bin Yu Statistics Department, UC Berkeley

Heuristics to Recover X from Y.

Key observations:

• Due to the variability in the traffic, covariance of the Y or link measurements give hints on how to attribute traffic to the different OD pairs.

• The mean traffic level is related to the variance of the traffic.

Page 13: Internet Tomography Bin Yu Statistics Department, UC Berkeley

Roadmap for OD Estimation

• Gaussian Model with Mean-Variance Relationship

• Maximum Likelihood Estimation (MLE) for Parameters

• Iterative Proportional Fitting (IPF) for OD Traffic Estimation based on Parameter Estimation

• Maximum Pseudo-Likelihood Estimation (MPLE) for Parameters

• Sprint European Network Data Analysis

• A Geometric View: MPLE + IPF vs. Gravity Model + MMI

• New: A Partial Measurement Approach (APMA)

Page 14: Internet Tomography Bin Yu Statistics Department, UC Berkeley

OD: Link:

Where is the unknown parameter, and : positive scale parameter : unknown mean parameter c: power of variance growth with mean, fixed

• Variance relation to mean accounts for variations beyond Poisson (c=1 and =1).

The Gaussian mean-variance model was verified in Cao et al (2000) using LAN validation data and recently verified using Sprint European backbone validation data by Melinda et al (2002) and Global Crossing European and American backbone validation data by Gunnar et al (2004).

Basic Model (Cao et al, 2000)

),(diag

);',(Normal~

);,(Normal~

c

tt

t

AAAAxy

x

),(

Page 15: Internet Tomography Bin Yu Statistics Department, UC Berkeley

Theorem: is identifiable for fixed c.

For the ith origin-destination pair,

: link count at the origin interface : link count at the destination interface.

The only bytes that contribute to both of these counts are those from the ith OD pair, and thus

implying that i is determined up to the scale . Additional information from E(Y) identifies the scale and identifiability follows.

This proof formalizes the idea of using covariances between links motivated by the router 1 traffic plots.

dyoy

cido yy ),cov(

A Heuristic Identifiability Proof

Page 16: Internet Tomography Bin Yu Statistics Department, UC Berkeley

Maximum Likelihood Estimate (MLE) for Gaussian Model

Given observed data , the log-likelihood function isTyyy ,,, 21

.)()'()'(2

1|'|log

2)|(

1

1

T

ttt AyAAAyAA

Tl Y

Because is functionally related to , no analytic solution to maximize the above expression in terms of : Expectation-Maximization algorithm is used.

MLE computation with EM is too slow for large networks.

Each EM step has complexity with sparsity matrix calculations. (Cao et al. 2000).

)( 5enO

Page 17: Internet Tomography Bin Yu Statistics Department, UC Berkeley

Iterative Proportional Fitting (IPF): a simple alternating minimization procedure to find the I-projection.

Iterative Proportional Fitting (IPF) for OD Estimation Given Initial Parameter Estimation

Given(a) a set of summation linear constraints L (AX=Y)(b) a starting distribution q for X (e.g. MLE estimates for mean OD traffic)

I-projection of q to L is

Maximum Entropy Principle is a special case when q is uniform.

)||(minargˆ qpDpLp

)||()||ˆ()||ˆ( 11 qpDppDqpD

Pythagorean equality:

.any for 1 Lp

Page 18: Internet Tomography Bin Yu Statistics Department, UC Berkeley

Moving Windows to Address Nonstationarity

Dealing with nonstationarity:

Local Likelihood is formed based on n observations such that

• Data inside each moving window is assumed to be i.i.d;• Moving windows are overlapping;• Estimates from previous window as starting values for next one. (n=7)

Page 19: Internet Tomography Bin Yu Statistics Department, UC Berkeley

Replacing MLE by Maximum Pseudo-Likelihood Estimation (MPLE) (Liang and Yu, 2003, IEEE-SP)

Our pseudo likelihood

• has a different scheme for forming sub-problems by using pairs of links and• multiplies likelihoods based on pairs instead of conditional likelihood.

But they share the same divide-and-conquer principle.

In order to overcome the computational difficulty of MLE for Markov random field (MRF) inference problems, Besag (1974) proposed a pseudo likelihood (PL) approach.

• Sub-problems are formed by neighborhood decomposition;• Pseudo likelihood function is obtained by multiplying the conditional likelihoods from sub-problems, ignoring dependences among sub-problems.

Page 20: Internet Tomography Bin Yu Statistics Department, UC Berkeley

• In our experiments, we use sub-problems of all pairs.

• The pseudo-EM algorithm is similar to the one used in Cao et al (2000), and the same initial values are used.

• The only difference is in E-step: many small matrix inversions instead of one big matrix inversion, and they can be made parallel.

If the average length of OD paths is , then the complexity of one pseudo-EM step is .

Recall that the EM step of MLE has complexity with sparsity matrix calculations. (Cao et al. 2001).

22ee nn

MPLE computation

)( 5.3enO

)( 5.0enO

)( 5enO

Page 21: Internet Tomography Bin Yu Statistics Department, UC Berkeley

Estimated Mean Traffic

Page 22: Internet Tomography Bin Yu Statistics Department, UC Berkeley

Computation Time Comparison for MLE and MPLE

Using network simulator ns, we simulated two networks of 8 end nodes and 21 end nodes, based on the Lucent network topology. For estimating the traffic counts, the computation times (in seconds) are as follows (using R and a 1GHz laptop):

# nodes # links MLE MPLE MPLE/MLE

4 7 48 12 0.25

8 16 82 18 0.21

21 49 2300 149 0.06

Page 23: Internet Tomography Bin Yu Statistics Department, UC Berkeley

Sprint Europe Network Data With Validation (OD Traffic Known)

Configuration: 13 PoPs, 18 internal links.

• Directly measured OD traffic, X, through Cisco’s Netflow

• Automatic 10 minute aggregation

Page 24: Internet Tomography Bin Yu Statistics Department, UC Berkeley

Two Sample OD Traffic Plots

• Periodicity

• Slow-variability of mean OD traffic

• Smoothness (nonburstiness), most of time

Page 25: Internet Tomography Bin Yu Statistics Department, UC Berkeley

A Pictorial Comparison of Our Approach and ATT’s

Page 26: Internet Tomography Bin Yu Statistics Department, UC Berkeley

Average relative errors: pseudo+IPF is 0.279 and gravity+MMI: 0.305 for large OD traffic.

Cumulative Distribution Plot of Relative Errors

Page 27: Internet Tomography Bin Yu Statistics Department, UC Berkeley

Boxplot of Relative Errors

Boxplot of relative errors for large OD traffic: pseudo+IPF (red) and gravity+MMI (black). All traffic is binned into 10 equal spaced levels.

Page 28: Internet Tomography Bin Yu Statistics Department, UC Berkeley

Estimation Results: Two Sample OD Traffic

Page 29: Internet Tomography Bin Yu Statistics Department, UC Berkeley

Gunnar et al (2004) compares different tomographic methods

Global Crossing validation data sets:

a. European network: 12 PoPs (132 OD pairs), 72 Links

ATT approach and variants give best results:

about 10% relative error for 29 largest OD pairs

(90% total traffic). Worst case bound (LP programming)

also gives comparable results.

b. American network: 25 PoPs (600 OD pairs), 284 links.

ATT approach and variants give best results: 25%. WCB

gives 39% for 155 largest OD pairs.

Both OD problems are much more well-posed than the Sprint data set.

Page 30: Internet Tomography Bin Yu Statistics Department, UC Berkeley

Liang et al (2004). Proc. ISIT, June.

Rationale:

Direct measurements of OD pairs through NetFlow are becoming available but still computationally expensive. We propose to trade off computation with OD information gathering through:

APMA Algorithm:

i) For each t, select some OD pairs to measure;

ii) Plug measured OD pairs into AX=Y and use IPF to obtain the remaining X’s with initial values for these X’s estimated from t-1.

APMA: a partial measurement approach

….

Recently, Papagiannaki et al (2004) uses complete OD information measured every few days to estimate fanout cofficients used together with link counts for OD estimation (relative error rates 6-10%).

Page 31: Internet Tomography Bin Yu Statistics Department, UC Berkeley

Selection Schemes

On-line selection:

Randomly select few OD pairs to measure with weights

a. uniform;

b. proportional to the estimated variances from the Gaussian model, fitted based on estimated OD from t-1.

Off-line selection:

Make both schemes (a) and (b) deterministic by cycling through the OD pairs according to a fixed list generated ahead of time.

Page 32: Internet Tomography Bin Yu Statistics Department, UC Berkeley

Estimation Results: Two Sample OD Traffic

Page 33: Internet Tomography Bin Yu Statistics Department, UC Berkeley

• Overall error rates with one OD pair measured are 7% (uniform selection) and 3.5% (using weights).

• These rates are conservative because to turn on NetFlow at a router, a whole row of OD pairs becomes available, not just one pair. With uniform off line whole row OD traffic, the error

rate drops to 3.7%.• Compression can be used to reduce

transmission cost (sending differences of estimated OD from t-1 and measured OD at t).

Page 34: Internet Tomography Bin Yu Statistics Department, UC Berkeley

Soule et al (2004) compare second-generation methods

Sprint European validation data set:

Methods use information beyond link counts.

Give better results. E.g.

Generalized Gravity+MMI (ATT approach): 30%

Stable error rates across space, but not time.

Kalman filter, PCA based, Fanout. They all use OD information one way or the other, and give

5-10% errors.

Page 35: Internet Tomography Bin Yu Statistics Department, UC Berkeley

Parting Message:

Second generation Tomographic Methods go beyond link counts to drastically reduece error rate.

APMA is one of such methods which is inexpensive and computationally fast.

First-generation methods are still useful. For example, we are planning to use

Gaussian model to give priors to feed into Sprint’s Kalman filter method.

Page 36: Internet Tomography Bin Yu Statistics Department, UC Berkeley