3-5 Simple Queue Model
3-5 Simple Queue Model
An Introduction to Computer
Networks
Packet Switching
Queue models
Nick McKeown
Professor of Electrical Engineering
and Computer Science, Stanford University
CS144, Stanford
University
Outline
1. Simple deterministic queue model
2. Small packets reduce end to end delay
3. Statistical multiplexing
CS144, Stanford
University
CS144, Stanford
University
Simple model of a
queue
Cumulative number of
bytes arrived up until
A(t) t.
time
Q(t)
R Link
rate
D(t)
Cumulative number of
bytes departed up until
time t.
CS144, Stanford
University
Simple model of a
queue
CS144, Stanford
University
Cumulative
number of bits
Example
A(t)
100
D(t)
0.1s
0.2s
1.0s
time
Outline
1. Simple deterministic queue model
2. Small packets reduce end to end delay
3. Statistical multiplexing
CS144, Stanford
University
10
Packet Switching
Why not send the entire message in one packet?
A
p/r1
M/r1
R1
R1
R2
R2
R3
R3
M li
End-to-end delay, t
c
i ri
p li M p
End-to-end delay, t
1
c p rmin
i ri
11
Outline
1. Simple deterministic queue model
2. Small packets reduce end to end delay
3. Statistical multiplexing
CS144, Stanford
University
12
Statistical Multiplexing
Basic idea
Two flows
rate
Average
rate
One flow
rate
time
rate
time
CS144, Stanford
University
Many flows
time
Packet Switching
Statistical Multiplexing
Packets for
one output
1
Data
Hdr
Data
Hdr
R
R
Q(t)
Link rate, R
R
N
Data
Hdr
Packet
buffer
CS144, Stanford
University
15
Statistical Multiplexing
Rate
C
A
time
Rate
time
CS144, Stanford
University
16
Rate
Statistical Multiplexing
Gain
A+B
2C
R < 2C
B
time
CS144, Stanford
University
17
Summary
Often, we can use a simple deterministic
model of a queue to understand the
packet dynamics in a network.
We break messages into packets because
it lets us pipeline the transfer, and reduce
end to end delay.
Statistical multiplexing lets us carry many
flows efficiently on a single link.
CS144, Stanford
University
18
<end>
CS144, Stanford
University
19