The Simulation and Minimization of Loss Probability in the Tandem Queueing with Two Heterogeneous Channels

A stochasticmodel consisting of two heterogeneous channels and having nowaiting room in front of each is considered. A customer who has completed his service in channel 1 while channel 2 is busy blocks channel 1 with probabilityQ or leaves the systemwith 1−Q probability. This model was analysed: expected number of customer and loss probability of customer are calculated and optimal ordering of channels minimizing parameters has been found. Additionally, this model was simulated; furthermore, simulated and exact results of loss probabilities of customers were given in the tables.


Introduction
Due to the recent developments in the fields of production line and communication, new queuing theory models are needed.In this sense, significant improvements in serial channel models have been observed.A tandem queueing system consist of two stage with waiting in each stage considered and joint limit distribution of waiting times of th customer in this system has been investigated in [1].When all service times were fixed, it was showed that departure times do not affect the order of service channels, in [2].It was demonstrated diagrammatically that optimal service parameters were  1 =  2 = /2 under the condition that  1 +  2 =  in tandem system with two channels having unlimited number of customers in front of each channel and conforming interarrivals and service duration exponential distribution, in [3].In [4], it was showed that optimal order of service in tandem system with two channels can be achieved when service time of one channel is fixed and placed in channel-1.It was demonstrated that departure times were stochastically faster when interarrival times are general, the lengths of service are exponential, and service times of channels for tandem queue with more than two single stations are equal, in [5].The performance of twostage tandem queuing model with blocking was introduced in [6].Loss probability of customers, the average number of customers in a system with heterogeneous channels having no waiting rooms were obtained; also optimal values of loss probability of customers, the average number of customers were calculated in [7].The discrete-time tandem queuing model based on Markov processes was analysed in [8].A new queuing model with sequential two stations (stages), single server at each station, where no queue is allowed at station 2 and with no restriction at station 1, was introduced in [9].There is a FCFS service discipline in which the input stream is Poisson having rate .The service time of any customer at server  ( = 1, 2) is exponential with parameter   .The state probabilities and loss probability of this model are given.The performance measures are obtained and optimized, and, additionally, the model is simulated.
In this study, we discuss a tandem model consisting of two stages channels: a stochastic queueing model consisting of two heterogeneous channels and having no waiting room in front of each is considered.A customer who has completed his service in channel 1 while channel 2 is busy blocks channel-1 with probability  or leaves the system with probability 1 − .The measures of performance of this model for  and loss probabilities of customers are calculated and optimal ordering of channels has been found.Additionally, this model was simulated and compared with the actual results.A two-stage blocking tandem queueing system with no waiting in front of each stage is analysed in [10].We have obtained the general form of the model given in [10] depending on .If  = 1 is taken in our model, the model in [10] is obtained.While there is generally waiting line in the service systems, because of obligations and urgency and unavailability of desired features, waiting line may not occur as in our proposed model.Therefore, we have decided to construct and analyze such a model it.

Definition of the Model
This model is defined as follows: a customer completes his service in channel 1 (when this channel is empty), enters into channel 2 (when channel two is empty), and leaves the system after receiving service.The customer, who has completed his service in channel 1, while channel 2 is busy, blocks channel 1 with probability  or leaves the system with probability 1 − .Interarrival times and service times in channel 1 and channel 2 are assumed to be independent and have exponential distribution with ,  1 , and  2 parameters respectively.This model is shown in Figure 1.
If we solve this steady-state equations, we obtain the   probabilities as follows: From equality (7), is obtained.

The Measures of Effectiveness
3.1.Loss Probability.Since there is no queue in the system, Theorem 1.The  loss probability is minimum for  = 0.
Proof.Equality (11) defines  loss probability as a function of .We will write equality (11) as follows: The maximum value of 1/ loss is minimum value of  loss where 0 <  loss ≤ 1.In equality (12), if we substitute    = 0, 1/ loss is maximum; that is  loss is minimum.These equalities are denoted in ( 13) and ( 14), respectively:
Consequently, the loss probability is minimum when blocking is cancelled.

The Mean Number of Customers.
Let  be the random variable that describes the number of customers in the system From equality (9) and equality (10), Provided that we get  = 0 in equality (17) as result of Theorem 1, we can rewrite this equality as follows:

Optimal Order of Channels
Considering  = 0 optimization, let  1 denote channel 1 and  2 denote the channel 2. When we place  1 channel to the first station and  2 channel to the second station, loss probability of a customer is  (1)  loss .Similarly, when we place  2 channel to the first station and  1 channel to the second station, loss probability of a customer is  (2)  loss , assuming 1  (2) Suppose that  1 channel to the first station and, respectively,  2 channel to the second station is optimal ordering, in other words, it is  (1)  loss ≤  (2)  loss for this order.When the channels are changed, it is Substituting the equality (13) and equality (19) in inequality (20),  1 ≥  2 is obtained.Namely, this system runs faster when channel with larger parameter should be placed in station 1.

Numerical Technique and Simulation
The simulation of queuing system requires keeping of event list to determine what will happen in the next step.Events in simulations occur at random times to imitate randomness in real life (we do not know precisely when a customer arrives or how long the service lasts).Obtaining randomness that is required to simulate real life is possible using "random numbers." In the system, simulation results obtained from Matlab program for different probabilities of blocking channel 1 are given in tables below.Depending on various probabilities of blocking ( = 0,  = 0.4,  = 0.8,  = 1) and for 3 different iterations steps that are 40000, 6000 and 20000 loss probabilities were calculated.Moreover, all results of exact probabilities (Pr exact ) and simulation probabilities (Pr sim ) were given in Tables 1, 2, and 3 for   ( = 1, 2).It has been seen that the simulation probabilities approximated to the exact probabilities.

Conclusion
In the study, the loss probability of the customer in two heterogeneous channels tandem system was calculated.Additionally, optimal orders of channels were obtained.Theoretically, simulation study supported obtained system results.Exact and simulation results of the loss probability were given in Tables 1, 2, and 3 for various  probabilities and service parameters  1 and  2 .When the number of iterations of the  simulation is increased, theoretical and simulation results are observed being closer to each other.Furthermore, optimal ordering was confirmed for  = 0,  1 = 4, and  2 = 2 in Table 3.In other words, it is seen numerically in Table 3 that the loss probability of a customer is minimized when faster working channel is put in station 1 or optimal ordering is provided.In addition, it can be seen in every three tables that the loss probability of the customer is to increase as  values increase.If we get  = 1 in this model, model in [10] is obtained.

Number of iteration
Finally, much more study can be done on this topic of interest by increasing the number of channels in the system.

Figure 1 :
Figure 1: The tandem model with blocking.