Next Article in Journal
Seismic Stability Study of Bedding Slope Based on a Pseudo-Dynamic Method and Its Numerical Validation
Previous Article in Journal
Cognitive Principles for Remote Condition Monitoring Applied to a Rail Pantograph System
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
Article

Estimating Tail Probability in MMPP/D/1 Queue with Importance Sampling by Service Rate Adjustments †

Department of Telematics, Information of Technology, Vietnam Academy of Science and Technology, No. 18, Hoang Quoc Viet Street, Hanoi 100000, Vietnam
*
Author to whom correspondence should be addressed.
This paper is an extended version of our paper published in Proceedings of the Ninth International Symposium on Information and Communication Technology-SoICT 2018.
Appl. Sci. 2024, 14(13), 5802; https://doi.org/10.3390/app14135802
Submission received: 8 March 2024 / Revised: 12 May 2024 / Accepted: 25 June 2024 / Published: 3 July 2024
(This article belongs to the Topic Next Generation Intelligent Communications and Networks)

Abstract

:
The Asynchronous Transfer Mode (ATM) is an efficient technology for call relays, and it transmits information from multiple services including data, video, or voice. This information is conveyed at ATM multiplexers in small fixed-size packets called cells. The acceptable cell loss probability at ATM multiplexers is about 10 12 . Important Sampling (IS) is an efficient method for estimating tiny probabilities that cannot be achieved by traditional Monte Carlo (MC) methods. This research presents a novel approach for evaluating the tail probability in the MMPP/D/1 queue system utilizing importance sampling simulation in the ATM network. To generate more rare events, a virtual queue is implemented in the dequeue process by decreasing the processing rate in the queue. In this way, the tail probability can be estimated on a real-time network.

1. Introduction

Asynchronous Transfer Mode (ATM) networks are connection-oriented networks for cell relay that support some services such as video, voice streaming, and data communications. At a multiplexer in an ATM network, the admissible cell loss probability needs to be less than 10 12 for real-time services such as voice and video. Evaluating this extremely small probability by simulation is a challenging task. Monte Carlo (MC) is an effective technique for performing simulations of problems that cannot be solved theoretically. However, the disadvantage of the Monte Carlo method is that it consumes a large amount of simulation time. The Importance Sampling technique is useful for simulations in the fields of communication and engineering [1,2]. As an improvement of the Monte Carlo method, IS simulation generated the target events more frequently by using another distribution density function.
It is crucial to ascertain the most advantageous settings for the distribution in the simulation. The distribution that produces the estimate with the lowest variance is called the optimal simulation distribution. The determination of optimal distribution in IS simulation has been studied in many papers, including heuristic and theoretical methods. In [3], the authors proposed a heuristic method to search parameters for optimal simulation distribution. Another method was proposed in [1], using an annealing algorithm to obtain optimal simulation distribution. These methods search the large domain of parameters, so they require computation time. The author in [4] introduced a theoretical approach that utilizes big deviation theory to determine the most efficient simulation distribution for the tail probability in the MMPP/D/1 queue system. Then [5] solved the general case of n states of the MMPP/D/1 queue. These theoretical methods have less computing time compared with the heuristic methods.
The MMPP, also known as the Markov-Modulated Poisson Process, is a stochastic process that combines both a Poisson process and a Markov chain. In this process, the intensity of the Poisson process is determined by the current state of the Markov chain. The MMPP is capable of modeling the sudden increase in video, voice, and data traffic on the Internet. Let us examine the two-state Markov-Modulated Poisson Process (MMPP). The symbol λ i represents the mean arrival rate of the Poisson process in state i, where i can take on the values of either 0 or 1. Additionally, r i j represents the probability of transitioning from state i to state j, where both i and j can be either 0 or 1. Figure 1 depicts the representation of a two-state Markov-Modulated Poisson Process (MMPP).
The MMPP/D/1 queue model is characterized by an arrival process following the MMPP model, deterministic service times, and an unlimited buffer capacity. Let μ be the service rate of the MMPP/D/1 queue. Therefore, 1 / μ represents both the duration of serving a single packet and the size of a time slot.
The MMPP/D/1 queue is a suitable model for simulating the arrival of packets in an ATM network multiplexer. Due to the minuscule likelihood of packet loss in an ATM network, determining it using the traditional Monte Carlo method is a time-consuming process. We employed the IS (Importance Sampling) technique to compute the probability of packet loss in the MMPP/D/1 queue through an ATM network simulation. By decreasing the processing speed at the queue, we may carry out estimations in real time.
Kobayashi [6] proposed a method to estimate the Tail Probability of FIFO queue length by using Importance Sampling. A virtual queue, ISQL counter, was implemented to decrease the service rate. Consequently, the queue length increases quickly and tail events happen more frequently. In this way, the estimation of the Tail Probability can be calculated faster and more exactly.
In our earlier research, we developed an IS approach for evaluating the possibility of packet loss in the MMPP/D/1 queue, with the intention of reducing the processing rate as proposed by Kobayashi (2014) and cited in Hung (2018). The most efficient distribution of IS is achieved by reducing the service rate. The MMPP/D/1 queue system is more intricate compared with the FIFO queue. The traditional approach [4,5] modified the pace at which events occur in order to produce a greater number of rare events. This necessitates altering user traffic, which is currently impossible within the existing network infrastructure.
In this paper, we have more extensive research than our, previous study [7]. The first section, Section 4.1, provides mathematical proof explaining the optimal processing rate formula. The second section, Section 4.3.2, explains the relationship of the MMPP’s states in the IS estimation; as a result, these states will be removed to gain more simulation quickly and can be applied in an online (real-time) network. These are two main contributions in this paper.
The next sections of this work are structured in the following manner: In Section 3, a review of the fundamental concepts of Monte Carlo simulation and Importance Sampling simulation is provided. Section 4 provides a comprehensive explanation of the modeling of the two-state MMPP/D/1 queue. In Section 5, we assess the effectiveness of our suggested method using simulations. Section 6 presents the conclusions and further research.

