0

I found this in rtt-estimator.h the constructor sets the value for m_initialEstimatedRtt which I believe directly controls the Retransmit Timeout value.

I am not sure how to set the value for m_initialEstimatedRtt.

I see a method named SetCurrentEstimate that could be used to change that value but I am not sure at what stage in the simulation I should modify it if I use that so I prefer to control the initial.

Also I'm wondering what is the default value set in the examples and where can I find it?

ProgramFOX
  • 6,131
  • 11
  • 45
  • 51
AturSams
  • 7,568
  • 18
  • 64
  • 98

1 Answers1

1

There are many ways to set that variable, chiefly through the attribute system. The attriobute associated to that variable is ns3::RttEstimator::InitialEstimation from rtt-estimator.cc)

If you have followed the standard script layout, all you need is to use the following command-line argument:

--ns3::RttEstimator::InitialEstimation=1.0s

The tutorial gives a gentle introduction to the use of attributes through the command-line and environment variables: http://www.nsnam.org/docs/release/3.19/tutorial/html/tweaking.html#using-command-line-arguments

There are more details there: http://www.nsnam.org/docs/release/3.19/manual/html/attributes.html

You might find the ConfigStore useful too: http://www.nsnam.org/docs/release/3.19/manual/html/attributes.html#configstore

mathieu
  • 2,954
  • 2
  • 20
  • 31