- /** @brief Should we use the decay model ? */
- bool use_decay_model_ = false;
- /** @brief Wifi maximal bit rate according to the ns-3 802.11n standard */
- const double wifi_max_rate_ = 54 * 1e6 / 8;
- /** @brief minimum bit rate observed with ns3 during our calibration experiments */
- const double wifi_min_rate_ = 41.70837 * 1e6 / 8;
- /** @brief Amount of stations used in the reference point to rescale SimGrid predictions to fit ns-3 ones */
- const int model_n_ = 5;
- /** @brief Bit rate observed on ns3 at the reference point used for rescaling */
- const double model_rate_ = 42.61438 * 1e6 / 8;
- /** @brief The bandwidth to use for each SNR level, corrected with the decay rescale mechanism */
+ bool use_callback_ = false;
+ /*
+ * Values used for the throughput degradation:
+ * ratio = x0_ + co_acc_ * nb_active_flux_ / x0_
+ **/
+ /** @brief base maximum throughput to compare to when computing the ratio */
+ const double x0_ = 5678270;
+ /** @brief linear regression factor */
+ const double co_acc_ = -5424;
+ /** @brief minimum number of concurrent flows before using the linear regression */
+ const int conc_lim_ = 20;
+ /** @brief current concurrency on the link */
+ int nb_active_flux_ = 0;
+