2. Variance Reduction in Importance Sampling

As we know, the Monte Carlo method takes a long time to simulate, especially since the accuracy of this method is not reliable in cases where the probability is extremely small. Consider the general case of estimating the d-dimensional integral as follows:
I ϕ = R d ϕ ( x ) f ( x ) d x
where f : R d R is the probability density function of a random variable X and ϕ : R d R is a positive integral function. Let us consider the simple case when ϕ = 1 A with A is a subset of R d , as follows:
1 A = 1 , if X A , 0 , if X A
Thus, I ϕ is the probability that X A with X is distributed according to the probability density function f. The Monte Carlo estimation of the integral I ϕ is given by
I ϕ M C = 1 N i = 1 N ϕ ( X i )
where X 1 , X 2 , , X N are random samples generated by function f. The variance of I ϕ M C is given by
V a r ( I ϕ M C ) = 1 N R d ϕ ( x ) 2 f ( x ) d x I ϕ 2
Since ϕ ( x ) = 1 A , we have ϕ ( x ) 2 = ϕ ( x ) , x , and
R d ϕ ( x ) 2 f ( x ) d x = R d ϕ ( x ) f ( x ) d x
We have the variance of I ϕ M C only depending on N and I ϕ
V a r ( I ϕ M C ) = 1 N I ϕ I ϕ 2
The standard deviation of I ϕ M C , σ I ϕ M C is given by
σ I ϕ M C = 1 N I ϕ I ϕ 2
When the event { X A } is a rare event, the probability I ϕ becomes very small, and the standard deviation of I ϕ M C tends towards I ϕ N . In this case, unless the sample size N takes very large values, I ϕ N is much larger than I ϕ . Therefore, the Monte Carlo estimation is not adapted to estimate such low probabilities.
The IS technique is the alternative method to reduce the variance of Monte Carlo techniques without increasing the sample size N. In IS simulation, an auxiliary PDF h is used to generate the samples X 1 , X 2 , , X N , and then estimate I ϕ as follows:
I ϕ I S = 1 N i = 1 N ϕ ( X i ) f ( X i ) h ( X i )
Then, the expected value of I ϕ I S is given by
E ( I ϕ I S ) = 1 N i = 1 N R d ϕ ( x i ) f ( x i ) h ( x i ) h ( x i ) d x i
The term I ϕ I S is an unbiased estimator of I ϕ since
E ( I ϕ I S ) = R d ϕ ( x ) f ( x ) d x = I ϕ
Denote w ( X ) = f ( X ) h ( X ) ; the variance of I ϕ I S given by
V a r ( I ϕ I S ) = 1 N R d ϕ ( x ) 2 w ( x ) 2 h ( x ) d x I ϕ 2 = 1 N ( E ( ϕ ( X ) 2 w ( X ) 2 ) I ϕ 2 )
Thus, the variance of the IS estimate notably depends on the choice of h function. If h is well chosen, then the variance of the IS estimate can be very low. However, conversely, if h is chosen and not adapted, the variance of the IS estimate can be higher than the Monte Carlo estimate. Therefore, by choosing the adapted h function, IS simulation can reduce the variance of Monte Carlo simulation.

3. MMPP/D/1 Simulation for Rare Event

This section examines the use of Monte Carlo simulation and Importance Sampling simulation to assess the the potential of the queue length exceeding a certain threshold. The variable Q denotes the length of the stationary queue, whereas P ( Q > q ) reflects the likelihood that Q surpasses the value of q. As the value of q tends towards infinity, the probability P ( Q > q ) declines dramatically, and the event { Q > q } is considered unusual. Monte Carlo simulation involves rare occurrences that have a low probability of occurring, which requires a significant amount of time for the simulation to run. To tackle this problem, the conventional IS technique boosts the packet arrival rate to more frequently generate the event { Q > q } in comparison with MC simulation. The main advantage of IS simulation is its capacity to reduce simulation time while simultaneously improving accuracy. The acronyms and their meanings are explained in Table 1.

