Professional Documents
Culture Documents
Delay Box:
(e.g., Multiplexer, Switch,Network) T seconds
Page 1
Definitions
Consider a system with no customer at time t=0. We define the following processes: A(t): # of arrivals between time 0 to t
B(t) : # of blocked customers between time 0 to t D(t): # of customer departures between time 0 to t N(t) = A(t)-B(t)-D(t): # of customers in the system at time t Long term arrival rate (t) and throughput ,
(t ) =
Lim A(t ) t t
throughput=
Lim D(t ) t t
2 1
0 1
t n+1
Arrival = Rate
=
1 + 2 + . . . + n seconds
1 (1+2 +...+n)/n
Figure A.2
Page 2
Littles Theorem
Very important result that relate three basic quantities for most queueing systems
= long term average arrival rate of customers for service E[N] = time averaged number of customers in the system E[T] = average duration each customer spends in the system
Page 3
Littles Theorem
1 Latest bit seen by time t
d(i) = delay of packet i x(t) = number of packets in transit (in the system) at time t Sender Receiver
x(t)
time T What is the system occupancy, i.e., average number of packets in transit between 1 and 2 ?
Chuah, Fall 2004
Littles Theorem
1 Latest bit seen by time t
d(i) = delay of packet i x(t) = number of packets in transit (in the system) at time t Sender Receiver
Page 4
Littles Theorem
1 Latest bit seen by time t
d(i) = delay of packet i x(t) = number of packets in transit (in the system) at time t Sender
S(N)
Receiver
S(N-1)
d(N-1)
Littles Theorem
1 Latest bit seen by time t
d(i) = delay of packet i x(t) = number of packets in transit (in the system) at time t Sender
S(N)
Receiver
S(N-1)
d(N-1)
x(t) S= area time T Average S/T = (P*(d(1) + d(2) + + d(N)))/T occupancy = ((P*N)/T) * ((d(1) + d(2) + + d(N))/N)
Chuah, Fall 2004
Average delay
10
Page 5
Littles Theorem
1 Latest bit seen by time t
d(i) = delay of packet i x(t) = number of packets in transit (in the system) at time t
Sender
S(N)
Receiver
S(N-1)
a(i)
d(N-1)
x(t) S= area time T Average occupancy = (average arrival rate) x (average delay)
Chuah, Fall 2004
11
A(t) i i +1 t B(t)
D(t)
Service time
1 E [ ]
12
Page 6
(t ) k t P[ A(t ) = k ] = e k!
for k = 0, 1, ...
13
Service Times
Service time = time required t service a customer, and is denoted by X Maximum rate at which a server can process customers is when server is continuously vuy
- Average time between customer departures = average service time - Processing capacity of a server, = 1/E[X]
14
Page 7
Servers
Source
Queue
D: deterministic Ek: Erlang with parameter k Hk: Hyperexponential with parameter k G: General
C C C C C
15
Examples
M/M/1/K
- Exponential (memoryless) interarrival and departure times, 1 server, buffer size = K - M/M/1: when K is infinity
M/G/1
- Exponential interarrival times, departure time follows general distribution, 1 server, infinite buffer space
16
Page 8
17
M/M/1 Queue
j-1
j+1
18
Page 9
pn =
p0
n = 1,2 ,...,
pn = n p0
n = 1,2,...,
p0 =
1 = 1 1 + + + 3 + ... +
2
pn = n (1 ) n = 1,2,...,
19
20
Page 10
E[ n ] = E[r ] E[ r ] = E[ n ] 1 1 / = 1 =1
21
Example
On a network gateway, measurements show that the packets arrive at a mean rate of 125 packets per second, and the gateway takes about 2 ms to forward them. Using M/M/1 model, analyze the gateway
- What is the mean number of packets in gateway? - What is the mean time spent in gateway? - What is the probability of buffer overflow if the gateway had only 13 buffers - How many buffers o we need to keep packet loss below one packet per million?
22
Page 11