Implication Of MAC Frame Aggregation On Empirical Wireless Experimentation Gautam Bhanage, Rajesh Mahindra, Ivan Seskar, Dipankar Raychaudhuri WINLAB, Rutgers University, RT 1 South, North Brunswick, NJ 892, USA NEC Labs America, Princeton, NJ 84, USA {gautamb, seskar, ray}@winlab.rutgers.edu, {rajesh}@nec-labs.com Abstract Wireless network emulator testbeds have become increasingly important for realistic, at-scale experimental evaluation of new network architectures and protocols. Typically, wireless network performance measurements are made at multiple layers of the wireless protocol stack, i.e. link layer, MAC layer and network layer. This study highlights the impact of layer 2 frame aggregation that is enabled by default in the software drivers for commodity wireless 82.11 devices while it is still not a part of the core 82.11 standard. Using experimental measurements, it is shown that this feature has an impact across a diverse set of wireless experiments and should be considered while comparing results. Measurements on the ORBIT testbed show that throughput measurements can vary up to a startling 2% for certain packet sizes and the variance in receiver side interframe delays can almost double if MAC aggregation and preset transmission opportunities are not taken into consideration. Further results for VoIP traffic show a deterioration in jitter of up to 8 times when coupled with MAC layer aggregation in 82.11. Index Terms Frame aggregation, fast-framing, txop, madwifi implementation, 82.11e. I. INTRODUCTION Testbeds for wireless networking research such as OR- BIT [9], MiNT [1], EMULAB [19], and Roofnet [6] aim to provide the ability to control and measure important network parameters on actual wireless devices with a high degree of accuracy, reproducibility, and efficiency. Wireless emulation has been recently used for evaluating the performances of 82.11 protocols [13][21], ad hoc routing protocols [8], managed mode performance of networks [12], quality of service evaluations [2], power and rate control experiments [23], [2], [27], [7], and a host of other studies. The common factor in the success of the wireless testbeds mentioned above is the use of commodity wireless hardware devices (e.g., 82.11 Atheros/Intel NICs) along with open-source driver softwares (e.g., Madwifi driver []) that allows for flexible configuration and customization. This flexibility gives users a better control over protocols and softwares used over the radio nodes. Despite having several advantages, certain driver implementations might have unexpected features running by default to further optimize standard 82.11 behavior. In a recent work [11], the authors provide experimental evidence of unexpected outdoor link-layer performance of 82.11 Atheros chipset based cards [1] with Madwifi driver due to a driver Research supported in part by National Science Foundation Grant # CNS- 72. specific antenna diversity algorithm. Hence, executing experiments on such wireless testbeds requires careful monitoring throughout the experiment and an awareness of unexpected non-82.11 conforming operations of the hardware-driver. Such behavior of the driver should either be disabled or accounted for in the eventual analysis. Through this study we show that though MAC-frame aggregation or fast framing 1 is not a part of the 82.11 standard, open-source drivers can and do perform frame aggregation under certain circumstances (besides having aggregation enabled by default) which may not lead to conforming results with scientific experiments. Through our experiments we evaluate the frame aggregation functionality that is a part of the latest Madwifi drivers and report deviation from expected results. Contributions of this study can be summarized as follows: 1) We describe frame aggregation as implemented in the Madwifi driver and show that savings in overheads are determined only by the MAC back-off and the transmission rate, 2) Describe prerequisites for aggregation on the basis of reverse engineering of the Madwifi driver source code, 3) We show that throughput, inter-frame delay, frames transmitted and jitter vary significantly from the expected value (as per the standard). 4) Finally, we present three test cases that show a significant difference in performance for scientific experiments with default frame aggregation behavior. Section II starts by describing the basics of frame aggregation, followed by its quantitative analysis and conditions for its working based on the Madwifi driver. Section III presents a detailed discussion on the results from experiments of first order measurements such as throughput and interframe delay. Section IV shows the practical implication of frame aggregation on scientific experiments through three case studies. Finally, Section V provides the concluding remarks. II. FRAME AGGREGATION Observation of internet traffic studies [22] showed that more than half of the packets were smaller than 2 bytes leading to considerable control overhead and degraded efficiency. A few studies like [18] and [26] aim to alleviate this problem by performing frame aggregation above the MAC - SAP. Other 1 This term in Madwifi world is based on the fast framing support from the ATHEROS hardware. Frame aggregation was considered as a part of 82.11eD1., but is not a part of the final 82.11e standard. 978-1-4244-4148-8/9/$2. 29 This full text paper was peer reviewed at the direction of IEEE Communications Society subject matter experts for publication in the IEEE "GLOBECOM" 29 proceedings.
A ) B ) C ) D ) E ) DIFS Backoff DIFS Backoff PHY 82.11 MAC Frame SIFS ACK Aggregated MAC Frame DIFS Backoff SIFS 82.11 MAC Frame ACK MAC LLC MAC Sub-Frame I MAC Sub-Frame II 24 8 4 Aggregation MAC LLC UDP/IP 16 8 28 Destination MAC Source MAC LEN 2 6 6 2 Fig. 1. Frame aggregation for the creation of a lumped MAC frame which has the two aggregated frames as the payload. This approach generates savings on difs, backoff times and physical layer headers. Subparts (A) and (B) of the figure compare timelines for transmission with and without aggregation while (C), (D), and (E) describe the payload of an aggregated frame. approaches like [24], [1] have been proposed to perform MAC frame aggregation to improve efficiency of real-time traffic transmissions over 82.11. Another study in [14] uses MAC frame aggregation in 82.11 mobile terminals for energy savings and an increased battery life. Recently, the 82.11n standard [3] has incorporated frame aggregation as a built in feature. Fast Framing is a technique employed by Atheros chip manufacturers to achieve higher throughput values as an optimization for improving 82.11a/b/g system performance by utilizing MAC frame aggregation (allowing frame sizes up to 3Bytes) 2,3. This paper considers Madwifi s implementation for frame aggregation on Atheros wireless cards. This technique may or may not be used by other manufacturers and their implementation details may be different. However, popularity of this driver/hardware combination prompted us to delve deeper into its working. A. Basics Frame aggregation in Madwifi combines two MAC frames as shown in Figure 1 and sends them as the payload of a single congregated frame. This single aggregated frame contains two sub-frames encapsulated in a 82.11 PHY and MAC header prior to transmission. Each sub-frame is a UDP/IP payload encapsulated by the Link-Layer control header. A custom Aggregation MAC header is added by the driver to each sub-frame containing details about the source and destination MAC addresses and the length of the subsequent sub-frame in bytes. This aggregation header helps the receiver to detect aggregation and push the congregated frame as two independent frames upward through the stack. 2 We noticed this feature after considerable sniffing and investigation. Though this feature may be well known in industry, the scientific community does measurements largely unaware of this mechanism. 3 Packet trace analysis softwares like Wireshark or Ethereal are not able to identify these frames. However, a study of the source code, comparison of frame sizes, and transmissions confirm frame aggregation. DATA SIFS ACK B. Performance Estimation To determine performance gains due to frame aggregation we estimate the channel time which includes the channel access time and transmission time. The total channel time (T total ) using standard 82.11a protocol is given as the sum of T backoff + T difs + T phy + T mac + T llc + T data + T ack + T sifs. where T difs, T sifs, and T backoff are taken in accordance with the 82.11a standard [2]. Time taken to transmit PHY header/preamble T phy and a MAC ACK T ack are fixed irrespective of data transmission rates. Transmission time for the MAC header T mac, Link-Layer control Header T llc and UDP/IP payload T data depends on the physical layer transmission rate used. The total channel time for an aggregated frame will change to: T total aggr = T backoff + T difs + T phy + T mac + T llc + 2 (T aggr mac + T llc + T data )+T ack + T sifs (1) where T aggr mac is the time spent to transmit the Madwifi Aggregation header. The aggregation header is smaller than a standard MAC header since most details are provided by the header of the aggregated frame. Savings with aggregation can be calculated as: Savings with aggr = T backoff + T difs + T phy + T mac + T ack + T sifs (2 T aggr mac + T llc ) (2) Since the T aggr mac and T llc overheads added due to aggregation (as shown in Figure 1) are always lesser than the times spent in sending multiple ACKs, PHY, MAC headers, and channel contention, aggregation always yields bounded savings in channel time. It is interesting to note that this value is not determined by the frame size, rather it varies only with the T backoff and the transmission rate. The backoff is decided on the number of slots after which a node can transmit its frame is largely correlated with the contention on the channel. The transmission rate of a frame decides the T mac and the T llc since these headers are transmitted at the same rate as data. Figure 2 shows the efficiency of payload delivery in 82.11a seen for two different transmission rates with and without MAC frame aggregation. The effect of PHY header, ACK transmissions and inter-frame spacing is more pronounced for higher PHY rates since the PHY headers and MAC acknowledgements are always transmitted at 6Mbps. Substituting standard values, we observe that the protocol overhead reduction with frame aggregation results in savings of 9 to 37μsecs of channel time. This value varies depending upon the amount of backoff determined by contention. C. Preconditions For Aggregation Enabling frame aggregation (which is done by default when loading a driver) in itself does not result in aggregation of every transmitted frame. Rather, it is a decision made on a per frame basis, which depends on a certain set of conditions. Studying these conditions is crucial since they enable us to understand when we may observe aggregation and thus, attribute certain performance characteristics to it. Frame aggregation mechanism is possible when the driver senses that 978-1-4244-4148-8/9/$2. 29 This full text paper was peer reviewed at the direction of IEEE Communications Society subject matter experts for publication in the IEEE "GLOBECOM" 29 proceedings.
Ant - 1 Ant - 4 Effective Channel Utilization 4 48 36 24 12 Payload UDP/IP Headers MAC Headers Preamble + PHY Headers MAC ACK IFS (SIFS+DIFS) 36M 36M Ag 4M 4M Ag Fig. 2. Bandwidth utilization with aggregation for different transmission rates (36M and 4M in this case) of 124byte frames. Since the transmission rate of Physical layer headers are at a constant speed of 6M in 82.11a, the benefits of aggregation are more at higher physical layer rates. Given: Fragmentation threshold, channel rate, transmit queue priority. Relevant Checks Performed: 1: if (if depth txqueue < aggregation thresh), goto RET. 2: if (fragmentation threshold < 2346), goto RET. 3: if (mode is neither station nor AP), goto RET. 4: if (in ap mode() and is ether multicast), goto RET. : if (fast frames are enabled and current rate is less than the minimum rate for aggregation), goto RET. 6: if (txoplimit is defined and the time for aggregated frame transmission > txoplimit), goto RET. RET1: Aggregation possible. RET: Aggregation not possible. Result:Boolean - Aggregation possible or not. Fig. 3. Factors affecting decision making in the driver for MAC frame aggregation as per the Madwifi.9.3 driver source code. 2m AP C1 2m C2 S 2dB Attenuation Ant - 2 Ant - 3 Fig. 4. Experiment setup on the ORBIT radio grid. Figure indicates scaled relative position of entities for measurements on the ORBIT grid. C1 and C2 represent the clients sending traffic to the AP. The four noise injection antennae (Ant - *) are located at the four corners of the grid with only Ant - 1 used to pump noise at the receiver running on the AP. S is a sniffer used for inter-frame delay measurements. Parameter Value Experiment Duration 12 secs Averaging Duration Per sec Operation Mode 82.11a Infrastructure Frequency.18GHz Chipset Atheros AR212 Driver MadWiFi.9.3 Tx Diversity Disabled Virtual CS Disabled Fig.. Common experimental parameters used with ORBIT nodes. Other parameters such as channel rate and packet sizes which may vary with experiments are mentioned explicitly. study some simple means of disabling frame aggregation are: by a private ioctl to disable fast framing, source code change or by making the fragmentation threshold smaller than 2346. III. FIRST ORDER RESULTS We begin our empirical evaluation with results that illustrate the impact of aggregation using metrics like: saturation throughput, MAC frames, inter-frame arrival times, and their variance. the channel is approaching saturation. Figure 3 shows some of the relevant checks performed in the driver before a decision is made to aggregate a MAC frame 4. One of the first checks is to determine if the user has enabled fragmentation by setting the threshold to a value lesser than the MTU. The second check ensures that MAC aggregation works only in the access point and station modes and will not affect experiments performed in the ad hoc mode. Aggregation is also disabled with multicast. Another important requirement is that the transmission queue must have at least aggregation thresh MAC frames ready for transmission for frame aggregation to occur. A default value of 3 is used for the aggregation thresh by the Madwifi driver. The driver also makes sure that the aggregated frame will be transmitted within the txoplimit set for the interface to conform with the 82.11e standard. Based on this 4 Information provided in the figure is based on source code for the Madwifing drivers and may vary for implementations. A. TestBed And Topology We use the ORBIT testbed facility [9] which consists of 4 82.11 wireless nodes arranged in a 2m 2m grid. As shown in the Figure 4, four noise injection antennae are incorporated in the testbed that allow controlled injection of AWGN noise at desired power and frequency. The generic topology consists of a single wireless link running between an AP and a client C1 which acts as the sender as shown in Figure 4. To measure performance with contention we add another client C2 sending traffic to the AP. Care was taken in choosing the position of the wireless nodes such that the RSSI at the receiver was similar for the different nodes to avoid PHY layer capture that could affect our results. A node was chosen to operate in monitor mode to verify the aggregation of MAC frames over the wireless link. Figure depicts the generic experimental parameters used for conducting the experiments. We generate traffic using Iperf [4] internet traffic generator tool. 978-1-4244-4148-8/9/$2. 29 This full text paper was peer reviewed at the direction of IEEE Communications Society subject matter experts for publication in the IEEE "GLOBECOM" 29 proceedings.
Observed Throughput (Mbps) 2 Channel Saturation Triggers Aggregation 2 1 1 Aggregation Contention Aggregation No Contention 1 1 2 2 3 3 4 Offered Load (Mbps) Observed Throughput (Mbps) 3 Percentage improvement in 2 throughput due to aggregation decreases with packet size 2 1 1 Aggregation Contention Aggregation No Contention 64 128 26 12 124 14 Packet Sizes (Bytes) Observed Throughput (Mbps) Higher difference in throughput 3 at higher rates due to aggregation 2 2 1 Aggregation Contention 1 Aggregation No Contention 9M 12M 18M 24M 36M 48M 4M PHY Channel Rate (Mbps) Fig. 6. Observed throughput with varying offered load with and without frame aggregation. Retries due to contention are costlier with aggregation. Hence the difference in throughput with and without contention scales with aggregation. Throughput with varying packet sizes with and without frame aggregation. Results show that for smaller frame sizes throughput almost doubles, while the advantages diminish for larger frames. Throughput measurements for varying transmission rates. We see that benefits of aggregation are more at higher transmission rate. MAC Frame Transmissions Drop in frames transmitted 2 due to aggregation 2 1 1 Agregation Contention Aggregation No Contenion 1 1 2 2 3 3 4 Offered Load (Mbps) MAC Frame Transmissions 4 4 3 3 2 2 Aggregation Contention 1 Aggregation No Contention 1 64 128 26 12 124 14 Packet Sizes (Bytes) MAC Frame Transmissions 3 More frames are transmitted with aggregation at higher rates 2 2 1 1 Agregation Contention Aggregation No Contenion 9M 12M 18M 24M 36M 48M 4M PHY Channel Rate (Mbps) Fig. 7. Observed MAC frames transmitted with varying offered load with and without frame aggregation. Frames transmitted in saturation with aggregation drop to almost half those without aggregation. MAC frames transmitted with varying packet sizes with and without frame aggregation. Number of MAC frames transmitted drop by half for larger frame sizes, while for smaller frame sizes the reduction in transmitted frames is lesser. MAC frames transmitted as a function of the transmission rate. We observe that higher number of frames are transmitted for higher rates and the savings increase significantly. B. Throughput Measurements Our first experiment measures the throughput performance with aggregation as a function of offered load on the link. Figure 6 plots the throughput measured on a single link and a link with two senders (with contention) as a function of the offered load. Packet size throughout the experiment is maintained at 124 bytes, transmission rate at 36Mbps, and other experiment parameters are maintained as shown in Figure. Aggregation is explicitly enabled or disabled by controlling the fast framing option in the driver. The results show that below saturation, performance of all 4 cases is similar. However, saturation throughput settles at different values for each of the test cases as offered load is increased. Maximum throughput is observed with the case of aggregation and no contention since it sees minimum overheads. Contention reduces throughput both with and without aggregation. However, the results are different due to higher costs associated with MAC retries in aggregation. With the same experiment setup we also measure the number of MAC frames transmitted. Figure 7 shows the number of frames transmitted as a function of the offered load at the sender(s). As with the throughput measurements, results below saturation from all four cases are comparable. However, as the offered load is increased further, the number of MAC frames transmitted drop to almost half with the use of aggregation. Another interesting measurement revealed that as the channel is on the verge of being saturated we see partial aggregation. Packet traces captured at an offered load of 2Mbps with a channel rate of 36Mbps revealed that some frames were being aggregated while some were not. This conforms with our earlier investigation of the driver which reveals that a decision to aggregate is made on a per frame basis. This observation is particularly important since experiments making measurements with the channel barely saturated may see varying throughput depending on the amount of aggregation. Our next experiment measures the pattern in throughput with varying application packet sizes. Figure 6 plots the observed throughput with varying packet sizes and a fixed offered load of Mbps. These measurements show that throughput nearly doubles with aggregation for small frame sizes of 64bytes, while it shows comparatively lesser gains for larger frame sizes. As proven earlier savings in overheads are constant and only determined by the backoff and transmission rate. Since the relative overheads seen for small frames are higher, we observe better performance gains for small frame sizes and vice versa. It is to be noted that for large frame sizes, even though the throughput does not double with aggregation, the change is significant (approximately 2%) to affect scientific experiments. It can also be seen that the effect of contention is seen more with large frame sizes since the cost of retransmissions is higher. Figure 7 shows the number of MAC frames transmitted for different frame sizes. We observe that the number of frames transmitted for large frame sizes (say 14bytes) is halved 978-1-4244-4148-8/9/$2. 29 This full text paper was peer reviewed at the direction of IEEE Communications Society subject matter experts for publication in the IEEE "GLOBECOM" 29 proceedings.
Observed Interframe space (microsecs) 2 1 1 With Aggregation Receiver With Aggregation Sniffer 1 1 2 2 Frame Number Mean Inter frame Delay (milliseconds) 2 1. 1. With Aggregation Receiver With Aggregation Sniffer 64 128 26 12 768 124 Frame Size (bytes) Size NoAg Ag R Ag S 128 e-4.e-2 7e-4 26 6e-4 12.4e-2 1.2e-4 12 8e-4 34.2e-2 1.6e-4 124 2.1e-4 18.9e-2 4.7e-4 (*all values in msecs) Fig. 8. Observed interframe space (µsecs) between MAC frames as seen with and without aggregation for the first 2 MAC frames. Frame size is maintained at 124bytes in all scenarios. Mean interframe arrival times as seen at the receiver and sniffer with and without frame aggregation. Variance in inter-frame arrival times without aggregation at the receiver (NoAg), with aggregation at the receiver (Ag-R), and aggregation as seen by the sniffer (Ag-S). with the use of aggregation. As the frame size reduces, the percentage reduction in the frames transmitted decreases. As discussed previously, the savings in channel time due to aggregation are fixed irrespective of the frame sizes used. Hence, it is possible to transmit more frames of smaller size because of the lesser transmission times when compared to large frames. To sum up, maximum advantage with throughput (doubling) is seen with smaller frame sizes while the maximum advantage with frame sizes (halving) is seen with larger frames. Thus, these measurements with frame sizes provides an insight into the inverse relationship between how aggregation affects the throughput and frames transmitted for different frame sizes. Transmission rate is one of the major factors for determining the effect of physical layer overheads and hence the savings achieved due to aggregation. Figure 6 shows the measured throughput for various transmission rates at a fixed frame size of 124bytes. As expected and seen through the formal analysis, benefits of aggregation are more at higher transmission rates since we see a greater effect of the savings on higher overheads. Figure 7 shows the number of MAC frames transmitted for different frame sizes. We see an expected trend where the number of frames transmitted with and without aggregation increase with channel rate. C. Inter-frame Arrival Measurements Delay measures the difference in absolute time between when a frame is transmitted and the time when it is received. However, we measure interframe arrival times since delay measurements require explicit synchronization. Let us assume that the delay for two consecutive frames i and j is given as D i and D j. Each D k is evaluated as the difference in the time stamp at the receiver R k from the sender S k.we can evaluate the difference in delay of two consecutive frames i and j, given by D j D i as: (R j S j ) (R i S i )=(R j R i ) (S j S i ) (3) Hence the difference in inter-frame arrival times given by R diff = R j R i is evaluated as: R diff =(D j D i )+(S j S i )=D diff + δ (4) Synchronization across machines is possible to a granularity of a few msecs using the network timing protocol daemon. However, achieving higher granularity is difficult using standard tools. Delay measurements can easily replace the inter-frame arrival measurements if this issue is fixed. where D diff represents difference in delay of consecutive frames and δ denotes difference in time stamps of consecutive frames at the sender. As long as the frames are sent at a constant rate over a single link, with static channel conditions, δ appears as a constant value. Thus we can use difference in inter-frame arrival times as an approximation for difference in delays of consecutive frames. To achieve accurate measurements with considerably slow CPUs at the sniffers, all temporal measurements are made at 9M. While absolute values of delay might change, the observed trends only scale with transmission rate. Figure 8 shows the inter-frame delay seen for 2 sequential frames at the receiver. We observe that without aggregation the interframe arrival times are constant at around 1msec throughout the experiment. It is interesting that the measurements for aggregation vary depending on the point of measurement. The arrival times at the sniffer are homogeneous since it sees continuous flow of aggregated MAC frames. However, at the receiver, after the aggregated MAC frame is received they are split and pushed up the stack. Hence the arrival time for the first frame within the aggregated frame is equal to the arrival time of the aggregated frame which is approximately 2msecs, and that of the second frame is the time required to simply push it up the stack which is around 2μsecs. Similar observations can be made from the Figure 8 which measures the mean of inter-arrival times between frames over approximately 2 thousand sniffed MAC frames for different frame sizes. Results show that the mean delays are comparable for the case with no aggregation and the measurement made at the receiver. This relationship holds because even with aggregation, though the first MAC frame is received after considerable delay the second MAC frame (which is a part of the aggregated frame) is available almost instantaneously. Mean inter-arrival time with the aggregation at the sniffer is approximately double than that without aggregation since the sniffer essentially measures the inter-arrival time for the aggregated frame. Figure 8 displays the variance in inter-arrival frame times for different frame sizes. These results are derived from measurements shown in Figure 8 which shows that there is little or no variance in inter-frame arrival times for the cases with no aggregation and aggregation measured at the sniffer. However, the variance is high at the receiver since the inter- 978-1-4244-4148-8/9/$2. 29 This full text paper was peer reviewed at the direction of IEEE Communications Society subject matter experts for publication in the IEEE "GLOBECOM" 29 proceedings.
Percentage Of Saturation Throughput (%) 1 8 6 4 2 124Byte, aggregation 124Byte, no aggregation 64Byte, aggregation 64Byte, no aggregation 48 46 44 42 4 38 36 Injected Noise At Receiver (db) Fig. 9. Performance with MAC frame aggregation in noisy environments. Results presented with emulation on an indoor setup. VoIP Jitter (milisecs) 2 1 1 Aggregation 9 12 18 24 36 48 4 PHY Channel Rate (Mbps) Fig. 1. Measurement of VOIP jitter with different channel rates with and without aggregation. Jitter significantly increases with aggregation. frame arrival time is high for the first frame and negligible for the second frame within the aggregated frame. The sniffer which measures performance under aggregation does not see the two separate frames and hence sees a very low variance in inter-frame times. These measurements are important since they show that point of measurement (at the sniffer or receiver) would produce a dramatic difference in delay and jitter with frame aggregation. IV. CASE STUDIES Our case studies show the effect of MAC frame aggregation on possible scientific experiments. We present a representative set of results which are by no means exhaustive but provide an insight into possibly inaccurate measurements or inferences that could be made. A. Case 1: Topology Creation Wireless emulation frequently requires the creation of multihop topologies [8], [28], mobility emulation and emulation of non-zero packet error rate (PER) links. Creation of multihop topologies in ORBIT is supported by noise injection in four corners of the grid. Studying impact of noise injection on topology creation is important with aggregation since noise affects varying frame sizes differently. For our experiments we run a single link with the receiver closer to a noise antenna while the sender is as far as possible. Noise injection on all other antennae (except near the receiver) is turned down by introducing attenuation. Figure 9 shows the percentage of saturation throughput seen on the link with varying levels of noise injected at the receiver. We see that for the same frame sizes, throughput falls faster with aggregation since the PER increases with frame size. This has a particular importance with topology creation since creating topologies with noise requires injection of just the adequate amount of noise (so that it does not impact other links). However, if the frame sizes vary due to aggregation this may introduce another dimension to the topology mapping problem [16]. B. Case 2: VOIP Performance Voice over IP (VOIP) is a protocol for voice packet delivery over IP. An interesting feature of aggregation is that it can also aggregate frames across multiple IP flows. If appropriate tagging is not used at the IP layer, real time and best effort frames could be aggregated resulting in unexpected performance. At this time, most services like Gtalk, Skype, or VLC media player do not set the TOS (type of service) byte. Hence channel saturation by running other flows such as data, or streaming video could result in aggregation of small VOIP frames with possibly large data frames. This could cause a higher variation in the observed delays with the VOIP frames. To measure performance under these conditions we setup a link between an access point running a VoIP and a data receiver and a client running the corresponding senders. VoIP traffic was emulated using the G.711.2 codec with pkts/sec of real time traffic and a frame size of 92(64+overheads) bytes. For different channel rates the measured jitter is as shown in the Figure 1. As seen, the jitter is always higher for the case with aggregation. At lower rates, the jitter with aggregation is 8 times higher than that without aggregation and at least 6. times higher at higher channel rates. Thus, real time traffic is severely affected by aggregation in terms of the perceived jitter. Upon sniffing the wireless link, we observed that about 33% of the total VoIP packets were aggregated with the 14byte packets of the competing data flow. C. Case 3: Rate Adaptation Algorithms Performance and stability of 82.11 rate adaptation algorithms is widely proven through implementation on madwifi drivers [23], [2], [27], [7]. Each of these algorithms rely on channel estimation metrics such as ETT (expected transmission time) [23], packet loss [2], delivery ratio [27], throughput [7], or SINR estimates [17]. Through this study we will study the impact of aggregation on rate selection. We setup an experiment to measure the rate selected by the sample rate adaptation algorithm [7] over a single link with maximum transmit power. We select and plot the rate selected per frame for a consecutive sample of 2 sniffed frames in Figure 11. Since these measurements are taken under a controlled environment, the channel conditions have been shown to be consistent and repeatable. For the same conditions we observe that results without aggregation settle at 4M most of the time while with aggregation we see an oscillation between 4M and 48M. This performance is attributed to higher frame loss with aggregation and becomes clearer with results in Figure 11. This figure plots the distribution of frames transmitted at different rates. We observe that for different transmit powers, the rate adaptation algorithm behaves consistently better without aggregation, sending more 978-1-4244-4148-8/9/$2. 29 This full text paper was peer reviewed at the direction of IEEE Communications Society subject matter experts for publication in the IEEE "GLOBECOM" 29 proceedings.
Observed Packet Tx Rate (Mbps) 4 48 Aggregation 4 1 1 2 2 Experiment Duration (secs) Percentage of Transmitted MAC Frames 1.2 1.8.6.4.2 4Mbps PHY Rate 48Mbps PHY Rate 36Mbps PHY Rate No AG AG No AG AG No AG AG MINIMUM MAXIMUM TRANSMIT POWER Percentage of Transmitted MAC frames 1.2 1.8.6.4.2 4M 48M 36M 24M 18M 12M 9M AG No AG No AG AG No AG AG No Noise 39 dbm 37 dbm Fig. 11. Measurements made for performance with auto rate adaptation using the sample rate adaptation scheme that is default with the Madwifi drivers. The time plot shows a random snapshot of rates of 2 consecutive transmissions. We observe that the adaptation algorithm settles comfortable with no aggregation at a rate of 4M but does not work so well when aggregation is enabled. Shows the distribution of the rates at which the K sniffed packets were sent. We observe that this number varies widely with (AG) and without aggregation (No AG) for different transmit power levels. A similar measurement is made here with varying levels of injected noise at the receiver to emulate deteriorating link conditions. We see a distinct difference in rate selection with (AG) and without (No AG) aggregation. frames at a higher rate. A comparison with varying noise at the receiver in Figure 11 shows a similar trend. For the same injected noise at the receiver, we observe a lower rate selection for aggregation due to a possibly higher packet error rate. Thus rate adaptation algorithms should consider aggregation while comparing results obtained with their evaluations. V. CONCLUSION AND FUTURE DIRECTIONS This study highlights conditions under which MAC aggregation occurs and quantifies typical performance variations seen with and without aggregation using both a theoretical model and experimentation. We show that the default aggregation used in commodity 82.11 devices can produce measurements which differ from those of a properly configured controlled experiment, and may thus lead to misleading conclusions. Specifically, we observe significant differences in throughput, number of frames transmitted, sniffed inter-frames times, and inter-frame times as seen at receiver. Topology creation becomes harder with noise injection since link PERs are aggregation dependent. Also, for real time services such as audio and video, despite increase in throughput, jitter increases with aggregation. Future work will involve detecting clients with non-conforming MAC behavior in 82.11 hotspots. REFERENCES [1] Atheros 82.11 wlan cards. http://atheros.com/. [2] Ieee 82.11a standard. http://standards.ieee.org/ getieee82/download/82.11a-1999.pdf. [3] Ieee 82.11n standard. http://www.ieee82.org/11/index. shtml. [4] Iperf-internet traffic generator. http://dast.nlanr.net/ Projects/Iperf/. [] Multiband atheros driver for wifi. http://madwifi.org. [6] D. Aguayo, J. Bicket, S. Biswas, G. Judd, and R. Morris. Link-level measurements from an 82.11b mesh network, August 24. [7] J. Bicket. Bit-rate selection in wireless networks. In Masters thesis, M.I.T., Cambridge, MA, 2. [8] E. Borgia and F. Delmastro. Effects of unstable links on AODV performance in real testbeds. EURASIP Journal on Wireless Communications and Networking, Jan. 27. [9] D. Raychaudhuri, I. Seskar, M. Ott, S. Ganu, K. Ramachandran, H. Kremo, R. Siracusa, H. Liu, and M. Singh. Overview of the ORBIT radio grid testbed for evaluation of next-generation wireless network protocols. In IEEE WCNC, March 2. [1] P. De, A. Raniwala, S. Sharma, and T. Chiueh. MiNT: a miniaturized network testbed for mobile wireless research. Proceedings of IEEE (INFOCOM), pages 2731 2742, Mar. 2. [11] Domenico Giustiniano and Giuseppe Bianchi and Luca Scalia and Ilenia Tinnirello. An Explanation for Unexpected 82.11 Outdoor Link-level Measurement Results. In Proceedings of IEEE INFOCOM, April 28. [12] M. A. Ergin, K. Ramachandran, and M. Gruteser. Understanding the Effect of Access Point Density on Wireless LAN Performance. In Proceedings of ACM MOBICOM, pages 3 33, September 27. [13] S. Ganu, K. Ramachandran, M. Gruteser, I. Seskar, and J. Deng. Methods for restoring mac layer fairness in 82.11 networks with physical layer capture. In Proceedings of the REALMAN workshop. [14] J. Lorchat and T. Noel. Energy saving in IEEE 82.11 communications using frame aggregation. In IEEE GlobeCom, Dec 23. [1] K. Lee, S. Yun, I. Kang, and H. Kim. Hop-by-Hop Frame Aggregation for VoIP on Multi-Hop Wireless Networks. In IEEE ICC, May 28. [16] S. Kaul, M. Gruteser, and I. Seskar. Creating Wireless Multi-hop Topologies on Space-Constrained Indoor Testbeds Through Noise Injection. Tridentcom, 4:2731 2742, Mar. 26. [17] T.-S. Kim, H. Lim, and J. C. Hou. Improving spatial reuse through tuning transmit power, carrier sense threshold, and data rate in multihop wireless networks. In In the proceedings of MobiCom. [18] Y. Kim, S. Choi, K. Jang, and H. Hwang. Throughput enhancement of IEEE 82.11 WLAN via frame aggregation. In In the proceedings of VTC, pages 33 334, September 24. [19] L. Stoller and R. Ricci and S. Guruprasad and M. Newbold. An integrated experimental environment for distributed systems and network. In Proceedings of OSDI. [2] M. Lacage, M. H. Manshaei, and T. Turletti. Ieee 82.11 rate adaptation: A practical approach. In In proceedings of MSWIM, 24. [21] R. Mahindra, G. Bhanage, G. Hadjicristofi, I. Seskar, D. Raychaudhuri, and Y. Zhang. Space versus time separation for wireless virtualization on an indoor grid. Proceedings for IEEE NGI, 28. [22] S. McCreary and K. Claffy. Trends in wide area IP traffic patterns - A view from ames Internet exchange. [23] K. Ramachandran, R. Kokku, M. Gruteser, and H. Zhang. Synchronous Two-phase Rate and Power Control in 82.11 WLANs. In In proceedings of ACM MobiSys, pages 3 33, July 28. [24] S. Yun, H. Kim, H. Lee, and I. Kang. 1+ VoIP Calls on 82.11b. In IEEE Journal SELECTED AREAS IN COMMUNICATIONS, May 27. [2] V. A. Siris and G. Stamatakis. Optimal cwmin selection for achieving proportional fairness in multi-rate 82.11e wlans: Test-bed implementation and evaluation. In in the proceedings of ACM WINTECH, 26. [26] T. Li, Q. Ni, D. Malone, D. Leith, T. Turletti, and Y. Xiao. Aggregation with Fragment Retransmission in Very High-Speed WLANs. In IEEE/ACM Transcations on Networking, March 26. [27] S. H. Y. Wong, H. Yang, S. Lu, and V. Bharghavan. Robust rate adaptation for 82.11 wireless networks. In in the proceedings of ACM MobiCom. [28] Z. Wu, S. Ganu, and D. Raychaudhuri. IRMA: Integrated Routing and MAC Scheduling in Multi-hop Wireless Mesh Networks. WiMesh, 26. 978-1-4244-4148-8/9/$2. 29 This full text paper was peer reviewed at the direction of IEEE Communications Society subject matter experts for publication in the IEEE "GLOBECOM" 29 proceedings.