3.1. Monte Carlo Simulation for Queue

Examine the MMPP (Markov-Modulated Poisson Process) as the input traffic, which consists of two states, each representing a Poisson process. Analyze the MMPP/D/1 queue system. Define Q t as the steady-state queue length and S t as the state of a Markov-Modulated Poisson Process (MMPP) at the t-th time slot. A time slot refers to the specific duration of time allocated for the processing of a packet. The Monte Carlo estimation for events { Q > q } is performed by
P ( Q > q ) = 1 N t = 1 N δ q ( Q t )
where N is the number of time slots and δ q ( Q t ) is the indicator function given by
δ q ( Q t ) = 1 , if Q t > q , 0 , if Q t q
If the event { Q > q } in Equation (1) is considered to be a rare occurrence, it is necessary to have a significantly large number of samples N. Therefore, to estimate the probability of a rare event, MC simulation takes much time to obtain the target value [8]. This is the limitation of MC simulation for estimating the probability of rare events.

3.2. IS Simulation for Queue

The goal of the IS method is to generate as many rare events as possible. In queue simulation, to increase the number of packets in the queue, one increases the arrival rate. This way, if the processing speed stays the same, the queue will quickly fill up and rare events will become more numerous. In [1], the author proposed the DIS (Dynamic Importance Sampling) method in which time slots are divided into Regenerative Cycle (RC) which described in Figure 2. Each RC is the time interval from when the queue length is greater than 0 to when its length returns to 0 (Figure 3). DIS is an important concept in IS simulation.
Now, we will discuss the process of estimating the tail probability using importance sampling (IS) simulation. Let Q t 1 , Q t 2 , Q t 3 , represent the queue length associated with the time slot sequence t 1 , t 2 , t 3 , according to the IS simulation distribution. Next, we will present the IS estimate of the tail probability as follows:
P I S ( Q > q ) = 1 N k = 1 N t k = 1 T k δ q ( Q t k ) W t k 1 M k = 1 M t k = 1 T k W t k
W t k = m k = 1 t k P ( Q m k 1 , Q m k ) P ( Q m k 1 , Q m k )
where
  • M and N represent the quantities of RCs;
  • t k represents a specific time interval within the kth RC;
  • T k and T k represent the length of the kth RC;
  • W t k represents the weighting function;
  • The parts P ( Q m k 1 , Q m k ) and P ( Q m k 1 , Q m k ) are the state transition probability from ( m k 1 ) to m k , respectively.
In the next section, we will present how to determine the optimal IS distribution.

3.3. The Optimal IS Distribution

In IS simulation, the optimal distribution determination is most important. If we choose the good optimal distribution, the variance of the estimator will be smaller and the estimate result will be more exact. There are some approaches to determine the optimal simulation distribution in [1,3]. However, these methods are heuristic, exhaustive search in parameter space to determine the optimal distribution; therefore, they take much computation time. In this paper, based on the research in [4], we determine the optimal simulation distribution for IS simulation. This approach is theoretical; hence, it takes less computation time.
The state of the MMPP and the queue length are denoted by S t and Q t , where t is the time slot, t = 0 , 1 , 2 , . Denote X t = ( Q t , S t ) ; then X t satisfies the formula
X 0 = X 0 ( initial state ) X t + 1 = X t + Δ ( X t , W )
where W is an independent and identically distributed random vector; therefore, a random process X t forms a Markov chain [5]. In this paper, for simplicity, X t is represented by X at an arbitrary t time slot and M X ( θ ) is the moment-generating function of Δ ( X , W ) . M X ( θ ) is defined by
M X ( θ ) = E [ e θ Δ ( X , W ) ]
where E is the expectation with respect to Δ ( X , W ) and the parameter θ .
P ( X t , X t + 1 ) is defined as the probability of moving from state X t to state X t + 1 , according to the original distribution. The Markov chain is governed by the state transition probability, determined by the parameter θ , denoting the probability of transitioning between states.
P θ ( X t , X t + 1 ) = e θ Δ ( X , W ) M X ( θ ) P ( X t , X t + 1 )
As stated in reference [9], the value θ = θ * that solves the equation M X ( θ ) = 1 is considered the optimal distribution. The simulation distribution that is most advantageous, abbreviated as P * P θ * , is given by
P * ( X t , X t + 1 ) = e θ * Δ ( X , W ) P ( X t , X t + 1 )
In [4], the authors used the large deviation theory to find the optimal IS distribution. In the next section, we will determine the optimal distribution for our IS simulation based on [4].

4. Proposed Method for Estimating the Tail Probability of the MMPP/D/1 Queue

4.1. Optimal Parameter for Estimation

Now, we are identifying the optimal parameter for estimating the Importance Sampling (IS) of the MMPP/D/1 queue. The queue length and the state of the Markov-Modulated Poisson Process (MMPP) at time slot t are denoted by Q t and S t , respectively. The process X t = ( Q t , S t ) denotes a series of states at various time intervals, with t having a range of values of 0, 1, 2, and so forth. The probability of transitioning from state X t to state X t + 1 is represented by P ( X t , X t + 1 ) . Due to the deterministic service time of the MMPP/D/1 queue system, the packet length remains constant. The disparity in the length of the queue between the tth and ( t + 1 ) st time slots is represented as y and can be calculated as the difference between Q t + 1 and Q t .
We will provide a comprehensive elucidation on the process of determining the different queue lengths, represented as y, in the MMPP/D/1 queue. At time slot ( t + 1 ) , the state of the Markov-Modulated Poisson Process (MMPP) is represented as S t + 1 = j , indicating that A j packets have been received. In this context, A j denotes a Poisson random variable that corresponds to state j and has an arrival rate of λ j . If the value of Q t is greater than zero, then the value of y is equal to A j minus one. The equation y = A j 1 represents the relationship between the number of packets served, denoted by y, and the number of consecutive slots, denoted by A j . This equation accounts for the fact that there is exactly one packet served between two consecutive slots. If Q t = 0 , then y is equal to A j .
Denoting by h = j i , z = ( y , h ) , we have the state transition probability P ( X t , X t + z ) as follows:
P ( X t , X t + z ) = ( λ j / μ ) y + 1 ( y + 1 ) ! e λ j / μ r i j , if Q t > 0 , ( λ j / μ ) y y ! e λ j / μ r i j , if Q t = 0
To obtain the optimal distribution simulation, we solve the equation
M X t ( θ 0 , θ 1 ) = 1
According [4], we have θ 0 = θ 0 * , and θ 1 = θ 1 * are the solutions of Equation (9). Hence, the optimal distribution simulation P * ( X t , X t + z ) is given by
P * ( X t , X t + z ) = e θ 0 * y e θ 1 * ( j i ) P ( X t , X t + z )
In case of Q > 0 , from (10), we have
( λ j * / μ * ) y + 1 ( y + 1 ) ! e λ j * / μ * r i j * = ( λ j / μ ) y + 1 ( y + 1 ) ! e λ j / μ r i j
( λ j * / μ * ) y + 1 e λ j * / μ * r i j * = ( λ j / μ ) y + 1 e λ j / μ r i j
To compare both sides of (11), we have the optimal parameter λ i * / μ * and r i j * as follows:
λ * / μ * = e θ 0 λ / μ r i j * = e θ 0 λ j / μ λ j * / μ * + θ 1 ( j i ) r i j .
Similarly, we have the optimal parameter in case of Q = 0 as follows:
λ * / μ * = λ / μ r i j * = r i j .
In (12), we can change the optimal service rate λ * and optimal service rate μ * to obtain the optimal distribution simulation. In this case, the value of the arrival rate is kept unchanged; Equation (12) becomes
λ i * = λ i μ * = e θ 0 * μ
Thus, the optimal processing rate μ * = e θ 0 * μ was determined for the IS simulation.

4.2. The ISDC (Importance Sampling Dequeue Counter)

In the previous section, we determined the most favorable parameters for simulating the distribution of IS simulation. As a result, the service rate decreased by a factor of e θ 0 * . The updated service rate μ * of the proposed method is as follows:
μ * = e θ 0 * μ
where μ is the conventional service rate of IS and MC simulations.
An important concept is called Importance Sampling Dequeue Counter (ISDC). The Algorithm 1 describes the operation of ISDC. The I S D C counts the number of dequeue events. Denote Q * as the queue length in IS by using the optimal distribution. Next, the value of Q * will be computed using ISDC. Figure 4 illustrates the functioning of ISDC. The ISDC algorithm is defined as follows. Initially, the virtual IS queue length, denoted as Q * , and the variable c o u n t e r are both set to 0. Additionally, the value of s t e p is determined as e θ 0 * . The variable c o u n t e r will tally the occurrences of dequeue events in the IS virtual queue.
Algorithm 1 Algorithm of ISDC
1:
Set the initial values:
2:
       Q * = 0 ;
3:
       c o u n t e r = 0 ;
4:
       s t e p = e θ 0 * ;
5:
For each packet that comes to the queue:
6:
      //increase the virtual queue length by 1
7:
       Q * = Q * + 1 ;
8:
For each packet that exits the queue:
9:
       c o u n t e r + = s t e p ;
10:
      If counter >= 1 then
11:
           Q * = Q * 1 ;
12:
           c o u n t e r = 1 ;
13:
      End if
