Abstract

We consider an optimal decision problem of the service providers in public mail service systems subject to virus attacks. Two scenarios, i.e., free service systems and payment systems, are investigated in the paper. We first formulate the considered system as a partially observable queue with Bernoulli vacations, and by the supplementary variable method, we obtain some performance measures of the system. In the case of free service systems, the service provider aims to maximize the expected social welfare. Correspondingly, we obtain a joint optimum value of scan rate and scan probability from the viewpoint of social welfare maximization and carry out a sensitivity analysis of the joint optimum value on some input parameters. In the case of payment systems, senders are assumed to be boundedly rational, and we obtain a three-dimensional (3D) optimal strategy by combining the Stackelberg game approach and the logit choice model. Our results provide managerial insight and are helpful for service providers to optimally select parameters of the system and make optimal pricing decisions in various situations.

1. Introduction

We consider an antivirus mail service system subject to virus attacks. Senders send their e-mails to a mail service system by mobile facilities such as mobile phones, laptops, or PADs. The system transmits these messages to the corresponding recipients. To make the mail server work smoothly, the manager of the system needs to scan virus at a certain rate. Frequent scans will hamper the system performance, whereas, if the scan rate is small, the system may be affected by virus attacks. A so-called stochastic scan is proposed in this paper, namely, after each service completion, the system will perform a scan with a certain probability that is called scan probability throughout the paper. A natural question is whether the most appropriate rate exists to perform virus scanning? In addition, the system’s security also depends on the scan level. Compared with the deep scanning, rapid scanning may not be able to detect the virus completely. To capture the degree of scanning, a so-called scan rate, which is an indicator reflecting the speed of the scan, is also proposed in this paper. If the scan rate is large, the system will perform a fast but a low-level scan. So, a second question is how to determine the optimal scan rate if it does exist? The above two questions are both worthy of studying. In this paper, we consider a public mail service system, in which the service provider wants to maximize the social welfare. At the same time, the service provider has to take into account the service fees. Although a public mail service system is not profitable, it is necessary to impose a certain service fee on each customer for maintaining the systems. This is a trade-off, and the service provider has to balance the social welfare maximization issue against the imposition of service fees.

In the literature, mail service systems usually are modeled as various queueing systems. Liu and Wang [1] modeled a mail service system using an queue with Bernoulli vacations. They investigated customers’ equilibrium strategies under different levels of information of the system. Zhu and Wang [2] extended the work of [1] by assuming that the service time follows a general distribution. They obtained the individually as well as the socially optimal decisions. In this paper, a mail service system subject to virus attacks is considered as an almost unobservable queuing system with Bernoulli vacations, in which the information, about whether the system is busy (i.e., handling a mail), is available to customers, but the number of mails waiting for service in the system is not available. With this setting, we study the performance measures of the system, the optimal decisions, and the optimal pricing strategies.

In this paper, we focus on a public mail service system in which the service provider wants to maximize the social welfare by optimizing the scan rate and the scan probability. In recent years, a large amount of literature studied the social optimization problem of queueing systems. The related literature includes Economou and Kanta [3], Shi and Lian [4], and Guo and Hassin [5] among others. In these studies, several methods solving various queueing problems have been widely adopted, including the generating function method, the supplementary variable method, the pure probability method, and the QBD method, as well as other matrix analytic methods. Interested readers can refer to Gray et al. [6], Mitrany and Avi-Itzhak [7], Economou and Manou [8], Caldentey and Wein [9], and Wang et al. [10], among others. In this paper, we combine the supplementary variable method and the partial generating function method to obtain the performance measures of the mail service system at first. Based on these characteristics, the optimal decisions and the optimal pricing strategies are studies and established.

In practice, it is hard for the service provider to operate and maintain the service system taking into account only the social welfare. That is, the service provider needs to impose a certain service fee on the customers: the social welfare and the service fees both are necessary to run the system. Obviously, there exists a trade-off between social welfare maximization and profit maximization. At the same time, to capture the limited cognitive ability of customers in evaluating some unknown measures such as wait time, we assume that senders are boundedly rational in this paper (see, for example, Huang et al. [11], Li et al. [12], and Li et al. [13]), and we use the logit choice model to describe senders’ choices. By the logit choice model, a Stackelberg game is formulated and used to obtain a 3D optimal decision including the optimal scan rate, the scan probability, and the optimal pricing. The details about Stackelberg game can be found in the work of Gibbons [14]. Interested readers can refer to Li et al. [15], Do et al. [16], and Tran et al. [17] for the Stackelberg game applications in different queueing systems.

