Full text
Citation: Garcia-Villegas, E.; Lopez-Garcia, A.; Lopez-Aguilera, E. Genetic Algorithm-Based Grouping Strategy for IEEE 802.11ah Networks. Sensors 2023,23, 862. https:// doi.org/10.3390/s23020862 Academic Editor: Andrey V. Savkin Received: 10 November 2022 Revised: 23 December 2022 Accepted: 9 January 2023 Published: 12 January 2023 Copyright: © 2023 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (https:// creativecommons.org/licenses/by/ 4.0/). sensors Article Genetic Algorithm-Based Grouping Strategy for IEEE 802.11ah Networks Eduard Garcia-Villegas 1, Alejandro Lopez-Garcia 2and Elena Lopez-Aguilera 1,* 1Department of Network Engineering, Universitat Politècnica de Catalunya, 08034 Barcelona, Spain 2i2Cat Foundation, 08034 Barcelona, Spain *Correspondence: [email protected]; Tel.: +34-93-413-70-64 Abstract: The IEEE 802.11ah standard is intended to adapt the specifications of IEEE 802.11 to the Internet of Things (IoT) scenario. One of the main features of IEEE 802.11ah consists of the Restricted Access Window (RAW) mechanism, designed for scheduling transmissions of groups of stations within certain periods of time or windows. With an appropriate configuration, the RAW feature reduces contention and improves energy efficiency. However, the standard specification does not provide mechanisms for the optimal setting of RAW parameters. In this way, this paper presents a grouping strategy based on a genetic algorithm (GA) for IEEE 802.11ah networks operating under the RAW mechanism and considering heterogeneous stations, that is, stations using different modulation and coding schemes (MCS). We define a fitness function from the combination of the predicted system throughput and fairness, and provide the tuning of the GA parameters to obtain the best result in a short time. The paper also includes a comparison of different alternatives with regard to the stages of the GA, i.e., parent selection, crossover, and mutation methods. As a proof of concept, the proposed GA-based RAW grouping is tested on a more constrained device, a Raspberry Pi 3B + , where the grouping method converges in around 5 s. The evaluation concludes with a comparison of the GA-based grouping strategy with other grouping approaches, thus showing that the proposed mechanism provides a good trade-off between throughput and fairness performance. Keywords: genetic algorithm; IEEE 802.11ah; RAW; Wi-Fi HaLow 1. Introduction Wi-Fi HaLow is the certification for products supporting the IEEE 802.11ah standard [ 1 ]. This technology represents the response of the IEEE 802.11 Working Group to the increasing connectivity demands of the Internet of Things (IoT). Although the standard was published in 2017, it was not until November 2021 that the Wi-Fi Alliance introduced the Wi-Fi HaLow certification program. Those delays along with the fact that other competing technologies are already well-established on the IoT arena (e.g., LoRaWAN, NB-IoT, Sigfox, etc.), have hampered a wide adoption of the IEEE 802.11ah. Nevertheless, the first certified devices are starting to reach the market, and some studies forecast an increasing interest in this technology [2]. Similarly to other IEEE 802.11 technologies, IEEE 802.11ah uses an orthogonal frequencydivision multiplexing (OFDM)-based physical layer (PHY), and a carrier-sense multiple access with collision avoidance (CSMA/CA) medium access control (MAC). However, IEEE 802.11ah introduces new features that allow this technology to reach longer ranges than a typical wireless local area network (WLAN), to support thousands of connected devices per access point (AP), and to improve energy efficiency [3]. A longer range is achieved by the use of a lower frequency band below 1 GHz, which introduces lower propagation losses than the 2.4 and 5 GHz bands used in WLANs. Moreover, the support of narrower transmissions (from 1 to 16 MHz, in contrast to the range between 20 and 160 MHz of mainstream IEEE 802.11ax), along with a new and Sensors 2023,23, 862. https://doi.org/10.3390/s23020862 https://www.mdpi.com/journal/sensors
Sensors 2023,23, 862 2 of 24 more reliable modulation and coding scheme (MCS) extend the range of a Wi-Fi HaLow network beyond 1500 m while offering a capacity above 100 kbps [ 3 ]. Note that other IoT technologies, such as LoRaWAN or Sigfox, cover several kilometers at the cost of a limited capacity (in the scale of 1 kbps), while IEEE 802.11ah’s PHY supports data rates from 150 kbps to 346 Mbps (using multiple antennas-MIMO). Another focus of the IoT communication is on low power consumption. Further energy savings are, indeed, the target of several new features of the IEEE 802.11ah. For example, the new standard allows longer sleeping periods, helping devices to save more energy while inactive (from several hours of sleep in legacy Wi-Fi, to the year scale in IEEE 802.11ah). IEEE 802.11ah also introduces more efficient frame exchanges and a reduced overhead, which make transmissions more energy-efficient. IoT-enabling technologies are also expected to provide connectivity to a large number of devices. Legacy IEEE 802.11 supports up to 2007 associated stations (STA) per AP. Having a longer range and, therefore, covering a larger area, an IEEE 802.11ah AP serves a larger number of STAs. IEEE 802.11ah redefines the Association Identifier (AID), a unique number assigned to each associated STA, to allow up to 8191 STAs per AP. However, note that increasing the number of STAs in a CSMA-based network implies an increased collision probability, which can dramatically degrade the performance with only a few tens of STAs [ 4 ]. For example, 250 IoT devices, all transmitting data to a Wi-Fi HaLow AP (all devices use 2 MHz, MCS 5, and one spatial stream) could obtain an aggregate throughput of around 1.5 Mbps; with 500 connected devices, throughput drops to 1.1 Mbps; with 1000 devices, only 0.6 Mbps are achieved, due to the increased number of collisions and resulting retransmissions. In order to reduce the harmful effects of an excessive contention, the IEEE 802.11ah introduces the Restricted Access Window (RAW) mechanism. With RAW, the AP coordinates the uplink channel access of STAs by defining time intervals in which specific groups of devices are given exclusive access of the shared medium. In this way, the channel access becomes a hybrid between TDMA and CSMA. The benefits of RAW are twofold: (i) collision probability is reduced since only a limited number of STAs contend for the channel during their assigned time window; and (ii) STAs can safely remain in power saving states for longer while they wait for the assigned time slot. On the other hand, RAW poses an important challenge that is left open in the IEEE 802.11ah specification: efficient grouping of STAs. This challenge deals with choosing a number of RAW groups, and selecting the STAs that will be grouped together. Following the numerical example of the previous paragraph, just by defining four equally-sized groups in the case of 1000 active devices, throughput is increased from 0.6 to 1.5 Mbps. In practice, however, devices are not homogeneous and, therefore, more sophisticated grouping strategies are required. For a small amount of STAs, the optimal grouping can be obtained following a simple exhaustive search, in which all the possible grouping configurations are evaluated in a reasonable amount of time. The grouping that maximizes a pre-defined objective function (i.e., fitness function for a genetic algorithm) is then chosen as the optimal RAW setting. However, note that with hundreds or even thousands of STAs, the number of possible groupings is unwieldy (intractable, in practice) and, therefore, an intelligent algorithm, capable of providing (near) optimal grouping decisions within a reasonable time is needed to make the most of the RAW mechanism. In this paper, we propose a genetic algorithm (GA) specially adapted for tackling the STA grouping problem in IEEE 802.11ah networks with heterogeneous STAs. GAs [ 5 ] show, in general, a wide applicability and, in this particular case, provide an intuitive approach to the problem (because of the natural relationship built between groups of STAs and the conceptually simple mechanism of an evolving population), are capable of dealing with very large search spaces (e.g., assuming GSTAs and a maximum of Rgroups, the number of possible groupings is R G /R!), and are easily parallelizable, which could be used to take advantage of the multi-cored CPUs present in many modern embedded devices (e.g., Wi-Fi APs). Moreover, GAs are robust to noise and uncertainty because they search for solutions in a probabilistic manner. This means that they can find good solutions even if the problem
Sensors 2023,23, 862 3 of 24 is noisy or even uncertain; note that the Wi-Fi environment is inherently noisy due to the effects of propagation, interference and mobility of devices. After detailing the RAW mechanism and discussing the related works in Section 2, our proposed algorithm is described in Section 3, where the implementation details of all the stages of a GA are discussed. As a second contribution, in Section 4the GA’s hyper parameter tuning is provided; that is, all the design choices are tested to obtain the best performance of the GA. Once the algorithm is optimized at the end of Section 4, the performance of our GA’s decisions is compared with other grouping strategies. Finally, conclusions are provided and possible future works are discussed in Section 5. The contributions of this paper are as follows: 1. To propose a genetic algorithm adapted for managing the grouping in IEEE 802.11ah networks operating under the RAW mechanism; 2. To provide the tuning and validation of GA parameters (including all the GA phases) to obtain the best performance of the algorithm; 3. To propose a fitness function that reduces the computational time of the algorithm; 4. To evaluate the GA-based grouping proposal using a more constrained device, a Raspberry Pi 3B+; 5. To provide a comparison of the proposed GA-based grouping strategy with other grouping methods. 2. Related Work on RAW Station Grouping This section first reviews the RAW mechanism and different seminal works that provide a general perspective on its operation and performance. Then, the study focuses on the literature related to the specific challenge of RAW grouping and, more precisely, on those approaches seeking throughput and fairness improvements. We discuss their limitations and how our solution addresses these shortcomings. We also highlight the aspects of our proposed solution that are adopted from previous works. The RAW mechanism is one of the most relevant new features included in the IEEE 802.11ah specification, and it is known to improve throughput, latency and energy efficiency in dense networks [ 6 ]. With RAW, an IEEE 802.11ah AP limits the number of stations that contend for the channel during a given time slot by splitting the airtime into different intervals. Some of those intervals are assigned exclusively to a specific group of STAs (RAW groups), while others can be used without restrictions, following IEEE 802.11’s traditional CSMA/CA. Although, in a way, it preserves the original contention-based random access, the RAW signifies a paradigm shift in the IEEE 802.11’s MAC, which moves towards a more centralized access where the AP distributes airtime resources. The AP decides how the airtime is shared among the associated STAs and announces its distribution in the RAW parameter set (RPS) information element of Beacon frames. The RPS specifies which STAs belong to which group (using STAs’ AID), the start time and the duration of each RAW. Note that a RAW is further divided into one or more fixed-length slots, and that STAs assigned to a given RAW group are evenly distributed over those slots. The RPS also includes the number of slots and the slot duration of each RAW. Consequently, STAs use contention outside RAWs, and also to access through their assigned RAW slot, which is shared with a reduced number of STAs (if any). Those two types of access follow independent backoff rules (i.e., a backoff function used inside the assigned RAW slot, and another backoff function used outside the slot). During other groups’ RAWs, STAs can remain in a power saving state. Figure 1depicts a possible distribution of the airtime between two consecutive Beacon frames containing RRAW groups, and wherein each RAW ris divided into krequally-sized slots.
Sensors 2023,23, 862 4 of 24 Sensors 2023, 23, x FOR PEER REVIEW 4 of 24 Figure 1. Example of a distribution of the airtime between consecutive Beacons using IEEE 802.11ah’s RAW. The tuning of the RAW configuration, and more precisely, the STA grouping problem, has received the attention of several research works. In [7], authors thoroughly survey the published works on STA grouping, categorizing the different proposals based on their optimization goals. Although the algorithm proposed in this paper would fall within the categories of throughput-oriented and fairness-oriented algorithms, it is worth noting that a GA can be easily adapted to optimize any other metric, provided that the fitness function (cf. Section 3.1) reliably reflects the impact of the decided RAW configuration on the targeted metric. With the goal of improving channel utilization (and thus, capacity), the work in [8] proposes a STA grouping scheme seeking load balancing among RAW groups. This approach is based on integer programming and works under the assumption that the number of RAW groups is fixed and that the AP knows the STAs’ offered traffic behavior. In [9], the same authors refine their proposal and further derive a regression-based model to estimate the contention success probability. Knowing STAs’ traffic in advance is not trivial, but there are different mechanisms that would allow the AP to obtain a good estimation. For example, STAs could describe their traffic needs using IEEE 802.11’s Traffic Specification (TSPEC) element. In [10], authors propose the Traffic-Aware RAW Optimization Algorithm (TAROA), which tries to predict the inter-packet time of STAs by analyzing that STA’s past transmissions. In [11], they proposed a more accurate traffic estimation method by exploiting the “More Data” flag of the IEEE 802.11’s header for the EnhancedTAROA (E-TAROA). The authors in [12] also predict packet transmissions, in this case by averaging the observed inter-packet times of active STAs and assuming a periodic behavior. They also define a contention phase (for any STA’s first transmission) and a reservation phase, where STAs expected to have pending frames transmit without contention. These works support our assumption that the AP could know the set of STAs with pending traffic for the following Beacon interval. In [13], authors argue that in order to improve throughput, the duration of RAW slots should be set as a function of the number of STAs in the group. Although their idea to set different durations for the time slots in a RAW is not compatible with the IEEE 802.11ah specification (slots within a RAW must have the same duration), a similar approach is followed by configuring one-slot RAWs, the duration of which is proportional to the number of assigned STAs. Note that most of the prior work is limited to homogeneous STAs, that is, all STAs use the same MCS, same transmitted power, and even the same packet size. In practice, STAs are located at different distances from the AP and, hence, they will use different MCS (i.e., different PHY rate). The coexistence of STAs using different MCS impacts fairness and the available throughput [14] and should therefore be considered when configuring the RAW. In [15] and [16], authors deal with those heterogeneous scenarios by grouping STAs with the same PHY rate. However, as discussed in Section 4.1, mixing STAs with different PHY rates in a particular way can result in a better fairness and throughput. With a focus on fairness, authors in [17] group STAs according to their traffic profile (inter-packet interval and packet size) and propose a dynamic configuration of Figure 1. Example of a distribution of the airtime between consecutive Beacons using IEEE 802.11ah’s RAW. The tuning of the RAW configuration, and more precisely, the STA grouping problem, has received the attention of several research works. In [ 7 ], authors thoroughly survey the published works on STA grouping, categorizing the different proposals based on their optimization goals. Although the algorithm proposed in this paper would fall within the categories of throughput-oriented and fairness-oriented algorithms, it is worth noting that a GA can be easily adapted to optimize any other metric, provided that the fitness function (cf. Section 3.1) reliably reflects the impact of the decided RAW configuration on the targeted metric. With the goal of improving channel utilization (and thus, capacity), the work in [ 8 ] proposes a STA grouping scheme seeking load balancing among RAW groups. This approach is based on integer programming and works under the assumption that the number of RAW groups is fixed and that the AP knows the STAs’ offered traffic behavior. In [ 9 ], the same authors refine their proposal and further derive a regression-based model to estimate the contention success probability. Knowing STAs’ traffic in advance is not trivial, but there are different mechanisms that would allow the AP to obtain a good estimation. For example, STAs could describe their traffic needs using IEEE 802.11’s Traffic Specification (TSPEC) element. In [ 10 ], authors propose the Traffic-Aware RAW Optimization Algorithm (TAROA), which tries to predict the inter-packet time of STAs by analyzing that STA’s past transmissions. In [ 11 ], they proposed a more accurate traffic estimation method by exploiting the “More Data” flag of the IEEE 802.11’s header for the Enhanced-TAROA (E-TAROA). The authors in [ 12 ] also predict packet transmissions, in this case by averaging the observed inter-packet times of active STAs and assuming a periodic behavior. They also define a contention phase (for any STA’s first transmission) and a reservation phase, where STAs expected to have pending frames transmit without contention. These works support our assumption that the AP could know the set of STAs with pending traffic for the following Beacon interval. In [ 13 ], authors argue that in order to improve throughput, the duration of RAW slots should be set as a function of the number of STAs in the group. Although their idea to set different durations for the time slots in a RAW is not compatible with the IEEE 802.11ah specification (slots within a RAW must have the same duration), a similar approach is followed by configuring one-slot RAWs, the duration of which is proportional to the number of assigned STAs. Note that most of the prior work is limited to homogeneous STAs, that is, all STAs use the same MCS, same transmitted power, and even the same packet size. In practice, STAs are located at different distances from the AP and, hence, they will use different MCS (i.e., different PHY rate). The coexistence of STAs using different MCS impacts fairness and the available throughput [ 14 ] and should therefore be considered when configuring the RAW. In [ 15 , 16 ], authors deal with those heterogeneous scenarios by grouping STAs with the same PHY rate. However, as discussed in Section 4.1, mixing STAs with different PHY rates in a particular way can result in a better fairness and throughput. With a focus on fairness, authors in [ 17 ] group STAs according to their traffic profile (inter-packet interval and packet size) and propose a dynamic configuration of STAs’ contention window, which would require changes to the standard backoff mechanism. Another work seeking to maximize throughput and fairness, but also considering hidden nodes is presented in [ 18 ], wherein
Sensors 2023,23, 862 5 of 24 the authors propose an Ant Colony algorithm to solve a Max-Min fairness optimization. As with [ 8 ], the main drawback of this approach is that the number of groups Ris fixed; we argue that Ris one of the key parameters of the RAW configuration (cf. Section 4.1). All in all, compared to other capacity and/or fairness driven approaches found in the literature, we argue that the GA-based solution proposed in this paper has several key advantages. It avoids the limiting assumption of a fixed number of groups, and supports the presence of heterogeneous (in terms of PHY rate and packet size) STAs, while staying fully IEEE 802.11ah compliant. On the other hand, our solution assumes that the scheduler knows which STAs will require uplink resources in the next interval, an assumption that has been supported by previous research in this field. 3. Problem Definition and Methodology: A Grouping Strategy for IEEE 802.11ah Based on a Genetic Algorithm In this section, our proposal of a grouping strategy based on a genetic algorithm is presented. We introduce the basics of the genetic algorithm used in this research work, describe the different phases involved in the algorithm, and discuss the alternatives considered in this evaluation. Based on Charles Darwin’s theory of natural evolution, genetic algorithms are heuristic search algorithms that try to reflect the process of the natural evolution, where the fittest individuals are selected out of the population for reproduction, and produce the offspring of the next generation. The process starts with the selection of the fittest individuals from an initial population. These individuals will produce offspring, and the characteristics of the parents will be inherited by the next generation. This essence can be applied in a station grouping strategy, where a set of initial individuals (a set of groups of stations) will be genetically evolved in order to select the best set according to given criteria. A genetic algorithm includes five phases, i.e., initial population, fitness function, selection of parents, crossover function, and mutation phase, which are detailed in the following. The GA must start with an initial set of Pindividuals called initial population. Each individual represents a valid solution to the problem to be solved, and is characterized by a set of Gparameters, known as genes. In similitude with Darwin’s theory, an individual is also named chromosome. In our case, each of the Pchromosomes (C i ) of a population consists of a set of GIEEE 802.11ah STAs, and each STA is assigned to one of Rpossible groups. The group assigned to each STA represents a gene, as depicted in Figure 2. Sensors 2023, 23, x FOR PEER REVIEW 6 of 24 Figure 2. Modelling IEEE 802.11ah STAs grouping as a genetic optimization problem. Next, the fitness function (Phase 2) is applied to each chromosome C i of the population, which is in charge of evaluating how fit an individual is, i.e., its ability to compete with other individuals. The output of this method is a fitness score for each individual, and determines the chances of an individual to be selected for reproduction. The larger the value, the fitter the individual and, thus, the higher the probability of the individual to be chosen for offspring production. The fitness function defined for our grouping strategy is presented in Section 3.1 as a function of the expected system throughput and fairness. Another function will choose the fittest individuals and use their genes to produce a new population (Phase 3). Two or more pairs of individuals (known as parents) are selected based on their fitness scores to breed the new individuals that will populate the next generation. There are different methods available for parent selection. Section 3.2 discusses the different methods considered in the evaluation. The crossover function (Phase 4) defines the method for parent reproduction, i.e., the form in which the genes of each parent are selected for producing the next generation of individuals. Again, there are different crossover functions. The methods used in the present evaluation are discussed in Section 3.3. Finally, in the mutation phase (Phase 5), some of the genes of the newly created offspring may be altered. Mutation is needed to keep a healthy diversity in the population, and to prevent a premature convergence of the algorithm due to a local optimum. As in the case of parent selection and crossover function, there are different alternative mechanisms for applying mutation; they are discussed in Section 3.4. When run, the GA loops between Phases 2 and 5. The algorithm terminates when the population has converged, i.e., the generated offspring is not significantly different from the previous generation. Alternatively, a stop condition may be set to stop the algorithm at a specific time or event. Algorithm 1 summarizes the GA working procedure. Figure 2. Modelling IEEE 802.11ah STAs grouping as a genetic optimization problem. Next, the fitness function (Phase 2) is applied to each chromosome C i of the population, which is in charge of evaluating how fit an individual is, i.e., its ability to compete with
Sensors 2023,23, 862 6 of 24 other individuals. The output of this method is a fitness score for each individual, and determines the chances of an individual to be selected for reproduction. The larger the value, the fitter the individual and, thus, the higher the probability of the individual to be chosen for offspring production. The fitness function defined for our grouping strategy is presented in Section 3.1 as a function of the expected system throughput and fairness. Another function will choose the fittest individuals and use their genes to produce a new population (Phase 3). Two or more pairs of individuals (known as parents) are selected based on their fitness scores to breed the new individuals that will populate the next generation. There are different methods available for parent selection. Section 3.2 discusses the different methods considered in the evaluation. The crossover function (Phase 4) defines the method for parent reproduction, i.e., the form in which the genes of each parent are selected for producing the next generation of individuals. Again, there are different crossover functions. The methods used in the present evaluation are discussed in Section 3.3. Finally, in the mutation phase (Phase 5), some of the genes of the newly created offspring may be altered. Mutation is needed to keep a healthy diversity in the population, and to prevent a premature convergence of the algorithm due to a local optimum. As in the case of parent selection and crossover function, there are different alternative mechanisms for applying mutation; they are discussed in Section 3.4. When run, the GA loops between Phases 2 and 5. The algorithm terminates when the population has converged, i.e., the generated offspring is not significantly different from the previous generation. Alternatively, a stop condition may be set to stop the algorithm at a specific time or event. Algorithm 1 summarizes the GA working procedure. Algorithm 1. GA working procedure. Initialize population; Apply fitness function for population evaluation; Generation = 0; while termination criterion is not satisfied { Select good individuals through parent selection function; Parent reproduction through crossover function; Apply mutation function; Apply fitness function for population evaluation; Generation = Generation + 1; } return the best individual shown during the evolution; 3.1. Fitness Value Computation Targeting an efficient use of the spectrum, the fitness value used in the proposed GA considers the system’s potential throughput. As a starting point, the throughput computation given by the Bianchi model for multi-rate and heterogeneous environments [ 19 ] adapted to IEEE 802.11ah PHY and MAC [ 20 ] is used. This model concludes with the following expression for total system throughput, S: S= R ∑ r=1 dr∗∑kr k=1 Sslot_k kr dtotal (1) where Ris the number of RAW groups, each of them having k r slots, d r corresponds to the duration of the r th RAW group, and d total represents the total duration of all RRAW groups together. S slot_k stands for the throughput corresponding to the k th slot; its computation is taken from the Bianchi model for multi-rate environments [ 19 ]. The reader is referred to [20] for further detail on the computation of S.
Sensors 2023,23, 862 7 of 24 However, a fitness function focused solely on maximizing throughput would end up marginalizing slow STAs, which will have less opportunities to transmit their data (e.g., STAs receiving a poor signal from the AP and, hence, using a more reliable, but slower MCS). To prevent the possible starvation of slow STAs, a measure of fairness is also considered within the proposed fitness function. The fairness metric determines whether STAs are receiving a fair share of system resources. In our fitness function, the well-known Jain Fairness index [21] is used for fairness calculation. In this way, the fitness value (V) is obtained as the combination of the total system throughput (S) and the fairness (F), i.e., V=S∗F. 3.2. Parent Selection There are different functions in the literature for the selection of parents. In the following, the most relevant ones are presented, which have been considered for our evaluation. The Fitness Proportionate Selection (FPS) method, also known as roulette wheel selection [ 22 ], consists in choosing two parents among all the individuals based on a probability, proportional to their fitness value. Each possible individual is assigned a slice of the wheel of a size based on its corresponding fitness value. Then, a random selection is done for choosing each of the two parents (i.e., the roulette wheel spins twice). This method includes a variation called Stochastic Universal Sampling (SUS) [ 23 ], which chooses the two parents with a single spin of the wheel; one parent is randomly chosen following the aforementioned FPS approach, and the other is the diametrically opposite element of the wheel. The advantage of SUS is the lower computational cost with respect to FPS. On the other hand, there is the Rank Based Selection (RBS) method [ 24 ], which consists in performing a ranking with all the individuals based on their corresponding fitness value. Then, a probability value is given to each individual considering its location in the ranking, i.e., the higher the ranking position, the larger the probability value assigned. Afterwards, a random selection is performed for choosing each of the parents. Typically, two parents are considered for producing the next generation of individuals, following any of the methods mentioned above. However, more than two parents can be selected. As discussed in reference [ 25 ], using more than two parents does not clearly improve the results, while it leads to larger computational costs. Finally, we consider a method by which all Pindividuals participate in the breeding, thus providing each individual a number of genes to the new offspring, proportional to its fitness value. 3.3. Crossover Function With regards to crossover functions, several alternatives can be found in the literature, describing different ways of mixing the parents’ genes to create new offspring. In the following, the methods considered in our evaluation are described. The one-point crossover or single-point crossover [ 26 ] consists in choosing randomly a crossover point on both parents. This can be implemented by randomly selecting a gene number as the crossover point; the genes to the left of the crossover point (i.e., smaller gene number) on one parent are combined with the genes to the right of the point on the other parent. The multi-point crossover [ 26 ] extends the previous approach by using two crossover points randomly chosen over both parents. The genes in between the two crossover points are swapped between the parents in order to create the offspring. This method can be extended to more than two crossover points. With the ring crossover [ 27 ], the genes of both parents are concatenated one after the other, and then organized in the form of a ring or circular buffer (i.e., the last gene of the second parent is followed by the first gene of the first parent). Next, the ring is cut in half at a random point (cutting point). Each half shows a different combination of its parents’ genes and constitutes a new offspring. In the uniform crossover [ 26 ], each gene is chosen from either parent with equal probability, i.e., 50%. Moreover, it is also common to preserve the best individuals of one generation and pass them on to the next. The number of individuals that preserve their genes after a new generation is born is managed by another configurable parameter called pressure.
Sensors 2023,23, 862 8 of 24 3.4. Mutation Function The mutation step is applied over the new generation of individuals that are not under the pressure parameter. As with previous phases, there are several options in the literature for implementing the mutation phase. In this section, the most relevant ones are exposed, which have been considered in this evaluation. The Partial Shuffle Mutation (PSM) [ 28 ] mutates or preserves each gene of an individual based on a predefined mutation probability. A variation of this method limits the mutation to only one randomly selected gene. Following the Reverse Sequence Mutation (RSM) [ 28 ], two points are randomly chosen on the individual. The segment of genes between the two points is swapped based on a predefined mutation probability. Finally, the Swap Mutation (SM) [ 29 ] consists in swapping two genes of the individual, chosen at random. Again, the swapping action is performed under a predefined mutation probability. 4. Evaluation For our evaluation, we have developed the proposed GA-based grouping strategy algorithm for IEEE 802.11ah using Python. In this section, we present the tuning of the GA parameters to get the best fitness result in a reduced amount of time. We use a PC with Intel Core i9 at 3.30 GHz and 62 GB of RAM. After completing the validation of the algorithm, we provide results using a more constrained device, a Raspberry Pi 3B+, that can act as AP, and run the grouping mechanism proposed in this paper. 4.1. Initial GA Parameter Setting First, the initial tuning and validation of the GA is performed, considering a sample scenario with 33 STAs and wherein all 11 MCS are in use (MCS 0 to MCS 10 for the 1 MHz PHY IEEE 802.11ah), that is, three STAs per MCS. The maximum possible number of RAW groups Ris set to eight. All the individuals are considered as parents, and each individual provides a number of genes to the new offspring proportional to its fitness value. In Section 4.3.1, a detailed evaluation on parent selection methods is shown. Moreover, in this initial parameter setting, a mutation method is considered, in which mutation is performed only on one randomly selected gene of an individual (i.e., PSM mutation applied to one gene), with a mutation probability of 0.2. Later, in Section 4.3.3, the study on mutation methods is presented in depth. The GA is stopped if all the individuals of the population have the same genes, or after 200 loops, if the first condition is not met. The first parameter to evaluate is P, the number of individuals that form the population. Populations built of 5, 10, 15, 20, 25, 30 and 50 random individuals are considered. The average fitness value of the best individual in the final population over 10 simulations, and the average computational time, can be observed in Figures 3and 4, respectively, vs. different pressure values. The results show that an increase in the number of individuals leads to a higher fitness value, but from 20 individuals on, the improvement is slowed down, while the computational time experiences an important rise. In this way, the configuration with P= 20 individuals is identified as the most convenient, since computational time is not severely compromised, and the fitness value does not show an important reduction in comparison with the results observed for a larger P.
Sensors 2023,23, 862 9 of 24 Sensors 2023, 23, x FOR PEER REVIEW 9 of 24 algorithm, we provide results using a more constrained device, a Raspberry Pi 3B+, that can act as AP, and run the grouping mechanism proposed in this paper. 4.1. Initial GA Parameter Setting First, the initial tuning and validation of the GA is performed, considering a sample scenario with 33 STAs and wherein all 11 MCS are in use (MCS 0 to MCS 10 for the 1 MHz PHY IEEE 802.11ah), that is, three STAs per MCS. The maximum possible number of RAW groups R is set to eight. All the individuals are considered as parents, and each individual provides a number of genes to the new offspring proportional to its fitness value. In Section 4.3.1, a detailed evaluation on parent selection methods is shown. Moreover, in this initial parameter setting, a mutation method is considered, in which mutation is performed only on one randomly selected gene of an individual (i.e., PSM mutation applied to one gene), with a mutation probability of 0.2. Later, in Section 4.3.3, the study on mutation methods is presented in depth. The GA is stopped if all the individuals of the population have the same genes, or after 200 loops, if the first condition is not met. The first parameter to evaluate is P, the number of individuals that form the population. Populations built of 5, 10, 15, 20, 25, 30 and 50 random individuals are considered. The average fitness value of the best individual in the final population over 10 simulations, and the average computational time, can be observed in Figures 3 and 4, respectively, vs. different pressure values. The results show that an increase in the number of individuals leads to a higher fitness value, but from 20 individuals on, the improvement is slowed down, while the computational time experiences an important rise. In this way, the configuration with P = 20 individuals is identified as the most convenient, since computational time is not severely compromised, and the fitness value does not show an important reduction in comparison with the results observed for a larger P. Figure 3. Average fitness value of the best individual for populations built of different number P of individuals and pressure values. Figure 3. Average fitness value of the best individual for populations built of different number Pof individuals and pressure values. Sensors 2023, 23, x FOR PEER REVIEW 10 of 24 Figure 4. Average computational time (s) for populations built of different number P of individuals and pressure values. With the number of individuals set to 20, the next parameter considered is the pressure, with values comprised between 2 and 18. Note that the pressure parameter determines the number of individuals that survive to the next generation preserving their genes intact. Figure 5a,b presents the average fitness value of the best individual and the average computational time, respectively. Note that both the largest and smallest pressure values show high computational time. With large pressure values, a high portion of the new population is kept from the previous one, and thus the algorithm needs more iterations to evolve the population, and concludes with a worse fitness value. On the other hand, a small pressure is helpful to achieve a better fitness but at the cost of longer computational times. A pressure value of 8 is chosen, since it shows a good balance between the two metrics. (a) (b) Figure 5. (a) Average fitness value of the best individual, (b) average computational time (s), vs. pressure. Figure 4. Average computational time (s) for populations built of different number Pof individuals and pressure values. With the number of individuals set to 20, the next parameter considered is the pressure, with values comprised between 2 and 18. Note that the pressure parameter determines the number of individuals that survive to the next generation preserving their genes intact. Figure 5a,b presents the average fitness value of the best individual and the average computational time, respectively. Note that both the largest and smallest pressure values
Sensors 2023,23, 862 16 of 24 Sensors 2023, 23, x FOR PEER REVIEW 16 of 24 Figure 12. Average computational time (s) for different parent selection algorithms. 4.3.2. Crossover Evaluation Next, the analysis of crossover alternatives is performed (cf. Section 3.3). Again, evaluation results are shown for the average fitness value of the best individual, of all the individuals in the final population, and the average computational time (Figures 13a,b and 14, respectively). The different methods are compared with the original mechanism used, in which all the individuals provide certain number of genes to the new offspring proportional to their corresponding fitness value. The ring crossover method shows the worst performance for both fitness and computational time performance. On the other hand, the single-point, multi-point and uniform crossover functions only present a slight decrease in the fitness value (around 0.5%) with respect to the original method, whereas the reduction in the computational time is remarkable (around 23%). Among the three alternatives, the single-point method is chosen, which obtains the lowest computational time. (a) (b) Figure 13. Average fitness value of (a) the best individual, (b) all the individuals, for different crossover methods. Figure 13. Average fitness value of ( a ) the best individual, ( b ) all the individuals, for different crossover methods. Sensors 2023, 23, x FOR PEER REVIEW 17 of 24 Figure 14. Average computational time (s) for different crossover methods. 4.3.3. Mutation Evaluation Finally, the evaluation of different mutation functions is provided (cf. Section 3.4), which are compared with the method originally employed, where mutation is performed only on one gene randomly selected per individual. Each mutation alternative is evaluated, i.e., PSM, SM and RSM methods, for different mutation probability values, and evaluation results are presented for the average fitness value of the best individual and the average computational time. The PSM evaluation is shown in Figures 15 and 16. Employing a mutation probability of 0.3, the fitness value improves around 3% over the result obtained with the original method. However, computational time experiences a high increase. Thus, PSM is discarded as mutation alternative. Secondly, results are provided for SM in Figures 17 and 18. Various lengths are considered for the segment of genes; recall that, employing SM, two genes of the individual inside the segment are randomly chosen and swapped. The configuration showing the best performance corresponds to a segment length of 5 and a mutation probability of 0.25. In this case, the fitness value is slightly reduced with respect to the original method, but the computational time obtains a nonnegligible reduction of around 6%. Figure 15. Average fitness value of the best individual for PSM method vs. different mutation probability values. Figure 14. Average computational time (s) for different crossover methods. 4.3.3. Mutation Evaluation Finally, the evaluation of different mutation functions is provided (cf. Section 3.4), which are compared with the method originally employed, where mutation is performed only on one gene randomly selected per individual. Each mutation alternative is evaluated, i.e., PSM, SM and RSM methods, for different mutation probability values, and evaluation results are presented for the average fitness value of the best individual and the average computational time. The PSM evaluation is shown in Figures 15 and 16. Employing a mutation probability of 0.3, the fitness value improves around 3% over the result obtained with the original method. However, computational time experiences a high increase. Thus, PSM is discarded as mutation alternative. Secondly, results are provided for SM in Figures 17 and 18. Various lengths are considered for the segment of genes; recall that, employing SM, two genes of the individual inside the segment are randomly chosen and swapped. The configuration showing the best performance corresponds to a segment length of 5 and a mutation probability of 0.25. In this case, the fitness value is slightly reduced with respect to the original method, but the computational time obtains a non-negligible reduction of around 6%. Lastly, results are presented for RSM in Figures 19 and 20. Again, different lengths for the segment of genes to be swapped have been considered; remind that RSM consists of randomly choosing two points on the individual, and swapping the segment of genes between these two points. It can be observed that the configuration with a segment length of 5 and mutation probability of 0.21 leads to a better fitness and computational time performance, thus improving previous SM results. In this way, the RSM method is selected among the three alternatives.
Sensors 2023,23, 862 17 of 24 Sensors 2023, 23, x FOR PEER REVIEW 17 of 24 Figure 14. Average computational time (s) for different crossover methods. 4.3.3. Mutation Evaluation Finally, the evaluation of different mutation functions is provided (cf. Section 3.4), which are compared with the method originally employed, where mutation is performed only on one gene randomly selected per individual. Each mutation alternative is evaluated, i.e., PSM, SM and RSM methods, for different mutation probability values, and evaluation results are presented for the average fitness value of the best individual and the average computational time. The PSM evaluation is shown in Figures 15 and 16. Employing a mutation probability of 0.3, the fitness value improves around 3% over the result obtained with the original method. However, computational time experiences a high increase. Thus, PSM is discarded as mutation alternative. Secondly, results are provided for SM in Figures 17 and 18. Various lengths are considered for the segment of genes; recall that, employing SM, two genes of the individual inside the segment are randomly chosen and swapped. The configuration showing the best performance corresponds to a segment length of 5 and a mutation probability of 0.25. In this case, the fitness value is slightly reduced with respect to the original method, but the computational time obtains a nonnegligible reduction of around 6%. Figure 15. Average fitness value of the best individual for PSM method vs. different mutation probability values. Figure 15. Average fitness value of the best individual for PSM method vs. different mutation probability values. Sensors 2023, 23, x FOR PEER REVIEW 18 of 24 Figure 16. Average computational time (s) for PSM method vs. different mutation probability values. Figure 17. Average fitness value of the best individual for SM method vs. different mutation probability values. Figure 18. Average computational time (s) for SM method vs. different mutation probability values. Lastly, results are presented for RSM in Figures 19 and 20. Again, different lengths for the segment of genes to be swapped have been considered; remind that RSM consists of randomly choosing two points on the individual, and swapping the segment of genes Figure 16. Average computational time (s) for PSM method vs. different mutation probability values. Sensors 2023, 23, x FOR PEER REVIEW 18 of 24 Figure 16. Average computational time (s) for PSM method vs. different mutation probability values. Figure 17. Average fitness value of the best individual for SM method vs. different mutation probability values. Figure 18. Average computational time (s) for SM method vs. different mutation probability values. Lastly, results are presented for RSM in Figures 19 and 20. Again, different lengths for the segment of genes to be swapped have been considered; remind that RSM consists of randomly choosing two points on the individual, and swapping the segment of genes Figure 17. Average fitness value of the best individual for SM method vs. different mutation probability values.
Sensors 2023,23, 862 18 of 24 Sensors 2023, 23, x FOR PEER REVIEW 18 of 24 Figure 16. Average computational time (s) for PSM method vs. different mutation probability values. Figure 17. Average fitness value of the best individual for SM method vs. different mutation probability values. Figure 18. Average computational time (s) for SM method vs. different mutation probability values. Lastly, results are presented for RSM in Figures 19 and 20. Again, different lengths for the segment of genes to be swapped have been considered; remind that RSM consists of randomly choosing two points on the individual, and swapping the segment of genes Figure 18. Average computational time (s) for SM method vs. different mutation probability values. Sensors 2023, 23, x FOR PEER REVIEW 19 of 24 between these two points. It can be observed that the configuration with a segment length of 5 and mutation probability of 0.21 leads to a better fitness and computational time performance, thus improving previous SM results. In this way, the RSM method is selected among the three alternatives. Figure 19. Average fitness value of the best individual for RSM method vs. different mutation probability values. Figure 20. Average computational time (s) for RSM method vs. different mutation probability values. 4.4. Test over Raspberry Pi After completing the validation of the genetic algorithm, results are provided using a more constrained device, a Raspberry Pi 3B + (1.4 GHz processor and 1 GB of RAM), running the grouping mechanism proposed in this paper. Performance results with regard to computational time are summarized in Table 4. The important improvement achieved in complexity by the introduction of the new method for fitness computation discussed in Section 4.2 is confirmed. With the new method, computational time is reduced from around 9.5 h to 7.7 s. Secondly, the selection of the new crossover function (single-point method) provides a non-negligible reduction from 7.5 s to 5.6 s. Finally, with the mutation method selected (RSM), computational time is reduced even further to 5.1 s. This time value allows the usage of the GA and grouping mechanism proposed in a real and dynamic environment, where the algorithm needs to be run in an AP regularly, without disturbing the current functions of the AP. Figure 19. Average fitness value of the best individual for RSM method vs. different mutation probability values. Sensors 2023, 23, x FOR PEER REVIEW 19 of 24 between these two points. It can be observed that the configuration with a segment length of 5 and mutation probability of 0.21 leads to a better fitness and computational time performance, thus improving previous SM results. In this way, the RSM method is selected among the three alternatives. Figure 19. Average fitness value of the best individual for RSM method vs. different mutation probability values. Figure 20. Average computational time (s) for RSM method vs. different mutation probability values. 4.4. Test over Raspberry Pi After completing the validation of the genetic algorithm, results are provided using a more constrained device, a Raspberry Pi 3B + (1.4 GHz processor and 1 GB of RAM), running the grouping mechanism proposed in this paper. Performance results with regard to computational time are summarized in Table 4. The important improvement achieved in complexity by the introduction of the new method for fitness computation discussed in Section 4.2 is confirmed. With the new method, computational time is reduced from around 9.5 h to 7.7 s. Secondly, the selection of the new crossover function (single-point method) provides a non-negligible reduction from 7.5 s to 5.6 s. Finally, with the mutation method selected (RSM), computational time is reduced even further to 5.1 s. This time value allows the usage of the GA and grouping mechanism proposed in a real and dynamic environment, where the algorithm needs to be run in an AP regularly, without disturbing the current functions of the AP. Figure 20. Average computational time (s) for RSM method vs. different mutation probability values.
Sensors 2023,23, 862 19 of 24 4.4. Test over Raspberry Pi After completing the validation of the genetic algorithm, results are provided using a more constrained device, a Raspberry Pi 3B + (1.4 GHz processor and 1 GB of RAM), running the grouping mechanism proposed in this paper. Performance results with regard to computational time are summarized in Table 4. The important improvement achieved in complexity by the introduction of the new method for fitness computation discussed in Section 4.2 is confirmed. With the new method, computational time is reduced from around 9.5 h to 7.7 s. Secondly, the selection of the new crossover function (single-point method) provides a non-negligible reduction from 7.5 s to 5.6 s. Finally, with the mutation method selected (RSM), computational time is reduced even further to 5.1 s. This time value allows the usage of the GA and grouping mechanism proposed in a real and dynamic environment, where the algorithm needs to be run in an AP regularly, without disturbing the current functions of the AP. Table 4. Computational time results using a Raspberry Pi 3B+. Fitness Crossover Mutation Time (s) Original Original Original 70,261.848 New (Section 4.2) Original Original 7.737 New (Section 4.2) Original RSM 7.486 New (Section 4.2) Single-Point Original 5.621 New (Section 4.2) Single-Point RSM 5.145 4.5. Grouping Strategy Comparison To complete the evaluation section, a comparison of the GA-based grouping strategy with other grouping methods is provided. A large scenario composed of 1800 STAs is considered, each one operating under a duty cycle of 2.8% [ 31 ]. The Beacon interval is of 4096 ms [ 32 ], and a total simulation time of 2 min is considered. The GA-based strategy is compared against three strategies commonly used as benchmark in the related literature [ 7 ]: (i) STAs are randomly distributed among groups; (ii) STAs are grouped based on respective MCS similitude (similar to [ 15 , 16 ]); and (iii) pure CSMA/CA-based contention (i.e., without RAW). Figures 21 and 22 show throughput and fairness performance, respectively, for three different MCS random distribution approaches among the STAs composing the scenario: (i) MCSs are uniformly distributed, (ii) MCSs are distributed with 50% probability of being the slowest MCS (i.e., MCS 10), and the remaining 50% is assigned any MCS from MCS 0 to MCS 9 at random, following a uniform distribution, and (iii) MCSs are distributed with 50% probability of being the fastest MCS (i.e., MCS 9), and 50% probability of being any of the remaining MCSs (uniformly distributed). Results show that the GA-based grouping strategy provides a good trade-off between throughput and fairness performance in front of the other approaches. Obviously, when no grouping strategy is applied, fairness is maximized (15.98% above GA-based strategy, on average), but at the cost of minimizing overall throughput (41.04% below GA-based strategy, on average). The approach in which STAs are randomly distributed among groups does not show a good balance between throughput and fairness performances either (on average, fairness is 7.30% above GA-based strategy, throughput is 13.94% below GA-based strategy). On the other hand, the solution with STAs grouped based on their MCS similitude, results in unfair behavior for scenarios including a large amount of slow STAs (cf. Figure 22b) (on average, fairness is 8.54% below GA-based strategy).
Sensors 2023,23, 862 20 of 24 Sensors 2023, 23, x FOR PEER REVIEW 20 of 24 Table 4. Computational time results using a Raspberry Pi 3B+. Fitness Crossover Mutation Time (s) Original Original Original 70261.848 New (Section 4.2) Original Original 7.737 New (Section 4.2) Original RSM 7.486 New (Section 4.2) Single-Point Original 5.621 New (Section 4.2) Single-Point RSM 5.145 4.5. Grouping Strategy Comparison To complete the evaluation section, a comparison of the GA-based grouping strategy with other grouping methods is provided. A large scenario composed of 1800 STAs is considered, each one operating under a duty cycle of 2.8% [31]. The Beacon interval is of 4096 ms [32], and a total simulation time of 2 min is considered. The GA-based strategy is compared against three strategies commonly used as benchmark in the related literature [7]: (i) STAs are randomly distributed among groups; (ii) STAs are grouped based on respective MCS similitude (similar to [15,16]); and (iii) pure CSMA/CA-based contention (i.e., without RAW). Figures 21 and 22 show throughput and fairness performance, respectively, for three different MCS random distribution approaches among the STAs composing the scenario: (i) MCSs are uniformly distributed, (ii) MCSs are distributed with 50% probability of being the slowest MCS (i.e., MCS 10), and the remaining 50% is assigned any MCS from MCS 0 to MCS 9 at random, following a uniform distribution, and (iii) MCSs are distributed with 50% probability of being the fastest MCS (i.e., MCS 9), and 50% probability of being any of the remaining MCSs (uniformly distributed). (a) (b) Sensors 2023, 23, x FOR PEER REVIEW 21 of 24 (c) Figure 21. Throughput performance for scenario with STAs with (a) MCSs uniformly distributed, (b) MCSs distributed with 50% probability of being the slowest MCS (i.e., MCS 10), and 50% probability of being any of the remaining MCSs (MCS 0 to MCS 9), and (c) MCSs distributed with 50% probability of being the fastest MCS (i.e., MCS 9), and 50% probability of being any of the remaining MCSs. (a) (b) Figure 21. Throughput performance for scenario with STAs with ( a ) MCSs uniformly distributed, ( b ) MCSs distributed with 50% probability of being the slowest MCS (i.e., MCS 10), and 50% probability of being any of the remaining MCSs (MCS 0 to MCS 9), and ( c ) MCSs distributed with 50% probability of being the fastest MCS (i.e., MCS 9), and 50% probability of being any of the remaining MCSs.
Sensors 2023,23, 862 21 of 24 Sensors 2023, 23, x FOR PEER REVIEW 21 of 24 (b) (c) Figure 21. Throughput performance for scenario with STAs with (a) MCSs uniformly distributed, (b) MCSs distributed with 50% probability of being the slowest MCS (i.e., MCS 10), and 50% probability of being any of the remaining MCSs (MCS 0 to MCS 9), and (c) MCSs distributed with 50% probability of being the fastest MCS (i.e., MCS 9), and 50% probability of being any of the remaining MCSs. (a) (b) Sensors 2023, 23, x FOR PEER REVIEW 22 of 24 (c) Figure 22. Fairness performance for scenario with STAs with (a) MCSs uniformly distributed, (b) MCSs distributed with 50% probability of being the slowest MCS (i.e., MCS 10), and 50% probability of being any of the remaining MCSs (MCS 0 to MCS 9), and (c) MCSs distributed with 50% probability of being the fastest MCS (i.e., MCS 9), and 50% probability of being any of the remaining MCSs. Results show that the GA-based grouping strategy provides a good trade-off between throughput and fairness performance in front of the other approaches. Obviously, when no grouping strategy is applied, fairness is maximized (15.98% above GA-based strategy, on average), but at the cost of minimizing overall throughput (41.04% below GAbased strategy, on average). The approach in which STAs are randomly distributed among groups does not show a good balance between throughput and fairness performances either (on average, fairness is 7.30% above GA-based strategy, throughput is 13.94% below GA-based strategy). On the other hand, the solution with STAs grouped based on their MCS similitude, results in unfair behavior for scenarios including a large amount of slow STAs (cf. Figure 22b) (on average, fairness is 8.54% below GA-based strategy). 5. Conclusions and Future Work In this paper, we have proposed a grouping strategy method for IEEE 802.11ah networks based on the usage of a genetic algorithm. In the first place, we validate the proposal and tune the GA parameters to get the best fitness result in a reduced amount of time. We choose an initial population composed of P = 15 individuals (14 randomly generated, one preset according to previous experiences), and a maximum number of RAW groups of R = 12. As the computational time required for the convergence of the GA was high, we propose an alternative method for throughput calculation, thus, considerably reducing the complexity and the computational time of the algorithm (a reduction of around 10,000 times), while only a decrease of around 2% is observed in the fitness value. With the new fitness calculation, we provide a comparison of different alternatives with regard to parent selection, crossover and mutation methods. For parent selection, we choose the RBS method, as it presents a significant decrease in the computational time (around 20%). With respect to crossover, the single-point choice provides a further reduction of around 23%. For mutation, the RSM method is selected, employing a segment length of 5 and a mutation probability of 0.21, as it offers better fitness and computational time performance. We also use a more constrained device to run the GA, a Raspberry Pi 3B+, where the grouping method converges in around 5 s. Finally, we conclude the evaluation with a comparison of the GA-based grouping strategy with other grouping Figure 22. Fairness performance for scenario with STAs with ( a ) MCSs uniformly distributed, ( b ) MCSs distributed with 50% probability of being the slowest MCS (i.e., MCS 10), and 50% probability of being any of the remaining MCSs (MCS 0 to MCS 9), and ( c ) MCSs distributed with 50% probability of being the fastest MCS (i.e., MCS 9), and 50% probability of being any of the remaining MCSs.
Sensors 2023,23, 862 22 of 24 5. Conclusions and Future Work In this paper, we have proposed a grouping strategy method for IEEE 802.11ah networks based on the usage of a genetic algorithm. In the first place, we validate the proposal and tune the GA parameters to get the best fitness result in a reduced amount of time. We choose an initial population composed of P= 15 individuals (14 randomly generated, one preset according to previous experiences), and a maximum number of RAW groups of R= 12 . As the computational time required for the convergence of the GA was high, we propose an alternative method for throughput calculation, thus, considerably reducing the complexity and the computational time of the algorithm (a reduction of around 10,000 times), while only a decrease of around 2% is observed in the fitness value. With the new fitness calculation, we provide a comparison of different alternatives with regard to parent selection, crossover and mutation methods. For parent selection, we choose the RBS method, as it presents a significant decrease in the computational time (around 20%). With respect to crossover, the single-point choice provides a further reduction of around 23%. For mutation, the RSM method is selected, employing a segment length of 5 and a mutation probability of 0.21, as it offers better fitness and computational time performance. We also use a more constrained device to run the GA, a Raspberry Pi 3B+, where the grouping method converges in around 5 s. Finally, we conclude the evaluation with a comparison of the GA-based grouping strategy with other grouping approaches, thus showing that the proposed mechanism provides a good trade-off between throughput and fairness performance. As part of our future work, we plan to analyze additional mechanisms for reducing the computational time of the algorithm. We also aim to study the usage of adaptive mutation algorithms for the mutation phase, which we believe is an alternative to explore for obtaining improved fitness and computational time performance. Author Contributions: Conceptualization, E.L.-A. and E.G.-V.; methodology, E.L.-A. and E.G.-V.; validation, E.L.-A., E.G.-V. and A.L.-G.; investigation, E.L.-A., E.G.-V. and A.L.-G.; writing—original draft preparation, E.L.-A. and E.G.-V.; writing—review and editing, E.L.-A. and E.G.-V.; visualization, E.L.-A. and E.G.-V.; supervision, E.L.-A. and E.G.-V. All authors have read and agreed to the published version of the manuscript. Funding: This research was funded in part by the Spanish MCIN/AEI/10.13039/501100011033 through project PID2019-106808RA-I00. Institutional Review Board Statement: Not applicable. Informed Consent Statement: Not applicable. Data Availability Statement: Not applicable. Conflicts of Interest: The authors declare no conflict of interest. References 1. IEEE Std 802.11; IEEE Standard for Information Technology-Telecommunications and Information Exchange between SystemsLocal and Metropolitan Area Networks-Specific Requirements—Part 11: Wireless LAN Medium Access Control (MAC) and Physical Layer (PHY) Specifications Amendment 2: Sub 1 GHz License Exempt Operation. IEEE Standards Association: Piscataway, NJ, USA, 2007. 2. IndustryARC. Wifi HaLoW Devices Market Forecast (2022–2027); Report ESR0678; IndustryARC: Hyderabad, India, 2022. 3. Baños-Gonzalez, V.; Afaqui, M.; Lopez-Aguilera, E.; Garcia-Villegas, E. IEEE 802.11ah: A Technology to Face the IoT Challenge. Sensors 2016,16, 1960. [CrossRef] [PubMed] 4. Bianchi, G. Performance analysis of the IEEE 802.11 distributed coordination function. IEEE J. Sel. Areas Commun. 2000 ,18, 535–547. [CrossRef] 5. Sivanandam, S.N.; Deepa, S. Introduction to Genetic Algorithms; Springer: Berlin/Heidelberg, Germany, 2008; ISBN 978-3-540-73189-4. 6. Tian, L.; Famaey, J.; Latré, S. Evaluation of the IEEE 802.11ah Restricted Access Window mechanism for dense IoT networks. In Proceedings of the IEEE 17th International Symposium on A World of Wireless Mobile and Multimedia Networks (WoWMoM), Coimbra, Portugal, 21–24 June 2016.
Sensors 2023,23, 862 23 of 24 7. Tian, L.; Santi, S.; Seferagi´c, A.; Lan, J.; Famaey, J. Wi-Fi HaLow for the Internet of Things: An up-to-date survey on IEEE 802.11ah research. J. Netw. Comput. Appl. 2021,182, 103036. [CrossRef] 8. Chang, T.-C.; Lin, C.-H.; Lin, K.-J.; Chen, W.-T. Load-Balanced Sensor Grouping for IEEE 802.11ah Networks. In Proceedings of the IEEE Global Communications Conference (GLOBECOM), San Diego, CA, USA, 6–10 December 2015. 9. Chang, T.C.; Lin, C.H.; Lin, K.J.; Chen, W.T. Traffic-Aware Sensor Grouping for IEEE 802.11ah Networks: Regression Based Analysis and Design. IEEE Trans. Mob. Comput. 2019,18, 674–687. [CrossRef] 10. Tian, L.; Khorov, E.; Latré, S.; Famaey, J. Real-Time Station Grouping under Dynamic Traffic for IEEE 802.11ah. Sensors 2017 , 17, 1559. [CrossRef] [PubMed] 11. Tian, L.; Santi, S.; Latré, S.; Famaey, J. Accurate Sensor Traffic Estimation for Station Grouping in Highly Dense IEEE 802.11ah Networks. In Proceedings of the ACM International Workshop on the Engineering of Reliable, Robust, and Secure Embedded Wireless Sensing Systems (FAILSAFE), Madeira, Portugal, 15–18 November 2017. 12. Ahmed, N.; Hussain, M. Periodic Traffic Scheduling for IEEE 802.11ah Networks. IEEE Commun. Lett. 2020 ,24, 1510–1513. [CrossRef] 13. Nawaz, N.; Hafeez, M.; Zaidi, S.R.; McLernon, D.; Ghogho, M. Throughput Enhancement of Restricted Access Window for Uniform Grouping Scheme in IEEE 802.11ah. In Proceedings of the IEEE International Conference on Communications (ICC), Paris, France, 21–25 May 2017. 14. Heusse, M.; Rousseau, F.; Berger-Sabbatel, G.; Duda, A. Performance anomaly of 802.11b. In Proceedings of the IEEE INFOCOM, San Franciso, CA, USA, 30 March–3 April 2003. 15. Sangeetha, U.; Babu, A. Fair and efficient resource allocation in IEEE 802.11ah WLAN with heterogeneous data rates. Comput. Commun. 2020,151, 154–164. [CrossRef] 16. Mahesh, M.; Pavan, B.; Harigovindan, V. Data rate-based grouping using machine learning to improve the aggregate throughput of IEEE 802.11ah multi-rate IoT networks. In Proceedings of the IEEE International Conference on Advanced Networks and Telecommunications Systems (ANTS), New Delhi, India, 14–17 December 2020. 17. Lakshmi, L.R.; Sikdar, B. Achieving Fairness in IEEE 802.11ah Networks for IoT Applications with Different Requirements. In Proceedings of the IEEE International Conference on Communications (ICC), Shanghai, China, 20–24 May 2019. 18. Mosavat-Jahromi, H.; Li, Y.; Cai, A. Throughput Fairness-based Grouping Strategy for Dense IEEE 802.11ah Networks. In Proceedings of the Annual International Symposium on Personal, Indoor and Mobile Radio Communications (PIMRC), Istanbul, Turkey, 8–11 September 2019. 19. Lopez-Aguilera, E.; Casademont, J.; Garcia-Villegas, E. A study on the influence of transmission errors on WLAN IEEE 802.11 MAC performance. Wirel. Commun. Mob. Comput. 2011,11, 1376–1391. [CrossRef] 20. Baños-Gonzalez, V.; Lopez-Aguilera, E.; Garcia-Villegas, E. E-model: An analytical tool for fast adaptation of IEEE 802.11ah RAW grouping strategies. In Proceedings of the IEEE Global Communications Conference (GLOBECOM), Taipei, Taiwan, 7–11 December 2020. 21. Jain, R.; Chiu, D.; Hawe, W. A Quantitative Measure of Fairness and Discrimination for Resource Allocation in Shared Computer Systems; DEC Research Report TR-301; Eastern Research Laboratory, Digital Equipment Corporation: Hudson, MA, USA, 1984. 22. Lipowski, A.; Lipowska, D. Roulette-wheel selection via stochastic acceptance. Phys. A Stat. Mech. Its Appl. 2012 ,391, 2193–2196. [CrossRef] 23. Baker, J.K. Reducing bias and inefficiency in the selection algorithm. In Proceedings of the 2nd International Conference on Genetic Algorithms and their Application, Cambridge, MA, USA, 28–31 July 1987. 24. Bäck, T.; Fogel, D.B. Michalewicz, Evolutionary Computation 1: Basic Algorithms and Operators; Taylor & Francis Group: Oxfordshire, UK, 2000; ISBN 978-0-7503-0664-5. 25. Phyu, S.P.; Srijuntongsiri, G. Effect of the number of parents on the performance of multi-parent genetic algorithm. In Proceedings of the 11th International Conference on Knowledge, Information and Creativity Support Systems (KICSS), Yogyakarta, Indonesia, 10–12 November 2016. 26. Gwiazda, T.D. Genetic Algorithms Reference Vol.1 Crossover for Single-Objective Numerical Optimization Problems; TomaszGwiazda E-Books: Lomianki, Poland, 2006; ISBN 978-83-923958-1-2. 27. Rimcharoen, S.; Leelathakul, N. Ring-based crossovers in Genetic Algorithms: Characteristic decomposition and their generalization. IEEE Access 2021,9, 137902–137922. [CrossRef] 28. Abdoun, O.; Abouchabaka, J.; Tajani, C. Analyzing the performance of mutation operators to solve the travelling salesman problem. arXiv 2012, arXiv:1203.3099. 29. Liu, C.; Kroll, A. Performance impact of mutation operators of a subpopulation-based genetic algorithm for multi-robot task allocation problems. SpringerPlus 2016,5, 1361. [CrossRef] [PubMed] 30. Garcia, E.; Viamonte, D.; Vidal, R.; Paradells, J. Achievable Bandwidth Estimation for Stations in Multi-Rate IEEE 802.11 WLAN Cells. In Proceedings of the IEEE International Symposium on a World of Wireless, Mobile and Multimedia Networks (WoWMoM), Espoo, Finland, 18–21 June 2007.
Sensors 2023,23, 862 24 of 24 31. Qutab-ud-Din, M.; Hazmi, A.; Del Carpio, L.F.; Gökceoglu, A.; Badihi, B.; Amin, P.; Larmo, A.; Valkama, M. Duty Cycle Challenges of IEEE 802.11ah Networks in M2M and IoT Applications. In Proceedings of the European Wireless, Oulu, Finland, 18–20 May 2016. 32. Seferagi´c, A.; Famaey, J.; De Poorter, E.; Hoebeke, J. Survey on Wireless Technology Trade-Offs for the Industrial Internet of Things. Sensors 2020,20, 488. [CrossRef] [PubMed] Disclaimer/Publisher’s Note: The statements, opinions and data contained in all publications are solely those of the individual author(s) and contributor(s) and not of MDPI and/or the editor(s). MDPI and/or the editor(s) disclaim responsibility for any injury to people or property resulting from any ideas, methods, instructions or products referred to in the content.