During the e n q u e u e event, the virtual queue length is incremented by 1, resulting in Q * = Q * + 1 , which corresponds to the addition of one packet to the virtual IS queue length Q * . In this work, it is specified that the queue length is measured in packets. In this case, we add a single packet to the queue Q * as there is only one packet that has arrived.
During the d e q u e u e event, the algorithm operates in the following manner. Initially, the value of c o u n t e r is incremented by s t e p . Next, evaluate the value of c o u n t e r in relation to 1. If c o u n t e r is more than or equal to 1, then one packet will be processed, and both Q * and c o u n t e r will be reduced by 1.
By using c o u n t e r and s t e p , the "virtual queue" reduces the processing rate e θ 0 * times.

4.3. IS Estimation for Tail Probability

4.3.1. Conventional IS Estimation

In traditional importance sampling (IS) simulation, once the optimal parameters are identified, the tail probability estimate can be obtained using Equations (3) and (4), with λ * = e θ 0 * λ .
P I S * = 1 N k = 1 N t k = 1 T k δ q ( Q t k * ) W t k * 1 M k = 1 M t k = 1 T k W t k *
W t k * = m k = 1 t k P ( Q m k 1 * , Q m k * ) P * ( Q m k 1 * , Q m k * )
From (10) and (17), the weighting function [10] becomes
W t k * = m k = 1 t k e θ 0 * y e θ 1 * ( j i )
where
  • y represents the discrepancy in the lengths of the queues between the ( m k 1 ) th and m k th time slots, given by the equation y = Q m k * Q m k 1 * ;
  • θ 0 * and θ 1 * are the ideal parameters;
  • i and j represent the states of the Markov-Modulated Poisson Process (MMPP) at the ( m k 1 ) -th and m k -th time slots, respectively;
  • T k and T k represent the length of the RC kth;
  • t k represents a specific time slot within a resource constraint;
  • M and N represent the quantities of RCs in the simulation.
A time slot refers to the duration required to process a single packet. Therefore, y represents the disparity in the length of the IS queue between two successive time intervals.

4.3.2. IS Estimation

Let us consider Equation (18). In this equation, the parameters θ 0 * and θ 1 * are determined and calculated in the above sections based on the input data λ 0 , λ 1 , r 01 , r 10 . However, the parameters y , j , i must be calculated in real time. At the dequeue event, we can determine the queue length and compute the difference queue length y between successive dequeue events. However, determining the state of the MMPP in real time is very difficult. Nevertheless, to facilitate the calculation of the weighting function in real time, we removed the part e θ 1 * ( j i ) , and then (18) becomes
W t k * = m k = 1 t k e θ 0 * y
Why we can remove it? To explain this, we investigated the events { j > i } and { j < i } during the simulation (in case of { j = i } , the value of e θ 1 * ( j i ) = 1 ; hence, for each of the time slots that the state of the MMPP does not change, the value of the weighting function W t k * is not also changed). In fact, in the two-state MMPP/D/1 queue, if the state of the MMPP changes from state 0 to state 1, then it will be changed again from state 1 to state 0. This means that the number of transitions from state 0 to state 1 and the number of transitions from state 1 to state 0 are equivalent. On the other hand, the number of events { j > i } and the number of events { j < i } are equivalent. Therefore, the part e θ 1 * ( j i ) can be removed from the weighting function without much impact on the final result. In the next section, we will examine and contrast the effectiveness of the proposed method with those of the traditional MC and IS methods.

5. Experiments

5.1. Performance Evaluation

We execute the proposed IS algorithm and evaluate the precision and duration of the tail probability calculation of the MMPP/D/1 queue using NS-2. NS-2 is a discrete event simulator utilized to simulate real-time network traffic and topology in order to conduct analysis. Because NS-2 is an open-source project and supports several algorithms in routing and queuing, we can modify the source code for our simulation easily.
Next, we compare the outcomes of our suggested approach with those of the MC method and the standard IS method. We conduct two scenarios to simulate the MMPP/D/1 queue. In Scenario-1, we consider the special case of the MMPP with two Poisson processes having the same arrival rate λ 1 = λ 2 . Since the two-state MMPP has the same Poisson process, the MMPP/D/1 queue becomes the M/D/1 queue. Then, in Scenario-2, we consider the normal case of the MMPP with two Poisson processes with different arrival rates λ 1 λ 2 .
For the two-state MMPP, the average arrival rate is calculated by
λ m e a n = λ 0 r 10 + λ 1 r 01 r 01 + r 10
with the variables λ 0 and λ 1 representing the arrival rates of two Poisson processes. The variables r 01 and r 10 denote the probabilities of transitioning from state 0 to state 1 and vice versa.

5.1.1. Scenario-1

In this scenario, we set the arrival rate of the two-state MMPP to be the same, λ 0 = λ 1 ; then the MMPP/D/1 queue becomes the M/D/1 queue. The parameters for MC, conventional IS, and the proposed IS simulation are shown in Table 2, Table 3, Table 4, respectively.
These parameters λ 0 * , λ 1 * , r 01 * , r 10 * are calculated by Equation (12), and λ m e a n * is calculated by
λ m e a n * = λ 0 * r 10 * + λ 1 * r 01 * r 01 * + r 10 *
In this scenario, we run 3 cases of simulation (Case 1, Case 2, Case 3) with means of arrival rate for MC simulation of 0.7 , 0.5 , and 0.3 , respectively. These parameters are chosen to spread evenly in the range [0, 1].

