http://wrap.warwick.ac.uk/
Original citation:Paterson, Michael S. and Srinavasan, A. (1995) Contention resolution with bounded delay. University of Warwick. Department of Computer Science. (Department of Computer Science Research Report). (Unpublished) CS-RR-285
Permanent WRAP url:
http://wrap.warwick.ac.uk/60969
Copyright and reuse:
The Warwick Research Archive Portal (WRAP) makes this work by researchers of the University of Warwick available open access under the following conditions. Copyright © and all moral rights to the version of the paper presented here belong to the individual author(s) and/or other copyright owners. To the extent reasonable and practicable the material made available in WRAP has been checked for eligibility before being made available.
Copies of full items can be used for personal research or study, educational, or not-for-profit purposes without prior permission or charge. Provided that the authors, title and full bibliographic details are credited, a hyperlink and/or URL is given for the original metadata page and the content is not changed in any way.
A note on versions:
The version presented in WRAP is the published version or, version of record, and may be cited as it appears here.For more information, please contact the WRAP Team at:
Research
Report211
Contention Resolution
with
Bounded
Delav
MS Paterson
and
A
Srinivasan
RR285
When many distributed processes contend for a single shared resource that can service at most
one process per time slot, the key problem is devising a good distributed protocol for contention
resolution.
This has been studiedin
the context of multiple-access channels (e.g.,ALOHA,
Ethernet), and recently for PRAM emulation and routing in optical computers. Under a
stochastic model of continuous request generation from a set of n synchronous processes,
Raghavan
&
Upfal have recently shown a protocol which is stableif
the request rate is at most)o
for
somefixed
xo<
1; their main result is that for any given resource request , its expected delay (expected time to get serviced) is O(logn).
Assuming further that theinitial
clock times of theprocesses are
within
a known bound B of each other, we present a stable protocol, againfor
some fixed positive requestrate
xl,
0 <I,<
1, whereinrhe expecteddelayfor
eachrequest isO(l),
independentof
n.
We derive this by showing an analogous resultfor
aninfinite
number of processes, assuming that all processes agree on the time; this is thefirst
suchresult.
We also presenttail
bounds which show that for every given resource request,it
is unlikely to remainunserviced
for
much longer than expected, and extend our results to other classes of inputdistributions.
Depa-rtrnent of Computcr Science University of Warwick
Coventry CV47AL
United Kinsdom
Contention
R,esolution
rvith
Bounded
Dclart*
N,Iihe
Paterror,
i
Ararrirrd SrinivasaniAbstract
Whcn nrany distributecl proccsses contencl for a single sliared tesotllce tha,t carr service at
rnost orre process per time slot, t,he kcy problerl is devising a good dislribtLted protocol for
contentiolr resolLrtion. This has been strrcliccl in the contexl olmultiple-accoss channels (c..q..
ALOHI\. Et,herrret). ancl lecently for PR,AM emulation an<l routing in optical contpttlet's.
Under a st,or:lrastic tlodel of continurirrs request generatiorr from a sct, of tz synchrottotts processes! R,aghavarr
&
tlpial have recently sholvn a plotocol rvlrich is stable i{'the t't'qrtt'stlate is
at
rnost ,\s for sorle fixed)6
(
1; thcir main lesr.ilt is that foraly
giveu resourccrcquest,
its
etpr:clt:d r/e/og (expected time to gct, serviced) is O(logrr). Assurning fulther that the initial cl<-rck times of the processes arcrvitliil
a kno'wrr bounci /J o{'cach other. rvcpresent a stable protocol. again for some fixcd positive request r::rtt' )1, 0
( )r <
1, wliereirtLIte erpecl,ed delny
for
each, requesl is O(1), independenl. o/rr. \\re derive this by showirrg anana.iogous result for an infinite number of processes, assuming that all processes agree on the time; this is the first such result. We also present tail borrnds lr,hicli show that for cvery
given resource reqllcstl
it
is ullikel;t to rcnrain unserviced {br mucli longcl thau expectcd,arrcl extend our result,s to otirer classes of input clistribritions.
Introduction
ht
scelalios rvhelc a set of distributed pl'ocesses havc a single shalccl I'esollrcethat
can service)at
l]]ost orre pl'ocesspel
tirle
slot. the main probletn is devisirrga "good"
clistribtr,terl prottt<'ollbr lesolving contention for the l'esource by the I)r'ocesses. Tiris has
traditionallv
been stuclied irLthe context of multiple-access c.halnels (e.g.,
ALOHA)
andfor
Ethernet protor:ols, and rrrolcrcccntly
for
PR.AX,I emulation anclfor
routing irr optical
conpnters.
Assumiuga
stochastic:rnodel of continuous leqltest €lenelatiol) from a set of rr, synchronous plocesses (see Section 1.1
for
thc
forrna,l definitiorr), R.aghava,n&
LTpfal ha,ve very recerrtly shorvna
protocolrihiclt
is sta,ble as long asthe
rc<1rest rateis at
rnost)6
fbr
sorne fi.xctl)o
(
1 [18]:
thcir
main lesultis
tlra,tfor
any giverL rcsorrrcerequest,its
e::r:1x:cted delo"y (expectcd timeuntil
it
is serviced; i.sO(logrr).
Assrrmingfurther
that
theinitial
clock timesof thc
proc:esses arc rvithirr a littorvn bclundB
of each othcr, rve present a stabie protocol againfor
sornc fixed positive request rate-')1,
rvlrerein l,he e:rpr:cted delayfor
eo,ch, request fsO(1).
indepentlerttof tt.
\\ie
clcrivcthis
bvsirorving an a,nalogous rcsult for an
ilfinite
nurnber of processes (rvhich is a modelfol
plocesseserrtering ancl leaving dynamically), assrrming
that
all
processes agree on the tinre; tirisis
thef.rst
suchresult.
We also presenttail
bounds rvhich shorvthat
for evcry given resoutcc rcclucst.it
is unlikeiv
to
rernain unservicedfor
rnuch longer thau cxpected. ancl extc-ntl otrr results to various classes ofinput
distributions.*Supported in part by the liSPRl'-f Basic R.esearch Action l)rogratnme of the EC ulrcler contra.ct No. 7141
(projecl ALCONI II).
tDep:ut,nrent of (lomputerr Science, University of \Varrvick, (loventry (-l\".1 TAL, Englancl
(nsp@dcs . narnick. ac . ut).
lMax-Planck-Institut fiir
Informatik, Inr Stadtrvald, 66123 Saarbriicken, (lcrman-v ([email protected]). \Iost of llter rvolk rvas
clone wliile this author was visiting the Departnrcnt of Cornputer Science, L.lniversit)' of \\'a.rrvick. (lovcrrt I v ( l\1.1
1.1 Model
and
motivation
hr
rnultiple-a,ccess channels(MACs).
thereis
onechanrel
(resource) sliaredby'a finite
ol
iniinite
number of svnchronized senders(i.e..
ea,ch sencler's local clock ticksat
tire same ratc asthe others'clocks).
Tirne
is
slottedinto
units
of
tirne starting
at
0,
andin
each unitof
tinrc.
e:rr:h sen<lel lna)' receivo some packets according tcl somcdistributior.
Ea.r:h scnderrvhi<'lL lLas pacl<:ts
will
haveto
scn<iits
packets (oneat
a
timc) to
the
channel,but
if
rnorethan one sender attempts
to
transmit
at
the samctiurc
slot. the packets r:ollirle ancl are notr'o('civcd
lrv
the
sendcr'. Otherrviscif
cxactly one packet was sentin
a
slot.it
is
receiverllx'
thc
chaurrcl rvlLich serrrclsthe
corresponding senderan
acknor,vledgement. Thusif
a, scrLclerdid not
reccivean
acknorvlcdgementfor
a
packet sent,it
krrorvsthat
there wasa
collision. ancl musttrv
aga.in:it
is natural
to
expect ranclornized protocolsto
play
a kev rolcin
this.This
model rvasinitiated bv
rvork onALOHA,
a multi-user conunlrnication svsteln basccl on raclio-rvave corrurrlllrication (Abr:rmson [1] ). andasimilar
situation ariscsiu
Ethernet protocols(Nlctcalf
&
Boggs[15]).
N'Iuch research on X,IACs rvns sprrrreciby ALOHA.
cspeciallyin
theiulblrna,ticirr
theory cornmunitl';
see.e.r.. the
special issueof IEEE
Trv"ns.Irto.
Th,rrtruot
this
topic
[12].
Recentll'such resource-allocation problerns have a,risen again,in
the c<-rrrtext ofPRAX{ ernrrlation rurnirrg PRAN{ algorithrns o1r rrrore rcalistic moclels of parallel computation
arL<1
in
llrcssagelouting
in
opticai cornputers. These parailel rnoilcls inclucle optical netrvor'lis(Arrclcrsorr
&
NIiller [4], Ger'6b-Graus&
Tsantila,s [7]. Goldberg. JL'lll11n. Leighton&
Rao i8]).D\,INI rnoclels (Dietzfelbinger
&
Meyer auf der Heicle 16]). and Valiant's S*PRAN,{ rnodel [20];see f,IacKerLzie.
Plaxton
and Rajaraman [1a]for details.
Il
addition. MACs provirlc a griotlmodel to study the abstract problern of distributecl corrtcution resolution for a
corlrrolr
shareclI'esoul'ce.
All
thesc dcfiniti<-rns can easilv be extenclcclto
the
caseof
more tha,rr one channel (sharecl resource).R,ather
than the static
case (see bclow). rvewill
be interestedin
the
d1'nanric scenario ofpa,ckets
alriving into
the svstc.rrl at every tirne step. accordingto
somedistribution.
There aretwo
irnportant
pararnertcrsIbr
a MAC
protocol*the an'iual ra"te ), of packetsiuto
the s.vstem(tlre expected number of new arrivals per
unit
tirne).altl
stability. To define sta,bilit.v. sllpposeW(
P)
is the random r.ariable rnezlsuring the amount oftine
a packetP
spenclsin
the svstert(before boing scnt successfully
to
the channel).
Thel iet thc
ra,ndom va,riable I,Ir,,,"llc
the'lirrrit
asi
+ oc of the arithmetic mean of I4t(P) for thefirst
I packets arriving into the svstcrn. Sirrrilarlv. we r]]ay define the random variableLo,"
as tirelimit
as z'--+x
of 7fi
times the sumof thc
nrunbcrof
i,vaiting packetsin
thefirst
i
steps.
Finally. wc may clefine 7,..rto
be thetirnc
takerrto
haveall
sender queues empty,if
we start frorn analbitrarv
state of the system (rveightedbv the probabilitv
of beirrgin
such astate).
Unifying several prcvious clefinitions.Hastarl. Lcighton
&
Rogoff define aplotocol
to
be stableif
:rncl onlyif
all
three of ElW,,u.).E1L,,,,,), and E[7,..1] are
finite
[9].Actuall!,
Ln,,:
\Wo,"
rvithprobability
one andsinilarly,
tlte
throughpu,t ru"te (averagerate of
successful transmissions) ecpals,\
rvith probabilitv ole.
lbr. a sr;1[]c
prol-ocol [91.\AIe mrrst distinguish
a
ferv uroclels rvlLen deJiningthe
problerrifurtirer. First.
ivt
might havc a. firLite orinfinite
nrrmber of senclers.In
the former case. there a,re rr se'rLclcrsinto
whichthere
is
a
continuousinflux
of
packets;at
nr.ost onc packet arrivesper
sender,in
any giverrtine
step.
The usual assul]rptionis
that
thcse arrivals are indepenclent a,closs clifi'ercrrt time steps ancl across different senders. andthat
the expectedtotal
arrivai per time stcp is at rnost,\.
Theirhnite
caseis
a natrrra,l extension of this,witir
a random number <-rf ptr,ckets arrivingrvith
a, Poisson clistrihution of rnt::ru),
indepeudcntlvat
each step. Here, each p:r,cket may berr:parclecl as a sender
in
itsclf.The next liev ferature is the type of a,ckrrorvleclgemelt scrrt by the channel to the sentlers. A
popnlar
nodel
usedin
thc irrforrnation theory literaturefor
this isthat
of ternary feedback: attlre end of each tinrc slot. each sender receivcs
ilformation
on rvhether zero. olie, or more tha.rLole
pacliets wel'e selrt to the channel atthat
time step.Iu
this case, stable ptotocols are kuorvnfor
,\(
0.4878... (Vvedenskaya&
Pinsker 121]), ancl there is no stable protoc.olfor
) )
0.587...(Mikhailov
&
Tsybakov [16]):but
if
the stronger feedback of thc cxact numtrer of pacliets thattried
at
the
current stepis
sentto
each sender, thenthelc is
a sta.ble protocollbl
all ,\
(
1(Pippenger
[1i]). A
wea,ker feedback model rvhich is more rc:rlistic for the pllrposes ofPRA\I
eurrrlation and optical routing
is
acknourl,erl,ge.ntent-bo.ced. rvhcrcirr the only infolmation lilorvrLto
each senclerr rvhich attemptedto
send a packet, is whctherit
succeedcd or uot; itllc'scndersget no inforrnation. The aclilowleclgernt:nt-based feedback rnodel is thus il rniuiural-inforrlation
rnodel, and rve f<rllorv [9, 1.1, 18]
in
for:ussing onthis
henceforth.The above classifications dealt
with
thc dyramic situation of pa,c.liet arrivals at everv stt'p.Altcrna,tively, rve may corrsiclet
a
static sceuario rvhereat
most
lt.of
tt, scnders have a pa<:lietcach to send to the channel; the problern then is to dcsign a distributed protocol (rvltereiu eaclL
scndcl onlv knovu's the value lz. an<l whcther
it
ha,s a, packetto
sentl cirnot)
fol
this.
Assnuriugackrowleclgemeut-based feeclback, the rvcxli of [14] , alnorrg other things. improves on previorts
rvorli to provide nczrr-optimal bounds for various problcuts relating
to
tlLe static versiotl:in
theoptical rorrting case, a similar problt:rn is termed h-r'elation rorriirtg.Ior rvhich thc liest linowrt
bounds are ciue
to
i8].Sincc
the static
case istairlv
well-rurclerstoocl, rve fcrcus oulr-on
tltc
dynatnic case irL titis work.1.2
Previous work
For
our
rnodelof interest the
dynarnic settingwith
acknorvleclgernent-basecl protocols, ortlvrrcgative resuits rverc
knoln
in
the infi,nite -cc:nd.ers case: rvhileIielly
shorvcdthat
a largc classof proto<:ols (including "pol.vuourial backoff")are unstablefor any
^
>
0 [13],Alilous extentletl
this
to
the
caseof
binarv
exponential backoff,the Ethcrnet protocol
[2].
Also,
alv
stableprotocol
in
the irrfirrite case must have)
<
0.587... [16].In
striliirrg contrast to Kclly's result. theinportant
work of [9] showecl. among otlLer things.tlrat irr
t,hcfinite
senders ca,sc" nrostpoiyromial
baclioff protocols are sta,ble,irr
lact
for
ull
^
<
1.
Holcvcrr,theil
provenuppcl'bound
for.E[I4r,,.,..]is 2l("1.
rvherc.f(r)
:
n.o(t).
U'ith
applicatiols
such as higlL-speecl communicationsiu rnild
rvhelethe
avcragedelar-E[.[I",.]
neecls
to
bekept
small, the very recent rvorkof
[18] presentcri a protocolfor
thefirtitc
casc,whiclr
is
sta,blcfor
all
)
<
)o
(-
Il7O.
usilg
the analvsis of [18]).rvith
thc liev propertv tira,tEl!4rn,,.f
:
O(logrr), after
aninitial
setuptime
of rio(l)
steps (note the sigrrificant rcclu<'tiolin
-E[I,I',,,,,.]). Moreover,it
is
shorvnin
[18]tiiat
for
each elementP
of
a large set of plotocolstlrat
inclurles all linown baclioffprotocols, there exists a threshold)p 17
srrchthat
iI
,\)
,\p,tiren
E[I4r",.]
:
91n)
ulrst
[olcl.1.3
Our
results
In
thcrfinite
sendet's case. rve take afurther
stepin
tlLcdilection
of
[18]. rvith
tire vierv thatEl\4ror*) must be kept lorv. Recall
that
the lin<lrvn results usc the factthat
the scnders'clot'lis allticli
at the samerate. flndel
the additional assurrptionthat
the cloclis of thc rr serLclels tliffer b1'a,t rnost a knorvnbourd
of
B
tirnc
steps, rve preserrt a protocolthat
has -E[I'I'.,,"]:
O(1)for
,\
<
trr
€
(0,I),
indeperrdent of n,, aft,ar a setuptime of O(Alog
B
I
nlogBlog(niogn))
in that
for
euery ytn"cketP.
the cxpected waiting tirnc 1brP
is O(1) (resp.,O(logn)
in
f1S]).ht
our vierv,this
assumptiorr on the clock differerrces is reasorrable, since clocks especiallv those rvithin a, locai enough arca, to be able to share a commolr l'esource rrsua,ily agree towitliin.
s:rv 15
minutes.
(\,Viththe
sarnt: motivation.Hui
&
Humblet consicler a sonrervh:lt differentproblcm 111].) Another rvay of loohing
at
this
resultis
that
sirrce the o-rpected waiting tinreibr'pa<'kt'ts is a ctucia,l parameter, vet
alothur payoffis
seenlbr
builcling ar:r'urate cloclis.Our
abovcrcsult
is
actuailv
shorvn cprite easilvfrom the
rnain resrrlt we prove. u'hich isa
stableprotocol
ibr
the
inf.nite. case aslong
as,\ <
11.
assumingthat all
sendcrs agreeon the
titne.
Thus.
this
additiorra,l assrrmptiorLon
accul?ltc cloclis plescntstire
first
stableacknou'leclgement-basecl protocol
lor
thcinfinite
case. Theilfinite
ca,se is ol interest too. sinceit
models situations rn'here senders ma.v enter and leave the svstern. rvith no kuorvn reasonableborurd on the number
tt
of competing processes.An
interestingpoint
here isthat
orrr results arc conrplerrrrentaryto
thoseof
[9]
while the workof
[9] shorvsthat
(negative) r'esultsfor
theiu.firite
case mav have no bearing on thefinite
casc, our results suggestthat
better intrrition arrd llositive resultsfor
thef.nite
ca,se may be obtaincd by passingto
theinfinite
casc.Orrl protocols are simple. \Aie shorv a,n explicit. easilv computable collection
{Si.,'
ri,f-0. 1.2. . . .) of finite sets of nonnegative iutegers 5,,1: for all z and f , everv clcment of 5i.r is strallel
than
everl' elementof
5; r1.1.A
pacliet born a,t tirnef
and which has madeI
(unsuccessful)atternpts
at
thechallel
soIar.
piclis a tirner
uniforrnlvat
rzlrrrlom fi'om 5;.1. ancl tries usingthe
channel a,t tiurer. Il it
succeeds,it
lca,ves the svsten; elseif
it
fails,it
incrcrnentsi
ancll'epeats
this
prcicess. !tr'e also show good uppertail
boundson
I,l'(P) for
every packet P:Vn
)
0.Pr(W(P)
)
o)
:
O(a-"
); rvhere c1)
1is a co1sta1t.
Thusfor
o'r
protocol. tlLcexpcrctcrcl nunrbcr of pa,ckets (arLd heuce the
total
storage sizc)in
the system a,t an1'givcri 111,r..is
0(1).
improvingon the O(logn)
bourL<lof
[18].
Finalh'. rve extenclour
resultsto
variousinput
distributionsto
shorvthat
our
protocolis
robustto fairly
"non-r:lndom" rlistributionsrvith
rveaktail
properties.Thus rn'e shou,
that
the expected rvaiting tirnes of packets can be rcclucecl tojust
O(1).if
lerliable cloclis are available. Iu theinfinite
ser<lers case. r,\.,e ask for all clocks to aglee; this gir.'r.sus the
first
sta,ble a,cknorvledgement-basedprotocoi.
hL the case offinite
sonclers.it
sufficesif
there is a knorvn lrppor' bourrrl on ther time clifferences betrveen the cloclis.
2
Notation
and
Preliminaries
For
an1'positir.e integerl.
we denotethe
set
{1,2,...,1}
by
[l].
Theoreml
presents tlLeChcrrroff-Hocffding bounds [5, 10]; see, €.9.. Appendix
A
of [3]for
details.Theorem
1
Let Rbe,arandomuol'iohleutith
EIR)=
1r)0
suchthat
eit.hr:r': (a)R
is uslnn
of
a.fi,rtite nu,ntbero/independenl
ro,ndctrn uo"r'iablesXr,Xz,
...
with
eachX;
taA:ittg ul"hte.cirt
[0.1].
or
(b)R
is
Po'isson. Then fr,,r' (rTtyv
>
1,Pr(R>
tw) <
H(tr.u):
(e"-7 fv"|'.
Fact
1is
easih'velified.
Lemrna1is
"fcrikiore";its
proof is shownin
the appendix.Fact
1 If
v
2
I
the:nH(p,r)
<
,-upllI".
uthr:rr:)1,
ts T.tosttiue urtd ntcntr,ttone decreasirryfor
u)I.
Lemma
1srtch tlt,o,t:
(b)\i.\:2..
Th,u,s 'if
t )
Su,ppose
-lr,Xz....,XtanrlY1
,Y2,...,\larese(luerlces
o/{0,
1}
rattdornuariables, (a)Vi
Vb1.bz.. ...b;-r
€ {0,1},
Pr(X;:
1l A;et;-r1(xr
:
6r))
S
Pr(\';
:
7).
rt'rtrl'. . .\''J ory: irtclependent. Then
fnr
arty c)
0.Pr(!;.1t1 -{;
)
c)<
Pr(I;e
tr1}'; >
r ).Remark.
If.
for
a
pair of
rczrl-valuecl randour variablesA
iird
B.
it
is
true
that for all
c:.Pr'(A >
c:)<
Pr(B
)
c), thenA
is saidto
be .slochastically rlrtrn'ino,t'edby
n.
Suppose
(at
rnost) s packets are presentin
a static systern. ancithat
rvt: ha,veI
tiure unitsivithin
rvhich we rvorrldlike
to
scndout
a
"largc"
lumber
of
themto
tire
channel. rvith highprobability
(.w.h,.p.).
Thcrr anatural
schc'rne isfor
each paclietto
a,tternpt rrsirgthe
cltiirtrtclat
a randomly chost:ltime from
[l].
(There are s<:itemes rvhich provide bettc'r consta,rLts thantlLis, and rve hzrve
not yet
atternptedto
optimizethe
constants.)In
fact.
lvervill
also neetl aversion
of
srrcira
scenario rvhere sone nuurberz
of
such experiments al'eI'utl
irr.tleytend,e:n,tl'y.as considered
bv
Leurma2.
Silce
a packetis
successfulif
ald
onlvif
no other pacliet choscthc
sauretime slot
asit
did, thc
"collision"
of paclietsis a
domina,nt concern. Thtr proof of Lcmma 2is
shor'vnin
the appertdix.Lemma
2
Suppo.<elte
rllrl
z indepencle'rt err,perintertt-c8t.E,2,...,8"
utherein
E;,
ot"7fi;
rtfot. most.s bu,lls o,r'e throwrt u,niforntl,y o"rtd intleqtendently u"t ro"nrlorrt, irr,to rt
setI'';
oJ(
bi,rt's:if
i
f
j
, therr,LigLli
-
cband\';)I'i
:
A.
Let'tLS soy that a buII ''collide-s"if
and on'lt1if
it
is nctt, th,eortly ball
in
itsbitr.
Th,en,(i)
Frtr uny giuen ballB, Pr(B
collirles)<
1-
(t
-
1l(
)'-'
<
.'//.
(ii) If
C
rlenote:s the,total
rr.urnberof
baltsthut
collirlerl, th,e'nYr,2
1,
Pr(C
>
:.:2r'l()
I
H(zs2ulQ{.)).
3
TYee
model
for
contention resolution:
the
infinite
case
\Ve assrrrne a, tinrc-slotteclsystern.
At
everytirne slot
I : 0,7,2,...,
a
tanclont ntrmber of pacliets rvhose clistributiou is Poissonwith mean,\
(
1, is injected irrto the svsterl; the arrivalsa,rc. independent
for
differcnttime
slots. W'e assumethat
all
the packets agrec o1r a collttllollglobal
timel
there is no coururon knorvledge (or inter-packet comrntrnication) apartfrom
tliis.At
everv tirne slot. each ptr.cketin
the
systemu'ill
dccide autonontottslv. bzrsecl ouits
<'trlLettttime.
its
time
ofentry
ilto
the
svstt:rrr.its
historv of
unsuccossful attcrrrptsiu
thc
1tast, anclo1
thc
outcome ofits
irrterna,l coin flips.to try
usiugthe
cha,rrneior
not.
If
it
suc.trceds, then the pachet leaves the system;if
rrot. tlLe onlv inforrnationit
has ga,ined isthat
it
trieclat
thiscrrrrcnt
time but
failed dueto
a collisiorr.\\ie preserrt the icleas pararnctrized by scveral constarrts.
Latel
o1l we rvill choclse valueslol
the parameturs
to
maxiurize thethroughput.
Therewill
be a tlaclt:-off betrvecu the maxirtrtrrttthroughprrt ancl the expected rva,iting timc
for
a pacliot; a cliffereut choice of pa,ra,rneters corrltltalie this
into
colsicleraticln. Tire constants wc irave chosen for ease of presentatiol. gtrarartteetlrat
onr protocol is stable for ,\<
7132. In the fina1velsiol.
rve rvill pl'esent a tnole complicatetl choice of constantsfor
rvhich)
<
1i 16rvill
sufficefor
stabilitv.3.1
The tree protocol
Three
irnportant
positive consta,nts,b,r
and A,"vhere b
) l
andr.A
>
1. shape thc plotocol.At
any time during its iifetirnein
the protocol, a packet is regarcled as residirrg at somc rrode ofa trec
7
that
has aninfinite
numbcr of leaves. Each non-leaf node ofT
has exactlv Ar children.lvhere
k>r
?
is
not
actually
coustructedit
isjust
for exposition.
The rtoclesof
?
at
the
same height ifor
anyi >
0.
are orcleredleft-to-right.
\Ve a,ssociate afinite ronemptv
sctof
11e11-llcgatileirrtegers TrLal(Tr)
rvith
each nodeu.
DefineL(r) *
rnin{TriaJ(r)},
-R(t'):
rnax{Trial(r.')}. aritl the c:apor:ity cay.t(1')of r.
to be l?rial(r')1.A
recpirccl set of propclties ofthe
Ttial(')
sets is thcibllorving:
P1.
If
?r and .) is anypair
of distiru:t nodes of7,
therLTrial(u)n
Trial(,r,'):
d;P2.
If
u is either a proper descendant of 'u, orif
u and u are at the same heiehtrvith
uto
thcleft
of
u. then R(u,)<
L(u).
P3.
TiLc capacitvof
all
nocles a,tthe
same heightis
the salne.Let
z;
be a generic no<le atlrciglrt ri. Then,
cap(rLo):
lr ancl ccLp(u;):
[,
cup(tt;a)],
for
i
)
1. (Thus, cnpltL;)-
hljif
r
is integral: otherrvise. lrr''l
cup(u;)lbr'
+
(r''- 1)/(r-
1).)Suppose' lve have strch a
constructiol
ofthe Ttial(.)
sets. Each packctP
injectedilto
the systertrat
tirne slotfp
rviliinitially
enter the leaf node u6(P) rvhere uo(P) is thc leftmost leaf srrcirtlrat L(us(P))
>
tp.
Thcn
P
rvill
moveup tire
treeif
rrecessarvto
successor (y.tarent) rtocles of increasing lteight,in
the follorving rvay.In
gereral, supposeP
cnters a nodr:u;(P)
atheight r. at time 1;iwe
will
be guarir,nteed the invariant"Q:
u;(P)
is an;utcestorof
u0(P). andt;1L(rt;(P))."
P
rvill
then pick an elementr;
€
?rial('ur(P)) uniforrnlvat
random. arrd trn'using the chattnel a,t tirne
r;.
If
it
was successful.P
rviil (of course) lca,ver the systern. otherrviseit
rvill
entel thepalent tzi+r(P)
of
u;(P).
a,t timerr.
(Q)is
establishedby
uin ea,sy inductionon
l.
nsiugplopertl'(P2).
Notethat
thc ptr,ckets entering anv gir..en node u coniluct the saureexperiment as
is
considereclbv
Lcrnrnn 2.with
z: I.
Nlore irnportantly.if
l
is
anv non-leaf norle. then thetrials
atits
k
children correspondto
z:
kin
Lemma 2. b1'(P1).Thus. each nocle receives
all
the
unsuccessful packets from ea,ch ofits
A' children: a,lr1111-sur:cessful pacliet is irnagirred to enter the pa,rent of a nodc z, irnmediately aftcr
it
found itselfrrnsuccessful
at
u.
Informally,if
the propoltion of the timc cledicated to height 0is
i/s,
rvhere.s
)
1, tlreu the proportion for heighti will
be approximatelylrlk)i1...
Since tire srrm of theseploportions
for all
i
can beat
rnost 1, we haves>
kl(k
-
r);
we rvill takes:
kl(k
-
r)
.
(2)X{ort' prcciselv.
the
ftial(
)
sets are constnrcted a,s follows;it
will
bc
immecliatethat
thevsatisl'v
(Pi.P2.P3). First
definel'
:
16. .*:
2.
arLtl r':
S.\Yc
rcrna.r'kthat
though rve ha,ve fixecl these constants. wewill
usethc
svmbols k, .s arrclr
(rather tlLarr
their
rrumerical values) wlterever possible,to
retain generalitv.Forrl
-0.1,....lctf-t"i20,j:2'(modZ'+t));
thesets-QforurapartitionofZ+.
thc
set of uon-rrega,tivc intcgcrs.Lct
u; be a, generic node a,t heighti; if
it
isnot
the leftrnost noclciu its
lcvei.let
r;
clerrote the rLodeat
hcighti
that
is imrnediatelyto
thcleft 6f
1';. \\Iervill
ensurethat all
eleurentsof
Tl'iai( tr;)lie
in
4.
(For
a,rrv large enoughinterval
I
ttr Z+, tlre fraction ofF, lr'ing
itL1is
rorrglLlvI12'+t
= (rll;
)'/..:
this was what wc lneant infblmallvii,Dove. J
\\ie
lorv
clefineftial(
r'; ) bv induction on 'l and 1i'omleft-to-right
rvithin the sa,me levcl. asfollorvs.
If i :
0.
thenif
r.'sis
thelefimost
leaf, rveset
Tlial('u6)to
bethe
smaliest crLp(\))elenrerLts
of
Fu; elsews set
Trial( us)to
be the
cnp(ro)
snallcst
elementsof
Fslargcl
tharrR(uo).
If
i
>
1.let
il
be the rightmost childof
u;.If
u; is the leltrnost nodeat
height r.lr','k't
Trial('u;)be the cap(r-;) srnallest elerrrerrts of 'F,
that
are larger than fl('ur); else rlefi.ne Ttial(a;)to bc the r:ap(a;) smallest elements of ,Q
that
are iarger thanmax{-R(u;),/l(ur)}. In
fact.it
iseasv
to
shcirvbv thc
samc induc.tivc proccssthat,
if
z;
is
defined, thenll(ur)
I
fi(u;);
henccfor
everv noclel;
r,vith ri)
1,(3)
3.2
Waiting
tirnes
of
packets
\Ve norv come
to
our main tanclorn variable of interest:spend
in
the
systern.from
its
a.rrival.
\\h
need sornesrea,ter
than
1.the
timc
tha,t a generic packetP
will
<lefinitions. rvherc
o,d
are <:onstantsDefinition
I
For ony node'u€
T,
the ro,ndorn uariable locrd(t:),lhe load ofl,
i.s defi,rted, to betlrc
nunrber of packetsthat entelu;
for
arty po.sitiue integert,
uis
de.fi,nedto
br: t-bacl i,f rnt'd on,Iyif
locLd(u))
brirlt-1 fn.
Node u i.s saicl t.o be. t,-loadedif
it
is t-bad butnot
(t +
1)-bar|, ft.is
atlled, badi/
it
is
7-bo,d, und goocl othet'wise.It
isnot
harcito
verif-vthat
for
an-v givenf
)
1, the probabilit.v of beingt
bad is ther s:rrne forauv pair of nodes
at thc
sarne lt velin 7:
this llrings usto
the tterxt clefinition.Definition
2
For olry
(ge:r're:r'ic) nodeu;
o,t heigltti
itt
T
anrl o,ng positiue integert,
pi(t)
rl,erxttes th.e probability that
u;
is t-barl.Definition
3
(i)
The failureprobabilitv q is
the marinturn probobi,litythat
o, pocket ente:r'irt,ga, good norle uri,H
r'ot
sttcceed rhrring the funr:t'ioningof
that rtode. (i,i)For
o,ny yxtcketP,
let,'rr6(P).
trr(P).
rr2(P),.. .
be the norl,es ofT
that
tL;is
o,lloured to pass th.rorryh. uherr: the heigh.tof
n;(P)
i.si"
Le:tE;(P)
be tltr: e:ue:nt thatP
enters u;(P).If
a node rr a,t heighti
is goocl, thcnin
the notatiorr of Lemma 2. .sI
(.f a, wherc(
:
cap(It)lhulce. Lernrna
2(i)
showsthat
rt
<
7la.
(5)Note
tlrat
th,e distribution ofE;(P)
is irxl,e:pendent of its urqu"menf. Hence,ibr
any zl)
1. rvcrnav clcfirre
e;:
Pr(Ei(
P))for
a generic packctP, with
€s=
1.
SupposeP
rvas urtsuccessfirlat nocies trs(P),
ur(P).
....rt;(P).
LetA(i)
cleuote the maxirnumtotal
arnount of tirneP
coultllrave speut in these
(i+1)nodcrs.
Then,it
is not hard to seethat A(0)
<
-< cap('uo)f ,s cop(ttii):
2.sD and
that
for
i >
1,A(r) < kA(t
-
1)+
(A'/r)i..l,t',
using ('1). Hence,A(t) < (i
f
1).sbA'for all i.
Lernma 3
is
about thedistribution
of the crucial ralclonr variableI'I/(P)
thc'time
that
Pspencls
in
thc
svstem. See tire a,ppentlix forits
proof (which is simple. brrt crucial).Lemma
3
(i)
For o.ny pocketP
artdfor
alli
>
0,Pr(I4t(P) > A(i))
(
e;11;
o,lso,ElIltlP)]
<fpoA(i)e;.
(ii)
For
rtll ti)
1,r:;1r1c;-r +pr-1(1).
3.3
The
inprobability
of high
nodes
being heavily
loaded
As
is
apparent frour Lcmrna 3. our main intcrost isin
getting a g<-roduppel
boun<l orr 7r;(1).However,
to
do this
rvervill
also neecl sorneinformation
about p;(1)for
t >
2.
atld
hcnceDt:firr.ition
2.
The
basicintuitiol
is
tha,tif
a
nodeis
good, Ihen ut.h,.p.,it
rvill
successfirlh'sche<lule
''rlost"
of its
pacliets; tlLisis
formalizedby
Lernura2. by
setting
: : I.
In
fact.Lcnma
2 shorvsthat for
any nocle 'uin
the tree.tltc
qoorl cltildlenof
urvill,
tr./2.p.. pass on atotal
of "rrot rnany" paclic.tsto
rz, since the firnctioning of eaclL of tliese chilclren is inclcpcrderrtof the other children.
To estimate p;(f
),
wefirst
handlcthe
easy caseof
i :
0.
Rccallthat
if
X1
and-l2
aleindepernclcrnt Poisson randorn va,ria,bles
lvith
rrieans)1
and)2
respectivclv. tlterrXr
*
-Xz isPoissorr
rvith
mean)r * Iz.
Thus.Tr,6 beingt-bad
is a
simpic large-<ieviation e".entlbl
at
Poisson randorn variable
with
mean.sb).
If,
for
everyi >
1, rvc defineut
=
d,t-|/(-sa))
and onsrlre tha,t z1>
1 bv settingsn)
<
1, (7)thcn Theorern 1 shows
that
p6(f)
:
Pr'(uo isi-bad)
<
H(sb),.u1).
(8)!\re nor,v <:<lrtsiclcr horv a geuelic nocle
u; at
height z)
1 could have be:c:orne /-bacl,fbr
anvgir.'en
t.
Tire resulting recllrreni:r'yiclcls a proof of an upper bouncl forp;(l)
bv induction on r.The trvocases?
f
)
2 andt=
1, are covered by Lemrnas 4 and 5 respectivell.
\\t-enorvrerlriled2
+
k- I1
clr.
(9)Remark.
Lemrna 4 can be strengthencd,but
rve preserrt this versionfor
sinplicitv.Lemma
4
Supq,nse d2+
k- I
1
tlr.
Thenfor
i
) I
andt
)
2,
if
a 'node u,;at
he'igh,ti
in
T
is t-bad, then
at
leo,st one of thefollouino
two conditions holds,for
rt;'-s .set, of ch,ildren,.(i)
At.Le:o,st onr:
chikl
is(1+
i)-barl,
or'(ii)
at leo,st.2 children are(t
-
I)-barl.
Thus,/l'\
p;(t)
< kp;-lt
+
1)+
[rJ
tl,'-'tt
-
1))'
.The proofs of Lemmas 4 and 5 arc shorvn
in
the appendix. !\Ie rrorv consider the case that/ :
1 rvhr:rc theiltuitior,
that
the good childrenof
t;
cal
be expectecito
havc successfirllvtlansrnitted rrruch of
their
loacl. pl:rys a kcv role. lVe now rerluilea(r-rl) >A'
1.
(10)LenrnaS
If
a(r-d)>
(fr-1),
thenforamf
i)I,
1r,ru)
(
A'r;-,(r,*
fl)
(pi-rr1))2
+
A'p;-,(r)H((A'
1)br'-r
i=+)
+ H
(Lbr'-t
n'\
t.t\Lt:'\r't-t\-t|
\_,
_t\r/'\
,u, . A,_I )-,,\ * T)
We norv present
a
key theorem tha,t ploves arl upper boundfor
p;(/),
by
inductionon
i.\\'e
assurnethat
our corrstantssatisfl-the
conclitions(1.2,7,9.
10).Theorem
2
There eristsa
consto,nttrr
)
0
snch thatfor
a
sufficiently large uah,eof b
t,he,fol,l,rxui,nq h,ol,rls
for
)
(,\1
.
Th,ere o"r'e positiueconstantsa.B
arri1.
uti,tha.d
) I.
sru:l-r, that,Vt
>
0 Vf>
1.
l,ilt)S
r-^'o"r'-r.
Belore procee rling
to
thc proof of Theolem 2, Iet us sqe \ 'h)'it
sh<xvs the required propcrtvthat E[W(P)].
the expectecl rvaitirLg tirne of a generic pa,cketP
in
thc svstem. isfinite.
Thco-renr 2 shorvsthat
forlalge'i, p;-r(1)
islegligible
cornparedto q'and
hence.bv
Lcmura 3(ii),(,i-
qi(1f
o(1)), rvherethc
o(1)telm
goesto
zero as r, tendsto
infinitv.
Hence. Lernrna 3(i) t:ornbined rvith bound (6) showsthat
as long as we can ensllrcthat
g<11k.
thel
E[I4/(P)]
isfinite
(ancl. irrfnct, that
good uppertail
bounds can bo provenfor
theilistribution
of I4,'(P)). Cornbiningthis
with
(5). all rve need isto
pick a la,rge enough so thato>k.
8
Proof of Theorem
2
Induction oni.
If i
=
0, we use inecFrality(8)
and reclrrire thatH('sb)' u1)
I
6-^ii3'-' 'Frorrr
(7),
rve seetltzrt
u1)
7;
thus
by
Fact
1,
thereis sorne,tf
>
0,
l\l1
I
X[,,,
that
l/(sir),ut)
I
,'-utsb\f\4. Tliereforeto
satisfyinequality (12).
it
sufficesto
ensuledt-|bl(oil1) >
^iit-'.
lVervill
do this by choosingoul
constants so a,sto
satisfv:(12)
suclr
that
(13)
.
(15)1: rve norv cxtrntine
e corstant
fol
both(16)
rI2Aandb)1aI'I
.We
rvill
choose r.- ancl ,9to
be fairl-v closeto
(but
larger tharr) 1. a,nd s<-r the fir'stitecltalitr'
will
be satisfied. Although1
will
have to be qrrite large, rve rvill be freeto
choose b sufficieltlr.'la,rgc
to
satisfythc
seconcl iu.erpality.\\ie
procccrlto
the incluctionfor
i
)
1.
\\/ehlst
halrlle
the caset
>
2, autl then tILc caset- |
Case
r: t
>
2. Bv
Lemma 4.it
srrfficesto
shorvthat
ke-"'t-'''
+
(j).-""'-'
'tt-2<
{'-1ni/3r-rIt
is easvto vcrily
that
this
holdsfor
somc suffi.ciently lalge 7, provided0>rrand2>aB.
\['e
cal
picka
=
1+
e andd
=
1f
2efor
some small positive e, e(
1,to
satisfy (14).(1-l.I
Case
II:
t
: \.
Thefirst
termil
the inequalitv for 2;(1) givcn by Lemrna 5. is the same aslirr
Case
I
rvith
f
:
1; thusit
can be assurnedto
be rurrch smallerthan
e-1^
bY an apltropriate choiceof
constants, as seen above. Sirnilarly,the
second terrnin
the inerpralitvfor p;(1)
carLbe handlcd
by
assumingtirat
ctI
2 andthat
7 is large enou.glL. rvhich a,gain has becu handlcdabove. The
final
two terms sivenbv
Lemrna 5 sum to/,.,
-r^i-'
,
(t*
-
!l!"-t,
n(,''
-,'))
t
n
(A'tt-''-'
."\
2u2
k-l )
--\
)tP\\ie
rvisirto
uralie each sumrnandin
(15)at
rrtost.sar-..-r"i/4.
trsirrgsornt' srrfficient conditious
for
theseto hold.
Let ,1/'
be a, strfflcientlvapplications of Fact
1.
Thenbv
Fact 1. rvejust
ueerl to ensurt' thatnt'\
Ll
Fact
Ielo'
bri-1(r
-
rl)2rLl[l
)
tt,'
+
ln(l
A'1 nuajf
2n,f,It-
)
J '.'
-t lrr -l .Both of these a,rc true for sufficierrtly ialge
i.
sinccr
)
a.
To satisfy these inequalitics for surallrl. we choose b sufficiently large
to
sa,tisfv (16,13), complcting theploof
of Theolern2.
nFinally, we can choose
cI=4.
It
is norv easil.v verifie<lthat
conditions (1,2,9,13.14)are all satisfied. Inecpality (10) is satis{iedin
viervof (11).
Ineclualities(7,1i)shorv
that
oursis
a stable protocolif
,\
<
)r :
1/(/,r.')-r132.
Theorem
3
In
aMAC
problen't. ttrith infi,nitely rnang -cenders. sLlppose tlr,e: senders' clrx:l,:s tt"l,lo,qT'ec,
on
the.time.
Then. tlrnreis
o, f":rerl)t €
(0,I)
nLch thatfnr
rmg\ I
z\1.
olLr prcttocol4
The
finite
case
The rnodel norv is the one studicd
in
[9, 18]. There arcn
senclers.with
a packetauiving
rvithplobabilitv ,\; at
sender tl a,t evcry tirne step, inclepen<lentlv of the otht:r senclers: alrivals atcliffcrcnt
tirne
steps a,re independentof
eachother.
We a,ssuureIi'=, ),' < ) <
1/32.
as intht' irLfirito
<ra-se. Thefurthel
assumption rve ntakcis
that in
additiouto
svncirront'. there isa linou,n bound on
the time
difference betrveelr anvpair
of sencler r:locks.i.e..
tlLa,tonlv
thelast
ll-
bits of the tirne rvill haveto
be agrccd upon by the senders,for
some knownI,I,.
Notethat
ortcc rvc ha.vt.this
agreement, rve can simplv r'nrrorlr "infinite
senders" protocol; so wefocus orr
this
clock agleernerrt problem norv. One obvious solutionto
this isfor
the sendcrs to cornrnunicatcrvith
cach other to agree on thetime.
Though this is potentiallv expensive. tlLisone-sirot cost might rn'ell be ba,lancecl by thc good gain
in
the storagc recpirements anclin
thelvaiting tirnes
for all
packets, from therr orr.Suppose though
that
such inter-procerss cornlllllllicationis
prohibitivcl.v expensive. TlLenthe
oulv
[real]sof
communicationis the
shared channel. and rve now shorv horvto
rrseit
to aglee on thetime
rvithirr O(I,I'2\v*
nl4r 1og(nI4'-)) steps,w.h.p..
(\\rc havenot
atternptccl tooptimize the
mnning
tirne of this protocoi.)
To this end, the serr<lerswill
sencl fakc ''pzrt:1iets"to
the channel;this
shorrlclnot
bc confirserl rvith our actual IvIAC protocol to berrn
later ori.Tlre clock agleement protocol rvould ask
all
sendersto
"srvitr:hon"
rvhentlteft
local r:kx:k.cslLolr sorne particnlar tirne (such as 23:59 EST on
April26,
1995).Lct
l:
nlogn
for sonresuit-a,ble
colstant
a.
Each sender swill
independently attempt to use the channel rvith probability1/rr irrclependentiv
at
each step,until
it
succeeds.If
s doesnot
succeedivithin
Zw+ (
steps.it
rvill
stop atternptingto
usethe
channel; elseif it
docs sur:ceecl.it
r,'i11then
contilu<.ruslvattenrpt usirrg
the
channel,for
thenext
2.2\r'
+
I
steps. Since anypair
of sendcrs switch onrvitlrirr 2II- steps of each other.
it
is clearthat
at most one sendcr(tbe
leader) is successful.No leacler
will
be electedonly
if
for
the
I
successive steps beginning2lv
stepsaftel
thefirst
scnclcr srvitchecl on. eitirer no senderor
at least tlvo scnclcrstried
usins tire charnrel. Theplolr:rlrilitl
of rlLis happerLirrg is r-ervsmall
c-Q(r). Tlrrrs \\'e rl:1.\'irssrurro rhar a learier'.su \\'irs eler:te<1. Startirrgat time
step 3.2w + I +
1 sinceit
srvitchcclor,
.esrvill
attemptto
nrakc tillotlrcl
scrrdels a,greewith
its
local time.in
phasesPt,Pz....,Pyy.
Wc denote a genelic selclertlrat
isnot
ss,by
.s herrceforth. The sencler swill.
starting attime
step 3 .2n"+
d11
sinceit
srvitchecl on.
trv
to
n,grcc rvith.s6's clocli.After
phasc P,,all
sendersrvill
agree rvith.ss on the.i
least significantbits
(lsbs) ofthe tirre,
w.h.p.. P, lasts forl;:3.2t1'f
cnlog(rrl,Ir-) steps Ibra suitablc constant r:; thus. trvo different senclers
might
differbv
at
most oneiu
the inclex ofthc plLnse
that
theythink
the-v are in.Assu.rning
tliat
P1^P2,....P,
have been finisheci. rve describe Pi11rrow.
Lct 7,+r
denotethe set of time steps rvhcn thc clocl< of ,s6 shorvs a onc
in
the(i*
1)st lsb.Il
Pi+i..s9 attcmptsto
use the charrrrel exactl.v a,t those tirne stepsthat
1icin
7,11.
Sencler s, on theothel
halcl. atternpts usirLg the channcl indcpcndentlywith probabiliti'
TlQn)
at eaclL tirne slot. ancl in{'crsthe
the
(rf
1)st lsbb1'taking
themajoritl'rcsult
from thetime
steps(in its
version of P,+r) irr rvhi<:hit
tried
(using the channel) and collided.A
cluick analysis oftirc
correctnessof
thisis
as Ibll.orvs,the
detailswill
be givenin
thefinal
version.During
tlLe periodthat
was P,11accorcling
to
.s0.s
rvoulcl havetried
usingthe
channel0((l; -
Zw)1")
times.w.h.p..
Sincethe
measrrreoi
7;11during
this
periodis
roughlya half
ancl sincethe
expected nurnbcr oflon-learlcrs
that
can collicle rvith.s at anv tirne step is roughly 1/3. the rna,jority result choscnby.s rvi1l be correct. u.h.yt.. Similarlv. the fact
that
s might have thoughtthat
some portionsol tlLis perioci belongecl to P, (or P,12)has rregligible effect, since
l; )
2t''.
This plotocol takesO(Iy2\r'
*
nl4tlog(nlf
))
steps. and hence we getTheorem
4
In
a MAC problen"r, with, rt, sertdcrs, suppose tlte .se-rulers' clctcksdilfer
b'yat
most a knowrr nuntberB
of steps.
Then there i,s af,rerl Ar
€
(0,\)
nr,ch tho"tfor
o"ny AI \t,
ou"r' 7n'otocol guaro,ntees, aftera
setu,p tirne, of O(BlogB
*
nkrg?7log(nlogB))
str:ps, arr erpectecl'uoiting tirne etf O(7)
for
euer"g packet.5
The effect of
the
input
distribution
Suppose
that the
distribution
of
incomirg
packetsto
the
svstcur has substantiallv rvcalierrandorn properties
thal
thc inclependent Poisson distribrrtion (or irrdepeudcnt binontial,ir
thefinite
ca,se):our
protocollvill still
ensurethat
the
expcctecl r,vaitingtirnc for
cverv packet isO(1).
Themotivatior
fol
studving thisis
two-fol<1.First,
oul
conteutiorr t'csolution protocolmight
be a, modul<.irr
a larger system.with
thc
prcvious moclule fecclirrg packetsrvith
somcpossiblv
vely
"non-randorn"<listributiol.
For instance, onerof the
resultsof
[1a]is
that
lbr
PRA\'{
ernulation, rnem.oly loca,tions carL be irashedin
a,n l-rvisc irrdependelt fa.shiorLfol
somesuitablv large hxed
I
rather tha.nin
a corupletely ranrlorn fashion, to avoid having to stclc'httgelraslr tables. (Rccall
that
a sequence of ra,ndom variablcsXr,X2,...,X,,
ts (-utise ittdepett,d,r:n,t.if
everyI
of them arc rnutually independent: such sequerrces are well-kuorvrLto
be sampleablcusirrg nra,ly fewer random
bits
tha.n dotheir
completely indepcndent c.ounierparts. \\-e r,villencourrt<:r these again.
belorv.)
\\Ic
rnight be
ableto
guessthe
packetdistributiol of
theirPRAI'I
ernrrlatiol,
for
an1 givenPRAX,
algorithm.
The
second lcasonis to
shorv tlLat out'protocol
rloesnot lccd
cmciall.vthe
verv goo<l large-cleviation proircltiesof
"we11-Jrcltavecl"distributions lilie indcpen<lent Poisson/binomial, to mairttairr
ElI4/o,,.1:
O(I).
In palticrrlirr for'an l-rvise indepcndent distribution to be sketched belorv, clirect use of the protocoi ancl tirralvsis
of [18]
fol
thefinite
case, rvill mandateE[I,I;,,"]
-
r]o(1), ra,ther than their O(logrr) bound that holclsfol
inclependeni binornialarrivrils. (Of
coulseit
is
corrcciva,blethat
a, rnotlification o1the'ir protocol
might
clobetter.)
Dueto
the lack of spacc, wejust
sketch the result.From
the
pa,ragraph immediately follorvingthe
statementof
Thcorem2,
we
seer that7r,(l):
O(n-i)
rvill
suffice to rnairrtairr the propertythat ElI4r.".):
O(1)
thcstrolg
(dorrblvexponcntial) decay of
pi(t)
as z irrcrcases. is unnecessarlr.In
turr,
b.v ana,lvzing thc lccur'r'encespresentcrl
by
Lemmas4
and5,
we carr shorvthat
rather
tha,n tlLestrorg
boundof
(12),
it
suffices
if
H(sbA"uy)
t
hr-t
(1r )for
sonre constantn
large t:noughin
comparisonwith
A, aud{bl
a sufficiently sruali constant 6>
0.
\\l-e can then proceed bv inclur:tionol i
to
sirorvthat
Lt;(t)-
O1r,-i;
(bv shorvirrg thatpift):
O(rr-'n-t).
rvhichis all
rve nccd. Bound(1i)
ca,n connotc avely
rvealitail
belLaviour.In
particula,rin
thefinite
senders case , such a bound holdsif
paclicts arrive indepeuclcutlr' atrliff'erent
tirne
steps,but
if
rvithirr eachtime
step,the
(a,tnost
n)
incouring paclicts have anl-wisc independent
distribution, for
some large enough constantl. It
isfbr this
scenario thzrtciirect use of the protocol and analysis
of
[18] 'will mandate .U[tr{/o,,.]=
pa(r1.In
lact,
sucha
rerpirement
can be rveakencdfurther.
to
not
have indepenclent arrivalsat
eachtime
slot.
We wouldonlv
needthat for
arryf.nite
sequenceof
ciistirrcttirne
slotsty1t2
more tha,n some value beyond expectecl.
is at
rnost some consta,ut tirrresthe
correspondingprobabilitv, hacl thc arrivals been independent at th.csc tirne slots rvith the rvea,li tzril distribution
of ( 17). Such
situatiols
occur comrnonlyin
"negatively colrelated" cases. Fol irrstarrc('. srlpposea total of
a,tmost
)l'pac{iets,
for
somelalge
,\r,
can arriveinto
the
svsteln. eaclL a,r'r'ir..irLginrlerpendently
at
a
tirue
chosenuniforrnly
a,t ra,ndorufrom
[l[].
I{ote
tira,tthe
alliva,is attliffererrt tirrre stcps are not independent, but that they do satisfl' the a,bove negative colrelatiou
p1'opeItv.
Acknowledgement.
trVe wish to thank Michael Kal:r,nta,r of Cornell Llniversity for explainingthe practical
sideof this
problernto
us.
Wethanli
Prabhakar Raghavan andEli
Upfal
forserding us an early version of
their
paper [18]. and thankPhil
Macl{errzie, Gleg Plaxton andRajrrtolLan R,a,jararnanfor allorving us
to
usepart
of the IATpX source ofthcir worli
[14].References
[1]
N.
Abramson. The
ALOHAsystern. In N.
Abra,rlsonand
I'. Iirro.
editors. Crtrnptde'r-(iomtrtunicat,ion l{etu,orks. Prenticellall,
Englovood Cllifl.s, Nerv .Iclsey. 1973.[2] D. AldoLrs. Ultimatc instability of exponential backoff protocol fbr aclilorvieclgcnrent based
trans-trrission control ol rauclom access collununication channels. IEEE Tran.s. ctn Inforntalion Theory.
IT-33(2):219 223, 1987.
[3] N. Alon, J. H. Spencer. a.ncl P. trrdtis. 'I'he Prohabil'istic Method. Wiley Tnterscience Series,.)ohn
\Viley & Sons, Inc.. Nerv Yorli, 1992.
[4] R,. .1. Anclet'son ancl Cl. L. N'filler. Optical contmunication for pointer based algoritlims. Teclinical
Report (lRI-88-14. (lomputer Science Departrlent. University of Southern California. l1l8c\.
[5] H. CheLnoff.
A
measure of asymptotic efEciency for tests ol a hypothesis ba.secl on t,irc srurr ofobservations. Ann,als of Xlal,h,enralical Slatistics, 2i):493 509, 1952.
[6] X{. Dietzfelbinger and
l'.
X,Ieyer auf der Heide. Simple, elficient sliarecl memory sirlulatiorrs. 1nProc. AChf Symltosiltm, on Parallel Algorithms and Arch,iteclzres, pages 110-119, 1993.
[7] Nl. C:ler6b Ciraus and T. Tsantilas. trfficient optical comtnurricatiorrin parallel cornputers.It Proc.
ACtr'L9yntposiurn on Parallel Algorithms and Architeclzres, pages 41 48. 1992.
[8] f,.
,\.
Ciolclberg, NI. Jerrum, F. T. Leighton. and S. B. Rao. A doubly logarithmic corrrrnunication;rlgorithnr for the corlpletell'connected optical cornrlunication parallel computer.
ln
Proc. ,4C:II ,9yrnytosiunt on Parallel Algorilhms an,d Archileclrrres. pages 300 309, 1993.[9] .1. I{astad,
F.T.
Leighton. ancl B. Rogoff. Analysis of lrackoffprotocols for multipleaccess chalrrels.ln
Prt,r:. ,,1('tr1 S'yntpositnrt on Th.eory of Cont.ptrt.'in9r l):rges 241 2r,t11,1987. To apprlar in S'|AX,I J.( iontlttrl.
[10] \,V. I{ooffcling. Proba,bility inequalities for sunrs of bounclecl random variables. Anter-icnrt SLati,sl.ical Associ,n,l.ion .JotLntul. 58:
l3
30, 1963.[11] J. Y. N. Hui and P. A. Humblet. The capacity region of the totally asvnchronous multiple-access
charrrrel. IEEE 'lrurts. ort Infornt.at,ion '1'he.org,I'I-31:207 216, 1985.
l12l IEEE Trans. on Inforrrtn,l.ion 'I'heory, I'1'-3 L, 1985.
[1:l]
tt.
P. Ir.elly. Stor:hastic mocicls of conrputer cornrnunication syst,erns. J. Royal Stalistical Societ.y( I) ). 47 :i\7!) 395. 1985.
[14] P. D. \'IacKenzie. C.
G.
I)laxtorr, ancl Il.. R,ajararrt:rn. On contention resolution protricols an<l associaterl lrrobabilistic phetronreua.In
Proc.ACM
Synt,positLnt ou The.ory of Computin,g. pages153 162. 1994.
[15] ll.. Ntetcalf and D. Boggs. Ethernet: distributed pacliet srvitching for local cornputer netu,'orlis.
Conrrnunir:nl,iorts of the ACM, 19:395 404, 1976.
[16] V. A. NIikh:rilov and
T.
S. Tsybakov. Upper bound for the capacity of a random multiple zrr:r:esssystem. Problent'y Pe.redach'i In.forrnatsii, 17:90 95, 1981. Also presented at the IEtrE Infolrnation Theorl' Symposiunr, 1981.
[1i]
N. Pippenger. Rounds on tlie perforrnance of protocols for a mriltiplt: access broaclcast channel.IEEE Trans. on In.formation Theory,l'f-)7:I45 151, 1981.
[18] P. Raglravan ancl E.
tlpfal.
Stochast,ic contention resolulion with short <lelays.In
Proc. A(:f,IS.rlm1tosiurn on 'I'heory of Conrputin g, 1995. To appear.
[19]
R.
lta,man. The porvcrof
Collision: R,andomized parallel algorithrnsfol
chaining arr<l irrt,egt'rsoltirrg.
h
Proceedinqs, 1}th Annual FS7'[:;'l'(S
(.:onfen:acc. Lecture Not,esiti
(-lorttputtrr Scieuct'#
472, pages 161 175. Springer-Verlag. []t:rlin, December 1990. Also avtrilable as ITnivclsit)' ofll,ochester CS Dept. Tll. 336. March 1990 (ll,evised January 1991).
[20]
f,.
G.Valiant.
General purpose parallel architectures"In
J. van Leeurvett. editor. Hn,ndbook ofTheorelico,l Computer Science, Volume,4, pages 943 971. Elsevier, New York, 1990.
[21] N. D. Vvedenskaya and N{. S. Pinsker. Non-optimalityof the part-and-try algorithm. In,4b.slrn.cls
of the In,l,ern.ational Worksho1t on Conuolulion.al Codes, Multiu.ser Cornnrtnt.icolion, ,9oc.h,i,, fI.t,9R.
pages 141--148.1983.
Appendix
Proof of
Lemma
1
Lct
e;
=
Pr(Yi
=
1).
This ploof is
essentially the same a,sthc
ote
t.t1Rarnan [19]. However since the scenario
of
[19] is alittle
differert,
with
n; being the sarnefol
all
r. rvr- plesentthis
proof here.Thc llroof is
b-v inductiorr onl:
the ba,sr: case ofI :
1 is immecliatc. Assumetltc
lerunta for (.-
1.
Foli
e llll,let X(')
: Ireldf,
ancl 1-(l)-' I,,e[i]l;.
\Ate may assumethat
c isal
iuteger. siuce theX;
anclIl
areintegral.
If
c:0,
thel
Pr(X() )
r:):
Pr(l'(r)
)
r:):
1'
Forc)1.
PrlXQ) >
c1
:
:
:
Pr(X(i-t)
>
c)+Pr(X(z-t)
=c-
l)Pr(Xr=
1l1(r-l)
- c-
1)Pr1-{(t-tl
>
c)+
alPr(l(-t) :
c
_ 1)(bv
(a))alPr(f(-t)
>
c-
1)+
(1-
oa)Pr(X1r-t)
)
c)rtrPr(Y'{(-
r)>
"
-
1)+
(7-
ua)Pr(1'(r-t)
>
c)(bf
incluctiorL hvpothesis)Pr(I'({)
>
c;.Proof
of
Lemma
2
Part (i)
is immediate.
Forpart
(ii),
nrrrnberthe
ballsitt
p2,gh [r'; a,s1,2,... arbitrarilv
tlrr.diet
X;,;
be tire indicator-r'andoln valia,ble forthe.ith
ballil
[ri collidilg
rvitlr a lorver-numbered ball {i'orn
[i;.
Thus,C
<
2X,
whcrcX
: I;,j
X;,r.
Notcthat.
since theballs are thrown inclependentlv, tire conditional
plobabilitv that
-{;,r:
1is
at rnost(rr
I)l(.
even gir.enthe
binsin
LI; occrrpiedbv all
tlLe ballsbut thc
7th.
TiLusby
Lemma1.
tr
isstochastically' <lominated by a sum
l''
of irrclependent {0, 1} randonl \'?i,riables. rvheleEf)'l
<:
f
t.l
-r)l(
<:.,21t2t.1.?ui"
Thus
Lenrna
1. cornbinedwith
thefact that C
< 2X,
concludes the proof.Proof
of
Lemma
3
Palt (i)
is irunecliate.Fol
palt (ii),
note that!
Pr(E;l
:
Pr(E;lE;-1 )Pr(E,-1)
c;-r