Full text
1 Optimization-Oriented RAW Modeling of IEEE 802.11ah Heterogeneous Networks Le Tian∗, Elena Lopez-Aguilera †, Eduard Garcia-Villegas †, Michael Mehari‡, Eli De Poorter‡, Steven Latr´ e∗, Jeroen Famaey∗ ∗University of Antwerp - imec, IDLab, Department of Mathematics and Computer Science, Belgium †Universitat Polit` ecnica de Catalunya, Department of Network Engineering, Barcelona, Spain †Ghent University - imec, IDLab, Department of Information Technology, Belgium Abstract—The new medium access method of IEEE 802.11ah, called Restricted Access Window (RAW), divides stations into different groups, and only allows stations in the same group to access the channel simultaneously, in order to reduce collisions and thus achieve better performance (e.g., throughput). However, the existing station grouping strategies only support homogeneous scenarios where all stations use the same modulation and coding scheme (MCS) and packet size. A surrogate model is an efficient mathematical model that represents the behavior of a complex system, trained with a limited set of labeled input-output data samples. In this paper, we present a surrogate model that can accurately predict RAW performance under a given Restricted Access Window (RAW) configuration in heterogeneous networks. Different from the homogeneous scenario, heterogeneous networks are defined by a large number of parameters, leading to an enormous design space, i.e., the order of 1017 possible data points. This is too big to achieve feasible training convergence. In this paper, we present a novel training methodology that leads to a new design space with highly reduced size, i.e., the order of 105data points. The surrogate model converges when less than 6000 labeled data points are used for training, which is only a tiny portion of the whole design space. The results show that, the relative error between model prediction and simulation results is less than 0.1 for 95% of the data points, in the areas of the design space studied. Its low complexity and high precision make the proposed model a valuable tool to develop real-time RAW optimization algorithms for heterogeneous IEEE 802.11ah networks. Index Terms—IEEE 802.11ah, RAW, surrogate model, heterogeneous networks. I. INTRODUCTION The new Wi-Fi standard IEEE 802.11ah [1], targeting large scale and low-power Internet of Things (IoT) network scenarios, proposes a novel station-grouping based medium access method, referred to as Restricted Access Window (RAW). In particular, stations are divided into groups, and a group of stations are only allowed to access the channel during a specific time slot, in order to reduce contention and collisions in highly dense deployments. It is a flexible hybrid channel access method, allowing up to 8192 stations connected to a single Access Point (AP), highly suitable to provide scalable connectivity to both sparsely and densely deployed low-power devices. Copyright (c) 20xx IEEE. Personal use of this material is permitted. However, permission to use this material for any other purposes must be obtained from the IEEE by sending a request to [email protected]. Figure 1 schematically depicts how RAW works. Specifically, the airtime is split into intervals, some of which are assigned to RAW groups, while others are considered as shared channel airtime and can be accessed by all stations. A beacon frame is transmitted periodically, carrying a RAW Parameter Set (RPS) information element. The RPS specifies the stations that belong to each RAW group, as well as the interval start time. Moreover, each RAW interval consists of one or more slots, over which the stations in the RAW group are split evenly using round robin assignment. Therefore, the RAW related parameters include the number of stations assigned to each RAW group, number of RAW groups, duration of each RAW group, and number of slots in each RAW group. RAW$A RAW$B RAW$C RAW$D slot 0 slot$1 slot$islot$NRAW-1 …… station X assigned to assigned to beacon carrying RPS beacon carrying RPS Fig. 1: Schematic representation of the RAW mechanism. An extensive evaluation on RAW has been conducted in [2], the results therein demonstrate that, with appropriate RAW configuration, the RAW mechanism can provide substantial performance improvement (e.g., throughput, energy consumption) over the legacy channel access method Enhanced Distributed Channel Access and Distributed Coordination Function (EDCA/DCF), particularly for highly-loaded dense network scenarios. On the contrary, the incorrect RAW configuration severely deteriorates performance. Moreover, it reveals the optimal RAW parameters are affected by a variety of network-related parameters, e.g., the number of stations, traffic patterns, and network load. Therefore, in order to optimally configure RAW, a model is needed, capable of predicting the performance for the given RAW parameter values and network conditions. Concretely, the model takes network conditions and a RAW configuration as input, and predicts one or more performance metrics (e.g., throughput or energy consumption) as output. Although several RAW models have been proposed in literature [3], [4], [5], [6], [7], [8], they are either too computationally hard to be used in real-time,
2 or rely on certain simplifications (e.g., no capture effect, no communication errors, homogeneous stations, saturated traffic, etc.). Such simplifications limit the usage of the RAW models, making it difficult to apply them to realistic IoT networks. In this paper, we present a surrogate model for RAW performance in realistic IoT scenarios. The model is trained using realistic simulation results (with capture effect enabled and the presence of communication errors). It can accurately predict the performance under a given RAW configuration in IEEE 802.11ah heterogeneous networks, in which stations are allowed to use different packet sizes based on the application requirements and MCSs based on their distance to the AP. To build such a model, based on our knowledge on IEEE 802.11ah and surrogate modeling, a novel training methodology is proposed, including each aspect of the modeling process, i.e., the design of input and output parameters, initial design points selection, surrogate model creation, sampling strategies and stopping criteria. Among them, the design of input and output parameters is most challenging and critical. The heterogeneity of the network and the RAW configuration is represented by many input variables, leading to a design space that is too huge to train. However, our proposed method significantly reduces the design space, allowing the model to be accurately trained with very few labeled sample data points. Moreover, once trained, evaluating the model is equivalent to a constanttime table lookup, which can be easily executed in real-time. To the best of our knowledge, this is the first RAW model that supports heterogeneous stations in terms of different modulation and coding schemes (MCSs) and packet sizes. The built model can be used as an input for real-time optimization algorithms such as [9], [10], [11], [12] to get optimal RAW configurations for IEEE 802.11ah heterogeneous networks, achieving highest performance. The remainder of this paper is structured as follows. Section II describes the IEEE 802.11ah and its RAW feature, surveys the related work on RAW performance modeling and compares it to our contribution. The training methodology of RAW surrogate model is described in Section III. Section IV evaluates the performance of our presented model. Finally, Section V offers conclusions and a short overview of future work. II. BACKGROUND A. IEEE 802.11 ah networks and RAW In this section, we provide an overview of RAW, the IEEE 802.11ah standard and its new PHY and MAC layer characteristics. IEEE 802.11ah mainly targets IoT network scenarios, where sensors (stations) are placed around the AP, periodically monitor the environment and send the resulting data to a server (via the AP). At the PHY layer, IEEE 802.11ah supports multiple transmission data rates represented by the MCSs. The stations are allowed to dynamically choose the MCS in order to adapt to the conditions of the wireless channel. As listed in Table I, the supported MCSs depends on the channel width. For channel bandwidth of 1 MHz, MCS 0 to 10 are supported with transmission data rates ranging from 150 Kbps TABLE I: 802.11ah MCSs for 1, 2 MHz, NSS=1, GI=8µs. MCS Index Modulation Coding rate Data rate (Kbps) 1 MHz 2 MHz 0 BPSK 1/2 300 650 1 QPSK 1/2 600 1300 2 QPSK 3/4 900 1950 3 16-QAM 1/2 1200 2600 4 16-QAM 3/4 1800 3900 5 64-QAM 2/3 2400 5200 6 64-QAM 3/4 2700 5850 7 64-QAM 5/6 3000 6500 8 256-QAM 3/4 3600 7800 9 256-QAM 5/6 4000 Not valid 10 BPSK 1/2 with 2x 150 Not valid repetition to 4 Mbps, and for 2 MHz, MCS 0 to 9 are supported with transmission data rates ranging from 650 Kbps to 7.8 Mbps. Besides, IEEE 802.11ah also supports channel bandwidth 4, 8 and 16 MHz, more details can be found in [1]. At the start of every beacon interval, the AP broadcasts a beacon frame carrying an RPS information element specifying the RAW parameter configurations. Stations retrieve such RAW information from the beacon frame and access the channel only during their assigned RAW slot. The RAW information carried in the RPS element specifies the stations belonging to the group, the number of slots, slot format and slot duration count sub-fields, which jointly determine the RAW slot duration (D) as follows [1]: D= 500 µs +C×120 µs (1) where Crepresents the slot duration count sub-field, which is either y= 11 or y= 8 bits long if the slot format sub-field is set to 1or 0, respectively. The number of slots field is 14 −y bits long. For y= 11, each RAW consists of at most 8 slots and the maximum value of Cis 211 −1 = 2047. In this case the slot duration is up to 246.14 ms. Otherwise, each RAW consists of at most 64 slots and the maximum value of Cis 28−1 = 255, the slot duration is thus limited to 31.1ms. The RAW group duration is the sum of its corresponding slot durations. For a more in-depth description, the reader is referred to existing literature [1], [13], [14]. The RPS also contains the cross slot boundary (CSB) field. Stations are allowed to continue ongoing transmissions after the end of the current RAW slot when CSB is set to true. Otherwise, stations should not start a transmission if the remaining time in the current RAW slot is not enough to complete it. B. Surrogate modeling A surrogate model [15] is an efficient mathematical model that represents the behavior of a complex system such as a circuit, a flight motion or, in this case, a wireless network. A surrogate model is trained at design time, using a limited number of labeled input-output sample data points obtained through simulation (e.g., ns-3) or real-life experiments. As illustrated in Figure 2, surrogate modeling mainly involves four parts:
3 Initial Design select initial design points (e.g., LHD) (a, b, c): d initial model creation (e.g., Kriging) data point performance results Sampling Strategy select next data point to evaluate Exploration (e.g., FLOLA- Voronoi) Exploitation (e.g., POI) no start Model Creation update the model using the new data point (e.g., Kriging, SVM. ANN) initial model new data point data point performance result Surrogate Model yes updated model stopping criteria? (e.g., RRSE, APF) System Simulation or Experimentation Wireless testbed Fig. 2: Surrogate (RAW) modeling using the ns-3 simulator. •Initial design: Select initial data points as a first simple design space representation, then build an initial model with the selected initial design points by applying supervised machine learning and regression methods. •Sampling strategy: Select a few new sample data points to improve the model if the model’s accuracy is not satisfactory. •Model creation: Building an intermediary model together with the existing and newly selected data points. •Stopping criteria: Define the stopping criteria, stop the training process once the stopping criteria are satisfied, otherwise, select the new sample data points and update the model. Surrogate modeling is especially suitable for tasks with a large input space, as an accurate model can be trained based on relatively few input data points. Previous work, such as [16], [17], [18] has proven that surrogate modeling is quite suitable for solving the modeling problem of wireless network. In this paper, we use the RAW configurations and network conditions as input, and the obtained performance metric (e.g., throughput) associated with the input values as output, to build a performance model for IEEE 802.11ah RAW. C. Related work on IEEE 802.11ah RAW As the IEEE 802.11ah standard does not specify how to configure the actual RAW grouping parameters, several studies have been conducted on RAW performance evaluation, modeling and optimization. Raeesi et al. evaluated RAW performance using OMNeT++, the results demonstrate that the RAW feature provides substantial performance improvements (e.g., throughput, energy consumption), particularly in scenarios where there are high number of collisions in a heavily loaded network [4]. Using an IEEE 802.11ah implementation in ns- 3 [19], we further evaluated the optimal RAW configuration under a variety of network conditions, such as traffic load, number of stations, and traffic distribution [2]. These works highlight the impact of network conditions on the optimal RAW configuration, and demonstrate there is a need for realtime RAW optimization under dynamic network conditions. To accomplish such an optimization algorithm, a RAW performance model is required. The model is expected to be able to predict performance for the given RAW parameter values (e.g., number of groups and slots, group duration, station assignment) and current network conditions (e.g., network topology, traffic load, station number). Several mathematical RAW models have been proposed to calculate performance under specific network and traffic conditions. These models make use of different techniques, such as probability theory [3], Markov chains [4], [5], [6], [7], [8], and maximum likelihood estimation [8]. Some models assume stations have infinite packets to send (i.e., saturated model) [4], [6], [8], [7]. The works of [4], [6], [8] are based on the Bianchi model [20], which is a classical mathematical model of the legacy IEEE 802.11 networks. It utilizes the Markov chain theory, assumes the network is always in the steady state and saturated mode. Raeesi et al. updated Bianchi’s model to calculate the probability of collisions inside a RAW slot without taking into account the finite length of the RAW slot [4]. Zheng et al. extended Bianchi’s model to support RAW considering both cross and non-cross slot boundary traffic, allowing to calculate the throughput with any given number of stations and RAW duration [6]. Park et al. adopted the Bianchi model for the joint usage of the PS-Poll and RAW mechanisms, and determined the duration of RAW groups in order to achieve the maximal successful transmission probability [8]. A more accurate mathematical model was recently developed by Lyakhov et al. [7], by taking into account the non-steady state of the backoff function at the beginning of the RAW. Wang et al. [3] and Khorov et al. [5], proposed an unsaturated model for low power IoT, assuming each station sends one packet per RAW slot interval. By taking into account the reset of the backoff state at the beginning of the RAW slot, Khorov et al. presented a model to calculate the successful packet transmission probability for a certain RAW group duration [5], while Wang’s model mainly focuses on energy consumption [3]. The above mathematical models have two main disadvantages. First of all, some of them are computationally hard. This makes it infeasible to execute them in real-time on actual AP hardware, where at most a few milliseconds are available at the start of the beacon interval to calculate a new RAW configuration. More importantly, they all assume certain types of traffic and ideal channel conditions, without communication
4 errors, delays or capture effects. The combination of these factors make such models useful only from a theoretical point of view, to analyze the effectiveness of RAW under a variety of conditions. However, their utility is limited for real-time station grouping under dynamic and realistic traffic conditions. Chang et al. went a step further to support more diverse traffic demands [21]. They used the results of two extreme cases (i.e., with infinite traffic and with only a single packet) to extrapolate a regression-based analytical model that can accurately fit the contention success probability of any traffic patterns. However, the model does not take the finite length of the RAW slot into account. Recently, we proposed a new RAW performance model based on supervised surrogate modeling [11], [12]. The model is trained on a limited set of labeled data samples from ns-3 simulation results, supports realistic channel conditions, including communication errors, propagation delays and capture effects. However, the model only supports homogeneous networks, i.e., all stations in the same network use the same MCS and packet size. In this paper, we present a novel training methodology for surrogate modeling of IEEE 802.11ah heterogeneous networks, in which stations can have different MCSs and packet sizes based on the services they are targeting. It uses average transmission time (i.e., the total packet transmission time of a heterogeneous network averaged over all the packets sent) as an input parameter of the surrogate model, and packet receiving rate (i.e., number of packets received per second) as the output parameter. This results in a highly reduced design space, allowing the model to be accurately trained with only a few labelled sample data points. III. SURROGATE MODEL OF IEEE 802.11AH RAW This section first describes IEEE 802.11ah heterogeneous networks used for training. Subsequently, the input and output parameters of the surrogate RAW model are designed, and training steps for the IEEE 802.11ah heterogeneous networks are described. A. Training scenarios For the training, we use the common parameter settings, as shown in Table II. Given the low-power nature of battery powered sensors, the PHY layer parameters are configured based on the low-power IEEE 802.11ah radio hardware prototype developed by Ba et al. [22], with a transmission power of 0 dBm, a gain of 0 dB (for both station and AP), and noise figure of 6.8 dB. With such common PHY settings, the coverage of the network is up to 500 meters based on the physical layer performance evaluation in [23]. As IoT applications use a relatively small payload size, packet size is assumed to be between 32 and 512 bytes. For each evaluated network, we assume a coverage range to be [d−, d+]⊆[0,500] meters and a packet size range to be [ps−, ps+]⊆[32,512] bytes. Each station srandomly and uniformly chooses a value ds∈[d−, d+]as its distance to the AP, and an integer value pss∈[ps−, ps+]as its packet size. The station suses the corresponding MCS for packet transmission according to the rate control method. Several rate control methods have been TABLE II: Simulation parameters used during training PHY parameters Value TX power 0 dBm TX/RX gain 0 dB Noise Figure 6.8 dB Propagation model macro [23] Error rate model YansErrorRate MAC parameters Value Traffic access categories AC BE Beacon interval 204.8 ms Size of transmission queue 10 packets Packet transmission interval 1 s Station distribution Random 0 200 400 600 800 Distance (m) 0 1 2 3 4 5 6 7 8 9 MCS Fig. 3: MCS as a function of the distance between a station and AP for 1 MHz bandwidth. proposed and used on real devices for legacy IEEE 802.11 to select the appropriate MCS for packet transmission, for example, Arf [24], Aarf [25], Onoe [26] and Minstrel [27]. In this paper, we aim to model instantaneous throughput of a single RAW group (i.e., one beacon interval at most), MCS changes at such a short time interval are not expected. As such, we allow the stations to select the MCS solely based on their distance dsfrom the AP, i.e., choosing the MCS which can stably achieve the maximal throughput at a certain distance, as shown in Figure 3. For training simplicity, we assume each station sends one packet per second and a small buffer size of 10 packets is used. The built model can be further used by the RAW optimization algorithms, such as TAROA [9], [10] and MoROA [11], [12], to calculate RAW performance under arbitrary data transmission intervals. B. Parameter design for surrogate RAW modeling The goal is to build a surrogate model with a limited number of sample input-output data points, which can accurately predict the performance of a heterogeneous IEEE 802.11ah network for a given RAW configuration and network condition. Therefore, a set of parameters should be defined to represent the network conditions and RAW configurations. Moreover, the input parameter space needs to be defined, which consists of the minimum and maximum value of each parameter, as well as a step size. The size of the input parameter space represents the number of data points of the surrogate model.
5 TABLE III: Definition of the input parameter space. Parameter Description Min Step Max nrNumber of stations 60 5 400 dr(µs) Duration of RAW group 40960 5120 204800 sr?Number of RAW slots 1 5 50 ˆ tp(µs) Average transmission time 1000 250 5000 ?The values of sris 1, 5 and all multiples of 5 until 50. Therefore, the surrogate model of IEEE 802.11ah RAW can be generalized as follows: o=F(Ir, In)(2) where Irrepresents a set of RAW-related input parameters, Inis a set of network-related input parameters, and the performance metric is represented by o. The parameter o should be able to represent the performance metrics (e.g., throughput, energy consumption or latency) with the given input parameters. To simplify the explanation, we focus on throughput as the output metric, but a similar method can be used to train a model for energy consumption or latency. The size of the design space is defined as follows: C=cr×cn=Y ir∈Ir |ir| × Y in∈In |in|(3) where |i|represents the total number of possible values of input variable i,crand cnrepresent the total number of values that can be taken by RAW-related parameters Irand network-related parameters In, respectively. Among the data points inside the design space, a few of them are selected as sample data points to train the surrogate model, in order to accurately predict the output of the other data points. Therefore, the parameters and their step sizes should be well chosen, leveraging the trade-off between accuracy and training speed. On the one hand, a small number of parameters and large step sizes lead to a small design space, which needs less training time but at the cost of losing certain accuracy. On the other hand, a large number of parameters and small step size result in a large design space, which can more accurately characterize the system but needs more training time. 1) RAW parameters Irdesign As mentioned in Section II-A, the related parameters of a RAW group rare: number of stations assigned to the RAW groups nr, duration of the RAW group dr, and number of slots in the RAW group sr. In our previous work [11], we selected the appropriate range and step size for each RAW parameter, which leads to high model accuracy and only a limited number of training data points. Therefore, in this paper, we use the same RAW parameter values, as listed in Table III. This highly reduces the design space size of RAW-related parameters from cr= 2.3×107to ˜cr= 25047. It should be noted that, as the minimal value of sris 1 according to the IEEE 802.11ah specification, we use step size of 4 for sr= 1 and the next value (i.e., sr= 5), and step size of 5 for other srvalues. For more details, the readers are referred to our previous work [11]. 0 2000 4000 6000 8000 10000 12000 14000 16000 Average transmission time (us) 0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 Frequency Fig. 4: Distribution of average transmission time of IEEE 802.11ah networks supporting different coverage and packet size ranges in the described scenario. 2) Network condition parameter Indesign As in the IEEE 802.11ah network environment, the common settings for an IoT scenario are represented by the parameters listed in Table II, the remaining variables are the packet size range [ps−, ps+]and coverage range [d−, d+](determining the MCS), which leads to a variety of heterogeneous networks. In a naive approach, one would use parameters {ps−, ps+, d−, d+}as the network-related input parameters In, representing the networks conditions. However, this would result in a huge input design space, significantly increasing the required training data points, and therefore slowing down the training speed. According to the training scenarios, d−and d+ are between 0 and 500 meters with d−≤d+,ps−and ps+ are between 32 and 512 bytes with ps−≤ps+. With step size 1, the coverage range results in cddifferent combinations: cd= 512 X d−=0 d− (4) The parameter d− represents the number of possible combinations caused by d−and equals to (512 −d−+ 1), leading to cd= 125751 combinations. Similarly, the packet size range results in cps = 115921 combinations. In total, the coverage range and packet size range results in cn= cd×cps = 1.4×1010 combinations considering different network condition parameters. Therefore, the total number of data points of the input space is C=cr×cn= 3.2×1017. With a large step size, for instance, 100 for the coverage and 120 for the packet size, the input space still has 7.2×109 data points. Both cases result in a design space that is too big to achieve feasible convergence. Therefore, as MCS and packet size jointly determine the transmission time of a packet, we use average packet transmission time Txof all stations as the input parameter Inrepresenting network conditions, leveraging the trade-off between accuracy and training speed. We define average transmission time Tx, as the average airtime per packet transmission in the network. The remainder of this section elaborates the highly reduced input design space, including the distribution of average transmission time Tx among different IEEE 802.11ah network scenarios, and its minimum, maximum and step values. Section III-D provides a detailed discussion on the accuracy of the model.
6 0 100 200 300 400 Packet receiving rate 0 0.2 0.4 0.6 0.8 1 1.2 1.4 1.6 1.8 Average CV of packet receiving rate Tx 1000 7s Tx 2000 7s Tx 3000 7s Tx 4000 7s Tx 5000 7s (a) All data points 50 100 150 200 250 300 350 400 Packet receiving rate 0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 Average CV of packet receiving rate Tx 1000 7s Tx 2000 7s Tx 3000 7s Tx 4000 7s Tx 5000 7s (b) Data points with packet receiving rate larger than 60 and Packet Delivery Ratio (PDR) larger than 0.8 Fig. 5: Average CV of packet receiving rate as a function of packet receiving rate for different average transmission time. Figure 4 depicts the distribution of average transmission time Txfor the training scenarios. The figure is derived from the simulation results of a broad range of networks which have different coverage and packet size ranges. The d−and d+parameters are selected from [min:step:max]=[0:10:500] meters, and the ps−and ps+belong to [min:step:max]=[32:32:512] bytes. Therefore, the combination of coverage and packet size range leads to 180336 different IEEE 802.11ah networks. We calculate the average packet transmission time across all stations in each network, and count how many times a certain average transmission time occurs among the 180336 simulated scenarios. The results in Figure 4 show that the average transmission time in the range of [1200 1500] µs is the most frequent (13.7%, 24660 times), and the average transmission time is mainly between 1000 and 5000 µs (around 90% of all experiments). Therefore, when average transmission time is considered as an input parameter of the model, 1000 and 5000 µs can be used as its minimum and maximum values for the training. A step size of 250 µs is found a good choice to leverage the trade-off between accuracy and training speed, leading to ˜cn= 17 different values for average transmission time. Therefore, the utilization of average transmission time results in a design space with only ˜ C= ˜crטcn= 425799 data points, from which samples are drawn during the training. It is only about one out of 7.5×1011 possible data points, compared to the design space of size C= 3.2×1017, where d−,d+,ps−and ps+are used as input parameters to represent the network. 3) Output parameter design As an average transmission time can consist of a variety of packet size ranges that can affect the throughput, the packet receiving rate (i.e., number of received packets per second at the AP) is used as the metric of performance. The throughput can be subsequently calculated considering the average packet size for a specific network scenario. Therefore, the surrogate model described in Eq 2 can be concretely represented as a function F: pr=F(nr, dr, sr, Tx)(5) where prrepresents the packet receiving rate. It aims to predict the performance of a heterogeneous IEEE 802.11ah network with average packet transmission time Tx, for a given RAW group rwith duration dr, consisting of srslots, and with nr stations assigned to it. The definition and evaluated ranges of the input parameters are listed in Table III. C. Network condition parameter analysis In this section, we demonstrate that the average transmission time Txis an appropriate input parameter for the model, as it can accurately represent the network conditions for the optimization purpose with highly reduced design space size. As the size of the design space has been discussed in Section III-B2, this section focuses on the accurate representativeness. The accurate representativeness is used to show that, although the same average transmission time Txcan be produced in very different networks (i.e., having different MCS and packet size distributions), they show similar behavior in terms of packet receiving rate pr, allowing to accurately predict one from the other. In this section, the Coefficient of Variation (CV) of the packet receiving rate pris used as the criterion to evaluate the representativeness of Tx. The CV, also known as relative standard deviation, is a measure of variation or dispersion of a set of data values. It is defined as follows: CV =σ µ(6) where σis the standard deviation of a series of values, and µ is the average value. The variance is evaluated under different packet receiving rates prand RAW slot load ratios Lr. The RAW slot load ratio Lris defined as the ratio between the required transmission time of the packets that are allowed to be transmitted in a RAW group, and the duration of the RAW group. We define it as follows: Lr=(Tx+TSIF S +TACK )×nr dr× Ts .(7) where Tsrepresents the packet sending interval of a station. TSIF S and TACK are the amount of time required
7 0.4 0.6 0.8 1 1.2 1.4 1.6 RAW slot load 0 0.2 0.4 0.6 0.8 1 1.2 1.4 Average CV of packet receiving rate Tx 1000 Tx 2000 Tx 3000 Tx 4000 Tx 5000 (a) All data points 0.4 0.5 0.6 0.7 0.8 0.9 1 RAW slot load 0 0.02 0.04 0.06 0.08 0.1 0.12 0.14 Average CV of packet receiving rate Tx 1000 Tx 2000 Tx 3000 Tx 4000 Tx 5000 (b) Data points with packet receiving rate larger than 60 and PDR larger than 0.8 Fig. 6: Average CV of packet receiving rate as a function of RAW slot load rate for different average transmission time. for transmitting SIFS and ACK frame, respectively. For IEEE 802.11ah, TSIF S is 160 µs, and TACK is 1000 µs for 1 MHz bandwidth. A large value of Lrmeans a high input traffic load, and vice versa. The network is considered overloaded when the slot load ratio Lris larger than 1. For the evaluation, 500 design points for each average transmission time Tx(i.e., 1000, 2000, 3000, 4000 and 5000 µs) are randomly selected, consisting of 5 different RAW slot load ratios Lr(i.e., 0.4, 0.6, 0.8, 1.0, 1.6). Each data point has four input parameters, i.e., number of stations nr, number of slots sr, RAW duration dr, and average transmission time Tx. The simulation runs 10 times for each data point. During each simulation, the simulator randomly selects a different coverage and packet size range combination satisfying the required average transmission time. After all simulations, the CV of each data point’s output (i.e., packet receiving rate) is calculated as depicted in Eq 6. Subsequently, for each average transmission time Tx, the CV of data points with the same packet receiving rate prand RAW slot load ratio Lris averaged, respectively. The final results are shown in Figure 5 and 6. Each depicts the results with all data points (subfigure a) and only the data points with packet receiving rate prlarger than 60 Packets per Second (PPS) and PDR larger than 0.8 (subfigure b). PDR is defined as the ratio between the number of sent packets and the number of received packets. Figure 5a shows that a smaller Txresults in less variability, while a larger average transmission time Txleads to higher variability. Moreover, a small packet receiving rate pr(i.e., less than 60) causes quite high performance discrepancy, with CV 0.96 and 1.74 for average transmission time Tx1000 µs and 5000 µs, respectively. However, when focusing on packet receiving rate prlarger than 60 and PDR larger than 0.8 (i.e., feasible and practical network conditions), the CV is significantly reduced, as depicted in Figure 5b. For example, the CV is at most 0.02, and between 0.02 and 0.06, for average transmission time Tx1000 and 2000 µs, respectively. For average transmission time Tx5000 µs, the CV ranges from 0.10 to 0.12, more than 10 times smaller than when considering all values of prand PDR. Figure 6a further reveals that the performance variation increases with larger RAW slot load Lr. However, by applying the same constraint as in Figure 5b (i.e., practical network conditions with pr>60 and PDR >0.8), the CV is significantly reduced, as depicted in Figure 6b. For example, when average transmission time is 1000 µs, the CV is 0.001 and 0.02 for RAW slot load ratio Lr0.4 and 1.0, respectively. It should be noted that, the RAW slot load ratio Lris up to 1 in Figure 6b due to the constraint on PDR. The fact that the performance variance is affected by different parameters, including packet receiving rate, RAW slot load ratio, PDR and average transmission time, is explained as follows. •Packet receiving rate pr:The large CV values appearing at small packet receiving rate are due to the fact that small values more easily lead to a large variance, as small absolute errors have a large relative effect. •RAW slot load ratio Lr:Networks have different input parameters, and even the networks sharing the same input parameters (i.e., average transmission time Tx) may have different coverage and packet size ranges. Thus, there are different saturated traffic levels for these networks. With a larger RAW slot load ratio, the channel contention is more fierce, leading to more networks reaching their saturated levels, and therefore, resulting in more discrepancy in their performance. •PDR: Higher PDR implies that corresponding data points have reasonable RAW configurations, thus mitigating channel contention. Therefore, less performance discrepancy among different networks is obtained in this case. •Average transmission time Tx: For each network with a given Tx, Figure 7 depicts its standard deviation of packet transmission time across all stations, as represented by a dot. It shows, for networks sharing a lager average transmission time, there is a higher chance that these networks have different packet transmission time distributions. Such difference can result in performance discrepancies when packet collisions happen, as the airtime wasted by collision and spent in re-transmissions depends on the transmission time of colliding packets. The results shown in Figure 5 and 6 jointly reveal that average transmission time Txcan significantly reduce the design space (as illustrated in Section III-B2), but may add inaccuracies, since a given Txcan represent a number of
8 1000 2000 3000 4000 5000 Average transmission time 0 500 1000 1500 2000 2500 3000 3500 4000 4500 Standard deviation Fig. 7: Standard deviation of packet transmission times for networks with different average packet transmission time. networks with slightly different behavior. However, the large performance variability concentrates in poor performing networks, including networks with small packet receiving rate prand low PDR. A low packet receiving rate signifies a low throughput, such scenarios have been shown not to be affected by the RAW configuration, and even perform better without RAW [2]. A low PDR signifies high packet loss, which means the network is heavily overloaded. As the model is built mainly for optimization purpose, we can still claim that the average transmission time Txparameter is able to represent the network conditions in the most relevant scenarios for RAW optimization. Moreover, the accuracy increases with lower Tx and Lr. D. Training methodology The training of the RAW performance surrogate model follows the steps listed below, an shown in Figure 2: 1) Based on the defined design space (cf. Table III), the initial design points are carefully selected to efficiently characterize the system. Each data point has four input parameters, i.e., number of stations nr, number of slots sr, RAW duration dr, and average transmission time Tx. 2) The ns-3 simulator executes experiments with parameters from each initial data point and the general parameters of IEEE 802.11ah networks (cf. Table II). The evaluation criterion (i.e., packet receiving rate) of the experiments is considered as the output of each data point. 3) After the experiments with all the initial data points, an initial surrogate model is created. 4) The sampling strategy is applied to select the new data points to improve the model accuracy. 5) The experiments are executed for the newly selected data points, the evaluation criterion of the experiments is considered as the output of the new data points. 6) The surrogate model is updated with the newly selected data points. 7) This process stops once the stop conditions are met, otherwise it continues by repeating from step 4. Each experiment in ns-3 runs for 60 seconds of simulated time. As RAW is configured in each beacon interval of 204.8 ms, the results of every simulated configuration are averaged over 290 beacon intervals, ensuring the generality of the trained model. The proper method is applied in each step in order to create an accurate surrogate model with a limited number of data points. More details can be found below. •Initial design points selection We use the latin hypercube design (LHD) [28] approach to select the initial data points, as it has the best performance in general and is widely used. It selects sample points evenly along the configuration space, while ensuring proportional representation of design variables. Furthermore, the initial sample size depends on the problem type, 200 initial data points were found a good choice for our problem. •The (initial) surrogate model creation There are a variety of supervised machine learning and regression methods that can be used for surrogate model creation, such as Kriging [29], polynomial response surfaces [30], radial basis functions [31], support vector machines (SVMs) [32], space mapping [33], or artificial neural networks (ANNs) [34]. Among these methods, Kriging model is very popular to model complex systems, including complex wireless networks [16], [11], [18]. The Kriging model is formed as: ˆ f(X) = V X i=1 aik(x, xi)(8) where Vis the amount of basis data vectors, xrepresents the input data vector and k(x, xi)is the kernel function. There are several kernel (covariance) functions used in Kriging, such as Squared Exponential Kernel, Exponential Kernel, Matern 3/2, Matern 5/2, Rational Quadratic Kernel. Among them, the Matern types of kernel functions are widely used. In our case, the Matern kernel function with 5/2was found a good choice to create the model. •Sampling strategies A novel sampling strategy called FLOLA-Voronoi [35] is used to select the next design points in order to improve the model accuracy. The FLOLA approach is used for exploiting the non-linear regions, while the Voronoi approach explores the sparsely sampled regions. The scores from FLOLA and Voronoi are combined to decide the next sample point. In our experiments, 10 new data points are picked in each iteration. •Stopping Criteria The 10-fold cross-validation with a Root-Relative Square Error (RRSE) measure is used to evaluate the model accuracy. The modeling process stops once the cross validation score remains stable (3 digits of precision) for 10 successive iterations, i.e., 100 sample data points. Moreover, we set an upper limit of 10000 sample data points. The execution stops once the iteration number reaches the limit, even if the accuracy condition of 3 digits of precision is not met. IV. PERFORMANCE EVALUATION AND DISCUSSION This section presents the evaluation results on the RAW performance predication’s accuracy of our surrogate model.
9 0 1000 2000 3000 4000 5000 6000 Number of training samples 0.1 0.12 0.14 0.16 0.18 0.2 0.22 0.24 Cross Validation Score Fig. 8: Cross validation score of the surrogate model as a function of the number of training samples. 0 0.1 0.2 0.3 0.4 Relative error 0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 CDF Kriging, Matern 5/2 Linear, quadratic SVM RegressTree Fig. 9: Performance comparison between different regression models and simulation results for the reduced design space. First, the convergence of the training process is evaluated. Subsequently, the accuracy of the surrogate model for the reduced design space and for the full design space are discussed respectively. As mentioned in Section III-B, there is a number of coverage and packet size ranges that can lead to the same average transmission time. For the reduced design space, the average transmission time is only represented by distance and packet size range combinations used during the training process. While in the full design space, there is no such limitation. Our previously developed IEEE 802.11ah ns-3 simulation module [19], [36] is integrated into the Matlab Surrogate Modeling (SUMO) toolbox to train the RAW model. The SUMO Toolbox is a flexible framework for accurate global surrogate modeling [15], and has already been applied successfully to a wide range of applications. The behavior of each software component is configurable, and the components can easily be added, removed or replaced by custom implementations. Both training and evaluation use the IEEE 802.11ah scenario as described in Section III-A. A. Training convergence In this section, we evaluate the training convergence of the surrogate model. The cross validation score is widely used to measure the accuracy of the resulting model, a low score signifies a high accuracy of the model, and vice versa. Figure 8 0 50 100 150 200 250 300 Packet receiving rate of simulation 0 50 100 150 200 250 300 Packet receiving rate of model Relative error 2 [0, 0.1] Relative error 2 [0.1, 0.2] Relative error 2 [0.2, +1] Fig. 10: Surrogate model prediction vs. simulation results. demonstrates the 10-fold cross validation score of the model as a function of the number of training samples used. It clearly shows that, at first, SUMO is trying to learn the behavior of the networks with cross validation score going up and down. It should be noted that there are big jumps around the 1000th and 1360th sample data points, indicating that the SUMO toolbox discovers an untouched area that has a huge performance difference compared to earlier explored areas. However, from 1360 samples onward, the cross validation score continually decreases until 5520 samples used for training, reaching 0.107. Subsequently, the cross validation score remains almost constant, signifying that the training process has converged. Training of the model stops after 5610 samples as the stop condition is satisfied, i.e., 10 consecutive crossvalidation scores lower than or equal to 0.107 (3 digits of precision) are obtained. This comes down to about 1.3% of the reduced parameter space (i.e., 425799) defined in Table III, from which samples were drawn during the training process. It is only about one out of 5.7×1013 data points in the full design space. B. Reduced design space experiments In this section, we evaluate the RAW model accuracy for the reduced design space, in which the average transmission time is obtained only from the coverage and packet size ranges used during the training process. In this case, 6000 data points (called test data points) are randomly chosen. To evaluate the accuracy of the Kriging model (with Matem 5/2) used in the model creation step, three additional regression models (i.e., linear regression, Support Vector Machine (SVM) and regression trees) are also created with the trained data points for comparison. The simulation results of the 6000 test data points are compared to the prediction of the above models. Figure 9 depicts the Cumulative Distribution Function (CDF) of the relative error, i.e., the ratio between the absolute error of the simulation results Srwith respect to the model predication Pr, and simulation results Sr, i.e., Relative error =|Sr−Pr| Sr (9) It shows 76% of the test data points have a relative error equal to or less than 0.1 for the Kriging model with Matem 5/2,