Você está na página 1de 4

Experimental Performance of the Handover Procedure in a WiFi Network

Roberto Corvaja Andrea Zanella Michele Dossi Adolfo Tontoli Paolo Zennaro
University of Padova Department of Information Engineering via G. Gradenigo 6/B 35131 PADOVA (Italy) e-mail: corvaja, zanella, mic78, tontoli, farstar @dei.unipd.it Tel. +39 049 827 7676 Fax +39 049 827 7699

Abstract An experimental evaluation of the handover performance in a 802.11b (WiFi) network has been obtained in terms of available bandwidth and handover latency. The network consists of two access points connected to a wired LAN and a measurement setup composed by laptop PCs, equipped with WiFi cards, on which a sniffer is used to capture all the packets transmitted on the radio link. Applications considered are streaming and ftp-like applications. The analysis of the handover delay is performed, showing the dependence on the network conguration parameters and results, both at the MAC and UDP/TCP layer are presented, to show how applications can suffer the handover latencies. It will be shown that these latencies can vary signicantly for the same conguration of mobile stations and APs and that the primary source of delay is the scan procedure used to discover the new access point. Keywords Wi-Fi, 802.11b, handover.

1) Discovery 2) Re-authentication A. Discovery Due to mobility, the signal to noise ratio perceived by a mobile terminal might degrade. When it drops below a threshold value, it triggers the station to start searching for another AP, in order to remain connected to the LAN, and initiates the handover procedure. The discovery of a new AP is performed by means of the scanning procedure, which consists in monitoring different channels for beacon signals periodically transmitted by APs. The IEEE 802.11 standard denes two methods for scanning: Passive scanning: the station sets its frequency to a channel and listens to beacons from access points that use that channel. Active scanning: the station issues a so-called Probe Request, on which a Probe Response is expected within a given time frame. Most of the 802.11 systems implement active scanning as it is found to be faster and more efcient. Performing a series of scans on different channels is called a sweep. To conduct a sweep, the station maintains a channel list. There are two kinds of sweep: Full Sweep: all channels in the channel-list are scanned Short Sweep: only a subset of the channel-list is scanned to speed up the roaming process. The subset of the channel-list is dynamically created, and contains channels that have been found to be active during previous scans or where activity is most likely to occur, on the basis of interference criteria. B. Re-authentication The station attempts to re-authenticate to an AP according to the priority list. The re-authentication process typically involves an authentication and a re-association to a new AP. The reauthentication phase involves the transfer of credentials and other state information from the old AP. IAPP is a protocol which achieves this task, but also proprietary protocols could be used. III. P HYSICAL LAYER PARAMETERS IN THE HANDOVER
PROCEDURE

