802.11 ARQ Scheme Analysis In Presence Of Data And Stream . - Unibo.it

Transcription

802.11 ARQ Scheme Analysis in presence ofData and Stream TrafficClaudio E. Palazzi – cpalazzi@cs.ucla.eduComputer Science Department, University of California Los AngelesBoelter Hall, Los Angeles CA, 90095 USADipartimento di Scienze dell’Informazione, Università di BolognaVia Mura Anteo Zamboni 7, 40127 Bologna, ItalyAbstract“On-line everywhere and at every time”: this declaration represents one of the mostchallenging issue in nowadays networking. In practical terms, a ubiquitous service can beprovided only by a wireless technology as, for instance, the common Wi-Fi 802.11b.However, since the high number of applications available to the users and their differentcharacteristics, a discussion about the optimality of some design choices of 802.11 ARQscheme is required.We claim that the current setting of the maximum number of retransmissions in the 802.11protocol not necessarily corresponds to the optimal trade-off. As a demonstration, we presentresults obtained via simulation and, finally, we provide future directions in order to find themost efficient value for the maximum number of retransmissions at the MAC layer.Keywords: 802.11, ARQ, TCP Westwood, Wireless.1. IntroductionHowever, the interaction betweenmobile devices and the Internet, and theneed for reliable data transfer, havegenerated several unresolved problems.The main challenges that we face in amobile environment are [5]: Limited and variable bandwidth; High and variable latency that couldbe independent of the networkcongestion level; High BER (Bit Error Rate) andconsequently losses of many packets; Frequentandalsoextendeddisconnections, depending on theuser’s mobility; Limited computational and energyresources of the mobile device; Mobility of the connection (handoff).At present, in which an increasingnumber of people uses mobile technologyto obtain information from the Internet orto utilize email, it is easy to foresee afuture in which the synergy betweenwireless and the Internet becomes anintegral part of daily life. Virtual libraries,remote-working, video-telephony over IP,games, remote-medicine, video and musicon demand, are only a few of theinnumerable services that will be availablein every place and at every time. Peoplewill be allowed to be continuouslyconnected during the whole day,regardless of their location (home,workplace, car, airport, hotel ) andutilizing a plethora of old and new devices(PCs, laptops, PDAs, cell phones, otherhandheld devices or next generationappliances ) .Since TCP was designed in a timewhen networks were based exclusively on1

wired technology, its flow control andcongestion control functions fail whenintroduced into a wireless context [13]. Inorder to understand the reasons of thisfailure we should remember thattraditional TCP uses packet losses as ametric to evaluate the congestion level ofthe network. Consequently, when a packetis considered to be lost, TCP reduces thedata sending rate. In presence of numerouslosses related to non-congestion factors, asin a wireless environment, this behavior isnot appropriate and causes a consistentunderutilization of the link bandwidth [4].As a result, we experience a considerabledecline in the measured performancecompared to the quality of serviceexpected by the users.react accordingly. We also review somearticles related to the need of theretransmission mechanism in the MAC802.11 protocol.The 802.11 MAC layer protocolattempts to face the packet loss problemby implementing its own retransmissionscheme [3]. This scheme hides wirelesserror losses from the TCP’s congestioncontrol mechanism, thus avoidingdeleterious multiple reductions of the datasending window. On the other hand, localretransmissions affect packet deliverydelay by increasing its variability andtherebyaffectingtime-constrainedapplications such as audio or video stream.Tsaoussidis and Badr propose the useof special probe packets after each loss[16]. When one of these reaches thereceiver, the measured delays of theseprobing packets, is used to understand ifthe network is congested and, only in thiscase, to diminish the data sending rate. Ifthe wireless link is experiencing adisconnection or a fading, the probe cycleis extended, thus avoiding further datalosses and consequently erroneousrestrictions of the sending rate. Theirpurpose is also obtaining a better energyresource consumption.Biaz and Vaidya suggest the use ofdifferences in the interarrival times of twodata packets as an interpretative metric forthe causes of a loss [15]. They state thatwhen the difference between the arrivaltimes of the packets preceding andsucceeding a lost one is about twice thelast averaged interarrival time, then theloss is due to corruption. Otherwise, whenthis difference is almost the same as theaveraged interarrival times, the loss can beconsidered as occurring on the wired pathdue to congestion.In section 2, we review some articlesthat lend support to the aim of oursimulations. We comprehensively explainour ns-2 environment in section 3, and weshow the simulation results in section 4.Lastly, conclusions, comments, and futureworks are stated in section 5.In their work, Mascolo et al. suggest anew transport protocol, named TCPWestwood, which uses an end to endestimation of the channel capacity [1].While traditional TCPs blindly reduce thedata sending rate every time a data packetis lost, the key innovative idea in theirwork is to use the rate of the returningacknowledgments of received data tomeasure the effective link availability atthe sender. This bandwidth estimation iscomputed by sampling and exponentialfiltering methods and then used, after aloss or during slow start, to appropriatelyset the slow start threshold.2. Related worksIn recent years, many researchers havefocused their studies on the problems thatTCP encounters in a wireless environment[14]. Solutions proposed to face thoseproblems can be grouped into three maincategories: link layer solutions, splitconnection transport protocols (also called“walled garden”) and brand-new end-toend transport protocols. In this section, wefocus on the last category, in particular onnew transport protocols that attempt toestimate the condition of the channel andA new end-to-end transport protocol isalso proposed by Sinha et al. [8]. Theyface the high number of errors and thevariable latency of a wireless environmenteliminating the timeout mechanism, using2

the MAC layer, depending on the upperlayer protocol.periodic SACK packets [9] to understandwhen a retransmission is appropriate, andestimating the channel capacity to set thedata sending rate. In their protocol, thesender includes in its packets the leavingtime, thus the receiver can use thisinformation and the interarrival times tomeasure the bandwidth and communicatethe sending rate to the sender by its SACKpackets. If the sender doesn’t receive anySACK for a long time, it suspends the datatransmission and starts sending probepackets until an acknowledgment from thereceivermakesitresumethecommunication.Taking inspiration from all theseworks, it becomes interesting to test how adifferentmaximumnumberofretransmissions impacts TCP and UDPflow performance and, moreover, tocompare results when TCP New Reno isreplaced by TCP Westwood ABSE(Adaptive Share Bandwidth Estimation)[2].3. Simulation environmentIn the interest of analyzing the impact ofthe 802.11 ARQ scheme, we cannotoverlook the work of Nam et al. [6].Experimenting TCP and UDP over 802.11with different signal levels, they showedthat without retransmission implementedat the link layer, loss rates becomeunacceptable for any application.NS-2 is a widely used networksimulator [11]: many scientific articlesregarding various aspects of networking,especially on TCP and wireless scenarios,are based on this tool. We have used theseventh version coupled with the mostrecent version of the NOAH extension,which allows directly sending MACframes to a specific mobile node withoutrouting [12]. This helped us in creating anenvironment where the results obtained arefree of superfluous interference.TheclaimthatMAClayerretransmissions improve TCP performanceis confirmed by Xylomenos and Polyzos,who experimented TCP and UDP on aWLAN and analyzed their behavior withdifferent interfaces and bidirectional TCPtraffic [7]. On the other hand, a highnumber of repeated retransmissions,especially with short paths, can cause TCPto timeout anyway and retransmit the samedata as the MAC layer. Moreover, MACretransmissions can be wasteful andpotentially harmful for time-sensitiveapplications, such as real time video oraudio over UDP. Their suggestion is todifferentiate the retransmission policies atThe configuration of the simulation iseasily explained by fig. 3.1. A mobiledevice receives various flows of data fromfixed nodes, and only the last hop of theconnection is wireless, with an 802.11bMAC layer. Given the capacity of thevarious links and the buffer sizes at eachnode, it can be clearly understood that thebottleneck in this scenario will be the linkbetween the Access Point and the mobiledevice.Total Min one way delay: 73 msMin RTT: 146 msTCP (FTP)20 Mbps, 1 ms1000 pktsbuffers 100 Mbps70 ms delayAP50 pkts bufferUDP (CBR)5 Mbps, 1 msFig. 3.1 – The simulated environment3802.1111 Mbps10 meters apart(avg. 2 ms delay)

