A WLAN-oriented distributed hierarchical parallel simulation method

Wendi Jia, Mao Yang, Zhongjiang Yan, Bo LiXibei 2024

Abstract: To address the declining efficiency of distributed parallel simulations in large-scale wireless local area networks (WLANs), this paper proposes a novel three-layer hierarchical synchronization method. By organizing simulated station (STA) nodes into groups managed by group leaders, the communication overhead at the central Access Point (AP) process is significantly reduced. Theoretical analysis and simulation results demonstrate that the proposed method can achieve a performance gain of up to 50% for 100-node networks and nearly 90% for larger scales under low computational loads.

The Scalability Challenge in WLAN Simulation

As network protocols like Wi-Fi 7 increase in complexity, engineers rely on discrete-event simulators such as NS-3 to validate performance. For large-scale scenarios involving hundreds of devices, distributed parallel simulation is essential, where different network components are simulated across multiple CPU cores.

However, these cores must remain synchronized. In a standard WLAN star topology, the process simulating the Access Point (AP) typically acts as the master process. It must receive a "null message" (a synchronization signal) from every single simulated Station (STA) before advancing the simulation time. As the number of STAs ($n$) grows, the time spent by the AP processing these messages increases linearly. This overhead eventually dominates the simulation time, leading to a massive drop in efficiency as the simulator spends more time on synchronization than on actual protocol computation.

Hierarchical Simulation Architecture

The core innovation of this research is the transition from a "flat" synchronization structure to a Distributed Hierarchical Parallel Simulation method. The architecture is organized into three distinct layers:

  1. Main Process Layer: Represents the WLAN Access Point and manages global time synchronization.
  2. Group Leader Process Layer: Intermediate processes that consolidate synchronization signals from a specific subset of devices.
  3. Group Member Process Layer: Individual processes simulating the STA nodes.
The proposed three-layer hierarchical structure for distributed parallel simulation, dividing $n$ nodes into groups of size $m$.

In this workflow, the Main Process broadcasts a simulation start event. Group Members perform their tasks and report completion to their assigned Group Leader. The Group Leader waits for all its members to finish before sending a single consolidated report to the Main Process. This reduces the Main Process's waiting time from being proportional to the total number of nodes ($n$) to being proportional to the number of groups ($n/m$).

Performance Evaluation and Key Results

The researchers derived a closed-form expression for the "Gain Factor" ($G$) to theoretically predict performance improvements. Simulations were conducted with node counts ranging from 40 to 480 and group sizes ($m$) of 10, 20, and 40.

Simulation results showing the gain factor as a function of node count for different group sizes.

Key findings include:

  • Significant Speedup: For a 100-node network with a moderate computational load, the hierarchical method achieved a 50% performance gain over traditional flat methods.
  • Scalability: The gain increases with the number of nodes. In "zero-load" scenarios (measuring pure synchronization overhead), the gain reached nearly 90% as the node count approached 480.
  • Optimal Grouping: The results indicate a "sweet spot" for group size. While smaller groups reduce the time members wait for a leader, larger groups reduce the number of messages the Main Process must handle. The data suggests that for a fixed $n$, the choice of $m$ is critical for maximizing efficiency.

Conclusion

By introducing an intermediate management layer, the proposed hierarchical method effectively breaks the linear bottleneck of synchronization in WLAN simulations. This approach allows for much larger and more complex network simulations without the prohibitive overhead typical of traditional parallel architectures. Future work may explore dynamic grouping strategies to handle heterogeneous workloads and multi-AP environments.

Summary updated

BibTeX
@inproceedings{jia2024wlan,
  author = {Wendi Jia and Mao Yang and Zhongjiang Yan and Bo Li},
  title = {{A WLAN-oriented distributed hierarchical parallel simulation method}},
  booktitle = {Xibei},
  year = {2024},
  doi = {10.1051/jnwpu/20244250895},
}
Figure