5.1.2. Scenario-2

For this scenario, we perform three simulations with different parameters, namely, Case 4, Case 5, and Case 6. Table 5 presents the parameters utilized in the Monte Carlo simulation, which is based on the original distribution.
Table 6 displays the parameters used in the optimal distribution simulation of the Importance Sampling (IS) scenario.
The parameters for the proposed technique are displayed in Table 7. In contrast with the parameters used in Monte Carlo simulation, the suggested technique preserves the values of λ 0 , λ 1 , r 01 , r 10 and only modifies the service rate parameter μ . The service rate μ * of the proposed IS simulation is determined using Equation (15).

5.2. Evaluate Performance

5.2.1. The Accuracy of Estimation

The simulation results for Scenario-1 and Scenario-2 are displayed in Figure 5 and Figure 6, respectively. In MC, conventional IS, and the proposed IS simulation, there are 10 6 [cycles] of regenerative cycles. Figure 5 and Figure 6 demonstrate that the performance of the proposed method is comparable to that of the MC and traditional IS. Otherwise, the estimated value of the IS approach can be produced at a value smaller than 10 25 , whereas the MC technique only estimates the probability P ( Q > q ) with a minimum value of roughly 10 6 . When q is sufficiently large, the event { Q > q } does not happen frequently, making it impossible to estimate the value using the MC approach, or requiring a significant amount of time to acquire the estimated value. Consequently, in these situations, the IS approach is helpful.
Simulation time: We now want to evaluate the simulation times of the MC method, conventional IS, and proposed IS simulation. In Case 4, we will simulate to estimate the tail probability P ( Q > q ) for q = 20 [ p a c k e t s ] for all three methods. The number of RCs in this experiment is 10 7 for MC simulation and 10 2 for both conventional IS and the proposed IS simulation. To calculate the sample mean and sample variance, we ran the simulation 30 times to obtain the estimated value of the tail probability. The outcome is presented in Table 8, where the estimation variances are nearly the same. The simulation time using Monte Carlo (MC) is 1136.81 s, whereas it is 0.39 s using conventional Importance Sampling (IS) and 0.35 s using the proposed IS simulation. Therefore, the proposed IS simulation has a simulation time that is approximately 3200 times faster than the MC simulation and is slightly shorter than traditional IS. The reason can be explained as follows: First, it is the difference between the calculation of the weight function of conventional IS and the proposed IS. Conventional IS simulation uses Equation (18) to calculate the weighting function. This equation is more complex than Equation (19) used in the proposed IS. In Equation (18), it takes time to determine the states { i , j } of the MMPP. Moreover, the second part e θ 1 * ( j i ) of this equation also takes more time to calculate. Hence, the simulation time of conventional IS is longer than that of the proposed IS simulation.

5.2.2. Speed of Convergence Comparison

Next, we want to show the convergence of the estimation by MC simulation and the proposed IS simulation. To perform this, we simulate the parameters in Case 4 by changing a variety of numbers of cycles. For MC simulation, the number of cycles is 10 6 and 10 7 cycles, and for the proposed IS simulation, the number of cycles is 10 2 , 10 3 , and 10 4 cycles. In both of the two methods, we set the queue threshold as q = 20 [ p a c k e t s ] . Figure 7 shows the convenience of the simulations. We can see that the speed of convergence of the proposed IS is faster than the speed of convergence of MC. The results demonstrate that the proposed IS significantly reduces simulation time compared with MC simulation.

5.3. Discussion on the States of the MMPP in Conventional IS Simulation

We now discuss the removing state information of the MMPP in conventional IS simulation. As mentioned in Section 4.3, we can remove state { i , j } from Equation (18), but the proposed IS estimated value is not changed much. In this section, we want to make an experiment to show the estimated value of the rare event probability. We run IS simulation without the state with the parameters in Scenario-2. The result shows that the estimated values of conventional IS before and after the removal of the state information are equivalent. The reason is explained in Section 4.3. On the other hand, we also compare the simulation time of conventional IS without the state information with that of conventional IS. In Case 4, we will simulate to estimate the probability P ( Q > q ) with q = 20 [ p a c k e t s ] , and the number of RCs is 10 2 cycles. The result in Table 9 shows that the simulation time of conventional IS without the state information is slightly faster than the simulation time of conventional IS (about 5 % faster). The reason is that the formula of the weighting function of conventional IS without states is simpler than the weighting function formula of conventional IS (the part e θ 1 * ( j i ) , ( i , j = 0 , 1 ) is removed).

6. Conclusions

