TCP Delay Model
TCP Delay Model
TCP Delay Model
Notation, assumptions:
Assume one link between client
Window size:
First assume: fixed congestion
window, W segments
Then dynamic window, modeling
slow start
Transport Layer
3-1
Transport Layer
3-2
K = the number of windows that cover the object. For this fig, K=2
Transport Layer
3-3
Latency 2 RTT
O
S
S
P RTT ( 2 P 1)
R
R
R
P min{Q, K 1}
- where Q is the number of times the server idles
if the object were of infinite size.
- and K is the number of windows that cover the object.
Transport Layer
3-4
in itia te T C P
c o n n e c tio n
re q u e s t
o b je c t
f ir s t w in d o w
= S /R
RTT
s e c o n d w in d o w
= 2 S /R
Server idles:
P = min{K-1,Q} times
Example:
O/S = 15 segments
K = 4 windows
Q=2
P = min{K-1,Q} = 2
Server idles P=2 times
t h ir d w in d o w
= 4 S /R
fo u r th w in d o w
= 8 S /R
c o m p le te
t r a n s m is s io n
o b je c t
d e liv e r e d
tim e a t
c lie n t
tim e a t
s e rv e r
Transport Layer
3-5
S
time to transmit the kth window
R
S
k 1 S
RTT
2
R
R
in it ia t e T C P
c o n n e c tio n
re q u e s t
o b je c t
f ir s t w in d o w
= S /R
RTT
s e c o n d w in d o w
= 2 S /R
t h ir d w in d o w
= 4 S /R
P
O
delay 2 RTT idleTime p
R
p 1
P
O
S
S
2 RTT [ RTT 2 k 1 ]
R
R
k 1 R
O
S
S
2 RTT P[ RTT ] (2 P 1)
R
R
R
f o u r t h w in d o w
= 8 S /R
c o m p le t e
tr a n s m is s io n
o b je c t
d e liv e r e d
tim e a t
c lie n t
tim e a t
s e rv e r
Transport Layer
3-6
K min{k : 2 0 S 21 S 2 k 1 S O}
min{k : 2 0 21 2 k 1 O / S }
O
min{k : 2 1 }
S
O
min{k : k log 2 ( 1)}
S
O
log 2 ( 1)
S
How do we calculate Q ?
Transport Layer
3-7