Tandem queueing network

(Hermanns, Meyer-Kayser & Siegle)

Contents

Introduction

This case study is based on a simple tandem queueing network, taken from [HMKS99]. The model is represented as a CTMC which consists of a M/Cox2/1-queue sequentially composed with a M/M/1-queue. We use c to denote the capacity of the queues. The PRISM source code is given below.

// tandem queueing network [HKMKS99]
// gxn/dxp 25/01/00

ctmc

const int c; // queue capacity

const double lambda = 4*c;
const double mu1a = 0.1*2;
const double mu1b = 0.9*2;
const double mu2 = 2;
const double kappa = 4;

module serverC
	
	sc : [0..c];
	ph : [1..2];
	
	[] (sc<c) -> lambda: (sc'=sc+1); 
	[route] (sc>0) & (ph=1) -> mu1b: (sc'=sc-1);
	[] (sc>0) & (ph=1) -> mu1a: (ph'=2); 
	[route] (sc>0) & (ph=2) -> mu2: (ph'=1) & (sc'=sc-1);
	
endmodule  

module serverM
	
	sm : [0..c];
	
	[route]	(sm<c) -> 1: (sm'=sm+1);
	[] (sm>0) -> kappa: (sm'=sm-1);
	
endmodule

// reward - number of customers in network
rewards "customers"
	true : sc + sm;
endrewards
Download: tandem.sm

Model Statistics

The table below shows statistics for each model we have built. The first section gives information about the CTMC representing the model: the number of states and the number of non-zeros (transitions). The second part refers to the MTBDD which represents this CTMC: the total number of nodes, the number of leaves (terminal nodes), and the amount of memory needed to store it. The last column gives the amount of memory a sparse matrix would need to represent the same CTMC.

c: Model: MTBDD: Sparse:
States: NNZ: Nodes: Leaves: Kb: Kb:
5 66 189 100 6 2.0 2.73
7 120 363 93 6 1.8 5.19
15 496 1,619 123 6 2.4 22.8
31 2,016 6,819 153 6 3.0 95.6
63 8,128 27,971 183 6 3.6 391
127 32,640 113,283 213 6 4.2 1,582
255 130,816 455,939 243 6 4.7 6,365
511 523,776 1,829,379 273 6 5.3 25,530
1,023 2,096,128 7,328,771 303 6 5.9 102,260
2,047 8,386,560 29,337,603 333 6 6.5 409,320
4,095 33,550,336 117,395,459 363 6 7.1 1,637,840

Model Construction Times

The table below gives the times taken to construct the models. This process involves first building a CTMC (represented as an MTBDD) from the system description (in our module based language), and then computing the reachable states using a BDD based fixpoint algorithm. The total time required and the number of fixpoint iterations are given below.

c: Construction:
Time (s): Iter.s:
5 0.034 17
7 0.035 23
15 0.040 47
31 0.058 95
63 0.128 191
127 0.374 383
255 1.409 767
511 5.565 1,535
1,023 22.70 3,071
2,047 99.64 6,143
4,095 763.6 12,287

Model Checking

We now report on the model checking results obtained using PRISM when verifying the following CSL properties.

const double T;

// long run expected customers in the network
R=?[S]

// probability network becomes full in T time units
P=? [ true U<=T sc=c & sm=c & ph=2 ]

// probability first queue becomes full in T time units
P=? [ true U<=T sc=c ]

// the minimimum probability of leaving a situation where the second queue is entirely populated within T time units
P=? [ sm=c U<=T sm<c {sm=c}{min} ]

// expected number of customers in the network
R=?[I=T]
Download: tandem.csl

All experiments were carried out on a 2.80GHz PC with 1 Gb memory running Linux and in all iterative methods we stop iterating when the relative error between subsequent iteration vectors is less than 1e-6, that is:

max⁡i(∣πi(k)−πi(k−1)∣∣πi(k)∣)<10−6\max_i \left( \frac{|\pi_i^{(k)} - \pi_i^{(k-1)}|}{|\pi_i^{(k)}|} \right) < 10^{-6}