of the queue. The red line is the congestionwindow size of the TCP flow and thegreen line is its slow start threshold.In this scenario a single TCP streamstarts at second 0 and ends at second 100,while a variable number of UDP flows,one or five carrying CBR traffic starts atsecond 50 and lasts till the end. For eachof these configurations, simulations havebeen replicated to employ a particular TCPprotocol (New Reno or Westwood ABSE)and a different setting for the maximumnumber of MAC layer retransmissions,with values from 1 to 4. A summary of themain characteristics of the various flowsfollows: Single TCP flow (bulk transfer):o Type: Westwood ABSE or NewRenoo Duration: 100 secondso Packet size: 1000 bytes1 or 5 UDP CBR flows:o Starts at t 50 seco Audio stream: 100 byte packetsat50pkt/sec(20msinterdeparture time interval)802.11b MAC layer retransmissions:o maximum 1, 2, 3, or 4Fig. 4.1 – TCP New Reno and 1 UDPUtilizing TCP Westwood as thetransport protocol for the single FTP dataflow doesn’t significantly change themeasured performance. In the case ofaudio flow, for example, the channelutilization of TCP Westwood is 13.72%with only one CBR stream and 12.38%with 5 CBR streams. TCP New Renoreaches 13.19% of channel capacityutilization with 1 CBR stream and 12.76%with 5 CBR streams. The CBR throughputdoes not present variations whencomparing the various cases.4. Results of the simulationsIn the aim of figuring out how manyretransmissions at the MAC layer wereally need in a typical wirelessenvironment, we have run a set ofsimulations where the mobile node wasplaced at 10 meters from the AP that wastransmitting with a power of 1mW (0dbm). We have then changed severalparameters such as the maximum numberof retransmissions at the MAC layer, thenumber of UDP flows and the transportprotocol, producing results for everycombination of these. UDP flows are notrepresented in the following graphs evenif, of course, they impact on the TCPbehaviors in most cases.Fig. 4.2 – TCP New Reno and 5 UDPIn our simulations we have noticed that,for one single retransmission at the MAClayer, all the losses are due to wirelessproblems; congestion has no possibility ofoccurring. Using 3 as the maximumnumber of retransmissions at the MAClayer, wireless errors are always recoveredby the 802.11b ARQ scheme and losses atthe transport layer are only due toIn fig. 4.1 we can see how poorly TCPNew Reno performs with only oneretransmission implemented in the802.11b protocol even in the case withvery low concurrent traffic. The blue lineis the calculated bandwidth-delay product,expressed in packets, plus the 50 packets4

