- Open Access
Dynamic tuning of the IEEE 802.11 distributed coordination function to derive a theoretical throughput limit
© Huang and Kuo; licensee Springer. 2011
- Received: 15 April 2011
- Accepted: 20 September 2011
- Published: 20 September 2011
IEEE 802.11 is the most popular and widely used standard for wireless local area network communication. It has attracted countless numbers of studies devoted to improving the performance of the standard in many ways. In this article, we performed theoretical analyses for providing a solution to the maximum throughput problem for the IEEE 802.11 distributed coordination function, and an algorithm using a binary cubic equation for obtaining a much closer approximation of the optimal solution than previous algorithms. Moreover, by studying and analyzing the characteristics of the proposed algorithm, we found that the effects of backoff counter consecutive freeze process could be neglected or even disregarded. Using the NS2 network simulator, we not only showed that the proposed theoretical analysis complied with the simulated results, but also verified that the proposed approach outperformed others in achieving a much closer approximation to the optimal solution.
- IEEE 802.11
- distributed coordination function
- performance analysis
Advances in wireless communication technology have increased the demand for wireless networks. The IEEE 802.11 standard  defines the specifications for medium access control (MAC) and the physical layers in a wireless local area network (WLAN). The IEEE 802.11 standard provides two mechanisms for the MAC protocol: the point coordination function (PCF) and the distributed coordination function (DCF). The PCF utilizes a basic access mechanism that supports contention-free services. Therefore, the PCF requires a base station that coordinates channel access among nodes. On the other hand, the DCF utilizes an access mechanism that supports contention-based services. The DCF access mechanism dictates that all the nodes should randomly access channels using the carrier sense multiple access/collision avoidance (CSMA/CA) mechanism. This mechanism employs the acknowledgment (ACK) feature to detect transmission failures. In other words, if an ACK response is not received, it is assumed that packet transmission has failed. The nodes wait for an interframe space (IFS), and then invoke the binary exponential Backoff algorithm, which uses a uniform random distribution called a contention window (CW) to generate a random Backoff value within the range of [0, CW - 1].
In this study, the initial value of CW is set to CWmin (the minimum CW). Subsequently, the CW value is doubled when packet transmission fails. For a node to obtain a Backoff value, it must first determine whether the channel is in use. If the channel is not busy, then the Backoff value decreases by 1 in every time slot and the node transmits the data when the Backoff value reaches zero. However, if the channel is busy, then the Backoff counter freezes. When the channel is in an idle state, it waits for a DCF IFS (DIFS) time period after which the Backoff value begins to decrease again. If the packet transmission continues to fail, then the CW value increases to CWmax (the maximum CW); when the node receives an ACK packet, CW is reset to CWmin. If a node receives an error packet, it must wait for an extended IFS (EIFS) time period. Then, the node determines again whether the channel is in an idle state. If it is, then after a DIFS time, the Backoff value decreases by 1 after each idle slot.
Currently, the methods of improving Backoff performance can be divided into two categories: (1) adjusting the CW size according to the number of times that collisions have occurred [1–3], and (2) dynamically adjusting the CW size by detecting changes in the network environment [4–7]. In the first type of method, the adjustment of CW size only occurs after a collision; the consequences are that the cost for collision must first be paid before the method can find the most appropriate CW size, and that this entire process is repeated when the data are transferred successfully. In contrast, the second type of method immediately adjusts to the most appropriate CW size when network environment changes are detected. Therefore, such a method has the ability to find the appropriate CW size without the cost of collision, and clearly outperforms the first type of method in many ways. For the reasons mentioned above, this article proposed an algorithm called the dynamic contention window (DCW) algorithm by adopting the second approach. Unlike other algorithms, DCW uses a binary cubic equation that has the ability to quickly and efficiently calculate the most appropriate CW size according to the network environment.
The rest of this article is organized as follows. Previous related work is presented in Section 2. Various theoretical analyses are performed in Section 3. The proposed DCW algorithm and consecutive freeze process (CFP) analysis are presented in Section 4. Simulations and performance evaluations of our proposed algorithm are conducted in Section 5. Finally, we conclude our work in Section 6
where M is the total number of nodes in the network, the tslot the total duration spent in a time slot, and p is the Backoff value sampled from a geometric distribution with parameter p. First, we use (1) to solve E[Idle], which we then substitute into (2) to solve p. Using this value of p, we can derive the value of parameter p for the geometric distribution from the Backoff value of maximum throughput.
When solving (1) and (2), an optimal solution cannot be solved directly; instead, a numerical method is needed to approximate the optimal solution. Therefore, the effectiveness of this method is fully dependent on how fast the numerical method can find the approximation of the optimal solution. Additionally, ref.  assumes that the values of E[Coll] and E[Nc] in (1) and (2) can be derived by measuring the network condition. Unfortunately, this is not entirely true in practice. There is no collision detection capability due to the characteristics of the wireless networks.
where Φ(Idle, Nc) is a constant. Although (3) can be used to replace (1), a numerical method is still needed for this equation to approximate the optimal solution. The performance of this approach is fully dependent on the efficiency of the numerical method when finding the approximation of the optimal solution. Therefore, to save the time consumed by the numerical method, we propose a binary cubic equation with the ability to obtain a much closer approximation of the optimal solution in less time.
In this study, we assume that (1) each node is in a saturated condition (i.e., always having a packet to transmit) and (2) the channel is error-free. Packet loss is caused solely by collisions in the process of packet transmission. The hidden terminal problem is not considered in this article.
3.1. Analysis of collision probability
Each time slot can be classified into three states: idle (no data transmission), successfully transmitted, and collision. Therefore, the probability of each state can be calculated as follows.
By dividing the numerator and denominator, respectively, by the total number of time slots in the network (referred as total_slot), (4) can be represented by the probabilities Ps, Pi, and Pc. In other words, if there are three simultaneous data transmissions, the time slots will collide and each of the three nodes involved in this collision will increase their Coll x value by 1. However, Pc represents the collision probability that occurs in a time slot. Therefore, when a collision occurs in a time slot, we calculate the value of k, which represents the average number of nodes involved in simultaneous data transmissions during that time. Therefore, .
When the system converges into a stable state, we assume that τ1 = τ2 = τ3 = ... = τ M = τ. Hence, we can rewrite (5), (6), and (7) as follows.
In (13), the collision probability can be calculated using the total number of nodes, M, and the probability of transmission, τ, during a time slot under conditions of a fully utilized throughput environment. The result of (13) also shows that it is easy to calculate and analyze the collision probability.
3.2. Analysis of maximum throughput
where payload is the time spent to transmit data, tslot is an idle slot time (aSlotTime), and tsuccess is the time spent to transmit a packet successfully. Notably, tsuccess = DATA + SIFS + ACK + DIFS when the algorithm does not utilize the RTS/CTS method. Furthermore, tcoll is the time spent during packet collision, and tcoll = DATAmax + DIFS when the algorithm does not utilize the RTS/CTS method. DATAmax is the maximum waiting time when a packet collision occurs. Most other studies have assumed that DATAmax is equal to DATA. However, according to the IEEE 802.11 standard presented in , nodes involved in a collision must wait for one more EIFS in addition to DATA. Hence, this article assumes that DATAmax = DATA + EIFS × (M - k)/M, where M is the total number of nodes in the network and k is the average number of nodes involved in simultaneous data transmissions. This assumption makes it clear that there are k nodes on an average that are busy transmitting data, and that the transmission nodes are unable to receive any other packets from other nodes. Therefore, because the transmission nodes need not wait for another EIFS, the number of transmission nodes must be deducted from the equation.
The right-hand side of (16) assumes a value between 0 and 1 because tcoll > tslot. The left-hand side of (16) is equal to 1 when τ = 0; however, it is 0 if τ = 1/M. When 0 < τ < 1/M, the left-hand side becomes a decreasing function that varies between 1 and 0. Therefore, the optimal solution for τ can be obtained.
SIFS + DIFS + (ACK length)/basic rate
112 bits + PHYHeader
Packet size (bytes)
Regression analysis (2/τ)
Coefficient of determination (R2)
In Table 2 the value of R2 is almost equal to 1. This verifies that the result of the regression analysis is almost consistent with the solution of (16).
Coefficient of M and constant
Regression analysis (X: packet length)
Coefficient of determination (R2)
Coefficient of M
-3.71095 × 10-7X2 + 3.9512 × 10-3X + 8.6886
1.32129 × 10-7X2 + 4.1818 × 10-4X + 7.8933
As shown in the table, the R2 values are both greater than 0.975. This implies that the quadratic fit to the results in Figure 2 is good. In order to obtain the CW size of maximum throughput, we must first substitute the packet length into Table 3 to solve the number of nodes and the coefficients of the linear equation of the CW, and then substitute the number of nodes into the target linear equation. We thereby obtain the CW size of maximum throughput. Therefore, in the next section, we propose the DCW algorithm.
In (17), we only need to substitute the packet length into X and the number of nodes into M to obtain the CW size of maximum throughput.
When transmitting data using DCW, it is called upon to obtain the Backoff value regardless of the success or failure (data retransmission required) of data transmission. After each aSlotTime, the Backoff Time reduces an aSlotTime, and if the medium is busy during an aSlotTime, the reduction of an aSlotTime from Backoff Time is stopped until the medium is once again idle. When the medium becomes idle, it must wait for a DIFS time before continuing the countdown of the Backoff Time. The countdown goes on until the Backoff Time reaches 0, after which data transmission begins.
There have already been many methods proposed by other authors to estimate the number of nodes in the network [17, 18], by applying these methods in the proposed DCW. DCW is then suitable for network environments in which the number of nodes changes dynamically.
4.1. Backoff counter CFP
In IEEE 802.11, when a node completes its data transmission, it obtains another Backoff value via the Backoff procedure before it starts another round of data transmission. If the Backoff value obtained from the Backoff procedure is 0, it indicates that the node that has a Backoff value of 0 may transmit data packets immediately without reducing its value, while it also indicates that other nodes may not reduce their Backoff values. However, a transiting node that consecutively obtains a Backoff value of 0 will result in all other nodes to freeze their reduction in the Backoff procedure. This type of phenomenon is referred to as a Backoff Counter CFP [15, 19].
The occurrence probability of CFP is determined by the number of nodes and the CW size. There are two conditions in CFP. First, if a node successfully transmits its data packets, the CFP occurrence probability is 1/CW because only one node may obtain a Backoff value of 0 (condition (1)). Second, if multiple nodes transmit data packets simultaneously, the average CFP occurrence probability is 1 - (1 - 1/CW) k (when a collision occurs, k is the average number of nodes that participates in the collision) (condition (2)). This is because there are k nodes on average trying to transmit data packets simultaneously, and hence k nodes on average may obtain a Backoff value of 0.
In (18), e denotes a natural number. The detailed proof is available in Appendix B. From (18), the value of k approaches a constant value as the number of nodes increases.
From the results obtained from Appendix C and Figure 4, the range for k is 2-2.081. This is because shorter the data packet length, the larger the value of k. However, it is impossible to have a data packet less than 1 byte. Therefore, the maximum value of k is the same as the data packet length of 1 byte. Therefore, the occurrence probability of CFP in condition (2) is less than 1 - (1 - 1/CW)2.81, although CW increases as the number of nodes increases where the occurrence probability of CFP in condition (2) becomes increasingly smaller.
From the above analysis on the occurrence probability of CFP, the occurrence probability of CFP is very low when using the DCW method. This also implies that in situations where the number of nodes propagates, the impact of CFP may be neglected.
5.1. Environmental settings
In this article, we use NS2  as the simulation tool and use the network environment parameters presented in Table 1 as simulation parameters. Each simulation runs for 100 simulated seconds. The simulation uses the normalized throughput indicated in (14) and the collision probability indicated in (4) as performance indicators.
5.2. Different data packet lengths
We are currently using DCW and different data packet lengths to verify the analyses of (9) and (14).
Using the t distribution and under 99% confidence level, the experiments sampling error for 500, 1500 and 2312 bytes is within ± 0.141%, ± 0.193%, and ± 0.302%, respectively.
Using the t distribution and under 99% confidence level, the experiments sampling error for 500, 1500, and 2312 bytes is within ± 0.656%, ± 0.559%, and ± 0.733%, respectively.
5.3. Comparison between different algorithms
In Figure 7, the x- and y-axes represent the number of nodes and the collision probability, respectively. The DCF curve uses the standard IEEE 802.11 algorithm, and the curve for IEEE 802.11+ uses the algorithm presented in  where the number of nodes is known. Similar results are obtained for different packet lengths, as shown in Figure 7. From these results, the collision probability is lower in DCW than in the other two algorithms. The DCF shows lower collision probability only when the number of nodes is between 2 and 4.
Using the t distribution and under 99% confidence level, the DCF experiments sampling error for 500, 1500, and 2312 bytes is within ± 0.134%, ± 0.265%, and ± 0.444%, respectively, and the IEEE 802.11+ experiments sampling error for 500, 1500, and 2312 bytes is within ± 0.154%, ± 0.248%, and ± 0.291%, respectively.
Using the t distribution and under 99% confidence level, the DCF experiments sampling error for 500, 1500, and 2312 bytes is within ± 0.413%, ± 0.556%, and ± 0.768%, respectively, and the IEEE 802.11+ experiments sampling error for 500, 1500, and 2312 bytes is within ± 0.664%, ± 0.669%, and ± 0.678%, respectively.
In this article, we take the influence of EIFS into consideration whereas previous literatures did not. In doing so, we are able to provide analysis results that are much closer to simulated results. An observation of the results clearly indicates that the influence of EIFS should not be ignored. Moreover, this article also proposes an algorithm that is distinct from others that only use numerical methods. This algorithm is able to find the CW size of maximum throughput immediately by substituting the packet length and number of nodes into a binary cubic equation. From the mathematical analyses provided in this article, it is shown that the influence of CFP is extremely small or even negligible using proposed algorithm.
For studies in the near future, other parameters of network environments can be considered for multidimensional experiments. For example, different values for DataRate can be used for a more realistic wireless network environment.
From the results of (B5), when the number of nodes approaches infinity and DCW is used, k approaches a constant value.
Regression analysis results and limits of k
Packet size (100-500 bytes)
Regression analysis (2/τ)
Coefficient of determination (R2)
This study was supported in part by the National Science Council, Taiwan, under Grant NSC99-2221-E-142-007.
- IEEE Computer Society, IEEE standard 802.11: wireless LAN medium access control (MAC) and physical layer (PHY) specifications. (New York, 1999)Google Scholar
- Minooei H, Nojumi H: Performance evaluation of a new backoff method for IEEE 802.11. Comput Commun 2007, 30(18):3698-3704. 10.1016/j.comcom.2007.07.003View ArticleGoogle Scholar
- Yun L, Ke-Ping L, Wel-Liang Z, Qian-Bin C: A novel random backoff algorithm to enhance the performance of IEEE 802.11 DCF. Wirel Personal Commun 2006, 36(1):29-44. 10.1007/s11277-006-6176-8View ArticleGoogle Scholar
- Cali F, Conti M, Gregori E: Dynamic tuning of the IEEE 802.11 protocol to achieve a theoretical throughput limit. IEEE/ACM Trans Netw 2000, 8(6):785-799. 10.1109/90.893874View ArticleGoogle Scholar
- Bruno R, Conti M, Gregori E: A simple protocol for the dynamic tuning of the backoff mechanism in IEEE 802.11 networks. Comput Netw 2001, 37(1):33-44. 10.1016/S1389-1286(01)00197-9View ArticleGoogle Scholar
- Chetoui Y, Bouabdallah N: Adjustment mechanism for the IEEE 802.11 contention window: an efficient bandwidth sharing scheme. Comput Commun 2007, 30(13):2686-2695. 10.1016/j.comcom.2007.06.006View ArticleGoogle Scholar
- Kwak B-J, Song N-O, Miller LE: Performance analysis of exponential backoff. IEEE/ACM Trans Netw 2005, 13(2):343-355.View ArticleGoogle Scholar
- Bononi L, Conti M, Gregori E: Runtime optimization of IEEE 802.11 wireless LANs performance. IEEE Trans Parallel Distrib Syst 2003, 14(12):1-15.Google Scholar
- Bruno R, Conti M, Gregori E: Optimization of efficiency and energy consumption in p-persistent CSMA-based wireless LANs. IEEE Trans Mobile Comput 2002, 1(1):10-31. 10.1109/TMC.2002.1011056View ArticleGoogle Scholar
- Cali F, Conti M, Gregori E: IEEE 802.11 protocol: design and performance evaluation of an adaptive backoff mechanism. IEEE J Sel Areas Commun 2000, 18(9):1774-1786. 10.1109/49.872963View ArticleGoogle Scholar
- Kwon Y, Fang Y, Latchman H: A novel MAC protocol with fast collision resolution for wireless LANs. Proceedings of the IEEE INFOCOM'03 2003, 2: 853-862.Google Scholar
- Lee T-H, Marshall A, Zhou B: An optimization scheme for energy efficient ad-hoc wireless networks operating in error-prone channel conditions. In Proceedings of the World Congress on Engineering 2009. Volume 1. London, UK; 2009. WCE 2009, July1–3Google Scholar
- Rad AHM, Huang J, Chiang M, Wong VWS: Utility-optimal random access without message passing. IEEE Trans Wirel Commun 2009, 8:(3): 1073-1079.View ArticleGoogle Scholar
- Bianchi G: Performance analysis of the IEEE 802.11 distributed coordination function. IEEE J Sel Areas Commun 2000, 18(3):535-547. 10.1109/49.840210View ArticleGoogle Scholar
- Bianchi G, Tinnirello I: Remarks on IEEE 802.11 DCF performance analysis. IEEE Commun Lett 2005, 9(8):765-767. 10.1109/LCOMM.2005.1496609View ArticleGoogle Scholar
- Ayoub RG: Paolo Ruffini's contributions to the quintic. Arch History Exact Sci 1980, 23(3):253-277. 10.1007/BF00357046MathSciNetView ArticleMATHGoogle Scholar
- Toledo AL, Vercauteren T, Wang X: Adaptive optimization of IEEE 802.11 DCF based on Bayesian estimation of the number of competing terminals. IEEE Trans Mobile Comput 2006, 5(9):1283-1296.View ArticleGoogle Scholar
- Bianchi G, Tinnirello I: Kalman filter estimation of the number of competing terminals in an IEEE 802.11 network. Proc Infocom 2003, 2: 844-852.Google Scholar
- Foh CH, Tantra JW: Comments on IEEE 802.11 saturation throughput analysis with freezing of backoff counters. IEEE Commun Lett 2005, 9(2):130-132. 10.1109/LCOMM.2005.02008View ArticleGoogle Scholar
- Network Simulator[http://www.isi.edu/nsnam/ns/]
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.