Calculates the aggregated effective data rate based on the nodes’ positions, MCS, and tx power.
Channel is modeled using TGax channel model with additive white Gaussian noise. Effective
data rate is calculated as the sum of data rates of all successful transmissions. Success of
a transmission is a Binomial random variable with success probability depending on the SINR and
number of trials equal to the number of frames in the slot. SINR is calculated as the difference
between the signal power and the interference level. Interference level is calculated as the sum
of the signal powers of all interfering nodes and the noise floor in the linear scale.
Important
This simulation does not support multiple simultaneous transmissions to the same node.
Parameters:
key (PRNGKey) – JAX random number generator key.
tx (Array) – Two dimensional array of booleans indicating whether a node is transmitting to another node.
If node i is transmitting to node j, then tx[i, j] = 1, otherwise tx[i, j] = 0.
pos (Array) – Two dimensional array of node positions. Each row corresponds to X and Y coordinates of a node.
mcs (Array|None) – Modulation and coding scheme of the nodes. Each entry corresponds to MCS of the transmitting node.
If MCS is set to None, the simulator will select the best MCS greedily.
tx_power (Array) – Transmission power of the nodes. Each entry corresponds to the transmission power of the transmitting node.
sigma (float) – Standard deviation of the additive white Gaussian noise.
walls (Array) – Adjacency matrix of walls. If node i is separated from node j by a wall,
then walls[i, j] = 1, otherwise walls[i, j] = 0.
channel_width (int) – Channel width in MHz.
return_internals (bool) – A flag indicating whether the simulator returns additional information about the simulation results.
path_loss_fn (Callable) – A function that calculates the path loss between two nodes. The function signature should be
path_loss_fn(distance: Array, walls: Array) -> Array, where distance is the matrix of distances
between nodes and walls is the adjacency matrix of walls. By default, the simulator uses the
residential TGax path loss model.
Returns:
Aggregated effective data rate in Mb/s if return_sample is False.
Otherwise, a pair of data rate and the number of transmitted frames.
Parameters of the success probability curves - cdf of the normal distribution with standard deviation of 1.6
(derived from ns-3 simulations with Nakagami fading)