21.01.2014 Views

A simulation model to implement multiple client class server-client ...

A simulation model to implement multiple client class server-client ...

A simulation model to implement multiple client class server-client ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Table 2: A comparison based on single-<strong>server</strong> queuing system (M/M/1)<br />

λ µ L theoretical L measured<br />

0.02 0.1 0.247 0.244<br />

0.025 0.067 0.423 0.418<br />

0.04 0.056 2.622 2.591<br />

0.022 0.03 2.799 2.756<br />

0.02 0.027 2.838 2.801<br />

0.02 0.04 0.979 0.968<br />

0.033 0.067 0.976 0.96<br />

from queuing theoretic results. Let us say λ and µ represents the mean arrival rate and mean<br />

service time respectively. Theoretically the expected cus<strong>to</strong>mers in the system is calculated as<br />

follows:<br />

L theoretical =<br />

λ<br />

µ − λ<br />

So that, given the simulated λ and µ, the L theoretical calculated from equation (2) should approximately<br />

equal <strong>to</strong> L measured from the <strong>simulation</strong>. In order <strong>to</strong> quantify the statistical significance of<br />

the difference, we also conducted a Kolmogorov-Smirnov test using the data of the 18 <strong>simulation</strong>s<br />

conducted under different λ and µ. The compassion of results of some of the experiments are<br />

summarized in Table 2.<br />

The results of Kolmogorov-Smirnov test producedx D statistics of 0.11 and P statistic of 1.<br />

In nutshell if the P value is less than 0.05 there is significant difference between the data sets.<br />

However, since for this case P = 1 concludes that the data set of L measured and L theoretical has no<br />

significant difference. As a consequence, the single-<strong>server</strong> queuing system (M/M/1) constructed<br />

from the DES <strong>model</strong> conform <strong>to</strong> the queuing theoretic results. This confirms the M/M/1 queuing<br />

system <strong>implement</strong>ed using the DES <strong>model</strong> constructs which includes scheduling of a single<br />

queue and resource is correct.<br />

4.3. Conformant <strong>to</strong> multi-<strong>server</strong> queuing system (M/M/c)<br />

In this section we construct a multi-<strong>server</strong> queuing system serving a single queue. For this<br />

system, the same assumptions used in Section 4.2 are maintained. However, (c=) 5 resource units<br />

are used <strong>to</strong> represent 5 <strong>server</strong>s in the system. 18 experiments were conducted under same settings<br />

as in Section 4.2 in order <strong>to</strong> gather measurement data. The same measurement of the average<br />

number of cus<strong>to</strong>mers in the system was used for the comparison. The theoretical calculation is<br />

done as follows:<br />

r c<br />

∑c−1<br />

p 0 = (<br />

c!(1 − ρ) + (c − 1) r n<br />

n! )−1 (3)<br />

L theoretical = r +<br />

n=0<br />

(2)<br />

r c ρ<br />

c!(1 − ρ) 2 p 0, (4)<br />

Where r = λ µ , ρ = r c<br />

, c = number of <strong>server</strong>s (5 for this experiment). The results are summarized<br />

in Table 3.<br />

7

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!