modeling and taming parallel tcp on the wide area network
DESCRIPTION
Modeling and Taming Parallel TCP on the Wide Area Network. Dong Lu , Yi Qiao Peter Dinda , Fabian Bustamante Department of Computer Science Northwestern University. Summary. Parallel TCP flows are frequently used - PowerPoint PPT PresentationTRANSCRIPT
![Page 1: Modeling and Taming Parallel TCP on the Wide Area Network](https://reader036.vdocument.in/reader036/viewer/2022062501/56816332550346895dd3b766/html5/thumbnails/1.jpg)
1
Modeling and Taming Parallel TCP on the Wide Area Network
Dong Lu ,Yi Qiao Peter Dinda , Fabian Bustamante
Department of Computer ScienceNorthwestern University
![Page 2: Modeling and Taming Parallel TCP on the Wide Area Network](https://reader036.vdocument.in/reader036/viewer/2022062501/56816332550346895dd3b766/html5/thumbnails/2.jpg)
2
Summary• Parallel TCP flows are frequently used• What number of parallel flows will give the
highest throughput with less than a p% impact on cross traffic? --- “Maximum Nondisruptive Throughput”
• Our answer to this question: – Active probing at two parallelism levels– Modeling and predicting parallel TCP thropughput
at other parallelism levels – Estimating impact on cross traffic, proposing a
parallelism level that bounds the impact
![Page 3: Modeling and Taming Parallel TCP on the Wide Area Network](https://reader036.vdocument.in/reader036/viewer/2022062501/56816332550346895dd3b766/html5/thumbnails/3.jpg)
3
Outline
• Motivation• Modeling Parallel TCP throughput
– Two probes at different parallelism levels– Evaluation via wide area experiments
• Taming parallel TCP– Estimating the impact on cross traffic– Evaluation via simulations
![Page 4: Modeling and Taming Parallel TCP on the Wide Area Network](https://reader036.vdocument.in/reader036/viewer/2022062501/56816332550346895dd3b766/html5/thumbnails/4.jpg)
4
Motivation
• Parallel TCP flows are broadly used to achieve higher throughput on the current Internet. GridFTP is one example. However,– No practical mechanism to predict its throughput– No previous work on estimating and controlling the
negative impacts on cross traffic throughput (taming parallel TCP)
![Page 5: Modeling and Taming Parallel TCP on the Wide Area Network](https://reader036.vdocument.in/reader036/viewer/2022062501/56816332550346895dd3b766/html5/thumbnails/5.jpg)
5
Motivation
• Danger of using too many parallel TCP flows– Congest the end-to-end path, significantly disturb
cross traffic– Diminishing Returns, or worse throughput
![Page 6: Modeling and Taming Parallel TCP on the Wide Area Network](https://reader036.vdocument.in/reader036/viewer/2022062501/56816332550346895dd3b766/html5/thumbnails/6.jpg)
6
Our solution: TameParallelTCP()
struct ParallelTCPChar {int num_flows;double max_nondisruptive_thru;double cross_traffic_impact;};
ParallelTCPChar * TameParallelTCP(Address dest, double maximpact);
Percentage
![Page 7: Modeling and Taming Parallel TCP on the Wide Area Network](https://reader036.vdocument.in/reader036/viewer/2022062501/56816332550346895dd3b766/html5/thumbnails/7.jpg)
7
Outline
• Motivation• Modeling Parallel TCP throughput
– Two probes at different parallelism levels– Evaluation via wide area experiments
• Taming parallel TCP– Estimating the impact on cross traffic– Evaluation via simulations
![Page 8: Modeling and Taming Parallel TCP on the Wide Area Network](https://reader036.vdocument.in/reader036/viewer/2022062501/56816332550346895dd3b766/html5/thumbnails/8.jpg)
8
Modeling Parallel TCP throughput
32bpRTT
MSSBW Single TCP throughput model [Mathis, et al, Sigcomm CCR’97]
Parallel TCP throughput upper bound model[Hacker, et al, IPDPS’02]
nn PPPRTTMSSBW 1...11
21
1. Upper bound tight only in uncongested networks
2. Hard to obtain future loss rate: what is the loss rate if I add 20 parallel TCP flows?
![Page 9: Modeling and Taming Parallel TCP on the Wide Area Network](https://reader036.vdocument.in/reader036/viewer/2022062501/56816332550346895dd3b766/html5/thumbnails/9.jpg)
9
Modeling Parallel TCP throughput
32bpRTT
MSSBW
321
bc
pn
RTTMSSBW
nnn
Single TCP throughput model [Mathis, et al, Sigcomm CCR’97]
Parallel TCP throughput model(Ours)
velParallelLe
nBWBW1
n: number of parallel flowsp: loss rateRTT: round trip timeMSS: max segment sizeb and c1: constant
Eq(1)
Eq(2)
Eq(3)
![Page 10: Modeling and Taming Parallel TCP on the Wide Area Network](https://reader036.vdocument.in/reader036/viewer/2022062501/56816332550346895dd3b766/html5/thumbnails/10.jpg)
10
Assumptions• Parallel TCP flows share same loss rate P.
Loss rate increases with parallelism level.– Supported by previous research
• MSS remains stable after TCP connection setup
• TCP throughput shows transient stability– Supported by previous research– Our associated work to appear in ICDCS’05
• Our model does NOT require the knowledge of RTT, MSS, p, b, and c1
![Page 11: Modeling and Taming Parallel TCP on the Wide Area Network](https://reader036.vdocument.in/reader036/viewer/2022062501/56816332550346895dd3b766/html5/thumbnails/11.jpg)
11
Modeling and predicting loss rate
321
bc
pw
RTTMSSBW
www
321
bc
pv
RTTMSSBW
vvv
Two probes at different parallelism level: w and v
)(2 nfRTTp nn If we know: then we can calculate BWn
based on the two probes
Empirically, we use a partial polynomial to approximate f(n):
bnaRTTp nn 22
Eq(4)
Eq(5)
Eq(6)
don’t need to know
know after probing
![Page 12: Modeling and Taming Parallel TCP on the Wide Area Network](https://reader036.vdocument.in/reader036/viewer/2022062501/56816332550346895dd3b766/html5/thumbnails/12.jpg)
12
Predicting throughput at level m
Eq(7)
ba,Eq(6)
Eq(4)
Eq(5)
bmabva
vmBWBW vm
2
2
bmabva
vm
BWBW
v
m
2
2
![Page 13: Modeling and Taming Parallel TCP on the Wide Area Network](https://reader036.vdocument.in/reader036/viewer/2022062501/56816332550346895dd3b766/html5/thumbnails/13.jpg)
13
Experiments setup
• Testbed: Planetlab– randomly chosen 41 pairs of hosts (41 end-to-
end paths)• Throughput test tool: iperf• Methodology: A test consists of testing
parallel TCP throughput with increasing parallelism levels (1~30)
• Repeat each test 10 times on each path
![Page 14: Modeling and Taming Parallel TCP on the Wide Area Network](https://reader036.vdocument.in/reader036/viewer/2022062501/56816332550346895dd3b766/html5/thumbnails/14.jpg)
14
A random wide area example
MeasurementPrediction
![Page 15: Modeling and Taming Parallel TCP on the Wide Area Network](https://reader036.vdocument.in/reader036/viewer/2022062501/56816332550346895dd3b766/html5/thumbnails/15.jpg)
15
Low, Unbiased Relative Prediction Error
![Page 16: Modeling and Taming Parallel TCP on the Wide Area Network](https://reader036.vdocument.in/reader036/viewer/2022062501/56816332550346895dd3b766/html5/thumbnails/16.jpg)
16
Prediction Errors Unrelated To Parallelism Level
0 30
-0.1
0.1
Parallelism level (number of parallel TCP flows)
Mea
n re
lativ
e pr
edic
tion
erro
r
![Page 17: Modeling and Taming Parallel TCP on the Wide Area Network](https://reader036.vdocument.in/reader036/viewer/2022062501/56816332550346895dd3b766/html5/thumbnails/17.jpg)
17
Insensitive to parallelism levels of probes
![Page 18: Modeling and Taming Parallel TCP on the Wide Area Network](https://reader036.vdocument.in/reader036/viewer/2022062501/56816332550346895dd3b766/html5/thumbnails/18.jpg)
18
Outline
• Motivation• Modeling Parallel TCP throughput
– Two probes at different parallelism levels– Evaluation via wide area experiments
• Taming parallel TCP– Estimating the impact on cross traffic– Evaluation via simulations
![Page 19: Modeling and Taming Parallel TCP on the Wide Area Network](https://reader036.vdocument.in/reader036/viewer/2022062501/56816332550346895dd3b766/html5/thumbnails/19.jpg)
19
Maximum Nondisruptive Throughput
• The highest throughput with less than a p% impact on cross traffic (MNT)
![Page 20: Modeling and Taming Parallel TCP on the Wide Area Network](https://reader036.vdocument.in/reader036/viewer/2022062501/56816332550346895dd3b766/html5/thumbnails/20.jpg)
20
Our solution: TameParallelTCP()struct ParallelTCPChar {
int num_flows;double max_nondisruptive_thru;double cross_traffic_impact;
};ParallelTCPChar *
TameParallelTCP(Address dest, double maximpact);
User specified
Function Return
![Page 21: Modeling and Taming Parallel TCP on the Wide Area Network](https://reader036.vdocument.in/reader036/viewer/2022062501/56816332550346895dd3b766/html5/thumbnails/21.jpg)
21
Challenges• The available bandwidth on the bottleneck
link is unknown• The number of cross traffic flows and their
loss rates is unknown• Overhead considerations
![Page 22: Modeling and Taming Parallel TCP on the Wide Area Network](https://reader036.vdocument.in/reader036/viewer/2022062501/56816332550346895dd3b766/html5/thumbnails/22.jpg)
22
Assumptions• TCP flows share same loss rate on the
bottleneck link– If the cross traffic flows have RTT similar to our
parallel TCP flows– The router on the bottleneck link is using
Random Early Detection (RED) like queue management policies
![Page 23: Modeling and Taming Parallel TCP on the Wide Area Network](https://reader036.vdocument.in/reader036/viewer/2022062501/56816332550346895dd3b766/html5/thumbnails/23.jpg)
23
Estimating the impact on cross traffic• Recall that after two probes, we get the
value of a and b for • We set n1=1, and n2=“number of parallel
TCP flows under consideration”• Then with Eq(10), we can calculate relc
bnabna
pp
pRTTCMSS
pRTTCMSS
pRTTCMSS
relcn
n
nn
nnnn
22
21
2
1
11
1111 11
bnaRTTp nn 22
Eq (10)
![Page 24: Modeling and Taming Parallel TCP on the Wide Area Network](https://reader036.vdocument.in/reader036/viewer/2022062501/56816332550346895dd3b766/html5/thumbnails/24.jpg)
24
Simulation setup
• Why do we need simulations? – Detailed information on cross traffic
• Ns2 based simulations– TCP Reno
• Each simulation is repeated 10 times
![Page 25: Modeling and Taming Parallel TCP on the Wide Area Network](https://reader036.vdocument.in/reader036/viewer/2022062501/56816332550346895dd3b766/html5/thumbnails/25.jpg)
25
Simulation topologies
RED
Cross traffic
Cross traffic
Parallel TCP
Cross traffic
RED Parallel TCP
Topo 1
Topo 2
![Page 26: Modeling and Taming Parallel TCP on the Wide Area Network](https://reader036.vdocument.in/reader036/viewer/2022062501/56816332550346895dd3b766/html5/thumbnails/26.jpg)
26
Low, slightly biased prediction errors
0 0.6-0.6
1
Relative prediction error
Pro
babi
lity
(err
or<x
)
![Page 27: Modeling and Taming Parallel TCP on the Wide Area Network](https://reader036.vdocument.in/reader036/viewer/2022062501/56816332550346895dd3b766/html5/thumbnails/27.jpg)
27
Implementing TameParallelTCP()TameParallelTCP()
{ Send two probes at different parallelism levels;
Estimate the loss rate curve; Estimate the throughput at different parallelism levels;
Estimate the impact on cross traffic at different parallelism levels;
Proposed a parallelism level with estimated impact < maximpact;
Return struct ParallelTCPChar;}
struct ParallelTCPChar {int num_flows;double max_nondisruptive_thru;double cross_traffic_impact;
};
![Page 28: Modeling and Taming Parallel TCP on the Wide Area Network](https://reader036.vdocument.in/reader036/viewer/2022062501/56816332550346895dd3b766/html5/thumbnails/28.jpg)
28
Conclusions• We have shown how to estimate parallel
TCP throughput and its impact on cross traffic by sending two probes
• Our evaluation using both wide area experiments and ns2 based simulations shows the effectiveness of our approach
• Future work– How to relax our assumptions about the cross
traffic?
![Page 29: Modeling and Taming Parallel TCP on the Wide Area Network](https://reader036.vdocument.in/reader036/viewer/2022062501/56816332550346895dd3b766/html5/thumbnails/29.jpg)
29
For more information• Tool available at:
– http://plab.cs.northwestern.edu/Clairvoyance
• Dong Lu, Northwestern Univ. http://www.cs.northwestern.edu/~donglu
• Related work on sequential TCP characterization and prediction– Dong Lu, Yi Qiao, Peter Dinda, Fabian Bustamante,
"Characterizing and Predicting TCP Throughput on the Wide Area Network", ICDCS 2005.