我在rtt-估值器中发现了这一点。h构造函数为m_initialEstimatedRtt设置值,我认为它直接控制重传超时值。
我不知道如何设置m_initialEstimatedRtt的值。
我看到了一个名为SetCurrentEstimate的方法,它可以用来改变这个值,但是我不确定在模拟的哪个阶段,如果我使用它,我应该修改它,所以我更喜欢控制初始值。
另外,我想知道示例中设置的默认值是什么,在哪里可以找到它?
发布于 2014-02-27 16:37:04
设置该变量的方法有很多,主要是通过属性系统。与该变量关联的attriobute为NS3::RttEstimator::来自rtt-估值器. to的初始估计)
如果您遵循了标准脚本布局,则只需使用以下命令行参数:
--ns3::RttEstimator::InitialEstimation=1.0s本教程通过命令行和环境变量( http://www.nsnam.org/docs/release/3.19/tutorial/html/tweaking.html#using-command-line-arguments )简要介绍了属性的使用。
这里有更多的细节:http://www.nsnam.org/docs/release/3.19/manual/html/attributes.html
您可能会发现ConfigStore也很有用:http://www.nsnam.org/docs/release/3.19/manual/html/attributes.html#configstore
https://stackoverflow.com/questions/22065048
复制相似问题