To summarize, the main contributions of this paper are listed as follows:(i)We built a rather general model for mail service systems subject to virus attacks. Our model generalizes the work of Zhu and Wang [2], in which the strategic sensitivity of users to different system state information was ignored. We derive the partial generating functions of the joint distribution of the server state and the queue length and obtain the formulas of some important performance measures of mail service systems.(ii)We provide two different models for free mail service systems: basic social welfare model and extended social welfare model. The joint optimum value of scan rate and scan probability is obtained for the first time from the perspective of social welfare maximization.(iii)For payment systems, service providers face a dilemma between profit maximization and social welfare maximization. We propose a queueing system with boundedly rational customers to characterize the payment systems and then discuss the optimal decision and pricing by combining the Stackelberg game and the logit choice model. To the best of our knowledge, a model that combines a queueing system with boundedly rational customers, the Stackelberg game, and the logit choice model is not considered in the literature.

The paper is organized as follows. In Section 2, we describe the mathematical model of public mail service systems. Section 3 derives the partial generating functions of the joint distribution of the server state and queue length and then obtains performance measures. In Section 4, we study the optimum values of scan rate and scan probability in the case of free service, and we explore the sensitivity of the optimums on some parameters. Section 5 considers the case that each served sender needs to pay a certain service fee, and we obtain 3D optimal strategy. Finally, conclusions are given in Section 6.

2. Model Description

We consider a mail service system subject to virus attacks, in which senders’ mails randomly arrive in the system and are served by the mail server according to the order of arrivals. We assume that mails’ arrivals follow a Poisson process. The service time, which is the period beginning when a mail arrives in the system and ending when the mail is completely transmitted, is assumed to be independent and identically distributed with probability distribution function , probability density function , and finite first two moments: . Let be the service completion rate function. Upon completion of a mail service, the server begins a scan with or serves the next sender’s mail with , where is called the scan probability. The bigger the value of is, the higher the frequency of scans is. We assume that the level of each scan is stochastic, and its scan time follows an exponential distribution with scan rate θ. Just as stated in Section 1, the scan rate can reflect the scan level. For example, if θ is very big, the scan will be completed at a rapid rate (i.e., the so-called fast scan), but it is unwary. The viruses may not have been fully detected. After completing a scan, the mail server will immediately serve the first mail waiting in the queue if there are other mails waiting for service in the system; otherwise, the server will perform another scan. Arrival process, service process, and scan process are mutually independent. According to the above statement, we can use an almost unobservable queueing system with Bernoulli vacations to model our proposed model.

The difference between our model and Zhu and Wang [2] lies in the fact that the information about the queue length and the state of the server (i.e., handling mails, virus scanning, or idle) is ignored in the latter. Therefore, the mails’ arrival rate is a constant in [2], regardless of whether the server is busy, idle, or is performing virus scanning. Evidently, this paper takes into account the sensitivity of users to different system state information. In this paper, we assume that the system is almost unobservable, namely, the state is observable, but the queue length is invisible. In this setting, it is a natural assumption that mails’ arrival intensity is different under different system state information, which reflects users’ sensitivity to different levels of information. We assume that mails’ arrivals follow a Poisson process with intensity if the server is performing virus scanning or idle, while mails’ arrivals follow a Poisson process with intensity if the server is handling a mail. These assumptions imply that users will adopt different joining strategies when facing different system states. Obviously, it is more natural and reasonable. In addition, if and are set to the same value λ (i.e., ), our model will degenerate to [2]. Our objective is to explore the optimal decision and pricing strategy in the mail service system subject to virus attacks. If the mail service operates correctly, we will derive the joint optimum value of the scan rate and the scan probability from the perspective of maximizing the expected social welfare. For the case of levying service fees, we assume that senders are boundedly rational and obtain the optimal decision and pricing strategy of the service provider based on the logit choice model and the Stackelberg game.

3. Performance Measures

In this section, we consider performance measures of the mail service system under the condition that the system is stable.

Let be the number of mails in the system at time t and be the elapsed service time of the serving mail at time t. denotes the state of the server, where

The stochastic process is a Markovian process with the state space

Here, the state denotes that the system is idle; means that the system is performing a scan and j mails are waiting for services; denotes that there are j mails in the system, one of which is being served, and the elapsed service time of the serving mail is x. Figure 1 shows the transition rate diagram in the mail service system. For convenience of narration, we can also divide the state of the server into three categories, that is,

Let be the joint probability that, at time t, there are n mails in the system and a mail is being served with elapsed service time between x and , namely, . denotes the probability that, at time t, the server is performing virus scanning and there are n customers in the system, i.e., . In this paper, we consider the case that the system is stable. In this situation, and both exist. Let and . By considering transitions of the process between time t and and letting and , we havewhere the last equation in (4) can be obtained from the normalizing equation. Let , , , and . After some derivations, (4) can be rewritten as

