(IJCSIS) International Journal of Computer Science and Information Security,Volume 9 No. 3, March 2011
Note that the probability that
n
Poisson events with averagerate
occur during an interval T can be obtained as follows:
( )( )!
T nn
e T f n
(4)This function is required to determine the probability of both connection and packet arrivals.Figure 2. State transition diagram of discrete time Markovchain.
B.
CAC Algorithm
In this case, the transition matrix
Q
for the number of connections in the system can be expressed as follows:
0,0 0,10,1 1,1 1,22, 1 1, 1 1,1, ,
qq q qq q qq q
C C C C C C C C C C
qQ
(5)where each row indicates the number of ongoing connections.As the length of a frame
T
is very small compared withconnection arrival and departure rates, we assume that themaximum number of arriving and departing connections in aframe is one. Therefore, the elements of this matrix can beobtained as follows:
, 1 1 1, 1 1 1, 1 1 1 1
( ) (1 ( )), k=0,1,...,C-1(1 ( )) ( ), k=1,2,...,C( ) ( ) (1 ( )) (1 ( )), k=0,1,...,C
k k k k k k
q f f k q f f k q f f k f f k
(6)where
, 1
k k
q
,
, 1
k k
q
and
,
k k
q
represent the cases that thenumber of ongoing connections increases by one, decreases byone, and does not change, respectively.
C.
Transition Matrix for the Queue
The transition matrix
P
of the entire system can beexpressed as follows. The rows of matrix
P
represent thenumber of packets (
j
) in the queue.
0,0 0,,0 , ,, , ,
p
AR R R R R Aj j R j j j j R
p pp p pPp p
(7)Matrices
, '
j j
p
represent the changes in the number of packets in the queue (i.e., the number of packets in the queuechanging from
j
in the current frame to
'
j
in the next frame).We first establish matrices
( , ),( , ')
v
i j i j
, where the diagonalelements of these matrices are given as follows.For
{0,1,2,..., }
r D
and
{0,1,2,...,( )}, 1,2,...,
n k A l D
,and
1,2,...,( )
m k A
. The non-diagonal elements of
( , ),( , ')
v
i j i j
are all zero.
( , );( , )1, 1
v ( )[ ]
i j i j l n i r k k n r l
f k R
( , );( , )1, 1
v ( )[ ]
i j i j m n i r k k r n m
f k R
(8)
( , );( , )1, 1
v ( )[ ]
i j i j n i r k k r n
f k R
Here
A
is the maximum number of packets that can arrivefrom one connection in one frame,
R
indicates the maximumnumber of packets that can be transmitted in one frameand
D
is the maximum number of packets that can betransmitted in one frame by all of the allocated subchannelsallocated to that particular queue and it can be obtained from
min ( , )
D R j
. This is due to the fact that the maximumnumber of transmitted packets depends on the number of packets in the queue and the maximum possible number of transmissions in one frame. Note that,
( , );( , )1, 1
v
i j i j lk k
,
( , );( , )1, 1
v
i j i j mk k
and
( , );( , )1, 1
v
i j i jk k
represent the probability thatthe number of packets in the queue increases by
n
, decreasesby
m
, and does not change, respectively, when there are
k
ongoing connections. Here,
,
v
i j
denotes the element at row
i
and column
j
of matrix v, and these elements are obtainedbased on the assumption that the packet arrivals for theongoing connections are independent of each other.Finally, we obtain the matrices
, '
j j
p
by combining both theconnection-level and the queue-level transitions as follows:
, ' ( , ),( , ')
v
j j i j i j
p Q
(9)
47 http://sites.google.com/site/ijcsis/ISSN 1947-5500