fluid-based analysis of tcp and red rajarshi gupta webtp group april 3, 2000

24
Fluid-based analysis of TCP and RED Rajarshi Gupta WebTP Group April 3, 2000

Post on 21-Dec-2015

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Fluid-based analysis of TCP and RED Rajarshi Gupta WebTP Group April 3, 2000

Fluid-based analysis ofTCP and RED

Rajarshi GuptaWebTP GroupApril 3, 2000

Page 2: Fluid-based analysis of TCP and RED Rajarshi Gupta WebTP Group April 3, 2000

Paper being Presented

“Fluid-based Analysis of a Network of AQM Routers Supporting TCP Flows with an Application to RED” AQM = Active Queue Management

Authors Vishal Misra Don Towsley et al. (?)

Work in progress, early Preprint

Page 3: Fluid-based analysis of TCP and RED Rajarshi Gupta WebTP Group April 3, 2000

Previous Work

Recall ”Stochastic Differential Equation Modeling and Analysis of TCP-Windowsize Behavior”, Vishal Misra, Wei-Bo Gong, Don Towsley

Presented at Performance’99, Istanbul, Turkey, October’99

ftp://gaia.cs.umass.edu/pub/Misra99-TCP-Stochastic.ps.gz

Presented by RG @ WebTP 11/08/99

Page 4: Fluid-based analysis of TCP and RED Rajarshi Gupta WebTP Group April 3, 2000

Key Ideas of Old Paper

Consider network as source of losses and sources as recipient of these signals

Model loss arrival as independent Poisson process

Use Stochastic Differential Equations + Queuing Theory to estimate Rate

Compare with existing data and analytical model (Padhye - SIGCOMM’98)

Page 5: Fluid-based analysis of TCP and RED Rajarshi Gupta WebTP Group April 3, 2000

Themes of Current Paper

Use SDE to model COMPLETE system TCP characteristic Action of AQM routers (RED)

Evaluate solution of system of equations

Corollary: RED is bad !Suggested improvements to RED

filtering mechanisms

Page 6: Fluid-based analysis of TCP and RED Rajarshi Gupta WebTP Group April 3, 2000

Assumptions

Model of complete system Pkt losses no longer independent parameter TCP window size depends on RTT and RED pkt

discard function Pkt loss is function of Q estimate and Q

lengths Q length is a function of window sizes

Pkt losses to flow i are described by Poisson process {Ni (t)} with rate i (t)

RTT Ri (t) = Ai (t) + q(t)/C

Page 7: Fluid-based analysis of TCP and RED Rajarshi Gupta WebTP Group April 3, 2000

TCP Window Size

Window size defined by

Taking expectations

Here E[x] =x

Approximation used was E[f(x)] f(E[x])

Hence,

1

Page 8: Fluid-based analysis of TCP and RED Rajarshi Gupta WebTP Group April 3, 2000

Pkt Loss Function

RED discards

Let x be exponentially weighted MA sampled every seconds

Converting to DE and sampling

Comparing coefficients and taking expectations

2

Page 9: Fluid-based analysis of TCP and RED Rajarshi Gupta WebTP Group April 3, 2000

Behavior of q

Differential version of Lindley’s equation

-1q(t)C is pkt servicing

Wi / Ri (q) is arrival of pkts from TCP flow i

Then,

For a bottlencked Q, q(t)>0 w.p. 1

Hence,

3

Page 10: Fluid-based analysis of TCP and RED Rajarshi Gupta WebTP Group April 3, 2000

Building Entire System

We have, N+2 coupled equations

N+2 unknowns (x,q,Wi )

Solve numericallyThese values can

yield R etc

1

3

2

Page 11: Fluid-based analysis of TCP and RED Rajarshi Gupta WebTP Group April 3, 2000

Extensions to a Network

Generalize variables to vectors vectors to matrices

Subscript v denotes a specific router

Then,

Replacing the old system of equations

is same (for |V| routers)

1

2

3

So we get a total of N+2|V| unknowns to solve numerically

Page 12: Fluid-based analysis of TCP and RED Rajarshi Gupta WebTP Group April 3, 2000

Further Complications

Timeout lossesSlow-Start

Aggregation of identical flows Same route and same RTT

Different variations of TCP

Page 13: Fluid-based analysis of TCP and RED Rajarshi Gupta WebTP Group April 3, 2000

Application: RED

Compare the system with a network with RED as the AQM policy in routers

Network simulated using nsDifferential equation solver done in Matlab

RED updates estimate every arrivalHere, choose v = 1/Cv where Cv is the link

capacity in pkts/sec

Page 14: Fluid-based analysis of TCP and RED Rajarshi Gupta WebTP Group April 3, 2000

Topology

Two RED routersS2 goes through bothS1, S3 use only Q1S4, S5 use only Q2Symmetric case (both

Q capacities 5 MB/s)Asymmetric case (Q1

= 5 MB/s, Q2 = 2.5 MB/s)

Page 15: Fluid-based analysis of TCP and RED Rajarshi Gupta WebTP Group April 3, 2000

DiffEq Model works well (1/4)

Page 16: Fluid-based analysis of TCP and RED Rajarshi Gupta WebTP Group April 3, 2000

DiffEq Model works well (2/4)

Page 17: Fluid-based analysis of TCP and RED Rajarshi Gupta WebTP Group April 3, 2000

DiffEq Model works well (3/4)

Page 18: Fluid-based analysis of TCP and RED Rajarshi Gupta WebTP Group April 3, 2000

DiffEq Model works well (4/4)

Page 19: Fluid-based analysis of TCP and RED Rajarshi Gupta WebTP Group April 3, 2000

Effect of Packet Size (1/2)

Page 20: Fluid-based analysis of TCP and RED Rajarshi Gupta WebTP Group April 3, 2000

Effect of Packet Size (2/2)

Page 21: Fluid-based analysis of TCP and RED Rajarshi Gupta WebTP Group April 3, 2000

Effect of value of

Page 22: Fluid-based analysis of TCP and RED Rajarshi Gupta WebTP Group April 3, 2000

Flaws in RED

If a busy state is followed by long silence, RED does not notice the silence

When there are rapid arrivals, average queue size closely follows instantaneous value

Discontinuity in drop function also bad and should be eradicated

Page 23: Fluid-based analysis of TCP and RED Rajarshi Gupta WebTP Group April 3, 2000

Suggestions for RED

Adaptive nature of sampling interval is harmful and leads to oscillations

Oscillations caused by many factors like pkt size, link bw, load level etc

Need to incorporate an appropriate sampling interval in the sampling mechanism

Trying to design a better filter with nicer capabilities (Claims to be nearly there ;-)

Page 24: Fluid-based analysis of TCP and RED Rajarshi Gupta WebTP Group April 3, 2000

Contributions

An improved methodology of TCP modelling Analytical Computationally efficient Models the complete system Matches well with simulation

Demonstrates inefficiencies of RED under certain circumstances Working on improved averaging mechanism