Dear Jared,
I have gone through these, and I have found the following methods and a member variable that can get the data rate;
uint64_t ns3::WifiMode::GetDataRate(WifiTxVector txVector) const;
uint64_t ns3::WifiMode::GetDataRate(uint16_t channelWidth, uint16_t guardInterval, uint8_t nss) const;
uint64_t ns3::WifiMode::GetDataRate(uint16_t channelWidth) const;
ns3::WifiMode::GetCodeRate (void) const;
uint64_t ns3::WifiMode::GetPhyRate (uint16_t channelWidth, uint16_t guardInterval, uint8_t nss) const;
uint64_t ns3::WifiMode::GetPhyRate(WifiTxVector txVector) const;
uint64_t ns3::WifiMode::GetPhyRate(uint16_t channelWidth) const;
The values of GetPhyRate(WifiTxVector txVector) and GetDataRate(WifiTxVector txVector) do change whenever a packet is sent or received but the values of GetCodeRate or m_cbrRate.GetBitRate() remain same always. Which one should I use in order to calculate data transfer time among mobile devices?
On Tuesday, November 12, 2019 at 11:47:36 PM UTC+9, Jared Dulmage wrote: