Modeling and Performance Analysis of Single-Server Database Over Quasi-static Rayleigh Fading Channel
Abstract
Cloud database is the key technology in cloud computing. The effective and efficient service quality of the cloud database is inseparable from communication technology, just as improving communication quality will reduce the concurrency phenomenon in the ticketing system. In order to visually observe the impact of communication on the cloud database, we propose a Communication-Database (C-D) Model with a single-server database over the quasi-static Rayleigh fading channel, which consists of three parts: CLIENTS SOURCE, COMMUNICATION SYSTEM and DATABASE SYSTEM. This paper uses the queuing model, M/G/1//K, to model the whole system. The C-D Model is analyzed in two cases: nonlinearity and linearity, which correspond to some instances of SISO and MIMO. The program simulation results of average staying time, average number of transactions and other performance characteristics are basically consistent with theoretical results, which verify the validity of the C-D Model. The comparison of these experimental results also proves that poor communication quality does lead to the reduction in the quality of database service.
Index Terms:
single-server database, quasi-static Rayleigh fading channel, exclusive lock, retrial, queue system.I Introduction
The database can store data efficiently and orderly, which makes it convenient for people to use data, such as checking the inventory of train tickets. In order to ensure the stability of online services in the face of a large number of demand, the improvement of the online service system is needed.
As we all know, the online services system mainly consists of communication systems and database systems. The delay of threads based on high concurrency database systems is less if it is in the high quality of communication environment. Therefore, the joint analysis of communication systems and database systems for enhancing the quality of online services is what we consider.
The study in [1] proposed a simulation model within a finite amount of time in a communication network that enables users to analyze distributed transaction scheduling algorithms in real-time database systems. For communication system, most studies assume that the communication network has a constant transmission capacity, such as [2, 3, 4]. In [5, 6, 7], the models are no longer limited to a constant transmission delay but still assume that the network capacity is infinite. The communication links may become the restriction in some wireless communication systems. With the continuous expansion of communication applications, there are more and more researches on mobile edge computing(MEC) stack services [8, 9]. Unfortunately, very few studies have been made to combine a database model with a communication environment.
On the other hand, the performance studies of database systems commonly use queuing systems as the analytical models. Some of the earliest queuing models of database systems can be found in [10] which models the databases through the M/M/m/FCFS queuing system. In [11], the model M/M/m is used to study the performance characteristics of a replicated database under synchronous and non-synchronous cases. The studies in [12] and [13] use M/M/1 queues with an exponential distribution of service times. More generally, [14] and [15] model the databases as M/G/1/FCFS and M/G/1/RR queues with generally distributed service times, respectively.
All of the preceding articles disregard or make constant communication time. In this paper, we offer a model that combines communication systems with database systems, named the C-D Model, in order to display the status of database service in response to fluctuating channel conditions and arrival rate of transactions.
As a result, a total time distribution for each customer, including communication time and service time, is introduced. Several stationary performance parameters, including queue length (LS, both waiting and serving), waiting queue length (L, only waiting), waiting time (W, only waiting), staying time (WS, both waiting and serving), and busy period of the database (BP), are considered. The main contributions of this paper are summarized as follows:
1) A model, named the C-D Model, is designed for describing the impact of communication quality on the services provided by a single-server database.
2) Two simulation outcomes are obtained: linearity and nonlinearity.
3) For nonlinear and linear cases, the impact of communication quality is analyzed on a single-server database system, where its program simulation and the theoretical results match each other.
This paper is arranged as follows: The second section describes the C-D Model in detail. In the third section, two cases of unclosed numerical solutions are derived from theoretical analysis. The fourth section explains the program simulation and theoretical results that verify the C-D Model, as well as the effect of communication quality on single-server database service.
Notation: The characters in TABLE I are representations of the queuing model. A complete queuing model is expressed as
(1) |
where the meaning of each letter is as follows: is the distribution of customer arrival interval, is the distribution of service time. The distribution of and is as follows: represents the negative exponential distribution with a negative parameter; is deterministic distribution; stands for the k-order Erlang distribution, is k-phase hyper-exponential distribution, and represents the general distribution. says the number of services. indicates the system capacity limit, and its default is . is the limit on the number of client sources, and its default value is . indicates the service rule, and its default value is the first come, first serve rule.
II SYSTEM

