The invention relates generally to packet shaping for transmissions in an IEEE 802.11 network.
A wireless local area network (WLAN) based on the IEEE 802.11 standard supports variable packet length. When such a network supports multi-rate communications, even packets with the same size may require different transmit durations at different rate modes. As a result, a node operating at a lower data rate may require a longer transmission time than higher rate nodes in order to transmit the same amount of information. The IEEE 802.11a standard sets a uniform maximum packet length limit of 4095 bytes regardless of the data rate, but allows PHY mode rates to range from 6 Mbps to 54 Mbps. Thus, the time that a 6 Mbps node occupies the network channel may be up to nine times that of a faster 54 Mbps node. This type of scenario is undesirable because the presence of low data rate nodes significantly reduces overall network capacity.
The present invention features a method and corresponding apparatus for shaping data packets for transmission by node in a wireless network of nodes. The method sets a maximum limit for MAC service data unit size (MSDU) based on data rate so that maximum transmission time for data packet transmission by each of the nodes is approximately the same.
Particular implementations of the invention may provide one or more of the following advantages. Because the packet shaping mechanism sets a maximum MSDU size limit based on node data rate so that the maximum transmission time of all the nodes is the same, network channel resources are equally distributed among all the nodes. By applying different limits in such a manner, it is possible to improve network capacity when there are mixed rate nodes in the network. In addition, the maximum MSDU length limit can be adjusted to take into account ongoing network activity, e.g., network nodes can adjust the length limits so that maximum transmission time of all nodes converges to the same value when network load is high while increasing when network load is light. Rate constraints of each node can also considered. That is, the length limits can be adjusted to guarantee a minimum rate for each node. The packet shaping mechanism can also be used to provide different rates to same data rate nodes.
Other features and advantages of the invention will be apparent from the following detailed description and from the claims.
Like reference numerals will be used to represent like elements.
Referring to
In another embodiment of the wireless network 10, as shown in
In the embodiments described herein, the nodes in the wireless network 10 communicate with each other according to the wireless protocol provided by the IEEE 802.11 standard. The IEEE 802.11 standard specifies the medium access control (MAC) and the physical (PHY) characteristics for WLANs. The IEEE 802.11 standard is defined in International Standard ISO/IEC 8802-111, “Information Technology-Telecommunications and Information Exchange Area Networks,” 1999 Edition, which is hereby incorporated by reference in its entirety.
In one embodiment, in particular, the network nodes 12 operate according to different data rates. In accordance with the present invention, therefore, the network 10 employs a packet-shaping mechanism that ensures that all of the network nodes 12 have a transmission time that is approximately the same, as will be described.
Referring to
The network node 12 can include the data link layer service user 25 or be coupled to an external data link layer service user 25. The data link layer service user 25 is intended to represent any device that uses the blocks 20, 26, 30 and 32 to communicate with any other node on the wireless network 10, or other network to which the wireless network 10 may be connected. The blocks 20, 26, 30, 32 and (optionally) 25 may reside in a single system “box”, for example, a desktop computer with a built-in network interface, or may reside in separate boxes, e.g., blocks 24, 26, 30 and 32 could reside in a separate network adapter that connects to a host. The functionality of blocks 24 and 26 may be integrated in a single MAC/PHY transceiver chip. Thus, each node 12 represents any combination of hardware, software and firmware that appears to other nodes as a single functional and addressable entity on the network.
Preferably, the data link layer and PHY blocks conform to the Open System Interconnect (OSI) Model. The data link layer block 20, in particular, the MAC block 24, performs data encapsulation/decapsulation, as well as media access management for transmit (TX) and receive (RX) functions. Preferably, the data link layer block 20 employs a collision avoidance medium access control scheme like carrier sense multiple access with collision avoidance (CSMA/CA) as described by the above-referenced IEEE 802.11 standard. The MAC block 24 also provides Automatic Repeat request (ARQ) protocol support. The PHY block 26 performs transmit encoding and receive decoding, modulation/demodulation, among other functions. In the described embodiment, the operation of the PHY block 26 conforms to the IEEE 802.11a standard.
The unit of communication exchanged between nodes over the wireless medium 14 is in the form of a PHY protocol data unit (“PPDU”). The PPDU may include a payload, i.e., the MAC frame or PDU (MPDU), in conjunction with a delimiter of preamble and frame control information. A MAC Service Data Unit (MSDU) refers to any information that the MAC block has been tasked to transport by upper protocol layers (e.g., OSI layers to which the OSI MAC layer provides services), along with any management information supplied by the MAC block.
Preferably, the MAC block 24 supports standard MAC functions, such as framing, as well as ensures Quality of Service and provides for reliable frame delivery through a number of different mechanisms. Also, ARQ is used to ensure delivery for unicast transmissions. A correctly addressed frame with a valid PHY frame Check Sequence causes the receiver to transmit a positive acknowledgment (or “ACK”) response to the originator. Transmitting nodes attempt error recovery by retransmitting frames that are known or are inferred to have failed. Failures occur due to collisions or bad channel conditions, or lack of sufficient resources at the receiver. Transmissions are known to have failed if a “NACK” (in the case of bad channel conditions) or “FAIL” (in the case of insufficient resources) response is received. Transmissions are inferred to have failed for some other reason (for example, due to collisions) if no response, that is, no ACK, NACK, FAIL or other defined response types not discussed herein, is received when one is expected.
The IEEE 802.11 standard provides a detailed medium access control (MAC) and physical layer (PHY) specification for WLANs. The IEEE 802.11a PHY has been developed to extend the existing IEEE 802.11 standard in the 5 GHz U-NII bands. The 802.11a PHY is based on Orthogonal Frequency Domain Multiplexing (OFDM) radio, which provides eight different PHY modes with data rates ranging from 6 Mbps to 54 Mbps. In addition to the use of multiple modulation schemes, convolutional codes with variable rates are adopted to improve the frame transmission reliability as well as the data rate.
In the IEEE 802.11 MAC, the fundamental mechanism to access the medium is called Distributed Coordination Function (DCF). It achieves medium sharing through the use of CSMA/CA with random backoff. The nodes 12 follow two medium access rules. First, a node is allowed to transmit only if its carrier sense mechanism determines that the medium has been idle for at least the distributed interframe space (DIFS) time. Second, the node selects a random backoff interval (contention window) after access deferral or prior to attempting to transmit again immediately after a successful transmission.
Referring to
The DCF adopts an exponential backoff scheme. At each packet transmission, the backoff time is uniformly chosen in the range (0, w−1), where the value “w” relates to a contention window and depends on the number of transmission failed for the packet. At the first transmission attempt, w is set equal to a minimum contention window value “aCWmin”. After each unsuccessful transmission, w is doubled, up to a maximum value “aCWmax”. The backoff timer is decremented as long as the channel is sensed idle, “frozen” when a transmission is detected on the channel, and reactivated when the channel is sensed idle again for more than a DIFS. The node transmits when the backoff time reaches zero. As can be seen from
Referring now to
T=(L0+1)tavg+tc+(L0/2)(t1+t2) Eq. (1)
The bandwidth occupied by each node is:
Bi=(L0ti)/2T, Eq. (2)
B1/B2=[t1/t2=tH+(B1/R1)]/[tH+(b2/R2)]≈R2R1. Eq. (3)
Thus, the bandwidth effectively used by each node is inversely proportional to its data rate. Given that the IEEE 802.11a rate difference could be up to 9 times, the low rate node can occupy as much as 9 times the bandwidth of the high rate node, thus reducing overall system capacity. The gain of rate distribution is equally distributed among all the users. When the network is low rate dominate, and if some users switch to a higher rate, all the users have their throughput increased. However, the users switched to higher rates themselves do not have significant gain over the rate adaptation. On the other hand, if the network is high rate dominate, and if some users switch to a lower rate, all users' performance degrade while the low rate users do not lose much performance themselves. The property still holds for the networks with more than two nodes.
As discussed earlier, to transmit packets with the same length, the low rate nodes tend to consume more transmission time than the high rate nodes. The amount of time consumed is approximately inversely proportional to the transmission rate. As the IEEE 802.11 DCF MAC essentially gives the same probability of transmission to each node regardless of its transmission rate, the amount of bandwidth/time occupied by each node is therefore inversely proportional to its transmission rate. Although each node receives the same quality of service, there may be some undesirable side effects. For example, if all the nodes are uniformly operating at a high rate mode (e.g. 48 Mbps), the network can support a large number of nodes. If some low rate (6 Mbps) nodes are admitted into the network, however, each will consume eight times of bandwidth than the high rate nodes. This significantly reduces the number of high rate nodes that the network can support.
It is possible to set different maximum packet size limits for each PHY rate mode. In a standard or conventional approach, the packet size limits are the same for all the PHY modes. Assuming that each node may require a minimum service rate, the standard approach gives the same rate for all of the nodes and would limit the system capacity. If the network has two types of nodes r1 and r2 (r1>r2) with rate restrictions R1, R2 and the total bandwidth is B0, the number of nodes that can be accommodated in the system N1, N2 must satisfy
(r1r2B0)/(r2N1+r1N2)≧R1 and (r1r2B0)/(r2N1+r1N2)≧R2 Eq. (4)
so
r2N1+r1N2≦r1r2B0 min(1/R1,1/R2). Eq. (5)
For a modified, rate-dependent packet shaping approach,
R1B0/(N1+N2)≧R1 and r2B0/(N1+N2)≧R2 Eq. (6)
so,
N1+N2≦B0 min(r1/R1,r2/R2). Eq. (7)
Assuming that the high rate nodes operate at 48 Mbps and the low rate nodes operate at 6 Mbps, and also assuming that the rate requirements for high rate nodes are 1 Mbps, the number of high rate nodes that can be accommodated by the standard approach is significantly reduced if there are heavily loaded low rate nodes in the network. In the packing shaping approach, therefore, the packet size is chosen to be inversely proportional to the node data rate, thus greatly increasing the capacity for high rate nodes with a given rate constraint. Of course, the low rate nodes may subject to lower rate comparing with the standard approach.
Referring to
The MAC processing unit 100 performs all of the functions necessary to prepare MPDUs for MSDUs received from the LLC sublayer block 22, as well as MAC level transmit and receive operations. The controller 102 includes a packer shaper or packet shaping process 110. The packet shaper 110 includes a static packet shaper 112 and, optionally, a dynamically adjusting packet shaper, indicated as a maximum MSDU size limit predictor (hereinafter, simply “predictor”) 114. To support the packet shaping optimization, the controller 102 maintains in the control memory 104 the following parameters: PHY rate 116; desired throughput 118; a maximum MSDU size limit 120, a minimum MSDU size limit 122; and a current maximum MSDU size limit 124. As mentioned earlier, the MAC block 24 can perform fragmentation. Thus, the control memory 104 stores a fragment size (threshold) 126 as well. The various parameters of the control memory 104 are either set by configuration information at boot time, or are set by the packet shaper 110.
Other control information that does not directly pertain to packet shaping control, for example, control information related to channel access contention, has been omitted herein. Preferably, channel access contention, and other aspects of operation not described herein, may be implemented according to techniques described in the above-referenced IEEE 802.11 standard.
The packet shaper 110 sets the maximum MSDU size (or length) limit based on the node operating data rate (PHY rate 116) so that the maximum packet transmission times of all nodes are the same, thus ensuring that network resources are equally distributed among all the nodes. Applying different maximum length limits in this manner improves the network capacity when there are nodes operating at different data rates present in the network.
Preferably, the packet shaper 110 adapts the length limit setting based on not only the PHY rate (static shaping) but also the network activity. To support the dynamically adjusting mode of operation, therefore, the controller 102 monitors (via the PHY block interface 106) the wireless medium for network activity and collects transmission time statistics (of ongoing traffic), indicated by reference numeral 128. With this information and the control information stored in the control memory 104, the predictor 114 in each node 12 adjusts the length limit based on the collected transmission time statistics so that maximum transmission times of all nodes converge to the same value when the network load is high and increase when network load is light. The packet shaper 110 is further optimized to consider the rate constraint of the node in which it operates. Thus, in adjusting the length limit, the packet shaper 110 ensures that a minimum rate guarantee for the node is achieved.
The goal of packet shaping is to limit the maximum transmission time of each node. In the IEEE 802.11 standard, the maximum MSDU size is the same for all nodes. Thus, the low rate node may transmit longer time and take larger share of the bandwidth. It is therefore desirable to keep the same maximum transmission time limit instead of the same maximum packet size limit to ensure the fair resource sharing between the nodes with variable data rates.
Referring to
For an “adaptive” mode of operation, the packet shaping is dynamically adjustable according to a node's throughput requirement and the network traffic condition. Thus, to initiate the adaptive mode, the static shaper 112 invokes the predictor 114 to dynamically adjust the maximum MSDU size limit to a current value (step 132).
Referring to
desirable MSDU size=desired throughput*(the average packet length/average throughput) Eq. (8)
In step 146, the predictor 114 determines the current maximum MSDU size limit according to the Eq. (9) below.
maximum MSDU limit=max(min(MSDU size upper limit, desirable MSDU size), MSDU size lower limit) Eq. (9)
In Eq. (9), the MSDU size upper limit corresponds to the maximum MSDU size limit set in step 130 of
An example of maximum MSDU size limit range of dynamic packet shaping is shown in Table 2 below.
The predictor 114 can be configured to repeat execution whenever a predetermined timeout occurs (step 148), or in some other manner, e.g., in response to a particular event.
Although the packet shaping process has been described within the context of a network in which two or more of the nodes operate at different data rates, the process can also be applied to nodes of a network having a uniform data rate but different rate requirements for the nodes. Thus, it could still provide different rates to same data rate nodes by adjusting the length limit in the manner described above.
In effect, by changing the maximum MDSU limit, the packet shaper 110 forces the logical link sublayer to send down MSDUs to MAC sublayer at different size limits. It is also possible, however, to take modify the MAC fragmentation mechanism to achieve the packet shaping by controlling the MPDU size, i.e. the MAC fragmentation threshold.
As mentioned above, the MAC block 24 supports the process of partitioning MSDUs into smaller fragments, referred to as fragmentation. Fragmentation improves chances of frame delivery during poor channel conditions. An MSDU arriving at the MAC block 24 is placed in one or more fragments depending on the size of the MSDU and the data rate the channel will sustain. Every effort is made to transmit all of the fragments of a single MSDU in a single, continuous burst of frames. Acknowledgments and retransmissions occur independently for each fragment.
To achieve packet shaping, and referring to
It is to be understood that while the invention has been described in conjunction with the detailed description thereof, the foregoing description is intended to illustrate and not limit the scope of the invention, which is defined by the scope of the appended claims. Other embodiments are within the scope of the following claims.
This application is a continuation of U.S. patent application Ser. No. 10/294,928, filed Nov. 14, 2002 and issued on Nov. 27, 2007 as U.S. Pat. No. 7,301,965, which claims the benefit of U.S. Provisional Patent Application Ser. No. 60/332,958, filed Nov. 19, 2001, the contents of which are incorporated herein by reference in their entirety for all purposes.
Number | Name | Date | Kind |
---|---|---|---|
6522650 | Yonge et al. | Feb 2003 | B1 |
7136392 | Wentink | Nov 2006 | B2 |
Number | Date | Country | |
---|---|---|---|
20080259792 A1 | Oct 2008 | US |
Number | Date | Country | |
---|---|---|---|
60332958 | Nov 2001 | US |
Number | Date | Country | |
---|---|---|---|
Parent | 10294928 | Nov 2002 | US |
Child | 11973435 | US |