This work presents a proposed simulation of an IS (Importance Sampling) technique to speed up the Monte Carlo simulation for the MMPP/D/1 queue. In traditional Importance Sampling (IS), the arrival rate is augmented in order to generate a significant number of rare occurrences. Our idea does not include increasing the arrival rate, but rather decreasing the service rate. Using this method, we may calculate the chance of the queue length exceeding a certain value in an MMPP/D/1 queue.
The authors in [6] also introduced a method to estimate the tail probability of FIFO queue length in real time. Nevertheless, the authors employed a Poisson process for the arrival process, but in this research, we utilized an MMPP for the arrival process. The determination of the service rate in the MMPP arrival process is more intricate compared with a Poison procedure in a FIFO queue.
Our technique provides the benefit of not altering user traffic, making it suitable for use in the actual network. The results of the aforementioned simulation demonstrate that our suggested technique achieves accuracy that is comparable to traditional IS and MC methods. However, our proposed method’s simulation time is approximately 3200 times faster than that of MC.
In addition, in conventional IS, four parameters need to be changed: the arrival rates λ 0 * , λ 1 * and the state transition probabilities r 01 * , r 10 * . However, we only change the service rate; therefore, our proposed method can be performed more easily than conventional IS.
We also investigated the effect of the state information in conventional IS simulation. We show that the formula for the weighting function (18) does not depend on states i and j. In this way, we can perform an IS simulation for the two-state MMPP/D/1 queue. Otherwise, if we remove the state information from Equation (18), then the simulation time will be slightly reduced.
In our future work, we will study n-state MMPP/D/1 in cases of finite buffer models and more complicated models. In addition, we will study some effective IS algorithms, such as Adaptive Importance Sampling (AIS) for queues.

Author Contributions

Conceptualization, N.N.H.; methodology, N.N.H. and P.T.G.; writing, N.N.H.; review and editing, N.H.A. and P.T.G.; funding acquisition, N.H.A. All authors have read and agreed to the published version of the manuscript.

Funding

This work was supported by the Vietnam Academy of Science and Technology under Grant No. VAST01.09/22-23.

Institutional Review Board Statement

Not applicable.

Informed Consent Statement

Not applicable.

Data Availability Statement

Data is contained within the article.

Acknowledgments

Special thanks go to the editor and anonymous reviewers of this paper for their constructive comments.

Conflicts of Interest

The authors declare no conflicts of interest.

References

  1. Devetsikiotis, M.; Townsend, J. Statistical optimization of dynamic importance sampling parameters for efficient simulation of communication networks. IEEE/ACM Trans. Netw. 1993, 1, 293–305. [Google Scholar] [CrossRef]
  2. Bucklew, J. Large Deviation Techniques in Decision, Simulation, and Estimation; Wiley Series in Probability and Statistics; Wiley: Hoboken, NJ, USA, 1990. [Google Scholar]
  3. Wang, Q.; Frost, V. Efficient estimation of cell blocking probability for ATM systems. IEEE/ACM Trans. Netw. 1993, 1, 230–235. [Google Scholar] [CrossRef]
  4. Ogawa, K.; Nakagawa, K. The optimal IS Simulation Distribution of MMPP/D/1 Queueing. IEICE Trans. Commun. 1997, J80-B-I, 64–73. [Google Scholar]
  5. Kenji, N. The Importance Sampling Simulation of MMPP/D/1 Queueing. IEICE Trans. Fundam. Electron. Commun. Comput. Sci. 1997, E80-A, 2238–2244. [Google Scholar]
  6. Kobayashi, N. On-line Estimation by Importance Sampling for the Tail Probability of FIFO Queue Length. In Proceedings of the 10-th International Workshop on Rare Event Simulation (RESIM ’10), Amsterdam, The Netherlands, 27–29 August 2014. [Google Scholar]
  7. Ngoc, H.N.; Nakagawa, K. Online Estimation for Packet Loss Probability of MMPP/D/1 Queuing by Importance Sampling. In Proceedings of the 9th International Symposium on Information and Communication Technology (SoICT ’18), Danang City, Vietnam, 6–7 December 2018; Association for Computing Machinery: New York, NY, USA, 2018; pp. 145–149. [Google Scholar] [CrossRef]
  8. Morio, J. Importance sampling: How to approach the optimal density? Eur. J. Phys. 2010, 31, L41. [Google Scholar] [CrossRef]
  9. Cottrell, M.; Fort, J.C.; Malgouyres, G. Large deviations and rare events in the study of stochastic algorithms. IEEE Trans. Autom. Control 1983, 28, 907–920. [Google Scholar] [CrossRef]
  10. Srinivasan, R. Importance Sampling-Applications in Communications and Detection; Springer Science & Business Media: Berlin/Heidelberg, Germany, 2013; Volume 15, p. XIV, 242. [Google Scholar] [CrossRef]
