Incorporate intelligence into the differentiated services strategies of a Web server: an advanced feedback control approach
 Malik Loudini^{1}Email author,
 Sawsen Rezig^{1} and
 Yahia Salhi^{1}
DOI: 10.1186/18690238415
© Loudini et al.; licensee Springer. 2013
Received: 18 February 2012
Accepted: 27 February 2013
Published: 14 June 2013
Abstract
This paper presents an investigation into the application of advanced feedback control strategies to provide better web servers quality of service (QoS). Based on differentiated service strategies, fuzzy logic based control architectures are proposed to enhance the system capabilities. As a first control scheme, a Mamdani fuzzy logic controller (FLC) is adopted. Then, the Simulated Annealing (SA) algorithm (SAA) is used to optimize the FLC parameters with efficient tuning procedures. The SA optimized FLC (SAOFLC) is also implemented and applied to improve the system QoS. Simulation experiments are carried out to examine the performances of the proposed intelligent control strategies.
Keywords
Web server Quality of service DiffServ Service delay guarantee Absolute delay Relative delay Fuzzy logic controller Simulated annealing1 Background
With the tremendous growth of internet and its extraordinary success, the web servers become more and more numerous and diverse. They are, also, more and more exposed to high rates of incoming requests from users which are becoming increasingly reliant on these new sorts of modern service delivery. Providing high dynamic contents, integrating with huge databases and offering all sorts of complex and secure transactions, these internet applications are faced with growing difficulties to ensure adequate QoS [1].
Evaluation of web server QoS performance generally focuses on achievable delay of service or response time for a requestbased type of workload as a function of a traffic load.
Adopting such metrics, many QoS performance enhancement architectures and mechanisms, particularly based on differentiation of service (DiffServ) [1–3], have been proposed by the community of researchers in this area. Among these, the feedback control (or closedloop control) has been occupying a place of predilection.
Indeed, applying feedback control schemes to enhance the performance of software processes is becoming an attractive research area. The main advantage offered by this technique of automatic control is its robustness to modeling inaccuracies, system nonlinearities, and time variation of system parameters. These types of uncertainties are very common in unpredictable poorly modeled environments such as the Internet. For a literature review about the application of feedback control to computing systems, see [4–7].
Most of the feedback control techniques and algorithms are relying on the availability of formal parametric models of the controlled system and control theoretic tools. This is not always possible for software processes for which analytical models are not easily obtainable or the models themselves, if available, are too complex and nonlinear.
Furthermore, it is well known that web workloads are stochastic with significant parameter variations over time. So, a challenging problem is how to provide efficient performance control over a wide range of workload conditions knowing the highly nonlinear behavior of a web server in its response to the allocated resources.
It is precisely for processes and environments such these that we need judicious nonconventional control algorithms that will be implemented without dependency on the availability of the abovementioned requirements.
Computational intelligent approaches to handle the complexity and fuzziness present in such software systems surely have an essential role to play. We should therefore exploit their tolerance for imprecision and uncertainty to achieve tractability and robustness in control applications.
Feedback control schemes based on Fuzzy Logic Controllers (FLCs) are well known for their ability to adapt to dynamic imprecise and bursty environments such that of the web traffic.
It appears that this category of intelligent control structures should therefore be the most recommended.
In this paper, web server QoS enhancement solutions based on closedloop intelligent control strategies, including fuzzy logic, are investigated.
As related works to our study context, examples of earlier relevant research investigations, using various control techniques, can be found in [8–23].
The remainder of this paper is organized as follows. In Sect. 2, we briefly describe how web servers operate, then we present some semantics of delays and service delay guarantees in web servers. We also briefly call back the main basics about fuzzy control. An introduction to the SA optimization method is given at the end of the section. In Sect. 3, the modeling of the web server system is described and different discrete models are given. In Sect. 4, we present the adopted feedback control strategy aimed to satisfy the desired performance of the web server. The implementation details and the simulation results are given in Sect. 5. Section 6 presents the related work. Finally, Sect. 7 concludes the paper.
2 Preliminaries
In this section, we briefly describe how web servers operate and then present some semantics about delays and service delay guarantees. We also briefly call back the main basics about fuzzy control and introduce the SA optimization method.
2.1 Web servers
Web servers are commonly defined as computers that deliver web pages. Having an IP address and generally a domain name, a web server is software responsible for accepting HTTP [24] requests from clients and offering them services as HTTP responses. HTTP lies behind every web transaction. An HTTP transaction consists of three steps: TCP [25] connection setup, HTTP layer processing and network processing. Once the connection has been established, the client sends a request for an object (HTML file, image file …). The server handles the request and returns the object of this query [26].
It is well known that web servers adopt either a multithreaded or a multiprocess model to handle a large number of users simultaneously. Processes or threads can be either created on demand or maintained in a preexisting pool that awaits incoming TCP connection requests to the server. In HTTP 1.0, each TCP connection carried a single web request. This resulted in an excessive number of concurrent TCP connections. To remedy this problem the new version of HTTP, called HTTP 1.1 [27], reduces the number of concurrent TCP connections with a mechanism called persistent connections, which allows multiple web requests to reuse the same connection [8].
As in [8, 13], a multiprocess model with a pool of processes is assumed, which is the model of the Apache server, the most commonly used web server today [28].
2.2 Differentiation of services
Differentiated Services (commonly known as DiffServ) has been proposed by the IETF Differentiated Services Working Group [2]. It is a computer networking protocol or architecture that allows different levels of services on a common network in order to provide a better QoS. In other words, it supports a manageable and scalable service differentiation for classbased aggregated traffic in IP networks. Two approaches exist in DiffServ architecture:
Absolute DiffServ: This model seeks to guarantee endtoend QoS. In this architecture, the user receives an absolute service profile (e.g., endtoend delay or bandwidth guarantee …) and the network administrator attempts to maintain the absolute metric spacing between the users classes.
Relative DiffServ: This model seeks to provide relative or proportional services. In other words, it aims to guarantee to a higher priority class of users better (proportionally ratioed) service performances than those provided to a lower priority class.
2.3 Service delay guarantees: semantics, definitions and adopted Qos metrics
Our investigation being concerned with delays based QoS enhancement, we begin this paragraph by giving useful semantics and definitions relative to the service delay differentiation approach [13].
First, every HTTP request being supposed to belong to a class k (0 ≤ k < N), two main delays are defined as:
Processing delay: It is the time interval between the arrival of an HTTP request to the process responsible for the corresponding connection and time the server completes transferring the response.
Connection delay: It is the time interval between the arrival of a TCP connection (establishment) request and the time where the connection is accepted (dequeued) by a server process. The connection delay includes the queuing delay. In other words, the connection delay of class k at the m^{ th } sampling instant, denoted by C_{ k }(m), is defined as the average connection delay of all established connections of class k within the time interval [(m − 1)T_{ s }, mT_{ s }], where T_{ s } is a constant sampling period.
The delay differentiation being applied to connection delays, the adopted QoS metrics in this work are the connection delay guarantees. Using, for simplicity, delay to refer to connection delay, they are defined as follows:
Relative delay guarantee: A desired relative delay (RD) W_{ k } is assigned to each class k. A RD guarantee {W_{ k } 0 ≤ k < N} requires that C_{ j }(m)/C_{ l }(m) = W_{ j }(m)/W_{ l }(m) for classes j and l (j≠l).
Absolute Delay Guarantee: A desired absolute delay (AD) W_{ k } is assigned to each class k. An AD guarantee {W_{ k } 0 ≤ k < N} requires that C_{ j }(m) ≤ W_{ j }(m) for any class j if there exists a lower priority class l > j and C_{ l }(m) ≤ W_{ l }(m) (a lower class number means a higher priority). Note that since system load can grow arbitrarily high in a web server, it is impossible to satisfy the desired delay of all service classes under overload conditions. The AD guarantee requires that all classes receive satisfactory delay if the server is not overloaded; otherwise desired delays are violated in the predefined priority order, i.e., low priority classes always suffer guarantee violation earlier than high priority classes.
2.4 Brief review of fuzzy control

