M/G/1 Queues: Eytan Modiano Massachusetts Institute of Technology
M/G/1 Queues: Eytan Modiano Massachusetts Institute of Technology
M/G/1 QUEUE
Poisson arrivals
Poisson arrivals at rate Service time has arbitrary distribution with given E[X] and E[X2]
Service times are independent and identically distributed (IID) Independent of arrival times E[service time] = 1/ Single Server queue
!E[X 2 ] W= 2(1" #)
where = / = E[X] = line utilization
M/G/1 EXAMPLES
W=
! # = 2 (1 " # ) (1 " # )
! # W= = 2 2 (1 " # ) 2 (1 " # )
Eytan Modiano Slide 4
Let Wi = waiting time in queue of ith arrival Ri = Residual service time seen by i
(i.e., amount of time for current customer receiving service to be done)
i arrives
Ri
Ni =3
time
Wi = Ri +
j = i ! Ni
"X
i !1
Eytan Modiano Slide 5
Here we have used the PASTA property plus the independent service time property
W = R + W/ W = R/(1-)
Using littles formula
X1
Let M(t) = Number of customers served by time t E[R(t)] = 1/t (sum of area in triangles)
1 Rt = t
As t ! " ,
"
1 R(! )d! = t
M( t )
#
i =1
X i2
M(t ) = 2 2t
M( t )
#
i =1
X i2 M(t )
M(t ) t
M( t ) i =1
! M(t ) = E [ X ] "
X i2
2
R=
#E X 2
2
[ ]
i arrives
Vi
Ni =3
time
Wi = Ri +
j = i ! Ni
"X
i !1
X1 X1
V 1 X2 X2 V 1
X4 X3 X3 X4 time
"
#
j =1
L( t )
Vj2
Where L(t) is the number of vacations taken up to time t M(t) is the number of customers served by time t
v = (1-)/E[V]
Hence,
(recall W = R/(1-))
Transmission can begin only at start of a slot If system is empty at the start of a slot, server not available for the duration of the slot (vacation)
! / 2 1/ 2 ! / 1/ W= + = + 2(1" ! / ) 2 / 2( " !) 2
= WM / D /1 + E[X]/ 2
Notice that an average of 1/2 slot is spent waiting for the start of a slot
FDM EXAMPLE
Assume m Poisson streams of fixed length packets of arrival rate /m each multiplexed by FDM on m subchannels. Total traffic = Suppose it takes m time units to transmit a packet, so =1/m. The total system load: =
FDM Frames
User 1 User 2 IDLE SLOT for User 1 SLOT for User 2 IDLE
User m
WFDM
Eytan Modiano Slide 11
(! / m ) m 2
Slotted FDM
Suppose now that system is slotted and transmissions start only on m time unit boundaries.
User m
TDM
EXAMPLE
slot m
slot 1
slot m
TDM
EXAMPLE
Therefore,
Adding the packet transmission time, TDM comes out best because transmission time is 1 instead of m TFDM = [WFDM ] + m TSFDM = [WFDM + m/2]+m TTDM = [WFDM + m/2]+1 = TFDM - [m/2-1]