Professional Documents
Culture Documents
Queuing
10.1 PROBABILITYFUNCTIONS
10.1,1Contlnuous
The continuousreal-valuedfunction/is called a prcbabilit\t densit,f nctnn or
probabiliry distribwion for t}le continuousnndom vaiable X lf the followine
conditlonshoid:
I EXAMPLE IO.I
TheGaDsieor nomaldislnbudon
fo! a random
variable
X is givenby
I G-p),
hlx) = E=a ,c (10r)
I EXAMPLE10.2
The exponentialdistribut'o.nfor a randod vanabler is given by
P =0
disLribulion
Figure l0: The exponential
I EXAMPLE,1O.3
? is givenby
for a rdndofrvariable
TheWeibulldisLriburion
lil)= "BP-'--'/>o 00r)
10.2DISCRETE
The real-valueddiscretefunction/ is a called a prcbabiliry distributianfunction
or probabilit! dislributio, for the discreterandomvariableXifthe folowing three
conditionshold:
Chap l0 I QueuingModels
Somecommondiscrcteprcbabilitydistdbutionsincludea discreteform of
unifom distribution,ihe binomialdisttibutlon,and thePoissondistribulioL
I EXAMPLE10.4
A fEquendyuseddiscEleprobabity distibnlion,lbe Poissondishbutionis usedlo
phenon€nain which the occurence of individual eventsis independeniof my Previou
Fomally, it rs definedas
(r 0' --
P,(t =
k!
with t,/ > 0 Plr) de.otes the probabihty of t occuren@s in time r, atd I r ihe
@cuEencesper unit lime. Nore that the probrbility distribution of the inlemrivdl lime 'rL
betw@n two consecutiveevents)in a Poissonproce$ is given by $e ex?onential
disdbulionwith meani.
10.3 BASICBUFFEBSIZECALCULATICIN
Figure10.4 Butreringsystem
10.3.1HandlingBurstsol Data
If both P(l) and C(t) arc constant,denoted P and C, respectively-itnd ii'r^'
consumption mte C is grealer than or equal to P, then no buffer is needcd since +lie
handle the ovedlow a burst of penod f, note that the total dala Produced is Pa
while the total data coosumedin that time is CZ Thus, there is ail excessol
246 Chap.l0 r QueuingModels
(P C)T ( 1 05 )
Thrsis how muchdatamustbe storedin thebuffer.Thus,lhe buffersizeis
B=(P C)T (106)
$here C is the consumptionrate, P is the production rate, and I is the burst
time
I EXAMPLE 10.5
is prcviding
A device datato a realtimecomputer
viaDMAat9600bytevsecond
in bustsof one'
seconddurdtronevcry20 secondsThe compdLer is clpableof processi.gihe data,t E00bytev
secondAssumrng thereis suliicientdne ro emprylhe bufferbeioreanotherbu6t occurswhat
shouldLheninidum buiiersizebe?Usingequationl0 6 yields
B = (9600 E00)I = 8800bytes
I EXAMPLE10.6
dataal a rare(in bytesper second)Iharis d.refr,nedby thefuncrion
A taskproduces
wth r.oprcsenting
theblnt periodThe dalam c.nsutuedby a raskat a ratedeterninedby rhe
The eraphsfor pG) and.G) de depidedin FigureI0 5 The quest'onthenis: If thebuat periodis
knownto be 1.5seconds,whatis thenaessarybuffersize?In ibis caseit canbe seenby inspecling
t h ea r e aui n d etrt l ec w e s f o r 4 r ) e d . ( 4 r f i a A
r 'drn m|B rp(r=d/,orr=1.6 Plueerng
dds inio equalion 10.?,
B(16) = Ip<t)- c<t)ldt
''
= 10000 ltt - tt4t)l.h + l {ffi 1 l\2 t) ttatldl
28 Cbap.10 r Queuin8Models
^ l r 1 1 6 - l r q
I00o0ll/8)d lo + l0il00(2)
' l, 10000(5/E)
r L
6000bytes
-T
L(t) = == e-
tnenu(0) = 0.053991Inspecting
tJreproductiondd consDnprion
cbes againsbowsthar tte
ddinum butrersib is neededqben i = 0.053991RecatculaLion of rhe butrersize now
yields
B(os199l) = Iplt) - c(t)l dl
= l0m0 I$ - 1t4t)l dl
= loooo(3iE)
I i""""'
= l00(n(3/8)t0-0029151
= l lbyles I
10.4CLASSICAL T HEORY
QUEUING
of a queuing
Figure10.6 ComPonenLs
systems
multiprocessing of thismodelto predict
WecanuseknownProperties
system
timesfor tasksin a real_time
service
available.
Fufiher study of the
*" *iU presenf these results without denvation
heorelicaia\pects
'' canbe foundinl28lorlS2l FofexamplelelNbethenumbel
of cu\tomer5
oi *.tot*rs tr'" qu"ue t'ellinB p = I/F rhenlhe averagenumber
in the queue in such a system is
(10.9)
with variance
J - (10101
(I p)'?
with ) > 0.
250 Chap 10 r QueuingModels
'10.4.2Serviceand ProductionRales
I EXAMPLE10.8
SuppoieI ihe meo inteluval time belweenintempt rcqDests,is tued to be l0 millisecondsl-e
us find themq4 processingtme, l, necessaryto gueetee that the prcbability of tine-ovedoadint
(nore thd one inienpt requestjn Lhesy3ten) is lets than 1',6 We cd use eqration 10.13as
6.or= . _
. ltootXtot to1'
1/;
5d 104 I Cla$icalQueuingTheory 2Sl
I
= < 0001 second
I EXAMPLE10.9
Supposewe fix l. {he mean seflice line, to be 5 mrlliteconds,md seekto find the avenge aEivar
tine, i, necesary to gua.anreelhat the !rcbability ofiime ovedoadinsh les thd l% We can use
equation10.13 ds follows
0' <001
j il> ro
1
=+->0.050second
A
g 10.4.3MoreBufterCalculalions
tg A secondmodel using ihe l\4A/Vl queueportraysthe "customers"as data being
placedin a buffer The "service"lime is lhe time neededto pick up thedataby
someconsumer task.Hereour k[owledgeof MA4/1 queuesis usedto calculate
he the average buffer size neededto hold the datausingequa'tion10.9,and the
rly' averagetime a datumsPends in the system(its age)usingequation1011
I E X A M P L E1 0 . 1 0
a, and h
A prccessprodncesdatawith ,ntermival tihes given by the eJgonflriat dist ibution rk
5'.
consumedby,apr@e$ at a dle Srvenby theexponentidldislribution5d To calculale$e avease
rdmberof dal! 'ren! In $e butrer,lse equdnon109:
- =P 4 = /- = 54
N
l13as l p l 4 / 5
rltL \15
7=-=-=lsecond
l-p 1 415
I1 ro be
en i' \eenIrcm equatonl0
I = 15 tnlttite"onos
I
5
r-l
3
Tlil:'tr"il:il
t':t"3kffi
.".*L*"i:oili'*''il*i",";-H;lf
glves
2
s(i\ = - e-
I
Notethattheresponsetimewillbedeleteriouslyaffectediftheinterruptmle
greaterihan ihe meanservlceIarc'
10.4.5OtherOueuingModels
or:*::;""f"f"'Tf:ti"J;l-1:
ina.vanetv
used
;" --;;.;be
;il*.X:,*ti'::*ilfi Tff:l','
$"X*.i.':iT ;.'l'#
,ilJf.':::t:i:'r*t*liig*,,**'H:."
i:':.T:ff rormodering
berrxed
'#Js can
f,::il:"H1ii'1l"T;#,lt*1ll$ffi:'"" "[ff;
queues
realisticfrmte-siz'ed
TffI
il.'Ii:'Jf"L"":1.0:IL,:.:i'liT:H:ii'H.'ff
'".,.'i+:i* iffi
l',*"i:il*l'"*ffi
..".;,'ff :$iff;l :r*I"l'.y,fJ:
Til:'t$
^trT:.T
3:Tl::T"*',
:l'ffi1'il"1'1T"ff# F*1ii;.*tt*:T?liTi
d; :i:r:'-:::":::.':*1'3"T;1'"
' *'*
i'#,H::ff il'ff ;;ffi+:'i':::
:ffi'Tl $:i:I"15"$fortime-overroads
lillttf i"illllii,i"Jii"*i.iJ"'i-t'"',"ots
Sec.10.6r Edang\ Fomula
10.6 ERLANG'SFORMULA
(.\lp\-/nt
(10.r6)
>rd'Q/t')rlkl
This resultdatesbackto 1917!
25lt Chap.10 r Queuing
ApplyingErlang'sFormulato thepreviousexamplegivesm = 4, )r =
F = 1 65 :
(380^6 14 /4
= 0.81
l + (380/16.5)+ (390/16.5)2t2
+ (380/16.5)38!
+ (380/l6.r1t4l
This means there is a potenhal for time-ovedoading 83.4% of the time. Based
theaverage
timeloadingfigureof987, andwhatwe learnedfrom
analysis (707, or less timeloading is needed to guaGntee no overloacls ir
pefect world), this seems reasonable.
10.7 EXERCTSES