II-A CLIENTS SOURCE
This part assumes that there are clients. The client is locked until the completion of its final transaction. When a client is free at time (i.e., is not being served and is not waiting for service), it may initiate a transaction during interval with probability dt.
If the channel is occupied or the DATABASE SYSTEM is locked, the transaction waits in the Waiting Area and generates a Poisson flow of repeated calls at a rate of until it discovers that the channel is available. When the transaction waits in the Waiting Area, the client remains locked until terminated due to communication quality or successfully served.
II-B COMMUNICATION SYSTEM
The channel in C-D Model is a quasi-static Rayleigh fading channel, such as [18] and [19]. It is assumed that fading coefficients are constant during a packet transmission, but change independently from one packet to another. If the transaction is terminated by database because of poor communication quality(i.e., the communication time exceeds ), it could be discarded. No data related to this discarded transaction is recorded.
We examine two cases in our work. In one case, , there is a nonlinear relationship between capacity and signal power in some SISO, called the nonlinear case. In another case, (see [20]), there is a linear relationship between capacity and signal power in some MIMO, referred to as linear case.
II-C DATABASE SYSTEM
Assume in the C-D Model that every transaction has an exclusive lock on this single-server database. Once a transaction enters the COMMUNICATION SYSTEM, the DATABASE SYSTEM is locked until this transaction finishes.
Poor communication quality leads to long communication times for transactions. It is presumed that represents the maximum time the database can wait for this transaction to transmit before terminating it. After the transaction is terminated, the database is unlocked for the next transaction.
The service time in the DATABASE SYSTEM conforms to an exponential distribution with a negative parameter .
II-D The process of a transaction

