290 8 Modeling Traffic Flow Control Protocols
Thus we are now able to determine the packet arrival probabilities as
c
i
=
N
i
x
i
(1 − x)
L−i
i = 0, 1, 2, ..., N (8.62)
The state of occupancy of the token buffer depends on the statistics of token and
packet arrivals as follows:
1. The token buffer will stay at the same state with probability c
1
, i.e., when one
packet arrives.
2. The token buffer will increase in size by one with probability c
0
; i.e., when no
packets arrive.
3. The token buffer will decrease in size by one with probability c
2
; i.e., when two
packets arrive.
4. The token buffer will decrease in size by i with probability c
i+1
; i.e., when i +1
packets arrive with i < N
The state of occupancy of the packet buffer depends on the statistics of token and
packet arrivals as follows
1. The packet buffer will stay at the same state with probability c
1
, i.e., when one
packet arrives.
2. The packet buffer will decrease in size by one with probability c
0
; i.e., when no
packets arrive.
3. The packet buffer will increase in size by one with probability c
2
; i.e., when two
packets arrive.
4. The packet buffer will increase in size by i with probability c
i+1
; i.e., when i +1
packets arrive with i < N
Based on the above discussion, we have two buffers to hold the tokens and the
packets. The token buffer is single-input multiple output while the packet queue is
multiple input, single-output. The size of the token buffer is assumed B
t
and the size
of the packet buffer is assumed B
p
.
Figure 8.10 shows the Markov chain transition diagram for the system compris-
ing the token and packet buffers. The upper row represents the states of the token
buffer and the lower row represents the states of the packet buffer. The transition
probabilities are dictated by the packet arrival probabilities and the states of occu-
pancy of the token and packet buffers. The figure shows a token buffer whose size is
B
t
= 4 and a packet buffer whose size is B
p
= 3. The maximum number of packets
that could arrive in one time step is assumed N = 3. Figure 8.10 shows the c
0
, c
1
,
and c
2
transitions. The c
3
transitions are only shown out of states s
4
and s
6
in order
to reduce the clutter.
The meaning of each state is shown in Table 8.2.
The transition matrix of the composite system is a
B
t
+ B
p
+1
×
B
t
+ B
p
+1
tridiagonal matrix. For the case when B
t
= 4, B
p
= 3, and, N = 3, the matrix is
given by