I. I NTRODUCTION The wireless LAN standard 802.11b, known also as WiFi, is experiencing a great development [1], [2] and many networks are being installed in campuses, airports, stations, etc. In fact, WiFi can provide a wideband wireless access to the Internet by means of the so-called hot-spots. The IEEE 802.11b specications dene two operating modes, namely ad hoc and infrastructure mode. In the ad hoc mode, two or more stations can recognize each other, establishing a peer-to-peer communication without the need of an access point (AP), while in the infrastructure mode all the mobile stations are associated to an AP that bridges all the trafc. The AP and the associated mobile stations form a Basic Service Set (BSS), which roughly corresponds to a cell in a cellular network environment. The connection of more APs can extend a BSS into an Extended Service Set (ESS) [3]. Generally the WiFi scenario envisages nomadic stations, moving at pedestrian speed. Hence, a major objective is to provide a seamless handover procedure between different BSS [4][6]. II. H ANDOVER A Handover occurs when a mobile station moves out from the radio coverage of an AP, entering a new BSS. During the handover, management frames are exchanged between the mobile station and the AP. During this period the mobile station is not able to send or receive any data trafc. The handover procedure refers to the sequence of actions and messages exchanged by access points and a mobile station, resulting in the transfer of a connection from the origin-AP to the destination-AP. The state information transferred typically consists of the client identication and credentials, which allow the mobile terminal to gain network access and accounting information from the new AP. In a 802.11 network, this transfer can be achieved by an Inter Access Point Protocol (IAPP), or by a proprietary protocol. The complete handover process can be divided into two different logical steps:
This work was supported by MIUR within the framework of the PRIMO project FIRB RBNE018RFY (http://primo.ismb.it/rb/index.jsp).

The basic measure that determines a roaming station to switch from one AP to another is the SNR value obtained from the beacon signals. Beacons are issued by all APs at a rate of 10 beacons per second. As soon as the value of the SNR drops below the socalled Cell Search Threshold, the scanning procedure is initiated. The SNR values obtained from each channel are compared with that measured on the active connection: re-authentication and reassociation process is initiated when the difference between the two values exceeds a threshold SNR. The roaming station will remain in the cell search state until the SNR has passed the Cell Search Threshold again.

Proceedings of WPMC04, 12-15 sept. 2004 Abano Terme (Padova), Italy

A. Handover latency

where denotes the distance, expressed in meters, and the attenuation coefcient has been estimated to be . From this model we can estimate the handover time as a function of the main parameters and of the speed of the mobile terminal. Let us consider a model where the mobile terminal (MT) is moving denote the distances from AP1 the from AP1 to AP2 and let separation between the APs.and the distance from AP1 where the cell search procedure is initiated, as depicted in Fig. 1. Then
SNR from AP1 SNR from AP2

SNR th SNR
3m

AP1 dth

d1 MT

AP2
6m

Fig. 1. Illustration of the physical parameters involved in the handover procedure.


AP1

the duration of the handover procedure, considering only the power level, is given by

The rst condition represents the possibility to connect to AP2 and the second represents the actual decision to change AP, on the basis of a better link quality. The value of the Cell Search Threshold for the wireless cards has been estimated equal to 10 dB, 23 dB, and 26 dB, depending on the setting of the parameter sensitivity to 1, 2, and 3, respectively. Assuming a constant noise level of -95 dBm, the handover time increases linearly with after a threshold value, as shown in Fig. 2 for a mobile speed m/s, a transmitted power dBm, and SNR 6 dB. Note that the actual latency is in general dependent also on the scanning strategy used, in particular when the overlapping between the coverage areas of the APs is wide. In this case, in fact, as soon as the cell search begins, the beacon level from the new AP is high enough to satisfy the conditions on the SNR. IV. E XPERIMENTAL S ETUP The 802.11 network consists of two access points (AP) located into an ofce environment as outlined in the map of Fig. 3. Two scenarios for the location of the APs are considered: in a rst scenario the APs are located at the limits of each other coverage, while the second location is chosen to have a sufcient overlapping of the coverage areas, to reduce the handover latency. The position of AP1 is left unchanged, while the position of AP2 is denoted in Fig. 3 by AP2 and AP2 for the rst and the second case considered, respectively. The APs are congured as root, that is, each AP is connected to a wired network and provides wired network.access to the mobile

Proceedings of WPMC04, 12-15 sept. 2004 Abano Terme (Padova), Italy

`` `` ``

WY f e c a W U XU `U # gd bXDVTS!  8 R E 7 6 QP

4u w yx

I 6

where the distance satisfy

from AP1, considered as the origin AP, must (3)


Fig. 3. Map of the second oor where the WLAN is installed and location of the APs.

From measurements we have found that the power loss the wireless link obeys a log-distance model of the form

along (1)

43 2

0 ( % #     1)' &$"!  5 5 87 E 6 HG2FD 87 6 $ B @ CA9

r si

Fig. 2. Handover delay as a function of the distance between the APs, for the values of sensitivity 1, 2, 3.

AP2

(2)
AP2

terminals. We used two APs Compaq WL410 11 Mbps Wi-Fi, 10Base-T and PCMCIA interfaces. The APs are controlled via a web-based network management software (AP Manager) to set their parameters. A proprietary inter-access point communications between APs is implemented. Therefore, no control is applied on the authentication phase. The measurement setup consists of a sniffer (Ethereal) installed on a laptop, able to capture and display packets from any interface, or display packets captured under a number of other capture programs (i.e. tcpdump), save captures to a number of formats, lter packets on many criteria and search for packets using lters and examine packets. all the packets transmitted on the radio channel, so that power levels and delays can be estimated, moving together with another laptop, where the application is running, as depicted in Fig. 4. The mobile terminals are notebook PC,
Ethernet

8 p i 7 qh

u vt5

Hub

AP1

AP2

Sniffer

VLC Server

STA
(VLC Client)

Sniffer

Fig. 4.

Experimental setup.

namely an Acer TraqvelMate 527 TXV (CPU Pentium III 800 MHz, 128MB RAM, 256 MB cache, PCMCIA interface, OS Linux Red-Hat 9, Kernel 2.4.20-8) and a Dell Latitude (CPU Pentium IV 1700 MHz, 256 MB RAM, 256 KB cache, PCMCIA interface, OS Linux Red-Hat 7.3, Kernel 2.4.18-18.7.x), equipped with Compaq WL110 11 Mbps Wi-Fi PCMCIA cards realizing the radio interface according to the 802.11b standard. The application considered is a streaming using TCP or UDP at the transport level. The system parameters that can be set in the network are the receiver sensitivity, the so-called distance between APs and obviously the position of the APs. Note that the sensitivity affects only according the values already mentioned while SNR remains unchanged. The parameter distance between APs determines the rate at which the beacon signal is transmitted, thus giving different coverage areas for the reception of the beacon. Nevertheless, this parameter does not affect the value of . V. R ESULTS

vice-versa. The dotted line refers to the passage from AP2 to AP1 and the solid line to the passage from AP1 to AP2. The values range

Sensitivity 1

0.4

Relative Frequency

0.3

0.2

0.1

Relative frequency [%]

2 3 4 Time [s]

6
20

Fig. 5. 1.

Histogram of the handover time with distant APs and sensitivity

large, of the order of seconds, hence not compliant with delay sensitive applications. The mean value has been derived for the three possible values that can be taken by the parameter distance between APs, namely small, medium and large. The corresponding average delay is 2.76 s, 2.62 s and 2.53 s respectively, thus showing no effect of this parameter on the handover latency, as expected, since this parameters only impacts the correct reception of the beacon but has no action on the parameters that control the handover procedure. Setting the sensitivity to 2 or 3 would have given an even larger value of the handover latency, due to the fact that the scan would have been activated earlier and concluded at the same time. Also the actual effect of the handover on a downlink streaming transmission at the UDP and TCP level is evaluated, and the UDP and TCP average available bandwidth has been measured for uplink and downlink, considering a path along the corridor shown in the map of Fig. 3. The statistical distribution over 100 tests of the mean available bandwidth along the path is presented in Fig. 6 for UDP for the passage from AP1 and AP2 and

Fig. 7. Histogram of the handover delay with close APs and sensitivity 2.

What can be seen clearly from these results are values of delay which are order of magnitude smaller than those obtained in the rst scenario. To analyze the contributions of the different components on the overall delay, the delay of each phase is considered separately and presented in Fig. 8, where the histogram of the delay in the discovery phase is shown, and in Fig. 9, where the re-association delay is shown. It can be seen clearly that the variability is mainly due to the scan phase, while the re-association phase introduces a delay which

Proceedings of WPMC04, 12-15 sept. 2004 Abano Terme (Padova), Italy

In the rst conguration, the two APs are positioned at a relatively large distance, so that the handover delay includes also a certain amount of time needed to move from the area of one AP to the other and the latency can be rather large. Due to the large distance the value of sensitivity should be reduced to the minimum, thus triggering the scanning to perform the handover only when the mobile is rather far away from the origin access. In Fig. 5 the histogram of the handover latency is presented for this conguration. It can be seen that the delay values are quite

8 p i 7 qh

8 p i 7 qh

Fig. 6. Histogram of the average TCP throughput in a path including the handover.

from a minimum around 1 to a maximum of about 3.6 Mbit/s. Note that the asymmetry in the results obtained for the two directions AP1 AP2 and return can be ascribed to the scanning sequence used to measure the power associated to the beacons of the APs. In the passage from AP1 to AP2 the channels are close in the scanning sequence, while they are not when handover occurs in the in the reverse direction. Indeed, AP1 operates on channel 1 while AP2 on hannel 6 and the scanning sequence is 1, 9, 6, 10, 11. This effect can be reduced dynamically adapting the channel list with a Short Sweep. In the second conguration, the two APs are positioned close to each other with an overlapping region large enough to reduce the handover delay to a fast scan time. In this situation, in fact, it is very probable that the power received by the new AP on the transmission of the rst Probe Response is high enough to switch to the new AP. In this scenario, the handover delay is presented in Fig. 7 for a sensitivity 2.
30

Sensitivity 2
25

15

10

0 40

50

60

70

80

90 100 110 120 130 140 150 160 Handover delay [ms]

40

30
35
30
Relative frequency [%]

25
Relative frequency [%]
40

25
20
15
10
5
0 30

20

15

10

50

60

70

100 90 80 Probe delay [ms]

110

120

130

140

0 2

7 6 Lost packets

10

Fig. 8. Histogram of the delay in the discovery phase of the handover, with close APs and sensitivity 2.
35

Fig. 10. Histogram of the lost UDP packets, with close APs and sensitivity 2.
50
45
40
Relative Frequency [%]

30

Relative frequency [%]

25

35
30
25
20
15
10

20

15

10

5
5

25 20 15 10 Reassociation delay [ms]

30

35

40

10

30 20 Round Trip Time [ms]

40

50

Fig. 9. Histogram of the delay in the re-association phase of the handover, with close APs and sensitivity 2.

Fig. 11. Histogram of the maximum RTT with packet of 40 bytes, with close APs and sensitivity 2.

is almost constant. Fig. 10 shows the histogram of the number of UDP packets lost during the handover, considering a streaming at 2 Mbit/s. Note that a UDP packet is lost if the MAC layer, employing automatic retransmission request (ARQ), does not succeed to transmit correctly the packet for three times. A. Example of application: VoIP As an example of application, we can consider the effect of the handover on a Voice over IP (VoIP)-like connection. In this case, the Round Trip Time (RTT) plays a fundamental role, since the delay encountered by the packets along the link must lie within strict limits, both in terms of absolute delay and of jitter. In particular the absolute delay should be kept below 100 ms. We assume a source emitting packets of 40 bytes at the rate of one packet every 20 ms, corresponding to a constant bit-rate of 16 kbit/s suitable to support the coded voice. RTT is measured by means of the ping command in a series of experiments where the mobile terminal moves from one AP to the other, thus performing at least one handover in its path. The histogram of the maximum RTT is presented in Fig. 11. It can be seen that the values of RTT also in the presence of the handover are well below the maximum allowed for this kind of applications. Note that the mean RTT would be much smaller in the absence of handover, but the wireless link does not represent a bottle-neck so narrow to prevent this kind of applications.

VI. C ONCLUSIONS The performance of the handover procedure in a WiFi network has been investigated, relating the delay introduced by this procedure to the main network parameters and conguration. The handover latency can be ascribed primarily to the discovery phase in which the mobile terminal scans the set of RF channels and waits for the conditions on the power received from the APs to be satised. The delay, thus, can be reduced by a proper choice of the positions of the APs and a suitable denition of the sweep phase. It can be seen that the system can support applications rather sensitive to the delay and to its jitter, like VoIP or similar. R EFERENCES
[1] P. S. Henry, H. Luo, WiFi: Whats Next?, IEEE Comm. Magazine, Dec. 2002, pp. 6672. [2] W. Mohr, W. Konh user, Access Network Evolution Beyond a Third Generation Mobile Communications, IEEE Comm. Magazine, Dec. 2000, pp. 122133. [3] IEEE Std. 802.11b-1999, IEEE Standard for Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) Specication, 2000. . [4] A. Weyland, G. Stattenberger and T. Braun,. Mobile-Controlled Handover in Wireless LANs, Proc. of IEEE Workshop on Local and Metr. Area Networks (LANMAN 2002), pp. 119120, Stockholm, Sweden, Aug. 2002. [5] A. Weyland, G. Stattenberger and T. Braun, User-Controlled Handover in Wireless LANs, Proc. of IEEE Workshop on Appl. and Services in Wireless Netw (ASWN 2002), pp. 4549, Paris, France, July 2002. [6] A. Mishra, Min ho Shin and W. A. Arbaugh, An Empirical Analysis of the IEEE 802.11 MAC Layer Handoff Process, ACM SIGCOMM Computer Comm. Review (ACM CCR), Vol. 33, Issue 2, April 2003.

Proceedings of WPMC04, 12-15 sept. 2004 Abano Terme (Padova), Italy

Você também pode gostar