A transaction is initiated by one idle client in the CLIENTS SOURCE, which marks the beginning of a process. If the communication quality is so poor that the communication time is longer than , the database system will terminate the transaction. This transaction is discarded and no data is recorded. On the contrary, if the DATABASE SYSTEM is unlocked in the case of good communication quality, transaction passes through the COMMUNICATION SYSTEM and is served by the DATABASE SYSTEM. Unfortunately, in the event that the channel is occupied or the DATABASE SYSTEM is locked, the transaction enters the Waiting Area and retries until the service successfully completes.
After the service is completed, the transaction passes through the COMMUNICATION SYSTEM again and returns to the CLIENTS SOURCE. In this case, the communication time longer than will also cause the transaction to be discarded. The client does not release the lock on the database until the returned transaction is received, which marks the end of the process.
The M/G/1//K queue is selected as the analytical model of our system based on the information presented above.
III ANALYSIS
In this section, the M/G/1//K model is explained first. Secondly, the nonlinear and linear cases of ·/G/· are theoretically analyzed. These two cases have distinct distribution functions of , where . is the uplink time in COMMUNICATION SYSTEM. is the service time in DATABASE SYSTEM. is the downlink time in COMMUNICATION SYSTEM.
III-A M/G/1//K Model
The following is an illustration of the model we used. The M/G/1//K queuing system was introduced by G. I. Falin and J. R. Artalejo in [21], and they improved the expressions of the main performance characteristics as proved in Appendix A111The full paper is recorded on http://arxiv.org/abs/2212.09219.. Their results can be summarized as follows:
(2) |
(3) |
where , and
(4) |
The coefficients can be recursively computed by eq(5) with .
(5) | |||
where is ’s Laplace-Stieltjes transform
(6) |
By using eq(2), eq(5) could be reduced to a equation with . and are obtained by iteration. With eq(3) and eq(2), is obtained. When the system is in equilibrium,
-
1)
The server utilization.
(7) -
2)
The mean number of clients in waiting area.
(8) -
3)
The mean waiting time.
(9) -
4)
The mean busy period.
Busy periods are defined in this way, including alternating service periods and periods in which the DATABASE SYSTEM is unlocked and the Waiting Area has repeated transactions. The final results are given as eq(10), and they are described in detail in [14] part4.
(10) | ||||
(11) |
(12) |
III-B Distribution Functions of
The Rayleigh fading model is suitable for describing the wireless channel and belongs to small-size fading. In this paper, the large-scale fading effect does not affect the theoretical derivation, so that it can be ignored. The probability density function of the Rayleigh distribution is shown in eq(13).
(13) |
where , is the parameter in Rayleigh fading channel .
It is assumed that the amount of information that goes through the channel each time is a unit packet, which is 1KB[22].
III-B1 Linear Case
In the linear case, there is a linear relationship between capacity and signal power in some MIMO. Under the information parallel transmission technology in [20], the capacity meets . Therefore, is deduced as follows.
(15) |
According to eq(14) and eq(15), the probability density function of the communication time and is shown in eq(16).
(16) |
The service time follows exponential distribution with a negative parameter . So the probability density function of the service times is
(17) |
First, it is assumed that . As proved in Appendix B222The full paper is recorded on http://arxiv.org/abs/2212.09219., we arrive at
(18) |
where
(19) | ||||
(20) |
Second, is defined as , . The calculation is the same as for . Then, in linear case, the distribution function is obtained in eq(20), where
(21) |
is divided into three segments according to its domain. When is less than , grows rapidly, that is, the total service time of a customer is around . eventually approaches maximum.
III-B2 Nonlinear Case
In nonlinear case, there is a nonlinear relationship between capacity and signal power in some SISO.
First of all, the probability density function of the service times , in this case, is as same as in eq(17) because the DATABASE SYSTEM is as same as the nonlinear case. According to capacity , we arrive at
(22) |
IV SIMULATION RESULTS
This section describes the parameters of procedure code and results of the C-D Model in figures. The lines in our figures represent the theoretical results gained from the section III, while the marks represent the simulation results received from the queue program.
The results will be presented in three parts. The first is the distribution function in two cases, which is the correctness verification of the mathematical derivation. The second group consists of client-related metrics including L and W. The others, WS and LS are shown in Appendix C333The full paper is recorded on http://arxiv.org/abs/2212.09219.. The third aspect is the BP, where observe the effectiveness of the C-D Model from the standpoint of the database.
IV-A PDF:The probability density function of
The values of the parameters are set as follows: In linear case, =1/10, =3, =3. In nonlinear case, =1/10, =3, =3, =1, =2.

In section III, the probability density function of is calculated in both nonlinear and linear case. In Fig. 3, the results we get from eq(20) and eq(24) are shown in lines, while marks represent the simulation results. Evidently, our analysis corresponds to the simulation. Moreover, the is concentrated around a smaller number in the linear case. This illustrates that the communication quality is indeed improved under some MIMO technologies.
IV-B Different of Rayleigh Fading Channel
In this part, the values of the parameters are set as follows: =10, =1/10, =3, nonlin-=1, nonlin-=1, =1/2.
Notation: The abscissa, , represents the average time interval between client arrivals. When increases, the density of client arrival decreases.

Fig. 4 presents the results of the busy period of the DATABASE SYSTEM, which is the only metric from the database perspective. First of all, the theoretical results of the model are compatible with its simulation results. The observations show that better communication quality(i.e., smaller ) facilitates the reduction of BP. These lines decrease fast as increases in both cases. In addition, using the exponential correlation matrix(i.e., MIMO in [20]) does ease the busyness of the DATABASE SYSTEM.

Fig. 5 presents the results of the W. In both cases, W increases as communication quality declines. And from a lateral perspective, the more intensive the transactions(i.e., smaller ), the more clogged the system(i.e., bigger W). The most important one is that the theoretical results from equations are consistent with the simulation results, indicating means our model works.
IV-C Different B and N of Rayleigh Fading Channel(Nonlinear Case)
In this part, the values of the parameters are set as follows: =10, =1/10, =3, =1/2, =1/2 and initial value: =1, =1.

Fig. 6 depicts the metrics of L in different and settings. It can be seen that the theoretical results of the model and simulation results match each other. In addition to L decreasing as transaction density decreases, it can also be seen that the spacing between lines decreases as increases. And once the bandwidth increases to a certain extent, neither the lowering of L nor the optimization of the system are significantly affected by it. As reduces, L also reduce at the same . It simply demonstrates that channel quality with low noise can reduce database processing congestion.
V Conclusion
This paper proposes a new model, named the C-D Model, based on communication quality and the service capability of the database system, in which theory and simulation are complementary. The M/G/1//K is selected to describe the database system. The C-D Model can be used to study online services under various communication qualities with the assumption of the linear and nonlinear cases. Future work will consider optimizing the C-D Model by adopting more complex channel models and database processing models closer to real applications, such as M/G/c//K. Combining the C-D Model with cloud computing produces observation models for improving the performance of cloud computing.
References
- [1] O. Ulusoy and G. G. Belford, “A simulation model for distributed real-time database systems,” in Proceedings. 25th Annual Simulation Symposium. IEEE, 1992, pp. 232–240.
- [2] H. Garcia-Molina, Performance of update algorithms for replicated data in a distributed database. Stanford University, 1979.
- [3] W. Mariasoosai and M. Singhal, “A concurrency control algorithm for replicated database systems,” in Proceedings of the ISMM International Conference, New York, 1990, pp. 143–147.
- [4] M. Singhal, “Concurrency control algorithms and their performance for replicated database systems, º phd dissertation,” Dept. of Computer Science, Univ. of Maryland, 1986.
- [5] Y. Kuang and R. Mukkamala, “Performance analysis of static locking in replicated distributed database systems,” Building a Generalized Distributed System Model, 1991.
- [6] J. F. Ren, Y. Takahashi, and T. Hasegawa, “Analysis of impact of network delay on multiversion conservative timestamp algorithms in ddbs,” Performance Evaluation, vol. 26, no. 1, pp. 21–50, 1996.
- [7] S.-C. Shyu and V. O. K. Li, “Performance analysis of static locking in distributed database systems,” IEEE Transactions on Computers, vol. 39, no. 6, pp. 741–751, 1990.
- [8] J. Du, W. Cheng, G. Lu, H. Cao, X. Chu, Z. Zhang, and J. Wang, “Resource pricing and allocation in mec enabled blockchain systems: An a3c deep reinforcement learning approach,” IEEE Transactions on Network Science and Engineering, vol. 9, no. 1, pp. 33–44, 2021.
- [9] J. Du, F. R. Yu, G. Lu, J. Wang, J. Jiang, and X. Chu, “Mec-assisted immersive vr video streaming over terahertz wireless networks: A deep reinforcement learning approach,” IEEE Internet of Things Journal, vol. 7, no. 10, pp. 9517–9529, 2020.
- [10] F. Baccelli and E. G. Coffman, “A data base replication analysis using an m/m/m queue with service interruptions,” in Proceedings of the 1982 ACM SIGMETRICS conference on Measurement and modeling of computer systems, 1982, pp. 102–107.
- [11] R. D. Nelson and B. R. Iyer, “Analysis of a replicated data base,” Performance Evaluation, vol. 5, no. 3, pp. 133–148, 1985.
- [12] B. Ciciani, D. M. Dias, and P. S. Yu, “Analysis of replication in distributed database systems,” IEEE Transactions on knowledge and data engineering, vol. 2, no. 2, pp. 247–261, 1990.
- [13] ——, “Analysis of concurrency-coherency control protocols for distributed transaction processing systems with regional locality,” IEEE Transactions on Software Engineering, vol. 18, no. 10, pp. 899–914, 1992.
- [14] G. I. Falin and J. R. Artalejo, “A finite source retrial queue,” European Journal of Operational Research, vol. 108, no. 2, pp. 409–424, 1998.
- [15] S.-Y. Hwang, K. K. Lee, and Y. Chin, “Data replication in a distributed system: A performance study,” in International Conference on Database and Expert Systems Applications. Springer, 1996, pp. 708–717.
- [16] P. N. D. Bukh, “The art of computer systems performance analysis, techniques for experimental design, measurement, simulation and modeling,” 1992.
- [17] K. K. Leung, “Update algorithm for replicated signaling databases in wireless and advanced intelligent networks,” IEEE Transactions on Computers, vol. 46, no. 3, pp. 362–367, 1997.
- [18] Y. Xi, A. Burr, J. Wei, and D. Grace, “A general upper bound to evaluate packet error rate over quasi-static fading channels,” IEEE Transactions on Wireless Communications, vol. 10, no. 5, pp. 1373–1377, 2011.
- [19] A. Ghrayeb and T. Duman, “Performance analysis of mimo systems with antenna selection over quasi-static fading channels,” IEEE Transactions on Vehicular Technology, vol. 52, no. 2, pp. 281–288, 2003.
- [20] S. L. Loyka, “Channel capacity of mimo architecture using the exponential correlation matrix,” IEEE Communications letters, vol. 5, no. 9, pp. 369–371, 2001.
- [21] J. R. Artalejo, “Retrial queues with a finite number of sources,” Journal of the Korean Mathematical Society, vol. 35, no. 3, pp. 503–525, 1998.
- [22] Y. Zhang, I. L. Tan, C. Chun, K. Laberteaux, and A. Bahai, “A differential ofdm approach to coherence time mitigation in dsrc,” in Proceedings of the Fifth ACM International Workshop on VehiculAr Inter-NETworking, ser. VANET ’08. New York, NY, USA: Association for Computing Machinery, 2008, p. 1–6. [Online]. Available: https://doi.org/10.1145/1410043.1410045
Appendix A The derivation of M/G/1//K
In [21], the is 0 or 1 according as the server is free or busy at time , is the number of sources in orbit. The length of the busy periods will be denoted by . The probabilities(densities) are defined as follows:
(26) |
(27) | |||
(28) |
where is the service time that has lasted when .
Then, following the method of supplementary variables, the limiting probabilities as approaches satisfy the equations of statistical equilibrium:
(29) |
(30) | ||||
where is the hazard rate function of and . With the help of so-called discrete transformations in [21], a set of unknown variables is replaced by , where is a non-singular matrix.
(31) |
Appendix B The derivation of the probability density function for Y
It is assumed that , (i.e.In order to make it easier to write, it is assumed that ), .
When , . When ,
(32) | |||
(33) | |||
When ,
(34) | ||||
(35) | |||
Appendix C figures of theoretical and simulation results


In Fig. 7, Fig. 8 and Fig. 9, all lines increase as communication quality declines. And from a lateral perspective, the more intensive the transactions(i.e., smaller ), the more clogged the system(i.e., bigger WS, LS and L). The most important one is that the analytic results from equations are consistent with the simulation results, indicating means our model works.


Fig. 10, Fig. 11, Fig. 12 depict WS, W, and LS in different B and N settings. It can be seen that the analysis results of the model and simulation results match each other. In addition to these metrics decreasing as transaction density decreases, it can also be seen that the spacing between lines decreases as B increases. And once the bandwidth increases to a certain extent, neither the lowering of these metrics nor the optimization of the system are significantly affected by it. As N reduces, these metrics also reduce at the same . It simply demonstrates that channel quality with low noise can reduce database processing congestion.

