Index: src/applications/model/onoff-application.h |
=================================================================== |
--- a/src/applications/model/onoff-application.h |
+++ b/src/applications/model/onoff-application.h |
@@ -49,6 +49,9 @@ |
* variables. During the "Off" state, no traffic is generated. |
* During the "On" state, cbr traffic is generated. This cbr traffic is |
* characterized by the specified "data rate" and "packet size". |
+ * If advanced mode is enabled, the packet sizes and intervals are |
+ * taken from random variable sreams instead of calculating from |
+ * constant packet size and data rate. |
*/ |
/** |
* \ingroup onoff |
@@ -155,7 +158,7 @@ |
Ptr<RandomVariableStream> m_offTime; //!< rng for Off Time |
DataRate m_cbrRate; //!< Rate that data is generated |
DataRate m_cbrRateFailSafe; //!< Rate that data is generated (check copy) |
- uint32_t m_pktSize; //!< Size of packets |
+ uint32_t m_pktSize; //!< Size of packets in bytes |
uint32_t m_residualBits; //!< Number of generated, but not sent, bits |
Time m_lastStartTime; //!< Time last packet sent |
uint64_t m_maxBytes; //!< Limit total number of bytes sent |
@@ -163,6 +166,11 @@ |
EventId m_startStopEvent; //!< Event id for next start or stop event |
EventId m_sendEvent; //!< Event id of pending "send packet" event |
TypeId m_tid; //!< Type of the socket used |
+ bool m_isStatisticsTagsEnabled; //!< Enable placing a TrafficTimeTag to each packet for delay statistics. |
+ bool m_advancedMode; //!< Enable random variable streams for packet sizes and intervals and disable data rate. |
+ Ptr<RandomVariableStream> m_advPacketSize; //!< Random variable stream for packet sizes. |
+ Ptr<RandomVariableStream> m_advPacketInterval; //!< Random variable stream for interval between sending packets. |
+ |
/// Traced Callback: transmitted packets. |
TracedCallback<Ptr<const Packet> > m_txTrace; |