The fuzzification interface gets the values of input variables (e, Δe), performs a scale mapping to transfer the range of their values into corresponding universes of discourse, and performs the function of fuzzification to convert input (crisp) data into linguistic values.

The knowledge base comprises a rule base which characterizes the control policy and goals.

The data base provides the necessary definitions about discretization and normalization of universes, fuzzy partition of input and output spaces, membership functions (MFs) definitions.

The inference procedure process fuzzy input data and rules to infer fuzzy control actions employing fuzzy implication and the rules of inference in fuzzy logic.

The defuzzification interface performs a scale mapping to convert the range of values of universes into corresponding output variables, and transformation of a fuzzy control action inferred into a nonfuzzy control action (Δu).

G _{ e }, G _{ Δe } are the inputs scaling factors and G _{ Δu } is the output scaling factor.
2.5 Simulated annealing
Inspired from nature, simulated annealing (SA) is a powerful stochastic local search algorithm first introduced by Metropolis et al. [31] as a modified Monte Carlo integration method and then proposed and made popular by Kirkpatrick et al. [32] to solve difficult combinatorial optimization problems. SA is based on the analogy between the annealing of solids and the solving of combinatorial optimization problems. Annealing is the process through which a solid material is initially heated over the melting point to be liquefied with randomly dispersed particles. Then the material is cooled slowly until it crystallizes into a state of perfect lattice according to a cooling scheduled.
3 Web server dynamic modeling
The systematic design of feedback systems requires an ability to quantify the effect of control inputs (e.g., buffer size) on measured outputs (e.g., response times), both of which may vary with time. Indeed, developing such models is at the heart of applying control theory in practice [5]. The models obtained are also used to make numerical simulations as needed in this work.
Our control investigation will be tested based on the dynamic models established in [13]. The approach employed, in deriving the mathematical models, is statistical (blackbox method), a process that is referred to as system identification [33].
The system to be controlled is modeled as a difference equation with unknown parameters.
The web server is stimulated with pseudorandom digital whitenoise input and a least squares estimator [33] is used to estimate the model parameters.
The details about the conducted experiments and the obtained results can be found in [13]. Lu et al. have established that, for both RD and AD control, the controlled system can be modeled as a second order difference equation with adequate accuracy for the purpose of control design. A brief presentation is given below.
In a n the order model, there are 2n parameters {a_{ j }, b_{ j } 1 ≤ j < n} that need to be decided by the least squares estimator.
Experiments data and corresponding transfer functions
RD case  AD case  

Class 0  Class 1  Transfer function G(z)  Class 0  Class 1  Transfer function G(z)  
Workload A  200  200  $\frac{0.95z0.12}{{z}^{2}0.74z+0.37}$  100  400  $\frac{0.82z0.52}{{z}^{2}+0.13z+0.03}$ 
Workload B  150  250  $\frac{2.28z+0.08}{{z}^{2}0.31z+0.27}$  150  250  $\frac{0.36z0.15}{{z}^{2}0.14z+0.05}$ 
Workload C  300  300  $\frac{0.47z+0.21}{{z}^{2}0.56z+0.26}$  200  300  $\frac{0.49z0.25}{{z}^{2}0.25z+0.03}$ 
The variation of user populations (2 classes) is aimed to evaluate the sensitivity of the model parameters to workloads.
For each experience, a difference equation based dynamic model has been established. The resulting discrete transfer functions are given in Table 1.
4 Design of the FLC based feedback control system
In this section, we first present the global feedback control architecture for web server QoS, and then formally specify the proposed controllers.
4.1 Global feedback control architecture
Variables of the feedback control scheme
AD  RD  

Reference W_{ k }  Desired delay of class k  Desired delay ratio between class k and k  1 
Output C_{ k } (V)  Measured delay of class k  Measured delay ratio between class k and k  1 
Control input B_{ k } (U)  Process budget of class k  Ratio between the process budgets of classes k and k 
4.2 Derivation of the FLC
This scheme, by its structure, is also called "Mamdani PI type FLC" where PI stands for ProportionalIntegral.
2.3 Derivation of the SAOFLC
In order to try to improve the performances of the previous FLC designed based on observations and subjective choices, we apply the SA as an optimization algorithm to automatically adjust its design parameters:

Number of MFs for each FLC variable

MFs shapes for each FLC variable

MFs distribution for each FLC variable

Decision table rules

Scaling factors.
4.3.1 Conception hypotheses and constraints
Certain assumptions and constraints about the decision table and the FLC variables MFs to be optimized are given here:

The number of fuzzy sets (NFS) for each variable can take only one of the following possible values: 3, 5, 7 or 9.

The fuzzy sets (FSs) will be symbolized (labeled) by the standard linguistic designation and indexed by an ascending order. If, for example, the number of FSs of a linguistic variable is equal to 5, the corresponding FSs will be: NB, NM, ZE, PM, PB and indexed from 1 to 5. The FSs NB and NM are considered as the opposites to PB et PM respectively (symmetrically with respect to ZE).

Note that the label ZE stands for linguistic (fuzzy) value zero, first letters N and P mean negative and positive and second letters B, M and S denote big, medium and small values respectively.

All the FLC variables universes of discourse are normalized to lie between −1 and +1.

The first and the last MFs have their apexes at −1 and +1 respectively.
4.3.2 Decision rules table deriving method
The adopted method for the decision rules table construction is inspired from the works developed in [35, 36].
As a contribution, a new method of FSs assignment to each of the grid nodes in the special case of equality of distances between the points representing the candidate decision rules is proposed (see the decision rules table deriving method principle given below).
Note that this new procedure is adopted instead of the random assignment proposed in [36].
Principle of the method
First, the grid is constructed using two spacing parameters PSG_{ e } and PSG_{ Δe } relatively to the FLC two inputs e and Δe.
The first (resp. the second) spacing parameter PSGe (resp. PSG_{ Δe }) fix the grid nodes Xaxis coordinates (resp. Yaxis coordinates) in the interval [−1, +1] (universe of discourse (UD)) with a simple computing formula given in the next paragraph. Each abscissa (resp. ordinate) represents a fuzzy set (FS) of the variable e (resp. Δe). The number of the grid constitutive nodes is then equal to the product result between the two FLC input FSs numbers. Once, the nodes are fixed, we introduce the output points on a straight line corresponding to the FLC output variable Δu. Now, the points (output ones) represent the FSs and not their coordinates. The number of points is equal to the output variable FSs number.
A third spacing parameter PSG_{ Δu } fix the output points Xaxis (Yaxis) coordinates similarly with the nodes fixing manner whereas the Yaxis (Xaxis) coordinates are calculated by an angular parameter, noted “Angle”, which determine the slope of the straight line, supporting the output points, with respect to the horizontal. This angular parameter varies in the interval [0, π/2] counterclockwise.
Each of the grid nodes represents a case of the decision table and each output point represents a FS of the control variable Δu.
Once all the points coordinates (grid nodes and output points) are computed, we can proceed to the assignment by determining the minimal distance among all the distances separating each node of the grid from all the output points situated on the straight line. Then, we assign to each node of the grid the closest output point. Consequently, the decision table case corresponding to this node will contain the FS representing the selected output point. Nevertheless, an assignment conflict could arise in the case of equality between two minimal distances separating a node and two output points. We have proposed to select the output point which has the lower FS index if it is a case of the upper part with respect to the table diagonal or the output point which has the greater FS index if the case belongs to the lower part [37]. It should be noted that no more than two output points can be at the same distance from a given node of the grid since all the output points are on the same straight line.
Spacing parameter
The grid spacing parameter PSG specifies how the positions C_{ 1 } of the intermediate points (between the center and the extreme of each graduated axis) are spaced out with respect to the central point.
This parameter offers flexibility in varying spacing. The more it is greater than 1, the more the points positions are closest to centre and vice versa. At the value 1, the positions are uniformly distributed in the UD interval [−1, 1].
The number of positions C_{ 1 } and FSs being obviously the same, we have proposed a formulation of the spacing law in function of the spacing parameter PSG[37, 38].
with $\mathit{sign}\left(x\right)=\left\{\begin{array}{l}1\phantom{\rule{1.12em}{0ex}}\mathrm{if}\phantom{\rule{0.37em}{0ex}}x\ge \phantom{\rule{0.5em}{0ex}}0\\ 1\phantom{\rule{0.6em}{0ex}}\mathrm{if}\phantom{\rule{0.37em}{0ex}}x<\phantom{\rule{0.5em}{0ex}}0\end{array}\right.;\phantom{\rule{0.5em}{0ex}}\mathit{PSG}={\left(\mathit{PS}{G}_{1}\right)}^{\mathit{PS}{G}_{2}}$ with PSG_{2} that can take the values +1 or −1.
C _{ i } in function of PSG for 7 FSs
PSG  Ci  

C1  C2  C3  C4  C5  C6  C7  
Example 1  0.25  −1  −0.90  −0.76  0  0.76  0.90  1 
0.5  −1  −0.81  −0.58  0  0.58  0.81  1  
1  −1  −0.67  −0.33  0  0.33  0.67  1  
2  −1  −0.44  −0.11  0  0.11  0.44  1  
4  −1  −0.20  −0.01  0  0.01  0.2  1  
Example 2  0.25  −1  −0.84  0  0.84  1  
0.5  −1  −0.70  0  0.70  1  
1  −1  −0.50  0  0.50  1  
2  −1  −0.25  0  0.25  1  
4  −1  −0.06  0  0.06  1 
Two illustrative examples
NFS _{ e }  NFS _{ Δe }  NFS _{ Δu }  PSG _{ e }  PSG _{ Δe }  PSG _{ Δu }  Angle  

Example 1  5  5  5  1  1  1  60° 
Example 2  5  5  5  0.5  1  2  30° 
Note that the nodes are represented by red stars and the output points by blue circles. The purple arrows are examples of minimal distances between the output points and the grid nodes describing the FSs assignment to the decision table.
It is interesting to note that the decision table obtained for PSG_{ e } = PSG_{ Δe } = PSG_{ Δu } = 1 and Angle = 45° is none other than the Mac VicarWhelan diagonal table [39].
4.3.3 Membership functions deriving method
 1.
creation of primary MFs of the FLC input/output parameters,
 2.
parameterization,
 3.
adjustment of the MFs.
MFs shape and width optimization
Three types of MFs shapes are considered:

triangular

trapezoidal which include (generalize) the triangular one

“twosided” Gaussian with flattened summit
The triangular shape is defined by three parameters $\left[\begin{array}{ccc}P1& P2& P3\end{array}\right]$ which represent respectively, the left abscissa of the triangle base, the peak abscissa, and the right abscissa of the triangle base.
Each triangle base begins at the precedent triangle peak abscissa and ends at that of the following one. The trapezoidal shape is defined by four parameters $\left[\begin{array}{cccc}P1& P2& P3& P4\end{array}\right]$ representing, respectively, the base left abscissa, the summit left abscissa, the summit right abscissa, and the base right abscissa.
To be able to use this twosided Gaussian shape within the framework of our optimizing method, we must bound this shape by the same points used for the trapezoidal shape (Figure 7). In other words, we must define the twosides Gaussian shape in terms of the parameters $\left[\begin{array}{cccc}P1& P2& P3& P4\end{array}\right]$ instead of $\left[\begin{array}{cccc}\mathit{Sig}1& G1& G2& \mathit{Sig}2\end{array}\right]$. For that purpose, we adopted a very small positive real number ϵ (ϵ = 0.01 was quite suitable) such that:

The Gaussian left curve includes the points (P1,ϵ) and (P2,1).

The Gaussian right curve includes the points (P3,1) and (P4,ϵ).
Note that ϵ has been used since the Gaussian two sides never pass by a null abscissa.
Width spacing parameter
The summit abscissae of the different shapes are calculated with the same principle of parameter spacing used in the determination of the grid nodes and the points coordinates in the decision table derivation. The FLC input/output variables MFs spacing parameters are, respectively, denoted by PSF_{ e }PSF_{ Δe } and PSF_{ Δu }.
Shape optimizing parameter
The MFs spacing method being inspired by the works of Park et al. [35], Foran [36], and Cheong and Lai [40], we propose a new technique for the MFs shape optimization [37] based on a design parameter called shape parameter (SP). This optimizing parameter gives possibilities of diversification (hybridization) of MFs shapes on the UD of each of the FLC input/output variables.
SP is considered as a real number belonging to the interval [0, 2[. Its integer part, denoted by I_{ SP }, will determine the shape of the MFs and its fractional one, denoted by F_{ SP }, will determine the spacing with respect to the center of the MF. The MF shape is specified by I_{ SP } and F_{ SP } as follows:

I_{ SP } = 0: trapezoidal or triangular shape

I_{ SP } = 1: twosided Gaussian shape.

F_{ SP } determines the symmetric space with respect to the center of the MF as shown in Figure 7 and Figure 8. As we can see in Figure 7, if the spacing is equal to zero, the trapezoidal shape reduces to a triangular one.
Being optimized by the SAA, the number of MFs (NFS) for each of the FLC input/output variables, is not constant. Consequently, it is not feasible to assign a spacing parameter to each MF. So, we propose a solution, which consists in allocating a shaping parameter, denoted by SP_{ M }, for the MF of the middle of the UD and another, denoted by SP_{ E }, for the extreme MF.
The intermediate MFs shaping parameters, denoted by SP_{ 1 }, are then deducted from SP_{ M } and SP_{ E } so that they will have equidistant intermediate values.
We can observe that SP_{ I }(1) = SP_{ M } and $S{P}_{I}\left(\frac{\mathit{NFS}+1}{2}\right)=S{P}_{E}$. So, two parameters are enough for any number of FSs.
The previous MF shaping parameters are allocated to the FLC three variables e, Δe and Δu as follows:

SP_{ M }e, SP_{ M }Δe and SP_{ M }Δu

SP_{ E }e, SP_{ E }Δe and SP_{ E }Δe

SP_{ I }e, SP_{ I }Δe and SP_{ I }Δu.
Note that if the medium and extreme MF shaping parameters are equal, all the UD MFs will have the same shape generated by the parameters value.
It is also important to prevent important overlapping between the generated MFs which is undesirable in fuzzy control (flattening phenomenon) [41]. For this purpose, we have fixed a maximum value to the space F_{ SP } equal to the half of the minimal distance between the two nearby summits.
4.3.4 Parameter encoding
Encoding parameters
Parameter  NFS  PSG _{1}  PSG _{2}  Angle  PSF _{1}  PSF _{2}  SP  G_{ e }, G_{ Δe }  G _{ Δu }  

RD case  AD case  
Interval  [3,9]  [0.1,1]  [1,1]  [0,π/2]  [0.1,1]  [1,1]  [0,1.99]  [0.01,1]  [1,0.01] ∪ [0.01,1]  [0.1,1] 
Precision  2  0.01  2  π/512  0.01  2  0.01  0.01  0.01  0.1 
Number of encoding bits  2  7  1  9  7  1  8  7  8  4 
5 Simulation Study
In order to validate the proposed FLC based control schemes, digital simulations have been carried out on the basis of the adopted discretetime process transfer functions.
5.1 FLC application
After long series of trial/error tests, the following characteristics have been fixed for the two cases of FLC based web server control; i.e. absolute service delay and relative service delay guarantees:

Five FSs have been chosen to describe the error, its rate of change and control variation amplitudes. As seen above, their linguistic formulation and symbols are defined in the usual fuzzy logic terminology by: Positive Big (PB), Positive Medium (PM), Zero (ZE), Negative Medium (NM), Negative Big (NB). The “meaning” of each linguistic value should be clear from its mnemonic.

The set of decision rules forming the “rule base” which characterizes our strategy to control the studied dynamic process is organized in a matrix form (see Table 6) based on Mac VicarWhelan's diagonal decision table [39].
5X5 Mc VicarWhelan decision table
Δu  e  

NB  NM  ZE  PM  PB  
Δe  NB  NB  NB  NB  NM  ZE 
NM  NB  NB  NM  ZE  PM  
ZE  NB  NM  ZE  PM  PB  
PM  NM  ZE  PM  PB  PB  
PB  ZE  PM  PB  PB  PB 

The same triangular shapes have been assigned to the MFs of the FLC variables with a uniform distribution and a 50% overlap has been provided for the neighboring FSs (see Figure 10). Therefore, at any given point of the UD, no more than two FSs will have nonzero degree of membership.

Often, for greater flexibility in FLC design and tuning, the universes of discourse for each process variable are “normalized” to the interval [−1,+1] by means of constant scaling factors.

The scaling factors best values have been determined by a tedious trialanderror process (see Table 7).

The adopted inference method is based on the Mamdani's Implication mechanism. It is also called SUPremumMINimum composition principle[35].

To obtain crisp values of the inferred fuzzy control actions, we have selected the CentreOfGravity defuzzification technique [42] which is the most commonly employed.
FLC scaling factors
G _{ e }  G _{ Δe }  G _{ Δu }  

AD control  0.4  3  0.01 
RD control  0.29  1  0.012 
The FLC used to enforce the absolute and RD succeed to make the system output converge to the desired delay in an acceptable delay and maintain it at the vicinity of the reference before and after the two changes of workload occurring at 10 s and 20 s respectively. However, at these instants, inevitable but minor overshoots and undershoots occur due to the workload burst variations. Nevertheless, the FLC shows rather good robustness in the face of these situations.
To try to improve the obtained performances, we have applied the SAA as a tuning procedure in designing an optimized FLC. The SAOFLC application to the studied control system, in the same conditions, is presented in next subsection.
5.2 SAOFLC application
As described above, the SAA optimization process starts with a first FLC FC_{ 0 } as an initial solution and begins the iterative evaluation of the generated new solutions by an objective (cost) function Of.
Of is chosen to maximize the inverse of the well known and the most adopted performance index: Integral of Timeweighted Absolute Error (ITAE) [43] abbreviated, here, by DITAE for its discrete form.
where:

m_{ 0 } and m_{ f } are the initial and final discrete times of the evaluating period

T_{ s } is the sampling period

e(mT_{ s }) = W_{ k }(mT_{ s }) − C_{ k }(mT_{ s }) is the error, i.e., the difference, at a sampling instant, between the reference (set value) or the desired delay of class k (the desired delay ratio between class k and k1) and the system response or the measured delay of class k (measured delay ratio between class k and k1.
The algorithm for FLC optimal tuning based on the SA method is applied and the resulting controller parameters are set. As illustrated in Figure 12, red dashed lines are used to represent the representative signals of optimization.
During the search process, the SAA looks for the optimal setting of the FLC controller parameters which minimize the cost function Of. Solutions with low DITAE are considered as the fittest.
Simulated annealing algorithm parameters
SA property  Method/value 

Neighborhood generation method  swap of two elements 
Initial temperature (T)  85 
Final temperature (T_{ fin })  3 
Maximum number of iterations  100 
Neighbor list size  30 
Decision table of the SAOFLC for the two cases
Δu  e  

NB  NM  NS  ZE  PS  PM  PB  
Δe  NVB  NB  NB  NB  ZE  PB  PB  PB 
NB  NB  NB  NB  ZE  PB  PB  PB  
NM  NB  NB  NB  ZE  PB  PB  PB  
NS  NB  NB  NB  ZE  PB  PB  PB  
ZE  NB  NB  NB  ZE  PB  PB  PB  
PS  NB  NB  NB  ZE  PB  PB  PB  
PM  NB  NB  NB  ZE  PB  PB  PB  
PB  NB  NB  NB  ZE  PB  PB  PB  
PVB  NB  NB  NB  ZE  PB  PB  PB 
SAOFLC scaling factors
G _{ e }  G _{ Δe }  G _{ Δu }  

AD control  0.7638  −0.0394  1 
RD control  0.2381  0.6032  0.4286 
As can be seen from these figures, the optimized controller exhibits rather better step response performance in terms of rise time, overshoot magnitude, oscillations around the reference (desired delay difference (ratio)) and response (settling) time. We can also see that the SAOFLC shows an improvement in terms of robustness when faced to the simulated sudden workload variations (very hard task for the controller), particularly for the RD case.
Under the SAOFLC strategy, the closedloop controlled web server enforces, succesfully, the absolute (relative) delay guarantee by satisfying the required delay difference (delay ratio) for the high priority classes (class 0 and class 1) with an obvious superiority than the standard Mamdani type FLC.
6 Related work
The problem of QoS performance enhancement for Web servers is an attractive research field. Even though several works have extensively investigated different QoS enhancing mechanisms supporting service differentiation, few research works addressing the application of feedback control methodologies are available.
We start our description on literature review of related works by pointing out some pertinent research works that have employed service delay differentiation approaches as mechanisms of QoS enhancement. We have found very interesting the investigations of Leung et al. [44], Tham and Subramaniam [45], Lee et al. [46], Li et al. [47], Rashid et al. [48], Wei et al. [49], Bourasa and Sevasti [50], Wu et al. [51], Garcia et al. [52], Dimitriou and Tsaoussidis [53], Gao et al. [54], and Varela et al. [55].
The closest works to our investigation being those using feedback control techniques, we briefly present some relevant ones in a chronological order.
Andersson et al. [10] adopted a combination of queuing theory and control theory. The Apache web server has been modeled as a GI/G/1system. Then, a standard PIcontroller was employed as an admission control mechanism.
Henriksson et al. [56] presented a contribution as an extension of the classical combined feedforward/feedback control framework where the queuing theory is used for feedforward delay prediction. They replace the queuing model with a predictor that uses instantaneous measurements to predict future delays. The proposed strategy was evaluated in simulation and by experiments on an Apache web server.
Oottamakorn [57] proposed a resource management and scheduling algorithm to provide relative delays differentiated guarantees to classes of incoming requests at a QoSaware web server. One of the key results of his work is the development of an efficient procedure for capturing the predictive traffic characteristics and performances by monitoring ongoing traffic arrivals. This allows the web server's resource management by determining sufficient server resource for each traffic class in order to meet its delay requirements. In order to achieve a selfstabilizing performance in delay QoS guarantees, he has implemented an adaptive feedback control mechanism.
The paper of Lu et al. [13] is the most important work upon which we have based our investigation. In this paper, the authors presented the design and implementation of an adaptive Web server architecture to provide relative and absolute connection delay guarantees for different service classes. Their first contribution is an adaptive architecture based on feedback control loops that enforce desired connection delays via dynamic connection scheduling and process reallocation. The second contribution is the use of control theoretic techniques (PI controllers based on the Root Locus method) to model and design the feedback loops with desired dynamic performance. Their adaptive architecture was implemented by modifying an Apache server.
Zhou et al. [15] investigated the problem of providing proportional QoS differentiation with respect to response time on Web servers. They first present a processing rate allocation scheme based on the foundations of queueing theory. They designed and implemented an adaptive process allocation approach, guided by the queueingtheoretical rate allocation scheme, on an Apache server. They established that this applicationlevel implementation shows weak QoS predictability because it does not have finegrained control over the consumption of resources that the kernel consumes and hence the processing rate is not strictly proportional to the number of processes allocated. They then designed a feedback controller and integrated it with the queueingtheoretical approach. The adopted feedback control strategy adjusts process allocations according to the difference between the target response time and the achieved response time using a ProportionalIntegralDerivative (PID) controller.
Qin and Wang [16] applied a controltheoretic approach to the performance management of Internet Web servers to meet servicelevel agreements. In particular, a CPU frequency management problem has been studied to provide response time guarantees with minimal energy cost. It was argued that linear timeinvariant modeling and control may not be sufficient for the system to adapt to dynamically varying load conditions. Instead, they adopted a linearparametervarying (LPV) approach.
Kihl et al. [18] presented how admission control mechanisms can be designed with a combination of queuing theory and control theory. They modeled an Apache web server as a GI/G/1system and validated their model as an accurate representation of the experimental system, in terms of average server utilization. Using simulations for discreteevent systems based on queuing theory and with experiments on an Apache web server, they compared a PI controller and an RSTcontroller, both commonly used in automatic control, with a static controller and a step controller, both commonly used in telecommunication systems. Note that the controllers were implemented as modules inside the Apache source code. They have also performed a nonlinear stability analysis for the PIcontrolled system.
In Yansu et al. [19], a selftuning control framework to provide proportional delay differentiation guarantees on Web Server has been proposed. The approach updates the model and controller parameters based on the variations of object model to reduce system error and optimize the performances through an online identification.
In Lu et al. (Lu J, Dai G, Mu D, Yu J, Li H [58] QoS Guarantee in Tomcat Web Server: A Feedback Control Approach. In: Proceedings of the 2011), the authors considered providing two types of QoS guarantees, proportional delay differentiation and absolute delay guarantee, in the database connection pool in Tomcat Web server application servers using the classical feedback control theory. To achieve these goals, they established approximate linear timeinvariant models through system identification experimentally, and designed two PI controllers using the root locus method. These controllers are invoked periodically to calculate and adjust the probabilities for different classes of requests to use a limited number of database connections, according to the error between the measured QoS metric and the reference value.
In a recent work, Patikirikorala et al. [59] proposed a new approach for QoS performance management and resource provisioning by using an offline identification of Hammerstein and Wiener nonlinear block structural model. Using the characteristic structure of the nonlinear model, a predictive feedback controller based on a gain schedule technique is incorporated in the design to achieve the performance objectives.
Examples of earlier research investigations using fuzzy logic based feedback control can be found in Diao et al. [9], Wei et al. [11], Chan and Chu [12], Wei et al. [14], Wei et al. [60], Tian et al. [20], Rao et al. [21].
In this paper, we have investigated the capabilities of two PI type Mamdani FLCs. The first has been obtained by trialanderror process and the second synthesized by a SA based optimization.
Note that we have conducted performance evaluation of the proposed intelligent feedback control strategies based on validated mathematical models established by Lu et al. [13]. Our work focuses mainly on testing their robustness when faced with abrupt workload variations.
7 Conclusion and further work
This paper has addressed the QoS feedback intelligent control of a web server by considering its two common models in service differentiation: the absolute delay and the relative delay guarantees.
The application of two fuzzy logic controllers has been investigated as robust solutions for enforcing desired service performances in face of unpredictable server workloads: a Mamdani type fuzzy logic controller (FLC) and a simulated annealing optimized FLC (SAOFLC).

the technique of fuzzy sets assignment to each of the grid nodes in the special case of equality of minimal distances between the points representing the candidate decision rules

the formulation of the spacing law in function of the spacing parameter in the decision rules table deriving method

the formulations linking the trapezoidal and the twosided Gaussian membership functions

the optimization and the diversification of the membership functions shapes offering possibilities of hybridization on the universe of discourse of each of the FLC input/output variables

a simple solution to prevent important overlapping between the generated membership functions.

The digital simulations have allowed us to validate the effectiveness of the proposed structures of control. Indeed, both of the FLC and the SAOFLC capabilities have been evaluated when applied to guarantee desired dynamic performance of the web server delay services.
Both of the adopted intelligent control strategies have realized quite satisfactory results. But, it has been clearly noted that the optimized FLC achieves rather high control performances in comparison with those of the standard Mamdani FLC in terms of transition and steadystate response characteristics.
Further studies to improve the obtained performances by other feedback control schemes as well as the optimization by other techniques such as tabu search, genetic algorithm, ant colonies, swarm techniques, bioinspired techniques … will be conducted as well.
Authors’s contributions
ML and YS created and developed the proposed approaches. SR participated in the experiments. ML and SR wrote the manuscript. All authors read and approved the final manuscript.
Declarations
Acknowledgements
This work was partially sponsored by MESRS/DGRSDT/CERIST/PNR8/E166/4884. We also would like to thank the anonymous reviewers who greatly contributed to the betterment of this work.
Authors’ Affiliations
References
 Wang Z: Internet QoS. Architectures and mechanisms for quality of service. San Fransisco, CA, USA: Morgan Kaufmann; 2001.Google Scholar
 Blake S, Black D, Carlson M, Davies E, Wang Z, Weiss W: An architecture for differentiated services. IETF; 1998. Request for Comments 2475 Request for Comments 2475View ArticleGoogle Scholar
 Kilkki K: Differentiated services for the internet. Indianapolis, IN, USA: Macmillan Technical Publishing; 1999.Google Scholar
 Abdelzaher TF, Stankovic JA, Lu C, Zhang R, Lu Y: Feedback performance control in software services. IEEE Control Syst 2003, 23(3):74–90. 10.1109/MCS.2003.1200252View ArticleGoogle Scholar
 Hellerstein JL, Diao Y, Parekh S, Tilbury DM: Feedback control of computing systems. Hoboken, NJ, USA: IEEE PressWiley; 2004.View ArticleGoogle Scholar
 Abdelzaher TF, Diao Y, Hellerstein JL, Lu C, Zhu X: Introduction to control theory and its application to computing systems. In Performance Modeling and Engineering. Edited by: Liu Z, Xia CH. Springer; 2008:185–215. Part II, Chapter 7 Part II, Chapter 7View ArticleGoogle Scholar
 Parekh S: Feedback control techniques for performance management, Ph.D Dissertation. Seattle, WA, USA: University of Washington; 2010.Google Scholar
 Lu C, Abdelzaher TF, Stancovic JA, Son SH: A feedback control approach for guaranteeing relative delays in web servers. Taipei, Taiwan: Proccedings of the Seventh IEEE RealTime Technology and Applications Symposium; 2001:51–62.Google Scholar
 Diao Y, Hellerstein JL, Parekh S: Optimizing quality of service using fuzzy contro. Lecture Notes in Computer Science. In Management Technologies for Ecommerce an EBusiness Applications. 2506 edition. Edited by: Feridun M, Kropf P, Babon G. Berlin: Springer; 2002:42–53.View ArticleGoogle Scholar
 Andersson M, Kihl M, Robertsson A: Modelling and Design of Admission Control Mechanisms for Web Servers using Nonlinear Control Theory. SPIE proceedings series. In Proceedings of the ITCom's Conference on Performance and Control of NextGeneration Communication Networks. 5244 edition. Orlando, FL, USA: ; 2003:53–64.View ArticleGoogle Scholar
 Wei Y, Lin C, Chu X, Shan Z, Ren F: ClassBased Latency Assurances for Web Servers. Lecture Notes in Computer Science. In High Performance Computing and Communications. 3726 edition. Berlin: Springer; 2005:388–394.View ArticleGoogle Scholar
 Chan KH, Chu X Technical Report COMP06–001. In Design of a fuzzy PI controller to guarantee proportional delay differentiation on web servers. Hong Kong Baptist University: Department of Computer Science; 2006.Google Scholar
 Lu C, Abdelzaher TF, Stancovic JA, Son SH: Feedback control architecture and design methodology for service delay guarantees in web servers. IEEE Trans on Parallel Distrib Syst 2006, 17(9):1014–1027.View ArticleGoogle Scholar
 Wei Y, Xu CZ, Zhou X, Li Q: Fuzzy control for guaranteeing absolute delays in web servers. Int J High Performance Comput Netw 2006, 4(5–6):338–346.View ArticleGoogle Scholar
 Zhou X, Cai Y, Chow E: An integrated approach with feedback control for robust web QoS design. Comput Commun 2006, 29(16):3158–3169. 10.1016/j.comcom.2006.04.005View ArticleGoogle Scholar
 Qin W, Wang Q: Modeling and control design for performance management of web servers via an LPV approach. IEEE Trans Contr Syst Tech 2007, 15(2):259–275.View ArticleGoogle Scholar
 Pan W, Mu D, Wu H, Yao L: Feedback controlbased QoS guarantees in web application servers. Proceedings of the IEEE International Conference on High Performance Computing and Communications, Dalian, China 2008, 328–334.Google Scholar
 Kihl M, Robertsson A, Andersson M, Wittenmark B: Controltheoretic Analysis of Admission Control Mechanisms for Web Server Systems. World Wide Web 2008, 11(1):193–116.View ArticleGoogle Scholar
 Yansu H, Guanzhong D, Ang G, Wenping P: A selftuning control for web QoS. Proceedings of the International Conference on Information Engineering and Computer Science, Wuhan, China 2009, 1–4.Google Scholar
 Tian F, Xu W, Sun J: Web QoS control using fuzzy adaptive PI controller. Proceedings of the International Symposium on Distributed Computing and Applications to Business Engineering and Science, Hong Kong; 2010:72–75.Google Scholar
 Rao J, Wei Y, Gong J, Xu CZ: DynaQoS: modelfree selftuning fuzzy control of virtualized resources for QoS provisioning. In Proceedings of the 19th International Workshop on Quality of Service (IWQoS’11). San Jose, CA, USA: IEEE Press; 2011:1–9.Google Scholar
 Venkatarama HS, Sekaran KC: Autonomic Computing: A Fuzzy Control Approach towards Application Development. In Formal and Practical Aspects of Autonomic Computing and Networking: Specification, Development, and Verification. Edited by: CongVinh P. Hershey, PA, USA: IGI Global; 2012:118–134. Chapter 5 Chapter 5View ArticleGoogle Scholar
 Lama P, Zhou X: Efficient Server Provisioning with Control for EndtoEnd Response Time Guarantee on Multitier. IEEE Trans on Parallel and Distributed Systems 2012, 23(1):78–86.View ArticleGoogle Scholar
 Gourley D, Totty B, Sayer M, Aggarwal A, Reddy S: HTTP: The Definitive Guide, O'Reilly Media. 2002.Google Scholar
 Kozierok CM: The TCP/IP Guide: A Comprehensive. Illustrated Internet Protocols Reference: No Starch Press; 2005.Google Scholar
 Andersson M Technical Report, Department of Communication Systems, Lund Institute of Technology. Introduction to Web Server Modeling and Control Research 2005.Google Scholar
 Fielding R, Gettys J, Mogul J, Frystyk H, Masinter L, Leach P, BernersLee T: Hypertext Transfer ProtocolHTTP/1.1. IETF RFC 2616. 1999.Google Scholar
 ;http://news.netcraft.com/archives/2012/02/07/february2012webserversurvey.html
 Lee CC: Fuzzy logic in control systems: fuzzy logic controller part I & part II. IEEE Trans on Systems Man and Cybernetics 1990, 20(2):404–435. 10.1109/21.52551MATHView ArticleGoogle Scholar
 Mamdani EH: Applications of fuzzy algorithms for control of a simple dynamic plant. Proceedings of the IEE 1974, 121(12):1585–1588.Google Scholar
 Metropolis N, Rosenbluth AW, Rosenbluth MN, Teller AH, Teller E: Equation of state calculations by fast computing machines. J Chem Phys 1953, 21: 1087–1092. 10.1063/1.1699114View ArticleGoogle Scholar
 Kirkpatrick S, Gelatt CD, Vecchi MP: Optimization by simulated annealing. Science 1983, 220: 671–680. 10.1126/science.220.4598.671MATHMathSciNetView ArticleGoogle Scholar
 Ljung L: System Identification  Theory For the User. 2nd edition. Upper Saddle River, N.J., USA: PTR Prentice Hall; 1999.Google Scholar
 Barford P, Crovella ME: Generating Representative Web Workloads for Network and Server Performance Evaluation. Madison, WI, USA: Proceedings of the ACM SIGMETRICS Joint International Conference on Measurement and Modeling of Computer Systems; 1998:151–160.Google Scholar
 Park YJ, Cho HS, Cha DH: Genetic algorithmbased optimization of fuzzy logic controller using characteristic parameters. Perth, WA, Australia: Proceedings of the IEEE International Conference on Evolutionary Computation; 1995:831–836.Google Scholar
 Foran J: Optimisation of a fuzzy logic controller using genetic algorithms. Master of Engineering Project Report. School of Electronic Engineering: Dublin City University; 2002.Google Scholar
 Loudini M: Contribution à la modélisation et à la commande intelligente d’un bras de robot manipulateur flexible. Algiers, Algeria: Ph.D. thesis, Electrical Engineering Dept., Ecole Nationale Polytechnique; 2007.Google Scholar
 Illoul R, Loudini M, Selatnia A: Particle swarm optimization of a fuzzy regulator for an absorption packed column. Mediterranean Journal of Measurement and Control 2011, 7(1):174–182.Google Scholar
 Mac VicarWhelan PJ: Fuzzy sets for man machine interactions. Int J of Man–machine Studies 1976, 8(6):687–697. 10.1016/S00207373(76)800302View ArticleGoogle Scholar
 Cheong F, Lai R: Constraining the optimization of a fuzzy logic controller using an enhanced genetic algorithm. IEEE Trans Syst Man Cybern B Cybern 2000, 30(1):31–46. 10.1109/3477.826945View ArticleGoogle Scholar
 Bühler H: Réglage par logique floue. Presses Polytechniques et Universitaires Romandes. Switzerland: Lausanne; 1994.Google Scholar
 Jager R, Verbruggen HB, Bruijn PM: The role of defuzzification methods in the application of fuzzy control. Malaga, Spain: Proceedings of the IFAC Symposium on Intelligent Components and Instuments for Control Applications; 1992:75–80.Google Scholar
 Graham D, Lathrop RC: The synthesis of optimum transient response: Criteria and standard forms. Transacactions of the American Institute of Electrical Engineers, Applications and Industry 1953, 72: 273–288.Google Scholar
 Leung MKH, Lui JCS, Yau DKY: Adaptive proportional delay differentiated services: characterization and performance evaluation. IEEE/ACM Transactions on Networking 2001, 9(6):80–817.View ArticleGoogle Scholar
 Tham CK, Subramaniam VR: Integrating web server and network QoS to provide endtoend service differentiation. In Proceedings of the 10th IEEE International Conference on Networks (ICON 2002). Singapore: ; 2002:389–394.Google Scholar
 Lee SCM, Lui JCS, Yau DKY: A proportionaldelay DiffServenabled Web server: admission control and dynamic adaptation. IEEE Trans Parallel Distrib Syst 2004, 15(5):385–400. 10.1109/TPDS.2004.1278097View ArticleGoogle Scholar
 Li ZG, Chen C, Soh YC: Relative differentiated delay service: time varying deficit round robin. Hangzhou, China: Proceedings of the Fifth World Congress on Intelligent Control and Automation; 2004:5608–5612.Google Scholar
 Rashid MM, Alfa AS, Hossain E, Maheswaran M: An analytical approach to providing controllable differentiated quality of service in web servers. IEEE Trans Parallel Distrib Syst 2005, 16(11):1022–1033.View ArticleGoogle Scholar
 Wei J, Xu CZ, Zhou X, Li Q: A robust packet scheduling algorithm for proportional delay differentiation services. Comput Commun 2006, 29(18):3679–3690. 10.1016/j.comcom.2006.06.009View ArticleGoogle Scholar
 Bourasa C, Sevasti A: An analytical QoS service model for delaybased differentiation. Computer Networks 2007, 51(12):3549–3563. 10.1016/j.comnet.2007.02.010View ArticleGoogle Scholar
 Wu CC, Wu HM, Lin W: Highperformance packet scheduling to provide relative delay differentiation in future highspeed networks. Comput Commun 2008, 31(10):1865–1876. 10.1016/j.comcom.2007.12.016View ArticleGoogle Scholar
 Garcia DF, Garcia J, Entrialgo J, Garcia M, Valledor P, Garcia R, Campos AM: A QoS control mechanism to provide service differentiation and overload protection to internet scalable servers. IEEE Trans on Services Computing 2009, 2(1):3–16.View ArticleGoogle Scholar
 Dimitriou S, Tsaoussidis V: Promoting effective service differentiation with Sizeoriented Queue Managemen. Computer Networks 2010, 54(18):3360–3372. 10.1016/j.comnet.2010.07.002View ArticleGoogle Scholar
 Gao A, Mu D, Hu Y: A QoS control approach in differentiated web cashing service. J of Networks 2011, 6(1):62–70.View ArticleGoogle Scholar
 Varela A, Vazão T, Arroz G: Providing service differentiation in pure IPbased networks. Comput Commun 2012, 35(1):33–46. 10.1016/j.comcom.2011.07.006View ArticleGoogle Scholar
 Henriksson D, Lu Y, Abdelzaher T: Improved prediction for web server delay control. In Proceedings of the 16th Euromicro Conference on RealTime Systems. Catania, Sicily, Italy: IEEE Computer Press; 2004:61–68.Google Scholar
 Oottamakorn C: Classbased guarantees of relative delay services in web servers. In Proceedings of the IASTED International Conference on Parallel and Distributed Computing and Networks (PDCN 2005). Innsbruck, Austria: part of the 23rd MultiConference on Applied Informatics; 2005:417–423.Google Scholar
 Lu J, Dai G, Mu D, Yu J, Li H (2011) QoS Guarantee in Tomcat Web Server: A Feedback Control Approach. In: Proceedings of the: International Conference on CyberEnabled Distributed Computing and Knowledge Discovery. China: Beijing; 2011:183–189.Google Scholar
 Patikirikorala T, Wang L, Colman A, Han J: Hammerstein–Wiener nonlinear model based predictive control for relative QoS performance and resource management of software systems. Control Eng Pract 2012, 20(1):49–61. 10.1016/j.conengprac.2011.09.003View ArticleGoogle Scholar
 Wei J, Xu CZ: Consistent proportional delay differentiation: A fuzzy control approach. Computer Networks 2007, 51(5–6):2015–2032.MATHView ArticleGoogle Scholar
Copyright
This article is published under license to BioMed Central Ltd. This is an Open Access article distributed under the terms of the Creative Commons Attribution License (http://creativecommons.org/licenses/by/2.0), which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.