Figure 1. Two-state MMPP.
Figure 1. Two-state MMPP.
Applsci 14 05802 g001
Figure 2. The Regenerative Cycle.
Figure 2. The Regenerative Cycle.
Applsci 14 05802 g002
Figure 3. The Dynamic Importance Sampling method.
Figure 3. The Dynamic Importance Sampling method.
Applsci 14 05802 g003
Figure 4. The virtual queue.
Figure 4. The virtual queue.
Applsci 14 05802 g004
Figure 5. Scenario-1: performance comparison of estimates by MC, conventional IS, and the proposed method ( λ 1 = λ 2 ).
Figure 5. Scenario-1: performance comparison of estimates by MC, conventional IS, and the proposed method ( λ 1 = λ 2 ).
Applsci 14 05802 g005
Figure 6. Scenario-2: performance comparison of estimates by MC, conventional IS, and the proposed ( λ 1 λ 2 ).
Figure 6. Scenario-2: performance comparison of estimates by MC, conventional IS, and the proposed ( λ 1 λ 2 ).
Applsci 14 05802 g006
Figure 7. Convergence comparison of estimates by MC and the proposed IS (in Case 4 with q = 20 [packets]).
Figure 7. Convergence comparison of estimates by MC and the proposed IS (in Case 4 with q = 20 [packets]).
Applsci 14 05802 g007
Table 1. The acronyms and meaning.
Table 1. The acronyms and meaning.
AcronymsMeaning
ATMAsynchronous Transfer Mode
MCMonte Carlo
ISImportance Sampling
MMPPMarkov-Modulated Poisson Process
ISDCImportance Sampling Dequeue Counter
RCRegenerative Cycle
Table 2. Scenario-1: parameters for MC simulation.
Table 2. Scenario-1: parameters for MC simulation.
Case λ 0 λ 1 r 01 r 10 μ λ mean
10.70.70.10.41.00.7
20.50.50.70.41.00.5
30.30.30.10.41.00.3
Table 3. Scenario-1: IS simulation’s parameters.
Table 3. Scenario-1: IS simulation’s parameters.
Case λ 0 * λ 1 * r 01 * r 10 * μ λ mean *
11.381.380.10.41.01.38
21.761.760.70.41.01.76
32.362.360.10.41.02.36
Table 4. Scenario-1: Parameters for the proposed IS simulation.
Table 4. Scenario-1: Parameters for the proposed IS simulation.
Case λ 0 λ 1 r 01 r 10 θ 0 * μ *
10.70.70.10.40.680.51
20.50.50.10.41.260.28
30.30.30.10.42.060.13
Table 5. Scenario-2: parameters for MC simulation.
Table 5. Scenario-2: parameters for MC simulation.
Case λ 0 λ 1 r 01 r 10 μ λ mean
40.80.50.10.41.00.74
50.60.30.10.41.00.54
60.40.30.70.31.00.33
Table 6. Scenario-2: IS simulation’s parameters.
Table 6. Scenario-2: IS simulation’s parameters.
Case λ 0 * λ 1 * r 01 * r 10 * μ λ mean *
41.380.860.070.501.01.31
51.710.850.040.631.01.66
62.651.990.570.431.02.27
Table 7. Scenario-2: parameters for the proposed IS simulation.
Table 7. Scenario-2: parameters for the proposed IS simulation.
Case λ 0 λ 1 r 01 r 10 θ 0 * μ *
40.80.50.10.40.540.58
50.60.30.10.41.050.35
60.40.30.70.31.890.15
Table 8. The simulation time’s comparison.
Table 8. The simulation time’s comparison.
MC MethodConventional IS MethodProposed IS Method
RCs 10 7 10 2 10 2
Mean of estimate 5.58 × 10 6 6.19 × 10 6 5.80 × 10 6
Sample variance 1.14 × 10 12 3.09 × 10 13 4.12 × 10 13
Simulation time [s]1136.810.390.35
Table 9. Simulation time of conventional IS without state information.
Table 9. Simulation time of conventional IS without state information.
Conventional ISConventional IS
without States
Number of RCs 10 2 10 2
Mean of estimate 6.19 × 10 6 6.53 × 10 6
Sample variance 3.09 × 10 13 7.17 × 10 13
Simulation time [sec]0.390.37
Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.

Share and Cite

MDPI and ACS Style

Anh, N.H.; Hung, N.N.; Giang, P.T. Estimating Tail Probability in MMPP/D/1 Queue with Importance Sampling by Service Rate Adjustments. Appl. Sci. 2024, 14, 5802. https://doi.org/10.3390/app14135802

AMA Style

Anh NH, Hung NN, Giang PT. Estimating Tail Probability in MMPP/D/1 Queue with Importance Sampling by Service Rate Adjustments. Applied Sciences. 2024; 14(13):5802. https://doi.org/10.3390/app14135802

Chicago/Turabian Style

Anh, Ngo Hai, Nguyen Ngoc Hung, and Pham Thanh Giang. 2024. "Estimating Tail Probability in MMPP/D/1 Queue with Importance Sampling by Service Rate Adjustments" Applied Sciences 14, no. 13: 5802. https://doi.org/10.3390/app14135802

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop