DataRate attribute for OnOff Application refers to the DataRate during the OnTime of the application. You will find the details at the OnOffApplication class (src/applications/model/onoff-application.cc) attribute:
.AddAttribute ("DataRate", "The data rate in on state.",
DataRateValue (DataRate ("500kb/s")),
MakeDataRateAccessor (&OnOffApplication::m_cbrRate),
MakeDataRateChecker ())
As well as we the calculation of the next scheduling event time in the same class in the following method:
void OnOffApplication::ScheduleNextTx ()
The throughput of the node refers to the number of bytes per unit of time transmitted by the node in your case.
In this case, it will be equal to the DataRate you set for the Application at the same plus the packet header cost (TCP/UDP header, IP header) due to the encapsulation, if you assume that only one application is running at a time.
The optimal value depends on your definition of optimality. To set the value, you might need to consider the objective of your simulation, as an example, if you want to simulate a congested link w.r.t. certain network utilization, you could calculate the target DataRate to be set based on your simulation target.
Hope it helps!
在 2019年5月21日星期二 UTC+8上午4:32:31,Con con写道: