TCP Westwood and Easy Red to Improve Fairness in High-speed Networks

32
TCP Westwood and Easy Red to Improve Fairness in High-speed Networks L. A. Grieco, S. Mascolo Dipartimento di Elettrotecnica ed Elettronica Politecnico di Bari, Italy PfHsn 2002 Berlin, 22 April 2002

description

TCP Westwood and Easy Red to Improve Fairness in High-speed Networks. L. A. Grieco, S . Mascolo Dipartimento di Elettrotecnica ed Elettronica Politecnico di Bari, Italy PfHsn 2002 Berlin, 22 April 2002. Outline of the presentation. Overview of Reno and Westwood TCP congestion control - PowerPoint PPT Presentation

Transcript of TCP Westwood and Easy Red to Improve Fairness in High-speed Networks

Page 1: TCP Westwood and Easy Red  to Improve  Fairness in High-speed Networks

TCP Westwood and Easy Red to Improve Fairness in High-speed Networks

L. A. Grieco, S. Mascolo

Dipartimento di Elettrotecnica ed ElettronicaPolitecnico di Bari, Italy

PfHsn 2002Berlin, 22 April 2002

Page 2: TCP Westwood and Easy Red  to Improve  Fairness in High-speed Networks

Outline of the presentation

Overview of Reno and Westwood TCP congestion control

Mathematical model of TCP Westwood

Easy RED

Simulations of Reno, Westwood over drop tail, RED, Gentle Red, & Easy RED

Page 3: TCP Westwood and Easy Red  to Improve  Fairness in High-speed Networks

Overview of Classic TCP (Reno)

Due to fundamental e2e principle the control must follow a trial and error AIMD paradigm with 2 phases:

I) A probing phase (additive increase), which aims at discovering the network available capacity

II) A multiplicative decrease phase triggered when congestion is signaled via timeout or duplicate ACKs

Page 4: TCP Westwood and Easy Red  to Improve  Fairness in High-speed Networks

Reno TCP

time

ssthresh

cwnd

Congestion Avoidance (CA)

Timeout

Fast recovery

Exponential increasing

Linear increasing

Slow-start (SS)

Typical cwnd dynamics following the AIMD paradigm

Page 5: TCP Westwood and Easy Red  to Improve  Fairness in High-speed Networks

Known drawbacks of Reno TCP

low throughput over wireless links because losses due to unreliable links are misinterpreted as congestion

Reno throughput proportional to 1/RTT, i.e. it is not that friendly

Page 6: TCP Westwood and Easy Red  to Improve  Fairness in High-speed Networks

Overview of TCP WESTWOOD

TCP Westwood is a sender-side only modification of TCP Reno based on:

window shrinking after congestion based on e2e bandwidth estimation (faster recovery)

E2E estimation of available bandwidth filtering the flow of returning ACK packets

Page 7: TCP Westwood and Easy Red  to Improve  Fairness in High-speed Networks

TCP Westwood

Congestion Avoidance

Slow start

cwnd

time

Timeoutssthresh

BWE*RTTmin

Adaptive setting cwnd=ssthr=BWE*RTTmin

The key point is the AIAD opposed to the AIMD paradigm : window shrinking after congestion is based on available bandwidth

Page 8: TCP Westwood and Easy Red  to Improve  Fairness in High-speed Networks

E2E bandwidth estimation

The rate of returning ACKS is exploited to estimate the “best-effort” available bandwidth

ACKs

packets

Filter

RECEIVERSENDER

Bandwdithestimate

ACKs

packets

Network

Page 9: TCP Westwood and Easy Red  to Improve  Fairness in High-speed Networks

E2E ESTIMATE USING A TIME-VARYING FILTER

bandwidth samplej

jj

db

filtered value j

jbjbjjb

j

jjb

ff

f

2

11

ˆ2

RTT Lastj

1/F=Cut-off frequency

RTT last the in edacknowledg datad j

Page 10: TCP Westwood and Easy Red  to Improve  Fairness in High-speed Networks

Bandwidth estimate A single TCP flow over 1 Mbps link

1.0E+04

1.0E+05

1.0E+06

1.0E+07

1.0E+08

0 200 400 600 800 1000

s

bps

New FilterOld FilterAvailable Bandwidth

Page 11: TCP Westwood and Easy Red  to Improve  Fairness in High-speed Networks

Bandwidth estimate 1 TCP+1 UDP over 1 Mbps link

1.0E+04

1.0E+05

1.0E+06

1.0E+07

1.0E+08

0 200 400 600 800 1000s

bps

New FilterOld FilterAvailable Bandwidth

Page 12: TCP Westwood and Easy Red  to Improve  Fairness in High-speed Networks

Pseudo-code

if (3 DUPACKs are received) ssthresh=BWE*RTTmin;

cwnd = ssthresh; endif if (timeout expires) ssthresh=BWE*RTTmin; cwnd = 1; endif

Page 13: TCP Westwood and Easy Red  to Improve  Fairness in High-speed Networks

Equation Model of Westwood

Assuming the following notation:

B: Bandwidth Estimate

p: segment loss probability

RTTmin: minimum Round Trip Time

RTT: Round Trip Time

cwnd: change of cwnd on update step

Page 14: TCP Westwood and Easy Red  to Improve  Fairness in High-speed Networks

On successfully ACK reception (with probability 1-p) the change in cwnd is (linear phase)

cwnd=1/cwnd

On segment loss (with probability p) the change in cwnd is

cwnd=B RTTmin–cwnd

Page 15: TCP Westwood and Easy Red  to Improve  Fairness in High-speed Networks

The expected value of cwnd is then

pcwndRTTBcwnd

pcwndE )(

1][ min

Considering that r= cwnd/RTT and that the update timestep is RTT/cwnd:

ptrRTTRTTB

trpRTT

pttr

)()(1)( 2min

2

By separating variables and solving ……..

Page 16: TCP Westwood and Easy Red  to Improve  Fairness in High-speed Networks

The steady state solution for the throughput is:

22

minmin 122

)(limRTTp

pRTT

RTTBRTT

RTTBtrr

t

W

Page 17: TCP Westwood and Easy Red  to Improve  Fairness in High-speed Networks

Friendliness to Reno

WrB

If the loss probability is low, because of the flow conservation principle, the following approximation holds:

By substituting the approximated bandwidth estimate into the previous Eq. model, we obtain …….

Page 18: TCP Westwood and Easy Red  to Improve  Fairness in High-speed Networks

The Westwood steady state throughput is :

p

pTRTT

rq

West

11

The Reno steady state throughput (Kelly’s model) is:

p

pRTT

rR 121

Page 19: TCP Westwood and Easy Red  to Improve  Fairness in High-speed Networks

Both Westwood and Reno throughputs depend on:

p/1

That is:

they are friendly

Page 20: TCP Westwood and Easy Red  to Improve  Fairness in High-speed Networks

RTT/1Westwood throughput depends on:

That is:

Westwood improves fair sharing among flows with different RTTs

Reno throughput depends on: RTT/1

Page 21: TCP Westwood and Easy Red  to Improve  Fairness in High-speed Networks

A “visive”look at fairnes. 40 cnx. over100Mbps bottleneck link

0.0E+00

1.0E+07

2.0E+07

3.0E+07

4.0E+07

5.0E+07

0 5 10 15 20 25 30

s

Byt

es

0.0E+00

1.0E+07

2.0E+07

3.0E+07

4.0E+07

5.0E+07

0 5 10 15 20 25 30

s

Byt

esByte sent by 40 Reno cnx Byte sent by 40 West cnx

Page 22: TCP Westwood and Easy Red  to Improve  Fairness in High-speed Networks

Min_th Max_th.

p

1

0.1

AverageQueue Length

RED vs. EASY RED

Average queue vs Istantaneous queue

Varying pdrop vs Constant pdrop

4 parameters vs 2 parameteres

Pdrop=0.01

min_th

Instantaneous

Queue Length

p

Queue Capacity

RED Easy RED

Page 23: TCP Westwood and Easy Red  to Improve  Fairness in High-speed Networks

Rationale of Easy RED

We believe that what the sender needs is just an early drop to promptly react to incipient congestion thus the queue should not be averaged because average introduces delay

It is difficult to influence the sender behaviour via the dropping probability thus a constant dropping probability can be used

The major gain from early drop can be obtained by changing the sender response to drop, that is using TCP Westwood

Page 24: TCP Westwood and Easy Red  to Improve  Fairness in High-speed Networks

Ns-2 simulations

single 100Mbps bottleneck shared by N TCP connectionsRTTs ranging from 250/N ms to 250ms

S/D1

S/D9 R R

D/S1

D/S9

100 Mbps

S/DN

D/SN

Page 25: TCP Westwood and Easy Red  to Improve  Fairness in High-speed Networks

00.10.20.30.40.50.60.70.80.9

1

0 20 40 60 80 100

No. of Connections

Fai

rnes

s In

dexe

s

WestwoodReno

Jain Fairness Index vs. Number of connections sharing a 100Mbps bottleneck with Drop Tail

21

21 )(

iNi

iNi

bN

b Index Fairness

Page 26: TCP Westwood and Easy Red  to Improve  Fairness in High-speed Networks

Average Throughput vs. Number of connections sharing the bottleneck (Drop

Tail)

02468

101214161820

0 20 40 60 80 100

No. of Connections

Mb

ps

WestwoodReno

Page 27: TCP Westwood and Easy Red  to Improve  Fairness in High-speed Networks

Fairness Index vs. Number of Reno connections sharing the bottleneck with AQM

00.10.20.30.40.50.60.70.80.9

1

0 20 40 60 80 100No. of Reno Connections

Fai

rnes

s In

dex

es

No AQMEasy REDREDGentle RED

Page 28: TCP Westwood and Easy Red  to Improve  Fairness in High-speed Networks

Average Throughput vs. Number of Reno connections sharing the bottleneck with

AQM

02468

101214161820

0 20 40 60 80 100No. of Reno Connections

Mb

ps

No AQMEasy REDREDGentle RED

Easy RED/No AQM

RED/Gentle RED

Page 29: TCP Westwood and Easy Red  to Improve  Fairness in High-speed Networks

Fairness Index vs. Number of Westwood connections sharing the bottleneck with AQM

00.10.20.30.40.50.60.70.80.9

1

0 20 40 60 80 100No. of Westwood Connections

Fai

rnes

s In

dex

es

No AQMEasy REDREDGentle RED

Page 30: TCP Westwood and Easy Red  to Improve  Fairness in High-speed Networks

Average Throughput vs. Number of Westwood connections sharing the bottleneck (AQM)

02468

101214161820

0 20 40 60 80 100No. of Westwood Connections

Mb

ps

No AQM

Easy RED

RED

Gentle RED

Easy RED/No AQM

RED/Gentle RED

Page 31: TCP Westwood and Easy Red  to Improve  Fairness in High-speed Networks

Connections Fairness Index

100 West 0.78

50W 50Reno 0.64

100 Reno 0.51

70 West 0.79

35W 35Reno 0.66

70 Reno 0.31

40 West 0.84

20W 20 Reno 0.58

40 Reno 0.42

10 West 0.93

5W 5 Reno 0.65

10 Reno 0.3

Friendliness

Page 32: TCP Westwood and Easy Red  to Improve  Fairness in High-speed Networks

ConclusionsConclusions

TCP W exploits adaptive vs. multiplicative window reduction

Mathematical model of TCP Westwood shows that TCPW is friendly to Reno and provides significant fairness increment in high-speed Internet

Easy Red improves the fairness of Reno connections wrt RED and Gentle RED

Easy Red improves the fairness of TCPW connections wrt RED and Gentle RED