Full text
WIRELESS COMMUNICATIONS AND MOBILE COMPUTING Wirel. Commun. Mob. Comput. 2014; 14:583–595 Published online 20 February 2012 in Wiley Online Library (wileyonlinelibrary.com). DOI: 10.1002/wcm.2210 RESEARCH ARTICLE Energy efficiency and quality of service optimization for constant bit rate real-time applications in 802.11 networks Juan Jimenez1, Rafael Estepa1, Antonio Estepa1*, Francisco R. Rubio2and Fabio Gómez-Estern2 1Department of Telematics Engineering, University of Sevilla, C/ Camino de los Descubrimientos s/n, 41092 Sevilla, Spain 2Department of Automatics and Systems Engineering, University of Sevilla, C/ Camino de los Descubrimientos s/n, 41092 Sevilla, Spain ABSTRACT In this paper, we propose a quality of service (QoS)-sensitive energy efficiency optimization mechanism for 802.11 networks on the basis of the dynamic and simultaneous adjustment of the content window (W) and retry attempts limit (r)of the media access control (MAC) sublayer. The use of both operational variables let us not only find the optimum operational point regarding energy efficiency but also attain a positive impact on the QoS, which improves the results obtained with current single-variable optimization strategies. The model under consideration includes external noise and does not impose the saturation condition in stations and as such is well suited for real-time industrial applications under noisy channels. Results obtained from simulation confirm the advantages of adjusting simultaneously Wand rversus adjusting either one separately, obtaining a slight improvement in energy efficiency and resulting in less loss and delay at the MAC sublayer. Copyright © 2012 John Wiley & Sons, Ltd. KEYWORDS 802.11; QoS; energy; WiFi; retry limit *Correspondence Antonio Estepa, Department of Telematics Engineering, University of Sevilla, C/ Camino de los Descubrimientos s/n, 41092 Sevilla, Spain. E-mail: [email protected] 1. INTRODUCTION IEEE 802.11 wireless networks are experiencing widespread adoption far beyond consumer electronics, in industrial applications such as wireless networked control systems or sensor networks, where soft real-time applications such as event registration, measurement, slow control loop and multimedia are increasingly extended [1]. One of the main challenges to be faced when transmitting real-time data over WiFi is the provision of quality of service (QoS) and bandwidth guarantees. Current IEEE 802.11 standards cope with this, allowing the use of prioritized output queues that enable the protection of real-time traffic against background traffic, making current WiFi networks suitable for real-time applications such as VoIP [2,3] or non-critical control [4,5]. In addition to QoS, the other major challenge of WiFi communications is to prolong the battery life of the devices (e.g., sensors and smart phones) through efficient usage of the energy at the WiFi interface. In this respect, a number of energy saving techniques have been proposed in literature, including alternating between different radio interfaces [6], application-dependent crosslayer approaches for the power saving mode (PSM) [7] and, most notably, finding the best value of a media access control (MAC) sublayer operational variable (e.g., contention window size Wor maximum retry attempts r) that maximizes energy efficiency. Interestingly, the use of MAC operational variables has also been independently suggested in the QoS-dimensioning research field to optimize bandwidth efficiency while meeting the QoS requirements of different real-time applications, most notably, delay in VoIP. Although QoS, bandwidth and energy efficiency are not independent, they have been traditionally studied as such, thereby failing to take advantage of the synergies of a common optimization strategy. Copyright © 2012 John Wiley & Sons, Ltd. 583
Energy Efficiency and QoS optimization in 802.11 J. Jimenez et al. In this paper, we focus on the optimization of energy efficiency by adjusting the MAC operational variables in a scenario where stations generate periodic real-time constant bit rate uplink traffic via a noisy WLAN. The maximization of energy efficiency through the adjustment of either Wor rhas been addressed in literature over the past years. Most studies utilize Markov chains based models (e.g., Bianchi [8]) to obtain the probability of transmission in the channel ,usedafterwardto develop an analytical expression for the energy efficiency that is subjected to optimization. Because both Wand r have an impact on , state-of-the-art proposals have been focused on finding the best value of one of these parameters (normally the contention window W) that optimizes energy efficiency, whereas the other parameter is left at its default value [9–11]. Ideal channel and saturated traffic conditions are commonly assumed, facilitating mathematical tractability. However, these assumptions limit the applicability in more realistic scenarios where noise is likely to be present in the radio channel, and stations running real-time applications do not necessarily meet the saturation condition. Similar but independent research efforts have been made in the QoS-bandwidth efficiency field, where either W ([12–18]) or r([19]) has been used to find the value of that yields the maximum bandwidth efficiency in specific scenarios. Note that values leading to optimum bandwidth efficiency are close but not coincident to values that leads to optimum energy efficiency. Because both Wand rhave influence on andonthe QoS (e.g., longer Wshould increase the delay, whereas smaller rshould increase the losses), we believe that the simultaneous use of both variables would provide us with an extra degree of freedom that will let us not only maximize energy efficiency but also minimize the negative impact of these parameters on the QoS. We propose the use of a dynamic centralized algorithm that finds the Wand rvalues that maximize energy efficiency while also seeking to minimize the negative impact on the QoS (e.g., delay and loss). Our proposal can be applied to industrial applications that collect information from WiFi sensors, soft control loops and unidirectional multimedia sessions such as surveillance monitoring or push-to-talk services. The main differences between our proposal and the state-of-the-art related research can be summarized as follows: Both energy efficiency and QoS are addressed in the optimization algorithm. Instead of finding the optimal value for only one MAC operational parameter (Wor r), we find the combination of both (Wand r)that maximizes energy efficiency and also has the most positive influence in the QoS. We consider a complex scenario that includes external noise dynamically changing and non-saturated traffic in the stations. In addition, we also include the use of PSM in our analysis. 2. SCENARIO UNDER STUDY The scenario under consideration is composed by a set of n homogeneous stations sending real-time traffic via a noisy channel WLAN (Figure 1). Each station periodically generates packets of size EŒP with frequency fsto an access point (AP). The AP is a sink station that executes an algorithm that periodically estimates the probabilities of corruption, collision and packet error and finds the best values for all stations’ MAC parameters Wand rthat represent the maximum energy efficiency and the best QoS possible at the same time. Both Wand rare conveyed periodically to the stations, which adjust their MAC operational parameters accordingly. In order to work with prompt information, as required in control-related applications, we will assume a small buffer size in the stations. Note that we do not impose any restriction over the traffic generated by the stations (i.e., non-saturated condition) except for the AP that will generate occasional control packets whose effect can be neglected in our traffic model. We will also consider that stations can use PSM to save energy. Finally, we will assume a small data packet size, which is likely to be the case in real-time applications and, as shown in [20], justifies the use of the basic rejection mode instead of the Request-to-Send/Clear-to-Send mode. 3. WIFI ANALYTICAL MODEL This section is devoted to obtain analytical expressions for energy efficiency, delay and loss that are related with our control variables Wand rvia the probability of transmission in the channel . Our model will include the presence of external noise, stations using PSM and non-saturated condition. n 1 2 3 4 5 6 7 9 10 11 12 W,r (broadcast) noise A.P. Optimization Figure 1. Scenario under study. 584 Wirel. Commun. Mob. Comput. 2014; 14:583–595 ©2012 John Wiley & Sons, Ltd. DOI: 10.1002/wcm
J. Jimenez et al. Energy Efficiency and QoS optimization in 802.11 3.1. Transmission probability and slot duration Bianchi in his seminar paper [8] defines a Markov chain based analytical expression for , which is refined in subsequent works to include effects such as noise and finite retry limit. In this paper, we adopt as primary expression the one in [21] that includes the existence of external noise, non-saturated condition (i.e., limited load) and finite number of retry attempts. For the sake of clarity, we reproduce this expression in Equation (1). The notation and the definition of the terms used follow. D2q.1 prC1 eq /.1 2peq/ qW .1 peq/1.2peq/mC1Cq.1 2peq/.1 pmC1 eq /CqpmC1 eq .1 2peq/.2mWC1/.1 prm eq / C2.1 peq/.1 2peq/.1 q/.1 pr eq/C2pr eq.1 peq/.1 2peq/.1 q/ (1) peq:probability of error due to packet collision or corruption peq DpcCpepcpe(2) pe:probability of packet corrupted due to channel errors pc:probability of packet collision pcD1.1 /n1(3) pt:probability that at least one station is transmitting ptD1.1 /n(4) ps:probability of one successful transmission (i.e., only one station is using the channel) psDn.1 /n1 1.1 /n(5) W:minimum contention window size r:maximum retry attempts m:times that the contention window can be doubled q:probability that one station has not an empty buffer; for small buffers, we can use the expression from Malone [22] (note that fsis the packet generation frequency) qDfsEŒSts(6) The average slot duration EŒStsover which is estimated can be defined as EŒStsD.1 pt/ Cpt.1 ps/TcC ptps.1 pe/TsCptpspeTe (7) where is the slot time, Tc,Teand Tsare the average times that the channel is sensed busy because of a collision, error-affected data frame transmission time and successful data frame transmission time, respectively, as in [23]. Finally, as carried out in [24,25], we will assume a constant window size (i.e., the window size is not duplicated after collisions) because the number of stations nis known and fixed. Consequently, for the remainder of this paper, the expression in Equation (1) will be simplified as follows: D2 WC1C.1q/.1peq/ q.1prC1 eq / (8) 3.2. Power consumption and energy efficiency Analytical expressions of the energy efficiency can be profusely found in the literature. However, to the best of our knowledge, none of them are directly applicable to our scenario because of assumption mismatches such as saturation condition (i.e., qD1) and/or ideal channels [26–32]. Thus, we have extended the expressions from [31] to include errors in the channel as well as limited load. In [31] the authors define the energy consumption of a station lfor each of the following time slot types: (1) idle, with probability .1/n (2) successful reception of a packet destined to l, with probability .1 pe/.1 /n1 (3) successful reception of a packet not destined to l, with probability .1 pe/.n 2/.1 /n1 (4) reception of a collided packet, with probability .1 /.pc.n 1/.1 /n2/ (5) successful transmission of a packet originated in l, with probability .1 pe/.1 pc/ (6) colliding transmission of a packet originated in l, with probability pc We have added the following types of time slot to include the effect of channel noise in the energy consumption: (7) transmission of a packet originated in lthat suffers corruption, with probability pe.1pc/ (8) reception of a corrupted packet, with probability pe.n1/.1 /n1 The new expression for the average energy consumption per average slot time EŒJstis given by Equation (9), where J,Jrx s.l/,Jrx s.l/,Jrx c,Jtx s,Jtx c,Jtx eand Jrx erepresent Wirel. Commun. Mob. Comput. 2014; 14:583–595 ©2012 John Wiley & Sons, Ltd. 585 DOI: 10.1002/wcm
Energy Efficiency and QoS optimization in 802.11 J. Jimenez et al. the energy consumption associated to the possible aforementioned events that can happen during a slot duration (see Equation (7)) and are defined in Equation (10). Observe that ,rx and tx are the hardware-dependent power coefficient in the transmission, idle, reception and transmission states, respectively; TDATA represents the transmission time of a data packet; TACK the transmission time of an ACK frame and ıstands for the propagation delay whose values are copied from [31]. EŒJtsD.1 /nJC.1 pe/.1 /n1Jrx s.l/ C.1 pe/.n 2/.1 /n1Jrx s.l/ Cpe.n 1/.1 /n1Jrx eC.1 /.pc.n 1/.1 /n2/J rx cC.1 pe/.1 pc/J tx s Cpe.1pc/J tx eCpcJtx c(9) JDSLOT Jrx s.l/ DrxTDATA C.SIFS Cı/ CtxTACK C.ı CDIFS/ Jrx s.l/ DrxTDATA C.SIFS Cı/ CrxTACK C.ı CDIFS/ Jrx cDrxTDATA C.EIFS Cı/ Jtx sDtxTDATA C.SIFS Cı/ CrxTACK C.ı CDIFS/ Jtx cDtxTDATA C.EIFS Cı/ Jtx eDJtx c Jrx eDJrx c (10) Expressions for the energy consumption either in active mode or the PSM can be obtained using the newly defined EŒJstas follows. Average power consumption in active mode: It can be defined as the energy consumption carried out by the WiFi card by time unit. Using the average power consumption by time slot (Equation (9)) and the average slot duration (Equation (7)), we obtain PDEŒJts EŒSts(11) Average power consumption in power saving mode: We assume that stations only wake up when a new package is received from the upper layer and go back to sleep after the packet is successfully transmitted (ACK is received) or discarded (ACK timeout). Because packets are periodically generated, we can analyze a basic transmission cycle such as the one illustrated in Figure 2. Each cycle can be broken down into three phases: sleep-to-active transition, active and sleep.†The transition phase duration Ttrans and its associated power consumption trans have been studied in [34], and we adopt its duration and power values. The †The active to sleep transition will not be considered because its impact on the energy consumption is negligible as shown in [33]. Trans Active Sleep Trans ... t 2TT Figure 2. Power saving mode consumption diagram. average time in active state Tsvc (average service time) can be expressed as Tsvc DXr iD0pi eq iTcCXi jD0WjEŒStsCTs CprC1 eq h.r C1/TcCXr jD0WjEŒStsio =XrC1 jD0pj eq (12) where the time until ACK reception or timeout has been included. After the active stage, the station will be in sleep mode for the rest of the time left in this cyclic period (i.e., f1 sTtrans Tsvc). The power consumption associated to the sleep mode will be notated by sleep. Consequently, we can express the average power as Ppsm DPfsTsvc C.trans sleep/fsTtrans Csleep.1 fsTsvc/(13) It is also useful to re-write the expression of EŒJstfor the PSM case. Using Equations (7) and (13), we obtain EŒJtspsm DEŒJtsfsTsvc CEŒSts.trans sleep/ fsTtrans CsleepEŒSts.1 fsTsvc/ (14) Energy efficiency: Energy efficiency can be defined as the number of bits successfully sent by energy unit per station. Accordingly, we can define it as Eef Dptps.1 pe/EŒP EŒJtsn(15) When PSM is used, we can re-write the previous expression as Epsm ef Dptps.1 pe/EŒP EŒJtspsm n(16) 586 Wirel. Commun. Mob. Comput. 2014; 14:583–595 ©2012 John Wiley & Sons, Ltd. DOI: 10.1002/wcm
J. Jimenez et al. Energy Efficiency and QoS optimization in 802.11 3.2.1. Quality of service metrics: delay and loss in the media access control sublayer Delay and loss are important in the context of real-time applications. Both QoS parameters can be related to the previous analytical expressions as follows: Average delay: The average access delay can be related to the service time defined in Equation (12). In fact, we can identify two terms in that expression: the time spent transmitting packets that successfully arrive at their destination and the time spent transmitting packets that end up discarded. The average delay can then be obtained accounting only the first term as follows: DDPr iD0pi eq.iTcCPi jD0WjEŒStsCTs/ PrC1 jD0pj eq (17) where Wjstands for the average window size, which in our case (i.e., mD0)is WjDW1 2(18) Packet loss: The loss probability can be defined as the ratio between the number of packets unreceived and the total number of packets generated as Ploss D1S nfsEŒP (19) where EŒP is the average packet size and Sstands for the throughput, which basically depends on and can be expressed as SDptps.1 pe/EŒP .1 pt / Cpt.1 ps /TcCptps.1 pe /TsCptpspeTe (20) To conclude this section, we recap on the analytical expressions presented and their relationship with in Figure 3. It can be observed that our control variables W and rboth have influence on , which in turn has a decisive impact on the energy efficiency, losses and delay in the MAC sublayer. Packet Error Probability Estimation (Pc , Pe) model window (W) contention transmission attempts (r) (upper layers) Traffic (N,fs,packet size) (802.11 MAC sublayer) Packet Loss model (Eq.17) Delay model (Eq.15) Energy efficiency model PSM (Eq.13), no PSM(Eq.14) Figure 3. Relationship map between the control variables W and r and the analytical models used. 4. ALGORITHM FOR OPTIMIZATION Before describing our optimization strategy, it is worthy to have a look at Figure 4, which is a sketch of the curve that relates energy efficiency and . Energy efficiency optimization problems seek the obtention of the value that yields the peak of energy efficiency (e opt) by setting one MAC control variable, usually W, to an optimum value, while the other variable, r, is left at its default value [9]. We also address this maximum energy efficiency problem, but our goal also includes attaining the most positive influence possible in QoS. Observe that reaching e opt is not always possible because also depends on the traffic load (see Equation (1) and Figure 3) which in turn, is related to the inter-packet generation rate fsof the stations.‡Thus, as shown in Figure 4, there will be a minimum threshold for fs,namely f0, that will determine whether e opt is attainable by at least one combination of Wand rvalues. This fact led us to consider two different optimization strategies accordingly: Low-load conditions (fs<f 0). In this case, will always be less than e opt; therefore, the maximum energy efficiency is not reachable. Our strategy will be increasing to obtain as close as possible to the maximum value of energy efficiency. We will do this by reducing Wto the minimum possible and increasing ras long as it is helpful to reduce the packet error probability. Because under low-load conditions delay is small, our QoS goal will be to reduce the losses attributable mainly to the external noise by increasing r. Medium/high load conditions (fsf0). In this case, it is always possible to find at least one combination of Wand rthat yields De opt. Out of all the possible Wand rcombinations that yield De opt,we will have the one with lower rvalue, for it will also provide less delay, which will be our QoS goal. Energy Efficiency low load medium/high load Figure 4. Sketch of the energy efficiency as a function of . ‡Note that our scenario assumes that stations are registered in the AP and thereby, parameters such as fs,Nand packet size EŒP are constant and inputs to our algorithm. Wirel. Commun. Mob. Comput. 2014; 14:583–595 ©2012 John Wiley & Sons, Ltd. 587 DOI: 10.1002/wcm
Energy Efficiency and QoS optimization in 802.11 J. Jimenez et al. Note that also depends on the packet error probability peq, which in turn depends on pe(i.e., corruption probability due to external noise) and pc(i.e., collision probability). Because noise dynamically changes, peq has to be periodically inferred as indicated in Figure 5, and consequently, our algorithm will have to be periodically executed. A new estimation cycle starts each time that Nsamples frames have traversed the AP. 4.1. Algorithm As shown in Figure 5, our algorithm exhibits two sequential phases: (i) peq estimation for the present cycle and (ii) W&rcalculation. The first phase will use the observation of the traffic that traversed the AP in the past cycle to obtain an estimation of peq valid for the current cycle. The second phase uses the newly updated value of peq to update the value of f0and find the optima values of Wand raccording to our optimization strategy. The main steps of the algorithm can be expressed through the flow diagram showninFigure6. In the first time the algorithm is executed, it starts with an initiation phase where some constants used afterward will be calculated. Then, the two aforementioned phases are executed. The algorithm finishes broadcasting the resulting Wand rvalues to stations. It follows a detailed description of each step of the algorithm. 4.1.1. Initialization The algorithm takes a number of constant values that will not change between executions. Most of these values are known such as the number of stations n, the station’s packet generation rate fsor some administratively defined values such as the minimum window size (Wmin), minimum value for the retry limit (r0),§or the limit of valuable improvement in the packet loss min. Calculation of e opt. One key value that will also remain constant is the value that maximizes the energy efficiency e opt. We have developed a new analytical expression for e opt that extends the one in [9] to noisy channels and finite buffers. To obtain e opt, we simply solve dEef=dD0 using the expression of EŒJtsshown in Equation (9). After setting the first derivative equal to zero, we obtain .pe1/EŒP .1 /nhJ.1 /nCJtx c.n 1/2 CJrx c.1C.1 /nn. 1/ C2/iD0 (21) Observe that pecan be suppressed from the previous expression (EŒP could also be suppressed, albeit it is §These values can be readily calculated if the number of stations is known. algorithm execution update cycle (i) update cycle (i+1) algorithm execution estimation . . . W&r estimation time Figure 5. Periodic execution of the algorithm in the access point. Initialization Estimation Estimation YES (medium/high load) W = Evaluate Eq. 30 NO (low load) NO send (W,r) r = Evaluate Eq. 29 (b) W and r calculation phase estimation phase YES − Calculate (a) r = r W = Figure 6. Proposed optimization algorithm. included in the expression of the consumption). Those terms of of order higher than 2 can be considered negligible because 1, obtaining the following expression: 1 22J tx cCJrx c.n 2/.n 1/ C2n.J tx cCJ2Jn/2C2nJJD0(22) Solving the previous equation and re-arranging, we obtain e opt D1 nCpJ.n1/.2J tx cC.n2/J rx c2nJ/ p2J (23) 588 Wirel. Commun. Mob. Comput. 2014; 14:583–595 ©2012 John Wiley & Sons, Ltd. DOI: 10.1002/wcm
J. Jimenez et al. Energy Efficiency and QoS optimization in 802.11 Note that the previous expression does not depend on the error probability, and hence, e opt will remain constant along subsequent executions of the algorithm. 4.1.2. p eq Estimation phase The algorithm starts with a phase that estimates peq or, equivalently, pcand pe, by inspecting the traffic that has traversed the AP during the last estimation interval. The estimation of the peq components is as follows: The collision probability (pc) depends on the number of stations nand the transmission probability (see Equation (3)). The latter can be directly estimated by monitoring the number of consecutive idle slots (nidle) between packet transmissions as indicated in [35]: D1nidle 1Cnidle 1=n (24) Substituting the previous expression in Equation (3), we obtain pcD1nidle 1Cnidle n1 n (25) The packet error probability pedepends on (which is known) and the throughput S(see Equation (17)). The latter can be readily measured by counting the bytes that traverse the AP during a period of observation. Consequently, re-arranging the expression of Equation (17), we have peD.1 pt / Cpt.1 ps /TcCptps.TsEŒP=S/ ptps.TsTeEŒP=S/ (26) We assume that the values measured forbnidle and b Safter the end of an estimation interval .i/ will be repeated in the next interval .i C1/ with a correction given by an exponential smoothing filter with parameter ˛as follows: bnidle.i C1/ D˛bnidle.i/ C.1 ˛/Qnidle.i/ b S.i C1/ D˛b S.i/C.1 ˛/ Q S.i/ (27) Finally, we use pcand peto compute the probability peq by using Equation (2). Figure 7 shows a simulation of the peq estimator performance under time-varying packet error probability (three steps at 0, 10 and 20 s) for a scenario with 10 stations and fsD50 packets/s. The smoothing factor used is ˛D0:999, and the number of samples per interval is set to 100. As shown in the figure, our proposed estimator for peq follows closely theoretical noise dynamic set in the simulation. 4.1.3. W & r calculation phase As stated earlier, the optimization strategy followed depends on the relationship between fsand f0. Hence, this phase starts updating the value of the threshold frequency f0. To do this, we can substitute fsfrom Equation (6) in our simplified expression (see Equation (8)). Then, the maximum value (i.e., using the maximum rpossible and minimum Wpossible) that yields e opt would be given by the frequency: f0D2.1 peq/ EŒSts1prmaxC1 eq 21 opt Wmin1 C2.1 peq/ (28) If fsf0, then it is possible to find a combination of W and rthat yields e opt (i.e., medium/high load conditions); otherwise, e opt will not be reachable (i.e., low-load conditions). Medium/high load case. Out of all the possible combinations of Wand rthat yield e opt, we will select the one that exhibits the lowest limit of retransmission attempts Figure 7. Run time exponential smoothing estimate of the equivalent packet error probability p eq. Wirel. Commun. Mob. Comput. 2014; 14:583–595 ©2012 John Wiley & Sons, Ltd. 589 DOI: 10.1002/wcm
Energy Efficiency and QoS optimization in 802.11 J. Jimenez et al. (rmin) for it will also minimize the delay. Because Wmin would provide us with the maximum value possible, the minimum rthat allows to obtain e opt can be found from Equation (8) as rmin D2 6 6 6 6 6 ln 12.1fsEŒSts/.1peq/ fsEŒSts.21 opt Wmin1/ ln.peq/13 7 7 7 7 7 (29) Once we have set r,theWvalue that yields e opt can be readily obtained from Equation (8) as Wopt Dmax Wmin;2 opt 12.1 q/.1 peq/ q.1 prminC1 eq /! (30) Thus, the values WDWopt and rDrmin will be sent to the stations. Low-load case. Under low-load conditions, delay is small, and losses are mainly because of external noise. In this case, the traffic generated is insufficient to attain e opt. Observe that increases as Wdecreases and/or r increases. Thus, we will try to increase as much as possible toward e opt by means of setting Wto the minimum window size possible Wmin and increasing ras long as it is helpful to reduce the losses due to noise. The increasing process will stop when the difference between pr eq and prC1 eq reaches a threshold min (i.e., Dpr eq prC1 eq ), increasing rby one as long as > min. Therefore, rwill be set to the resultant value from the previous procedure, and Wwill be set to Wmin. 4.2. Algorithm complexity The time-complexity of our algorithm is determined by the peq estimation phase, where up to Nsamples observations have to be evaluated for each peq component (i.e., pcand pe). This same complexity of O.cNsamples/is exhibited by related works when cvariables are dynamically estimated (e.g., cD2[14,16,23], cD1[19,24,36]). The computation of Wand roffers a constant complexity, and the actual execution time will depend on the expressions evaluated. Evaluating rin addition to Wonly requires the evaluation of Equation (29) or the loop that increases runtil the error probability improvement is small enough. However, the latter loop can be considered to have an upper limit of 10 in practice. As shown in Figure 5, the algorithm is re-executed periodically after each peq update cycle. One key aspect for the feasibility of the implementation is that the algorithm execution time is significantly shorter than any update interval (e.g., Nsamples=.fsn) in the shortest case). We have tested this by running our algorithm written in C language in a DELL Vostro 1000 laptop (CPU Athlon 64 X2, 1.7 GHz) (Dell Inc., One Dell Way, Round Rock, Texas 78682 USA), obtaining an execution time 104times shorter than the shortest cycle duration, which offers a significant margin for APs with a slower processor. 5. NUMERICAL RESULTS This section compares the results obtained with our optimization algorithm (W&roptimization) versus the energy efficiency optimization in [9] (W-only optimization) and the 802.11 standard default values for Wand r.Observe that W-only optimization [9] assumes saturated condition in stations and absence of noise (i.e., fsand peq are ignored). 5.1. Simulation scenario Results have been obtained with Opnet simulator (v14.5) (OPNET Technologies, Inc. 7255 Woodmont Avenue Bethesda, MD 20814) complemented with the following modules: A new module for energy measurement has been created and connected to the physical layer of the stations. This module accounts for the time spent on each possible state of the WiFi card (e.g., tx, rx, idle or sleep for PSM) and the corresponding transitions. The collected statistics are later multiplied by the respective power coefficients to obtain the energy consumption of the station. The MAC sublayer of the AP node has been connected to a new module that implements noise estimation such as that described in the previous section. The output of this noise estimator (i.e., pcand pe)is in turn connected to another module that implements the optimization algorithm under study. The output of the optimization algorithm will be automatically read by all stations that will adjust their operational parameters Wand raccordingly. The scenario of the simulation is described in Figure 1 where nstations periodically send packets to a central AP. The traffic generation parameters used in stations are shown in Table I and represent a traffic pattern likely found in real-applications (e.g., 80 B every 40 ms) such as state monitoring in a sensor network. For the noise estimation module, the smoothing factor used is ˛D0:999 and the number of samples per estimation interval (Nsamples)isset to 100. The duration of simulations was 300 s, and results presented represent average values. The scenario and the new modules implemented can be downloaded from [37]. 5.2. Simulation results Because the accuracy of our algorithm relies on the proper estimation of pcand pe, we would like to start with results related to the performance of the noise estimator. Figures 8(a) and 8(b) show the values of peand pc obtained by our estimator module in a 20-station simulation scenario arranged with different values of corruption probability due to channel errors. It can be observed that the estimated peis very close to the value set in the simulation scenario, and the estimated pcalso follows closely 590 Wirel. Commun. Mob. Comput. 2014; 14:583–595 ©2012 John Wiley & Sons, Ltd. DOI: 10.1002/wcm
J. Jimenez et al. Energy Efficiency and QoS optimization in 802.11 Ta b l e I . Network parameters for simulation of IEEE 802.11b standard. Parameter Value Packet size 80 B Buffer size 1 f s25 pkt/s R b1Mbit/s PHY 192 s MAC 28 B ACK 14 B SLOT 20 s DIFS 50 s SIFS 10 s EIFS 364 s ,rx,tx and psm 0.11, 0.9, 2.5 and 0.02 W CWmin 32 CWmax 1024 r 5 m 5 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0 0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1 Pe defined in simulation P c (a) Noise estimation performance Pc Theoretical Estimated 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 (b) Noise estimation performance Pe P e defined in simulation P e Estimated Theoretical Figure 8. Performance of the noise estimator module. the theoretical value. This let us conclude that our noise estimator module is accurate. Figure 9 shows the energy efficiency obtained by 20 stations with (a) and without (b) PSM for different probabilities of corruption due to external noise (pe). It can be noticed that our W&roptimization proposal attains always higher efficiency than either the W-only optimization or 802.11 standard default values. The differences are more noticeable when PSM is used, for the lower MAC sublayer delay achieved by our proposal produced more time spent in sleep state. The worst results are obtained by the Woptimization, which can be attributed to its noise insensitiveness, utilizing in all cases the Wvalue that yields e opt and assuming saturation condition in stations, which give rise to high Wvalues. Figure 10 shows the QoS performance obtained by each approach. The packet loss displayed in Figure 10(a) shows that our W&rproposal exhibits similar results than the 802.11 standard default values but better than the W-only. The default Wand rvalues from the 802.11 standard exhibit a small improvement in packet loss for peD0:2 than our proposal. This can be traced back to the fact that is set to reach the maximum throughput possible that is slightly bigger than e opt. After that point, both approaches exhibit very similar results. Nevertheless, as shown in Figure 10(b), our W&rproposal exhibits lower delay than either W-only or default values approaches in every range of pe. This is well suited for real-time multimedia or control applications, which are very sensitive to delay. Moreover, as suggested earlier, lower delay implies that stations can go to sleep earlier and save energy. In addition, realtime applications need a fast convergence with changes in external noise. Figure 11 illustrates how delay and energy efficiency adapt to changes produced by a step in pe(from 0.3 to 0.5 between simulation times 50 and 100 s) in a 20-station scenario. It can be observed that our W&rproposal reacts to a quick change in pe, and the degradation suffered in both delay and energy efficiency is smaller than in the other two approaches. Also, it can be observed that our two-variable control proposal achieves more stability (i.e., less variability from the average) than the rest, which is also positive for meeting QoS guarantees in real-time communications. Finally, Figure 12 shows how energy efficiency (a),(b); loss (c); and delay (d) vary with the number of stations (n) for peD0:5. Observe that again our proposed W&ralgorithm exhibits higher efficiency and better QoS behavior than the rest for all n. Note that, as expected, delay and loss increase with the number of stations. However, the energy efficiency decreases with n, which can be attributed to an increment in the collision probability (pc) with the number of stations n. 6. CONCLUSIONS We have presented a new strategy for IEEE 802.11 energy efficiency optimization that dynamically adjusts the values of Wand rin the stations to optimize the energy efficiency while minimizing the negative impact on the QoS. The extra degree of freedom offered by simultaneously using both Wand roffers better performance than other approaches such as W-only or using the 802.11 default values. Wirel. Commun. Mob. Comput. 2014; 14:583–595 ©2012 John Wiley & Sons, Ltd. 591 DOI: 10.1002/wcm