Abstract: We study the problem of adaptive contention window (CW) design for random-access wireless networks. More precisely, our goal is to design an intelligent node that can dynamically adapt its minimum CW (MCW) parameter to maximize a network-level utility knowing neither the MCWs of other nodes nor how these change over time. To achieve this goal, we adopt a reinforcement learning (RL) framework where we circumvent the lack of system knowledge with local channel observations and we reward actions that lead to high utilities. To efficiently learn these preferred actions, we follow a deep Q-learning approach, where the Q-value function is parametrized using a multi-layer perception. In particular, we implement a rainbow agent, which incorporates several empirical improvements over the basic deep Q-network. Numerical experiments based on the NS3 simulator reveal that the proposed RL agent performs close to optimal and markedly improves upon existing learning and non-learning based alternatives.
Introduction
In modern wireless communications, achieving "fairness" among multiple devices competing for a single access point (AP) is a significant challenge. These devices utilize a Contention Window (CW)—a random timer—to coordinate transmissions. If the window is too small, frequent collisions occur; if it is too large, the spectrum remains underutilized. Standard protocols like IEEE 802.11 use fixed "one-size-fits-all" parameters that often fail in dynamic environments or when nodes act selfishly. This research proposes a smarter, adaptive approach using Deep Reinforcement Learning (RL).
The Rainbow DQN Framework
The core of the proposed solution is an intelligent wireless node acting as an RL agent. Instead of following rigid, pre-defined rules, the node learns optimal behavior through trial and error within its environment.
Agent Design
- The Agent: A "Rainbow" Deep Q-Network (DQN) agent. This architecture incorporates six state-of-the-art improvements over standard DQNs, such as prioritized replay and dueling networks, to enhance learning stability.
- State Space: The agent relies on local observations, specifically a history (memory buffer $M$) of its own successful transmissions and those of other nodes.
- Action Space: The agent selects a Minimum Contention Window (MCW) value from a discrete set of possibilities (e.g., 32, 48, 64).
- Reward Function: The agent is incentivized by a fairness utility. A high reward is granted when the node consumes its fair $1/N$ share of the airtime, while rewards decrease if the node hogs the channel or remains too passive.
Experimental Results
The researchers evaluated the agent using the NS3 simulator, creating high-load scenarios with 5, 10, and 20 nodes. The RL agent was compared against several baselines, including a theoretical "Optimal" (OPT) design with perfect system knowledge, standard IEEE 802.11 (SP), and supervised learning models like Random Forests (RF).
Performance and Scalability
As shown in Figure 6, the Rainbow DQN agent (RL) performs remarkably close to the theoretical optimum across all tested network sizes. It significantly outperforms the standard IEEE 802.11 protocol (SP), which struggles to maintain fairness as the number of nodes increases.
Key Insights
- Memory is Critical: The study found that increasing the history buffer ($M$) is vital for navigating complex environments. Moving from $M=1$ to $M=3$ boosted fairness utility from 0.941 to 0.973, as the agent could better account for temporal dependencies.
- RL vs. Supervised Learning: While supervised models like Random Forests were tested, they often became "confused" by hidden network states. The RL agent's ability to understand temporal patterns made it superior.
- Local Sufficiency: A major finding is that local observations—specifically the ratio of a node's own successes to others'—provide sufficient information for the agent to act optimally without needing global network data.
Conclusion
The Rainbow DQN approach offers a robust, near-optimal solution for adaptive contention window design. By relying only on local channel activity, the intelligent node can ensure network-wide fairness even in uncertain environments. Future work will explore multi-agent scenarios where every node runs an RL agent, potentially leading to new challenges in competition and stability.
Summary updated