Professional Documents
Culture Documents
applsci-14-05802
applsci-14-05802
sciences
Article
Estimating Tail Probability in MMPP/D/1 Queue with
Importance Sampling by Service Rate Adjustments †
Ngo Hai Anh , Nguyen Ngoc Hung * and Pham Thanh Giang
Department of Telematics, Information of Technology, Vietnam Academy of Science and Technology, No. 18,
Hoang Quoc Viet Street, Hanoi 100000, Vietnam; ngohaianh@ioit.ac.vn (N.H.A.); ptgiang@ioit.ac.vn (P.T.G.)
* Correspondence: nnhung@ioit.ac.vn; Tel.: +84-988-656-298
† This paper is an extended version of our paper published in Proceedings of the Ninth International Symposium
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 communica-
Citation: Anh, N.H.; Hung, N.N.; tions. At a multiplexer in an ATM network, the admissible cell loss probability needs to be
Giang, P.T. Estimating Tail Probability less than 10−12 for real-time services such as voice and video. Evaluating this extremely
in MMPP/D/1 Queue with small probability by simulation is a challenging task. Monte Carlo (MC) is an effective
Importance Sampling by Service Rate technique for performing simulations of problems that cannot be solved theoretically. How-
Adjustments. Appl. Sci. 2024, 14, 5802. ever, the disadvantage of the Monte Carlo method is that it consumes a large amount of
https://doi.org/10.3390/ simulation time. The Importance Sampling technique is useful for simulations in the fields
app14135802 of communication and engineering [1,2]. As an improvement of the Monte Carlo method,
Academic Editor: Juan-Carlos Cano IS simulation generated the target events more frequently by using another distribution
density function.
Received: 8 March 2024 It is crucial to ascertain the most advantageous settings for the distribution in the
Revised: 12 May 2024
simulation. The distribution that produces the estimate with the lowest variance is called the
Accepted: 25 June 2024
optimal simulation distribution. The determination of optimal distribution in IS simulation
Published: 3 July 2024
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
Copyright: © 2024 by the authors.
optimal simulation distribution. These methods search the large domain of parameters, so
Licensee MDPI, Basel, Switzerland. they require computation time. The author in [4] introduced a theoretical approach that
This article is an open access article utilizes big deviation theory to determine the most efficient simulation distribution for
distributed under the terms and the tail probability in the MMPP/D/1 queue system. Then [5] solved the general case of
conditions of the Creative Commons n states of the MMPP/D/1 queue. These theoretical methods have less computing time
Attribution (CC BY) license (https:// compared with the heuristic methods.
creativecommons.org/licenses/by/ The MMPP, also known as the Markov-Modulated Poisson Process, is a stochastic
4.0/). 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, rij 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).
r01
Poisson 0 1 Poisson
0 1
r10
Figure 1. Two-state MMPP.
Z
Iϕ = ϕ( x ) f ( x )dx
Rd
1
Var ( IϕMC ) = Iϕ − Iϕ2
N
r
1
σI MC = √ Iϕ − Iϕ2
ϕ N
When the event { X ∈ A} is a rare event, the probability Iϕ becomes very small, and
r
Iϕ
the standard deviation of IϕMC tends towards . In this case, unless the sample size N
r N
Iϕ
takes very large values, is much larger than Iϕ . Therefore, the Monte Carlo estimation
N
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 X1 , X2 , . . . , X N , and then estimate Iϕ as follows:
N
1 f (X )
IϕIS =
N ∑ ϕ(Xi ) h(Xii )
i =1
N Z
1 f ( xi )
E( IϕIS ) =
N ∑ Rd
ϕ ( xi )
h ( xi )
h( xi )dxi
i =1
f (X)
Denote w( X ) = ; the variance of IϕIS given by
h( X )
Z
IS 1 2 2 2
Var ( Iϕ ) = ϕ( x ) w( x ) h( x )dx − Iϕ
N Rd
1
= ( E(ϕ( X )2 w( X )2 ) − Iϕ2 )
N
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.
Acronyms Meaning
ATM Asynchronous Transfer Mode
MC Monte Carlo
IS Importance Sampling
MMPP Markov-Modulated Poisson Process
ISDC Importance Sampling Dequeue Counter
RC Regenerative Cycle
where N is the number of time slots and δq ( Qt ) is the indicator function given by
(
1, if Qt > q,
δq ( Qt ) = (2)
0, if Qt ≤ q
RC of dynamic IS time
RC of ordinary MC
RC of IS
Now, we will discuss the process of estimating the tail probability using importance
sampling (IS) simulation. Let Q′t1 , Q′t2 , Q′t3 , . . . represent the queue length associated with
the time slot sequence t1 , t2 , t3 , . . . according to the IS simulation distribution. Next, we
will present the IS estimate of the tail probability as follows:
T
1
N ∑kN=1 ∑tkk=1 δq ( Q′tk )Wtk
PIS ( Q > q) = T′
(3)
1
M ∑kM=1 ∑tkk=1 Wtk
tk P( Q′m , Q′mk )
k −1
Wtk = ∏ P′ ( Q′m , Q′mk )
(4)
m k =1 k −1
where
• M and N represent the quantities of RCs;
• tk represents a specific time interval within the kth RC;
• Tk and Tk′ represent the length of the kth RC;
• Wtk represents the weighting function;
• The parts P( Q′m −1 , Q′mk ) and P′ ( Q′m −1 , Q′mk ) are the state transition probability from
k k
(mk − 1) to mk , respectively.
In the next section, we will present how to determine the optimal IS distribution.
Appl. Sci. 2024, 14, 5802 6 of 15
X0 = X 0 (initial state)
X t +1 = X t + ∆ ( X t , W )
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 Sam-
pling (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 Qt and St , respectively.
The process Xt = ( Qt , St ) 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 Xt to state
Xt+1 is represented by P( Xt , Xt+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 Qt+1 and Qt .
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 St+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 Qt is greater
than zero, then the value of y is equal to A j minus one. The equation y = A j − 1 represents
Appl. Sci. 2024, 14, 5802 7 of 15
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 Qt = 0, then y is equal to A j .
Denoting by h = j − i, z = (y, h), we have the state transition probability P( Xt , Xt + z)
as follows:
(λ j /µ)y+1 −λ /µ
e j rij , if Qt > 0,
( y + )
P ( Xt , Xt + z ) = 1 ! (8)
(λ /µ)y −λ /µ
j
e j rij , if Qt = 0
y!
To obtain the optimal distribution simulation, we solve the equation
M Xt ( θ 0 , θ 1 ) = 1 (9)
According [4], we have θ0 = θ0∗ , and θ1 = θ1∗ are the solutions of Equation (9). Hence,
the optimal distribution simulation P∗ ( Xt , Xt + z) is given by
∗ ∗
P ∗ ( Xt , Xt + z ) = e θ0 y e θ1 ( j − i ) P ( Xt , Xt + z ) (10)
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
∗ (14)
µ ∗ = e − θ0 µ
∗
Thus, the optimal processing rate µ∗ = e−θ0 µ was determined for the IS simulation.
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 counter are both set to 0. Additionally, the value of step is
∗
determined as e−θ0 . The variable counter will tally the occurrences of dequeue events in
the IS virtual queue.
During the enqueue 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 dequeue event, the algorithm operates in the following manner. Initially,
the value of counter is incremented by step. Next, evaluate the value of counter in relation
to 1. If counter is more than or equal to 1, then one packet will be processed, and both Q∗
and counter will be reduced by 1.
∗
By using counter and step, the "virtual queue" reduces the processing rate eθ0 times.
tk P( Q∗m , Q∗mk )
k −1
Wt∗k = ∏ P∗ ( Q∗m , Q∗mk )
(17)
m k =1 k −1
where
• y represents the discrepancy in the lengths of the queues between the (mk − 1)th and
mk th time slots, given by the equation y = Q∗mk − Q∗m −1 ;
k
• θ0∗ and θ1∗ are the ideal parameters;
• i and j represent the states of the Markov-Modulated Poisson Process (MMPP) at the
(mk − 1)-th and mk -th time slots, respectively;
• Tk and Tk′ represent the length of the RC kth;
• tk 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 deter-
mined and calculated in the above sections based on the input data λ0 , λ1 , r01 , r10 . However,
the parameters y, j, i must be calculated in real time. At the dequeue event, we can de-
termine 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
tk
∗
Wt∗k = ∏ e − θ0 y (19)
m k =1
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
Wt∗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.
Appl. Sci. 2024, 14, 5802 10 of 15
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
λ0 r10 + λ1 r01
λmean = (20)
r01 + r10
with the variables λ0 and λ1 representing the arrival rates of two Poisson processes. The
variables r01 and r10 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.
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.
Appl. Sci. 2024, 14, 5802 11 of 15
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 , r01 , r10 and only modifies the service rate parameter µ. The service rate µ∗
of the proposed IS simulation is determined using Equation (15).
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.
Figure 5. Scenario-1: performance comparison of estimates by MC, conventional IS, and the proposed
method (λ1 = λ2 ).
Figure 6. Scenario-2: performance comparison of estimates by MC, conventional IS, and the proposed
(λ1 ̸= λ2 ).
Appl. Sci. 2024, 14, 5802 13 of 15
[1x10-6]
10
MC
IS Online
9
7
Estimate P(Q>q)
0
107 106 104 103 102
number of cycles
Figure 7. Convergence comparison of estimates by MC and the proposed IS (in Case 4 with q = 20
[packets]).
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).
Conventional IS
Conventional IS
without States
Number of RCs 102 102
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.39 0.37
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 r01
∗ , r ∗ . However, we only change the service
10
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.
Appl. Sci. 2024, 14, 5802 15 of 15
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. [CrossRef]
2. Bucklew, J. Large Deviation Techniques in Decision, Simulation, and Estimation; Wiley Series in Probability and Statistics; Wiley:
Hoboken, NJ, USA, 1990.
3. Wang, Q.; Frost, V. Efficient estimation of cell blocking probability for ATM systems. IEEE/ACM Trans. Netw. 1993, 1, 230–235.
[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.
5. Kenji, N. The Importance Sampling Simulation of MMPP/D/1 Queueing. IEICE Trans. Fundam. Electron. Commun. Comput. Sci.
1997, E80-A, 2238–2244.
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.
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. [CrossRef]
8. Morio, J. Importance sampling: How to approach the optimal density? Eur. J. Phys. 2010, 31, L41. [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. [CrossRef]
10. Srinivasan, R. Importance Sampling-Applications in Communications and Detection; Springer Science & Business Media:
Berlin/Heidelberg, Germany, 2013; Volume 15, p. XIV, 242. [CrossRef]
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.