Solving (5), we obtainwhere is the Laplace–Stieltjes transform (LST) of , and . From (8), we get

Actually, are the partial generating functions of the joint distribution of the server state and the queue length. The above results are summarized in the following theorem.

Theorem 1. For a mail service system, the partial generating functions of the joint distribution of the server state and the queue length can be computed fromwhere and .
Let , respectively, be the probabilities that the server is idle, scanning, and busy. According to Theorem 1, we can obtain the probabilities that the server is in different states.

Theorem 2. In the steady-state situation, the following results hold:(a)The probability that the server is idle, , can be obtained from(b)The probability that the server is busy is(c)The probability that the server is performing virus scanning can be computed from

Proof. (a)The probability that the server is idle . From (6), we immediately get (11).(b)The probability that the server is busy can be written asLet and . According to Theorem 1, we have . Since , we can compute by L’Hospital rule, namely,whereThrough simple computations, we obtain (12).(c)The probability that the server is performing virus scanning equals one minus the probability that the server is busy or idle, that is, . Then, we obtain (13). This completes the proof.

Theorem 3. The mail service system is stable if and only if .

Proof. The system is stable if and only if the number of mails in the mail service system does not trend infinite as . In other words, the system is stable if and only if the probability that the system has no mail waiting for service is positive. According to Theorem 2 (a), if and only if since . Then, we get Theorem 3. This completes the proof.

Remark 1. If , the mail service system is stable if and only if . This result is the same as Theorem 4.1 of Zhu and Wang [2], which is a special case of Theorem 3 present in this paper.
Now, we explore the expected queue length of mails waiting in the system and the expected waiting time of an arriving sender. is assumed to be the expected queue length of the mail service system.

Theorem 4. Under the condition that the system is stable, the expected queue length of mails waiting in the system can be given bywhere , , and .

Proof. According to the definitions of and , we can compute the expected queue length of the system fromLet and ; thus, andwhereSince , the above equation can be computed by L’Hospital rule:where can be determined in (21) and (22), respectively, , andFrom (3), we havewhere , , , and . After some deviations, we getNow, we compute . Let and .where can be determined by (16) and (17), respectively, and the second-order derivatives of and can be written asFrom (27)–(29), we haveSubstituting (26) and (30) into (19) yields (18). This completes the proof.

Remark 2. Our model degenerates to Zhu and Wang [2] if . We can obtain the related performance measures in the work of Zhu and Wang [2] by replacing and in our model with λ. For example, we can obtain the expected queue length of mails in the system by replacing and in (18) with λ, namely,which is consistent with equation (44) in Zhu and Wang [2].
We assume that is the expected queue length of mails in the system under the condition that the server is performing virus scanning or idle, and denotes the expected queue length under the condition that the system is busy. and can be, respectively, computed fromwhere can be determined by (11), (12), (13), (26), and (30), respectively.
Let be the expected waiting time of an arriving sender under the condition that the server is performing virus scanning or idle upon arrival. is assumed to be the expected waiting time of an arriving sender under the condition that the system is busy upon arrival. By Little’s formula, we haveThe above performance measures of the system provide a basis for exploring the optimal decision of the service provider. In the sequel, we will consider two cases according to whether to impose a certain service fee on each customer, respectively.

4. Free for Services: 2D Optimal Decision

In this section, we consider the optimal decision problem of the service provider in the case of free service. All potential senders are assumed to prefer to enter the system for services since the services are free. Our proposed system is the public mail service system like the mail service system for education departments, so the objective of the service provider is to maximize the expected social welfare. We first give two models of social welfare: basic social welfare model and extended social welfare model, where only the second model takes into account the energy assumption.(i)Basic Social Welfare Model. The social welfare is assumed to be the expected total net benefit of senders minus the expected lost due to virus attacks(ii)Extended Social Welfare Model. The social welfare is customers’ expected total net benefit minus the expected lost due to virus attacks and the expected energy consumption of the mail service system

Compared with the basic social welfare model, the extended model takes into account the effect of the energy consumption on the social welfare. We assume that denotes the waiting cost per time unit under the condition that the server is performing virus scanning or idle, and is the waiting cost per time unit under the condition that the system is busy. Note that regardless of whether the server is performing virus scanning or idle, the waiting cost per time unit is consistent. It is because an arriving sender cannot distinguish the system whether it is in the scanning state or the idle state. The waiting cost per time unit depends on the server state observed by the senders. In different states, the waiting costs per time unit are different. This assumption is based on the result of Maister [18], who considered the psychology of waiting lines and believed that the psychological state of anxiety results in higher waiting cost. Let , respectively, be the expected social welfares in the basic and extended social welfare models.

