3.2. Performance Modeling and RAW Parameters Optimization
Assuming that the number of RAW groups is denoted as , the number of slots in each RAW group is represented by , and the duration of a slot in each RAW group is denoted as , where . Thus, the set of number of STAs in each RAW group, the set of number of slots in each RAW, and the set of slot durations for RAW groups are represented as , , and , respectively.
The correlation between RAW parameters and network throughput can be derived based on the analytical model proposed in [
14]. Given that the STAs are uniformly distributed among slots in a RAW, the number of STAs in each slot can be approximated as
, and the intensity of contention in each slot is considered to be the same. Consequently, for the STAs in each slot of the
i-th RAW, the probability of STAs suspending their backoff counter is defined as
, indicating that the suspending probability is related to the transmission probability
, the number of STAs in each slot
, and the slot duration
. The collision probability is denoted as
.
The backoff process of a STA’s backoff counter can be analyzed using a two-dimensional Markov chain [
14]. Each state during the backoff process can be represented as a probability, and the steady-state probability of each state can be further determined. According to the normalization formula, a closed-form expression for the steady-state probability of the backoff counter decreasing to zero can be obtained as
, indicating that the steady-state probability at state-0 is dependent on the suspending probability
, the collision probability
, the given minimum size of the contention window
and retry limit
m. Subsequently, the transmission probability can be computed as
The collision probability is given by
, and the probability that at least one STA transmits data in a slot is denoted as
. Furthermore, the successful transmission probability can be represented as
The normalized slot throughput can be calculated as
where
represents the average payload size of a data frame,
is the time of a mini-slot in the contention window. The time for a successful data transmission and the time spent due to collision is respectively denoted as
and
, which are calculated in [
14]. The effective time for data transmissions in a slot is
. Finally, the normalized throughput of the network can be denoted by
where the duration of the beacon interval
is dependent on the total duration of RAWs in one beacon interval.
According to (
6), network throughput is related to the successful transmission probability, which in turn depends on the collision probability and the transmission probability. These probabilities are influenced by the number of STAs in a slot and the slot duration. Moreover, the number of RAW groups and the number of slots in a RAW jointly determine the number of STAs in a slot. Intuitively, the increasing number of RAW groups and slot divisions reduce the number of STAs per slot, thereby decreasing the collision probability. Increasing the slot duration, on the other hand, allows more time for data transmission in a slot, thereby reducing data buffering. Therefore, increasing the number of RAW groups, dividing more slots in a RAW and extending the slot duration can greatly enhance network throughput. However, excessive RAW divisions may cause more STAs to remain idle, leading to data buffering. Similarly, an excessively long slot duration may result in wasted time in networks with low traffic loads. There is a trade-off in adjusting the RAW parameters. Hence, by jointly optimizing the number of RAW groups
, RAW slot counts
, and slot durations
with
, we can formulate the network throughput maximization problem as follows:
The existing studies prefer to construct complicated analytical models of RAW, and further propose optimization methods to find the optimal RAW parameters to improve network throughput. However, solving RAW parameters optimization problems based on analytical models may lead to a high level of computational complexity or even impracticality in dynamic networks. On the one hand, these analytical models require a series of assumptions, including saturated network traffic, ideal channel conditions, and packet loss solely caused by collisions. Moreover, the analytical models do not comprehensively consider details about the RAW mechanism and channel conditions. Although some studies have refined the analytical models and taken more complex network conditions into account, this has made the analysis process more cumbersome. On the other hand, due to the mathematical or heuristic methods often involve complex rules and have not been validated in different network scenarios, their generalization ability in complex and dynamic network conditions needs to be improved.
To investigate practical network states, the IEEE 802.11ah network simulation environment is developed based on a widely used network simulator called NS-3 [
5]. NS-3 is used to bulid simulation environments that closely resemble real-world network environments. The partial mechanisms of the PHY and MAC layers including the RAW mechanism are also implemented. While analytical results serve as references for optimizing RAW parameters, the simulation environment implemented by NS-3 undoubtedly provides more accurate results and can serve as a benchmark for validating these analytical results. Additionally, with the capability of handling complex and dynamic environments, DRL-based methods are well-suited for addressing RAW parameters optimization problems and demonstrate strong generalizability across various scenarios.
To determine the optimal RAW parameters in complex network environments that closely mimic real-world scenarios, we construct network environments using the NS-3 simulator, and employ the DRL-based method to decide on the RAW parameters to enhance network throughput. The specific methodology will be elaborated in the following section.