【问题标题】:Setting default RTO (Retransmit Timeout) value in ns-3 simulator在 ns-3 模拟器中设置默认 RTO(重传超时)值
【发布时间】:2014-02-27 10:02:00
【问题描述】:

我在 rtt-estimator.h 中发现了这一点,构造函数设置了 m_initialEstimatedRtt 的值,我相信它直接控制重传超时值。

我不确定如何设置m_initialEstimatedRtt 的值。

我看到一个名为 SetCurrentEstimate 的方法可以用来更改该值,但我不确定如果我使用它应该在模拟的哪个阶段修改它,所以我更喜欢控制初始值。

我还想知道示例中设置的默认值是什么,我在哪里可以找到它?

【问题讨论】:

    标签: tcp ns-3 retransmit-timeout


    【解决方案1】:

    有很多方法可以设置该变量,主要是通过属性系统。与该变量关联的属性是来自 rtt-estimator.cc 的 ns3::RttEstimator::InitialEstimation)

    如果您遵循标准脚本布局,您只需使用以下命令行参数:

    --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

    【讨论】:

    • 不要忘记设置 --ns3::TcpSocketBase::MinRto !
    猜你喜欢
    • 2016-01-11
    • 2011-03-24
    • 2021-05-25
    • 2012-08-07
    • 1970-01-01
    • 2016-07-28
    • 2022-08-19
    • 2012-01-26
    • 2021-10-01
    相关资源
    最近更新 更多