Fig. 4.3 presents another point ofinterest. Since the sending window of TCPWestwood is high and near the fullcapacity of the channel when the CBRflows commence, congestion arisessuddenly and more than one packet getslost. Consequently, the fast retransmit –fast recovery scheme [10] takes more timeto recover them. In this situation, only onepacket is sent every RTT, thus highlyaffecting the bandwidth estimation of TCPWestwood (yellow line in figures).congestion. Incrementing this value to fouror more, neither performance nor losses ordelays change. In fig. 4.2 we observe thebehavior of the single TCP New Renoflow when 5 UDP audio flows enter thesystem at time 50 seconds. After thisevent, the maximum congestion windowsize reached by the TCP flow decrease butthe regularity in the height of the peaksconfirms that all losses are due tocongestion.With three retransmissions, TCPWestwood sets the slow start thresholdafter a loss significantly lower than TCPNew Reno does, even during the first 50seconds, when no other traffic is presenton the channel. The bandwidth-delayproduct of the channel is 32 packets plus50 packets in queue at the AP; TCPWestwood sets the slow start threshold toabout 20 after each loss, even in theabsence of CBR traffic. This is probablydue to the little pipe size of theconfiguration adopted, if compared to thebuffer size, for our simulations and wecould say that it confirms the resultsobtained in [17].Fig. 4.4 – Cumulative delays for 1 UDPFig. 4.5 – Cumulative delays for 5 UDPFig. 4.3 – TCP Westwood and 5 UDPSince the higher aggressiveness of NewReno doesn’t affect the CBR flowperformance, we could conclude that TCPWestwood behavior is too conservative.But this is not completely true; in fact, ifwe consider fig. 4.4 and 4.5 we can seehow much better the delays of CBR trafficare when TCP Westwood is used for theFTP stream (upper line) instead of TCPNew Reno (lower line). The chartsrepresent on the y-axis how many packetshave been delivered with a delay less thanthe value on the x-axis.The total throughput obtained by TCPWestwood is therefore lower than thatachieved by TCP New Reno. In fact, with1 single CBR audio stream TCPWestwood utilizes 27.51% of the channelcapacity while New Reno achieves29.05%. With 5 CBR audio streams, thesevalues are respectively 33.23% and34.31%. In all cases the CBR utilization ofthe channel remains 1.14% for each flow.5

retransmissions is allowed. The same canbe said about losses in the second part ofthe graph, which happens when thecongestion window is not at the regularheight.As can be easily noticed, with TCPWestwood, the CBR traffic experiencesless delay on average. This is veryimportant for achieving a good quality invideo or audio stream, since if a packetarrives too late, it has to be consideredlost.5. Conclusions and future workConsidering now the case with the802.11bmaximumnumberofretransmissions set to two, we notice fromfig. 4.6 that the causes of the losses are notonly due to congestion but also to wirelessproblems.We have studied the problem of TCPand UDP flows over an 802.11b wirelesschannel, in the presence of link layerretransmissions, with a wide set ofsimulations. The simulations in particularlead to results that give us insight into theinteraction between the 802.11b MAClayer and different types of transportlayers.One of our goals is to evaluate theoptimal maximum number of localretransmissions. In our configuration,where an AP transmits with a signal of1mW toward a single mobile user placed10m far from it, we observed that morethan a single transmission is needed but, atthe same time, four retransmissions givesno particular advantage if compared tohaving three as the maximum value.However, only further analysis undervarious channel conditions, especiallywith higher errors, can really demonstrateif we really do not need fourretransmissions at the MAC layer, while,instead three will provide favorable resultsfor both TCP reliability and UDP timeconstraint needs. A maximum of tworetransmissions also behaves reasonably,but, similarly, may still require deeperanalysis to determine if it is more optimalthan three retransmissions especiallyfocusing on the jitter of the UDP flows.We have also observed performancedifferences between TCP Westwood andTCP New Reno. The latter appears toachieve higher throughput in the presenceof UDP streams, while not affecting theUDP losses. On the other hand, TCPWestwood leads to a significant drop indelays for UDP traffic, as compared toTCP New Reno.Fig. 4.6 – TCP New Reno and 1 UDPFig. 4.7 – TCP Westwood and 1 UDPThe same can be said when observingfig. 4.7 where the transport protocol forthe FTP flow is TCP Westwood and theCBR flow represents a video stream.Losses, when the congestion window is farfrom the line of bandwidth-delay productplus queue size, before time 50 seconds,are wireless losses which are notrecovered by the 802.11b ARQ schemewhen only a maximum of twoIn our simulations, we have also shownhow significantly TCP data flows aresensitivetoUDPflowswhen6

