Skip to main content

IEEE 802.11 MAPC (c-SR) simulator

Project description

IEEE 802.11 MAPC Coordinated Spatial Reuse (C-SR) Simulator

mapc-sim is a simulation tool for IEEE 802.11 Multi-Access Point Coordination (MAPC) scenarios with coordinated spatial reuse (C-SR). It provides a framework for modeling and analyzing the performance of wireless networks under various configurations and environmental conditions. A detailed description can be found in:

  • Maksymilian Wojnar, Wojciech Ciezobka, Katarzyna Kosek-Szott, Krzysztof Rusek, Szymon Szott, David Nunez, and Boris Bellalta. "IEEE 802.11bn Multi-AP Coordinated Spatial Reuse with Hierarchical Multi-Armed Bandits", $JOURNAL_NAME_TODO, 2024. [TODO_PREPRINT_INSERT, TODO_PUBLICATION_INSERT]

Features

  • Simulation of C-SR: You can simulate the C-SR performance of an 802.11 network, including the effects of hidden nodes, variable transmission power, node positions, and modulation and coding schemes (MCS). Calculate the aggregated effective data rate.
  • TGax channel model: The simulator incorporates the TGax channel model for realistic simulation in enterprise scenarios. The simulator also supports the effects of wall attenuation and random noise in the environment.

Repository Structure

The repository is structured as follows:

  • mapc_sim/: Main package containing the simulator.
    • constants.py: Physical and MAC layer constants used in the simulator.
    • sim.py: Main simulator code.
    • utils.py: Utility functions, including the TGax channel model.
  • test/: Unit tests and benchmarking scripts.

Installation

The package can be installed using pip:

pip install mapc-sim

Usage

The main functionality is provided by the network_data_rate function in mapc_sim/sim.py. This function calculates the effective data rate for a given network configuration. Example usage:

from mapc_sim.sim import network_data_rate

# Define your network configuration
# ...

data_rate = network_data_rate(key, tx, pos, mcs, tx_power, sigma, walls)

For more detailed examples, refer to the test cases in test/test_sim.py.

Testing and Benchmarking

Run the unit tests to ensure everything is working correctly:

python -m unittest

You can benchmark the performance of the simulator using test/sim_benchmark.py.

Additional Notes

  • The simulator is written in JAX, an autodiff library for Python. It may require additional dependencies or configurations to run properly, especially with GPU acceleration. For more information on JAX, please refer to the official JAX repository.

How to reference mapc-sim?

TODO

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mapc_sim-0.1.4.tar.gz (16.8 kB view details)

Uploaded Source

Built Distribution

mapc_sim-0.1.4-py3-none-any.whl (14.3 kB view details)

Uploaded Python 3

File details

Details for the file mapc_sim-0.1.4.tar.gz.

File metadata

  • Download URL: mapc_sim-0.1.4.tar.gz
  • Upload date:
  • Size: 16.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for mapc_sim-0.1.4.tar.gz
Algorithm Hash digest
SHA256 22ade13acf30f55201e39654e2c05c6288fdddf11940021758cd29da9bc148d5
MD5 92f2ee1effd1711c4b5a591723b7ecd0
BLAKE2b-256 00f03c478446ab1a52c9c5face0ae0c6ce12d36b42f262375722203fe0650cbe

See more details on using hashes here.

File details

Details for the file mapc_sim-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: mapc_sim-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 14.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.7

File hashes

Hashes for mapc_sim-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 b939108203b8ea1531783b917c05bc93cda284f9a5f3c8426433de4c94f21070
MD5 faf46ca6af9de581eb3c71c1916524cc
BLAKE2b-256 6365031f949cd37f60ccfb56a04820b0b39df9597d067a31fe12c2379ae5b9d2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page