When the server is performing virus scanning or idle, the expected waiting time of an arriving mail is . After completing the service of the mail, the sender receives the reward of R, which reflects the satisfactory degree of the served sender. Thus, in this situation, the expected net benefit equals . When the system is busy, the expected waiting time of an arriving mail is , and then the expected net benefit is . According to Theorem 2, the probability that the server is performing virus scanning or idle is , and the probability that the system is busy is . Then, the effective arrival rate of mails is if the server is performing virus scanning or idle, and the effective arrival rate is if busy. The expected loss due to virus attacks depends on the scan probability and the scan rate. In practice, the loss increases with the scan rate and decreases with the scan probability. We construct a mathematical expression to model the loss, where , γ, and δ can be obtained by statistic inference. Therefore, the expected social welfare under the basic social welfare model can be computed from

Let , respectively, be the costs of energy consumption per time unit when the server is idle, scanning, and busy. Then, the expected social welfare under the extended social welfare model can be written as

Now, we explore the optimal scan rate/scan probability to maximize the expected social welfare. The scan rate θ (or scan probability p) is a unique optimization variable if all other parameters are given. Let and , respectively, be the optimal scan rates for fixed p under the basic and extended models. and are, respectively, assumed to be the optimal scan probabilities for fixed θ under the basic and extended models. Thus, the optimal solutions can be obtained fromwhere . Figures 2(a) and 2(b) show that the expected social welfare is concave in the scan rate θ for fixed p, and it is concave in the scan probability p for fixed θ. Therefore, the optimal scan rate/scan probability exists and is unique. Similarly, Figure 3(a) shows that the expected social welfare is concave in θ. It can also be found that is concave in from Figure 3(b). Therefore, there exists a unique optimal solution of θ (or ) for a given scan probability p (or scan rate θ).

However, in real-life situation, the scan rate and the scan probability both are determined by the manager of the mail service system. Hence, a joint optimum value of the scan probability and the scan rate needs to be explored. We summarize our optimization problem as follows:where . In the above optimization problem, is a two-dimensional (2D) decision variable. Let and , respectively, be the joint optimums of the scan probability and the scan rate under the basic and extended models. Thus, these 2D optimal solutions can be computed fromwhere . The solutions of our proposed optimal problems can be obtained by Matlab or Mathematica. Figures 4(a) and 4(b) show the relationship among the expected welfare , the scan probability p, and the scan rate θ for . From Figure 4(a) and Table 1, we find that the expected social welfare under the basic social welfare model is jointly concave in the scan rate and the scan probability via numerical analysis; thus, we can obtain a unique joint optimum value. Observing Table 1, the joint optimum value of the scan probability and the scan rate , and the corresponding expected social welfare is 2.17944. Similar to the basic social welfare model, in the extended model, a unique joint optimum value can also be obtained by numerical analysis. From Table 2, is maximized as , so the optimal decision of the manager is to implement a virus scanning at scan rate after each service completion.

Now, we explore the sensitivities of the joint optimum value on , , and , respectively. We only consider the case of the basic social welfare model. Similar analysis is also suitable for the extended model. Figure 5(a) shows that the optimal scan rate is increasing in , and the optimal scan probability decreases with for . The scan rate embodies the speed when each scan is implemented, and it reflects the level of scan. Big scan rate means the scan level is low, i.e., the system has implemented a fast scan. In addition, the scan probability denotes the probability that the mail system has implemented a scan after a service completion, so it embodies the frequency of scans. Figure 5(a) implies that the manager of the system should implement fast scans and reduce scanning frequency as grows. Figures 5(b)5(d) show the optimal scan rate and the optimal scan probability both are decreasing in . This implies the optimal decision of the manager is to implement deep scans and reduce scan frequency as , or is very big. Figures 5(e) and 5(f) show that the optimal scan rate and is increasing in both and . To maximize the expected social welfare, the manager should frequently implement a fast scan with the increase of or .

5. Make a Charge for Service: 3D Optimal Decision

In this section, we consider the case that each served sender needs to pay a charge for mail service. The social welfare is one of the important concerns for a nonprofit company, but it is necessary to operate and improve the mail service system by levying service fees, which may reduce the social welfare. An ideal scenario is that both the social welfare and the revenue of the service provider are simultaneously maximized, but this cannot be achieved generally. How do we determine the optimal scan rate, scan probability, and price? It is a question worth studying.

In Section 4, we have discussed the case of free service, in which we did not consider senders’ strategic behavior since all mail services are free and all potential senders are assumed to prefer to enter the system. Once the mail service is not free, senders need to decide whether to seek services or leave the system. We assume that senders are boundedly rational, namely, senders have limited cognitive ability in evaluating their own waiting time. We use the logit choice model to characterize senders’ choices (the related literature includes Huang et al. [11], Li et al. [12], and Li et al. [13], among others). Let be the probability that a sender sends his mail to the mail service system when the system is busy upon arrival. is assumed to be the probability that a sender sends his mail to the mail service system when the server is not handling a mail upon arrival. We assume that senders are pessimists, who believe all other senders choose to enter the system. According to the logit choice model, can be computed fromwhere denotes the service fee for each service request. Then, the effective arrival rate of mails when the server is scanning or idle is . Similarly, is the effective arrival rate when the server is handling a mail. Let be the expected social welfare in the case of making a charge for each service. Adopting the basic social welfare model, we obtain the expected social welfare as follows:

For given , the joint optimum value of θ and p can be computed by

On the contrary, the nonprofit mail service provider also hopes to get more income to operate and improve the mail service system. The income of the service provider equals the effective arrival rate times the service fee ; thus, the provider needs to consider the following optimization problem:

For the above optimization problem, are two given values. Then, for fixed , the optimal price is .

From the viewpoint of the public welfare service provider, the social welfare and the income are two concerns. Increasing the income results in the reduction of the social welfare. How to balance these two interests? It is a dilemma and also is a game problem existing in the mind of the manager. We adopt the Stackelberg game to characterize this problem. The idea of “maximizing the expected social welfare” is the Stackelberg leader while the idea of “maximizing the income” is the Stackelberg follower. We will derive the recursion formulas of optimal strategy. In the formulas, optimal price, scan rate, and scan probability can be obtained. Let , , and , respectively, be the values of θ, , and after n iterations. Let , , and . To make our approach easy to understand, we provide the computational algorithm of the 3D optimal strategy as follows.Step 1: set , and then compute by usingStep 2: obtain from . Then, compute by usingStep 3: compute recursively fromThen, compute recursively byStep 4: if , , and , stop iterative calculations; otherwise, return to Step 3. Here, are three given sufficient small values.

To check the above computational algorithm, we provide a numerical example. Observing Figure 6, we find that, after six iterations, tends to be stable as n grows. More specifically, Table 3 shows that remains constant as . Therefore, the optimal strategy under the Stackelberg game for . In this case, it is quite difficult to say whether the expected social welfare is jointly concave in the scan rate and the scan probability by theoretical derivation. However, we can obtain a unique optimum value through numerical analysis which shows that the optimum value is convergent with the increase of the number of iterations and independent of the initial value of .

Remark 3. The expected social welfare has been obtained by adopting the basic social welfare model. A natural extension is to obtain by adopting the extended model. In this case, can be computed fromand the 3D optimal decision can be obtained by replacing (40) with (47).

Remark 4. In this section, senders are assumed to be pessimists and believe that all other senders choose to enter the system. Based on this assumption, we obtain by the logit choice model. However, if each sender believes that all other senders adopt the same strategy as him, the corresponding probabilities can be computed fromwhere . The above equation can be written as . We can get by iterative computations. In this case, the 3D optimal strategy can be obtained by replacing (39) with (48).

6. Conclusions

In this paper, we study a public mail service system subject to virus attacks by formulating it as an queue with Bernoulli vacations. With the supplementary variable method, we obtain the partial generating functions of the joint distribution of the server state and the queue length, and then we derive the probabilities that the system is in different states. We consider two scenarios: (1) the service provider does not charge the senders and (2) levying service fees. For the first case, we adopt two different social welfare models to obtain the joint optimum values of the scan rate and the scan probability. For the second case, we assume that senders are pessimistic, boundedly rational, and we obtain a 3D optimal strategy under the formulation of the Stackelberg game. The corresponding computational algorithm is provided, and we also show some extensions (see Remarks 3 and 4). The results obtained in this paper can provide some managerial insight not only for the mail service provider but also for the optimal management concerning the wireless sensor network, web-clouding service, file transfer service, and so on. For future work, one may extend our model to the unreliable mail service system with service interruptions in which the optimal decision and pricing issues are still important and worthy of further investigation. Furthermore, the reliability analysis of the system deserves to be studied.

Data Availability

The data used to support the findings of this study are available from the corresponding author upon request.

Conflicts of Interest

The authors declare that they have no conflicts of interest.

Acknowledgments

This work was supported in part by the National Natural Science Foundation of China (Grant nos. 71871008 and 71571014).