[5] C. E. Palazzi, “Protocolli diTrasporto in Ambiente Wireless”,Bachelor Degree Thesis, Universityof Bologna, July 2002, Cesena, Italy.[6] C.H. Nam, Soung C. Liew, C.P. Fu,“An Experimental Study of ARQProtocol in 802.11b Wireless LAN”,Subm. to IEEE VTC 2003.[7] G. Xylomenos and G. C. Polyzos,“TCP and UDP Performance over aWireless LAN”, Proc. of IEEEINFOCOM ’99.[8] P. Sinha, N. Venkitaraman, R.Sivakumar, V. Bharghavan, "WTCP:A Reliable Transport Protocol forWireless Wide-Area Networks",ACM Mobicom '99, August 1999.[9] K. Fall, S, Floyd, “Simulation-basedComparisons of Tahoe, Reno, andSackTCP”,ACMComputerCommunication Review, July 1996.[10] S. Floyd, T. Henderson, “TheNewReno Modification to TCP’sFast Recovery Algorithm”, IETFRFC 2582, April 1999.[11] rkeley.edu/ widmer/mnav/ns-extension/[13] G. Huston, “The future for TCP”, TheInternet Protocol Journal, vol. 3, n.3, September 2000.[14] G. Huston, “TCP in a WirelessWorld”, IEEE Internet Computing,pp. 82 – 84, March – April 2001.[15] S.Biaz,N.H.Vaidya,“Discriminating Congestion Lossesfrom Wireless Losses using InterArrival Times at the Receiver”, Proc.IEEE Symposium ASSET ’99, Dallas,Texas, USA, March 1999.[16] V. Tsaoussidis, H. Badr, "TCPProbing: Towards an Error ControlSchema with Energy and ThroughputPerformance Gains", The 8th IEEEConference on Network Protocols,November 2000.transmissions are directed toward a mobilenode, through the little 50 packet sizedqueue of the 802.11b protocol. Even asingle UDP audio flow can, with itsconstant sending rate, considerably reducethe TCP maximum congestion windowachieved, even though the actualbandwidth usage remains small.In future, we would like to simulate thecase with several TCP flows, also utilizingTCP Westwood and TCP New Reno at thesame time for investigate both theirefficiencyandtheirfriendliness.Moreover, it would be interesting toobserve what happens if we modify thequeue size at the AP or the conditions ofthe wireless link. Finally, it is fundamentalto keep into consideration both reliabilityfor TCP traffic and delays for UDP trafficto find a trade off in the number ofmaximum retransmission at the MAClayer. It seems from these previous resultsthat the optimal value could be two orthree, however less than the currently usedfour. This can be proven only with furthermore comprehensive simulations thatbetter represent the whole spectrum ofpossible real cases or better, directly, withreal experiments.6. References[1] S. Mascolo, C. Casetti, M. Gerla, M.Y. Sanadidi, R. Wang, "TCPWestwood: Bandwidth Estimation forEnhanced Transport over WirelessLinks", MOBICOM 2001, July 2001.[2] R. Wang, M. Valla, M.Y. Sanadidi,and M. Gerla, "Adaptive BandwidthShare Estimation in TCP Westwood",Globecom 2002.[3] “IEEE standard for Wireless LANMedium Access Control (MAC) 11:1999(E), August 1999[4] H.Balakrishnan,V.N.Padmanabhan, S. Sehan, and R. H.Katz, "A comparison of mechanismfor improving TCP performance overwireless links", IEEE/ACM Trans.Networking, vol. 5, no. 6, pp. 756 769, december 1997.[17] V. Ghini, G. Pau, M. Roccetti, P.Salomoni, M. Gerla, "For Here orTo Go? Downloading Music onthe Move with an Ultra ReliableWireless Internet Application",IEEE ICC’2004, Paris, 2004.7

Claudio E. Palazzi - cpalazzi@cs.ucla.edu Computer Science Department, University of California Los Angeles Boelter Hall, Los Angeles CA, 90095 USA Dipartimento di Scienze dell'Informazione, Università di Bologna Via Mura Anteo Zamboni 7, 40127 Bologna, Italy Abstract