Advertisement

NS3配置wifi模块最大重传次数设置

阅读量:

简介

所用版本为NS3.26

  1. 在创建WifiHelper对象时,其默认配置的RemoteStationManager类型被设定为ns::ArfWifiManager
  2. ArfWifiManager属于RemoteStationManager的派生类
  3. RemoteStationManager类中包含一个名为m_maxSlrc的成员变量,用于记录数据包可允许的最大重传次数
  4. MaxSlrc作为该类的一个属性变量被定义
最大重传次数源码

如图所示,相关代码在NS3中的具体路径为:src/wifi/model/wifi-remote-station-manager.cc

方式一

通过调整属性变量来改变最大重传次数的设定值

复制代码
    /* param1: 属性命名空间路径
     * param2: 属性值 */
    Config::Set("/NodeList/*/DeviceList/*/$ns3::WifiNetDevice/RemoteStationManager/MaxSlrc",Uintege

全部评论 (0)

还没有任何评论哟~