Abstract
It is known that a correlation in either the service or interarrival times causes a deterioration in the performance of a queuing system. This study aimed to determine which of the two correlations—in the service times or in the interarrival times—has a stronger influence on the expected queue length, assuming an identical autocorrelation function in both cases. To achieve this goal, a formula for the expected queue length in a system with correlated arrivals was derived first. This new formula, along with a known formula for the expected queue length in a system with correlated service, was used to compare the influence of the two correlations. Various scenarios were studied, such as cases where the common correlation was positive or negative, where the variance of the service or interarrival time was low or high, and where the system load was low or high. Furthermore, both the time-dependent and the steady-state behaviors of the systems were compared. The following two key observations were made. If the impact of other factors on the queue length is minor, then a positive correlation has a worse effect on the queue length when present in service times than in arrival times. On the contrary, a negative correlation has a worse effect on the queue length when present in arrival times than in service times.
1. Introduction
In many practical realizations of queuing systems, the correlated interarrival times and/or correlated service times of jobs (e.g., customers, packets) can be encountered. Correlated interarrival times between packets in computer networks were first identified in the early 1990s [1,2]. Since then, this phenomenon has been widely studied (see, for instance, the excellent monograph [3] and the references therein). Clearly, correlated interarrival times are not specific to networking and occur in many other fields. For example, in transportation networks, passenger interarrival times at bus or train stops can be correlated due to the arrivals of other buses or trains. In call centers, inter-call times may be correlated due to external events, such as advertisements. In retail, customer arrivals may show a correlation during sales events, etc.
Correlated service times are equally common in queuing systems. In computer networking, the transmission times of consecutive packets can be correlated due to the correlation of consecutive packet sizes [4]. In healthcare systems, patient service times may be correlated due to external factors like disasters or accidents. In some cases, the correlations of interarrival times and service times may share the same origin. For instance, a large fire in a city could simultaneously impact both the interarrival times of patients to hospitals and their treatment times due to the similarity in the nature of their injuries.
It is well understood among researchers that both correlated service times and correlated interarrival times separately degrade the performance of a system. Queue lengths increase, waiting times grow, buffer overflows become more frequent, and job losses rise. This degradation has been demonstrated many times in the literature and will also be evident in the results presented here, but showing this degradation is not the purpose of this study. Instead, the question addressed here is the following: which of the two—correlated service times or correlated interarrival times—has a stronger influence on the system performance?
Therefore, the purpose of this paper was to compare the performance of a system with correlated service times to that of a system with correlated interarrival times, assuming both possessed an identical autocorrelation function. To ensure a fair comparison, the other parameters of the two systems were kept identical, including the distributions of service and interarrival times, as well as the system load. Additionally, both the time-dependent and the steady-state behaviors of the systems were analyzed.
The comparison was conducted with respect to a key performance metric: the expected queue length. This requires two formulas for the expected queue length—one for the system with correlated arrivals and another for the system with correlated service. The formula for the latter has already been established, while the formula for the system with correlated arrivals was derived in this study, constituting another contribution of the study.
Both formulas are computationally efficient, meaning they are relatively simple to evaluate numerically and allow for the effective calculation of expected queue lengths at any given time, t, or in the steady state. Unfortunately, these formulas take highly complex forms. This complexity precludes a direct analytical comparison to derive rigorous conditions under which one formula predicts a larger expected queue length than the other. Instead, a numerical approach was adopted here. It was based on selecting representative scenarios (parameterizations) to compute and compare the expected queue lengths.
In these scenarios, besides the correlation, other parameters known to affect the expected queue length were varied as well. These included the variance of the interarrival and service times and the system load.
Summarizing, the contributions of this study are as follows:
- The derivation of a formula for the expected queue length in a system with correlated interarrival times (Theorem 1). This formula accounts for both the time-dependent and steady-state expected queue lengths and supports arbitrary service time distributions (enabling, e.g., arbitrary variance).
- A comparison of the expected queue length in systems with correlated arrivals and systems with correlated service, under the assumption that both possess an identical autocorrelation function and other system parameters, across various scenarios.
Cases with positively and negatively correlated arrival or service processes were treated separately. A positively correlated arrival (service) process refers to an arrival (service) process in which the coefficient of correlation between two consecutive interarrival (service) times is greater than zero. Similarly, a negatively correlated arrival (service) process refers to a process in which the coefficient of correlation between two consecutive interarrival (service) times is less than zero.
The simplest approach to modeling correlated interarrival or service times is by using a modulating Markov chain of the continuous type, which governs the behavior of the arrival or service process, respectively. This approach yields the well-known Markovian arrival process (MAP) and Markovian service process (MSP), both of which were utilized in this study.
It is essential to note that while the MAP and MSP are similar, they are not identical. Specifically, the modulating Markov chain in the MAP evolves continuously without any interruptions. In contrast, the evolution of the modulating Markov chain in the MSP is occasionally suspended when the queue length is zero. This distinction introduces a design asymmetry between the two models. Without this difference, a model with MAP arrivals and a buffer of capacity, B, would be fully symmetric to a model with MSP service and the same buffer along the symmetry axis . In such a case, the stochastic behavior of the queue length process in a model with MAP arrivals would mirror the stochastic behavior of the queue length process in a model with MSP service, given a reflection along the line . However, the aforementioned difference between the MAP and MSP disrupts this symmetry. This will become more evident after the definitions of the models are presented in Section 3 and Section 4, respectively.
The rest of the study is organized as follows. In Section 2, the related work is characterized. In Section 3, a model with correlated arrivals, a finite buffer, and an arbitrary service distribution is recalled. In Section 4, an analogous model with correlated service is recalled. Then, in Section 5, the theorem on the expected queue length in the model with correlated arrivals is proven. The theorem is general in the sense that it enables the computation of both the time-dependent and steady-state expected lengths of the queue. In Section 6, the previously proven theorem on the expected queue length in the model with correlated service is recalled. In Section 7, the performance of systems with correlated arrivals and correlated service are compared in eight scenarios: where the correlation is positive or negative, where the variance of the service/interarrival time is low or high, and where the system load is low or high. In each scenario, the steady-state and time-dependent expected queue lengths are presented and discussed. Furthermore, in each scenario, the results for an analogous system with uncorrelated arrivals and uncorrelated service are provided. Lastly, the key conclusions from the performed comparisons are gathered in Section 8.
2. Related Work
To the author’s knowledge, all the results of this study are new, except for Theorem 2 in Section 6, which was included to make the paper self-contained.
There are many separate studies on systems with correlated service (see [5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20]) and correlated arrivals (see the monograph [3] and the references therein). None of the previous papers, however, compare the impact of a correlation in the service process with the impact of a correlation in the arrival process, assuming the same autocorrelation function but in different components of the system. Such a comparison was the primary goal of this paper.
The comparison was carried out with respect to a natural characteristic: the expected queue length. Moreover, it was comprehensive in the sense that it included the queue length at an arbitrary time, t, and in the steady state (). Therefore, it required two time-dependent formulas for the expected queue lengths, i.e, in systems of both types. Unfortunately, a suitable formula for the system with correlated arrivals had not been derived before.
Specifically, previous studies on systems with correlated arrivals were carried out either for the steady state, or for a specific service time distribution, or under an infinite buffer assumption, or with regard to different performance characteristics than the expected queue length (see [3] and the references). Therefore, no suitable formula had been obtained before.
Herein, a new such formula is proved (Theorem 1). It expresses the expected queue length at the arbitrary time t and in the steady state in a system with correlated arrivals, general service times, and a finite buffer. This formula itself constitutes another contribution of the paper.
An analogous formula for a system with correlated service is already known and is recalled in Section 6.
The study of systems with correlated service (MSP) began with [5], where the queue size in a finite buffer model was analyzed. In [6], the tail distribution of the queue was studied under the infinite buffer assumption. Subsequently, ref. [7] derived the queue size at arrival epochs and the response time for both finite and infinite buffer models. In [8], the finite buffer model was extended to include group service, with the queue length and response time distributions obtained. Another extension, involving multiple service stations, was explored in [9], where the distributions of the busy periods, idle periods, and queue size were analyzed.
Article [10] focused on the finite buffer model, investigating the limiting value of the loss probability as the buffer capacity approaches infinity. In [11], group arrivals were incorporated into the finite buffer model. Two group acceptance rules were considered: partial group rejection and total group rejection. For both variants, the loss probability, waiting time, queue size, and special metrics such as the probability of losing the last or first customer of a group were examined. Group service was revisited in [12], assuming an infinite buffer, with calculations of the queue size at arbitrary and arrival epochs, as well as expected response times.
An alternative approach to analyzing the queue size, based on the characteristic equation and its roots, was proposed in [13]. Study [14] focused on characterizing the departure process and the waiting time. Models with group arrivals under the infinite buffer assumption were analyzed in [15,16]. The former centered on the queue size and idle and busy periods, while the latter focused on the waiting time. In [17], a model with group arrivals and a finite buffer was examined, yielding results on the overall loss probability, the expected waiting time, and the probability of a specific number of consecutive losses during busy periods.
In [18], a finite buffer model with group service was revisited, with the study focusing on optimizing a profit function combining key performance metrics, including the expected queue size, loss probability, and waiting time. Study [19] analyzed the queue length in two variants of the service process, deriving the queue size distribution and expected queue size for a finite buffer model. Finally, ref. [20] provided full, time-dependent solutions and steady-state results for the queue size distribution and expected queue size in a finite buffer model.
This study did not incorporate group service or group arrivals in the analyzed models. While group structures significantly influence the system performance, their effects are challenging to separate from the impact of correlations, which is the primary focus of this work.
Additionally, the models considered here have finite buffers. While infinite buffer models are important theoretically, finite buffer models have several practical advantages. Most real-world queuing systems operate with finite waiting rooms or buffers. When the system load is low or the buffer capacity is large, finite buffer systems behave similarly to their infinite buffer counterparts, allowing the latter to be approximated by the former. However, the reverse is not true. Finite buffer models capture critical phenomena, such as buffer overflows and job losses, that are absent in infinite buffer models. These phenomena profoundly affect the system performance, as will be evident in Section 7.
8. Conclusions
This study aimed to determine which of the two correlations—in the service times or in the interarrival times—caused a greater deterioration in the expected queue length, given that the strength of the correlation was identical in both cases. To the author’s knowledge, this had not been established yet in any previous study.
To perform the comparison, a formula for the expected queue length in a system with correlated arrivals was derived first. The formula accounts for both the time-dependent and steady-state expected queue lengths and supports arbitrary service time distributions (enabling, e.g., arbitrary variance). Furthermore, it is rather easy to use in numeric computations. The formula itself constitutes a contribution of this paper. In the comparison, the new formula was used against the already known formula for the expected queue length in a system with correlated service.
Various scenarios were studied, where the common correlation was positive or negative, the variance of the service or interarrival times was low or high, and the system load was low or high.
The following two key observations were made:
When the impact of other factors (load, variances of interarrival/service times) is minor, then the following apply:
- A positive correlation has a worse effect on the queue length when present in service times than in arrival times;
- A negative correlation has a worse effect on the queue length when present in arrival times than in service times.
In reality, a positive correlation is encountered much more often than a negative correlation, and this applies to both arrival and service processes. Therefore, when other factors are negligible, it is better to have correlated arrivals than service, given that the strength of the correlation is identical in both cases.
An intuitive explanation of this observation is not easy, because the expected queue length, as computed from the theorems, depends in a thoroughly complicated way on the correlation embedded in the parameter matrices.
If one or more other factors influencing the queue length (such as the load or variances) are non-negligible, the picture becomes more complex. This must obviously be the case, because in each particular scenario, one cannot be sure which factor has the dominant effect on the queue length—the correlation, the load, or the variance of the interarrival/service times.
The main limitation of this study is that it did not incorporate group service or group arrivals in the analyzed models. While group structures significantly influence the system performance, their effects are challenging to separate from the impact of correlations, which was the primary focus of this work. This problem can be addressed in future work.
Another direction for future work is to determine which of the two—correlated service times or correlated interarrival times—has a stronger influence on other performance characteristics. Herein, we compared the two types of systems with respect to the expected queue length only. Similar comparisons can be made with respect to the waiting time, throughput, and other characteristics.
Funding
This research received no external funding.
Data Availability Statement
The data are contained within the article.
Conflicts of Interest
The author declares no conflicts of interest.
References
- Leland, W.; Taqqu, M.; Willinger, W.; Wilson, D. On the self-similar nature of ethernet traffic (extended version). IEEE/ACM Trans. Netw. 1994, 2, 1–15. [Google Scholar] [CrossRef]
- Crovella, M.; Bestavros, A. Self-similarity in World Wide Web traffic: Evidence and possible causes. IEEE/ACM Trans. Netw. 1997, 5, 835–846. [Google Scholar] [CrossRef]
- Dudin, A.N.; Klimenok, V.I.; Vishnevsky, V.M. The Theory of Queuing Systems with Correlated Flows; Springer: Cham, Switzerland, 2020. [Google Scholar]
- Emmert, B.; Binzenhöfer, A.; Schlosser, D.; Weiß, M. Source traffic characterization for thin client based office applications. Lect. Notes Comput. Sci. 2007, 4606, 86–94. [Google Scholar]
- Bocharov, P.P. Stationary distribution of a finite queue with recurrent flow and Markovian service. Autom. Remote Control 1996, 9, 66–78. (In Russian) [Google Scholar]
- Alfa, A.S.; Xue, J.; Ye, Q. Perturbation theory for the asymptotic decay rates in the queues with Markovian arrival process and/or Markovian service process. Queueing Syst. 2000, 36, 287–301. [Google Scholar] [CrossRef]
- Bocharov, P.P.; D’Apice, C.; Pechinkin, A.V.; Salerno, S. The stationary characteristics of the G/MSP/1/r queueing system. Autom. Remote Control 2003, 64, 288–301. [Google Scholar] [CrossRef]
- Chaplygin, V.V. The mass-service G/BMSP/1/r. Inf. Process. 2003, 3, 97–108. (In Russian) [Google Scholar]
- Albores-Velasco, F.J.; Tajonar-Sanabria, F.S. Analysis of the GI/MSP/c/r queueing system. Inf. Process. 2004, 4, 46–57. [Google Scholar]
- Kim, J.; Kim, B. Asymptotic analysis for loss probability of queues with finite GI/M/1 type structure. Queueing Syst. 2007, 57, 47–55. [Google Scholar] [CrossRef]
- Banik, A.D.; Gupta, U.C. Analyzing the finite buffer batch arrival queue under Markovian service process: GIX/MSP/1/N. Top 2007, 15, 146–160. [Google Scholar] [CrossRef]
- Banik, A.D. Analyzing state-dependent arrival in GI/BMSP/1/∞ queues. Math. Comput. Model. 2011, 53, 1229–1246. [Google Scholar] [CrossRef]
- Chaudhry, M.L.; Samanta, S.K.; Pacheco, A. Analytically explicit results for the GI/C-MSP/1/∞ queueing system using roots. Probab. Eng. Informational Sci. 2012, 26, 221–244. [Google Scholar] [CrossRef]
- Samanta, S.K. Sojourn-time distribution of the GI/MSP/1 queueing system. Opsearch 2015, 52, 756–770. [Google Scholar] [CrossRef]
- Chaudhry, M.L.; Banik, A.D.; Pacheco, A. A simple analysis of the batch arrival queue with infinite-buffer and Markovian service process using roots method: GIX/C-MSP/1/∞. Ann. Oper. Res. 2017, 252, 135–173. [Google Scholar] [CrossRef]
- Banik, A.D.; Chaudhry, M.L.; Kim, J.J. A Note on the Waiting-Time Distribution in an Infinite-Buffer GI[X]/C-MSP/1 Queueing System. J. Probab. Stat. 2018, 2018, 7462439. [Google Scholar] [CrossRef]
- Banik, A.D.; Ghosh, S.; Chaudhry, M.L. On the consecutive customer loss probabilities in a finite-buffer renewal batch input queue with different batch acceptance/rejection strategies under non-renewal service. In Soft Computing for Problem Solving: SocProS 2017; Springer: Singapore, 2019; Volume 1, pp. 45–62. [Google Scholar]
- Banik, A.D.; Ghosh, S.; Chaudhry, M.L. On the optimal control of loss probability and profit in a GI/C-BMSP/1/N queueing system. Opsearch 2020, 57, 144–162. [Google Scholar] [CrossRef]
- Samanta, S.K.; Bank, B. Modelling and Analysis of GI/BMSP/1 Queueing System. Bull. Malays. Math. Sci. Soc. 2021, 44, 3777–3807. [Google Scholar] [CrossRef]
- Chydzinski, A. Transient GI/MSP/1/N Queue. Entropy 2024, 26, 807. [Google Scholar] [CrossRef]
- Chakravarthy, S. The Batch Markovian Arrival Process: A Review and Future Work. Adv. Probab. Stoch. Process. 2001, 1, 21–49. [Google Scholar]
- Chydzinski, A. Time to reach buffer capacity in a BMAP queue. Stoch. Model. 2007, 23, 195–209. [Google Scholar] [CrossRef]
- Zakian, V. Numerical inversion of Laplace transform. Electron. Lett. 1969, 5, 120–121. [Google Scholar] [CrossRef]
- Schiff, J.L. The Laplace Transform: Theory and Applications; Springer: New York, NY, USA, 1999. [Google Scholar]
- Chydzinski, A.; Adamczyk, B. Transient and stationary losses in a finite-buffer queue with batch arrivals. Math. Probl. Eng. 2012, 2012, 326830. [Google Scholar] [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. |
© 2025 by the author. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https://creativecommons.org/licenses/by/4.0/).