368 10 Modeling Medium Access Control Protocols
queue will vary in size between the limits 0 and N − 1 since at worst N requests
could arrive at a time step but only N −1 requests will remain queued at the end of
the time step.
Starting at state j, the probability of making a transition to state i is governed by
the following observations:
• It is impossible to make a transition to state i if i < j −1 since only one user can
access the medium.
• Itispossibletostayinthesamestate j when one user leaves the system and
exactly one more user requests access.
• The next state would be in the range j ≤ i < N depending on how many users
request access to the medium.
• The transition probability p
ij
represents the probability that i users still request
access to the medium at the end of the current time step.
According to the assumptions we employed, the resulting transition matrix is
lower N × N Hessenberg matrix in which all the element p
ij
= 0for j > i + 1.
Suppose there are j queued requests at the end of a time step. In the next time step,
we are sure that j requests will be issued plus a possible 0 to N − j additional
requests coming from the other users.
We organize the distribution vector at equilibrium as follows:
s =
s
0
s
1
s
2
··· s
N−1
t
(10.118)
where s
i
corresponds to the system state when there are i users with unsatisfied
(queued) requests. The corresponding transition matrix of the channel is given by
P =
⎡
⎢
⎢
⎢
⎢
⎢
⎢
⎢
⎢
⎢
⎢
⎢
⎣
yp(N −1, 0) ··· 00
p(N, 2) p(N − 1, 1) ··· 00
p(N, 3) p(N − 1, 2) ··· 00
p(3, 4) p(N −1, 3) ··· 00
.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
p(N, N −2) p(N −1, N −3) ··· p(2, 0) 0
p(N
, N −1) p(N −1, N −2) ··· p(2, 1) p(1, 0)
p(N, N) p(N −1, N −1) ··· p(2, 2) p(1, 1)
⎤
⎥
⎥
⎥
⎥
⎥
⎥
⎥
⎥
⎥
⎥
⎥
⎦
(10.119)
where p(i, j) is the probability that there were i idle users and j of them issued
requests to access the medium. y represents the probability that there were N idle
users and at most one of them issued a request:
p(i, j) =
i
j
a
i−j
b
j
(10.120)
y = p(N, 0) + p(N, 1) (10.121)