Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1328)

Unified Diff: src/applications/model/onoff-application.h

Issue 318880043: CBR (constant bit-rate) application and advanced funtionality for OnOffApplication
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/applications/model/cbr-application.cc ('k') | src/applications/model/onoff-application.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
« no previous file with comments | « src/applications/model/cbr-application.cc ('k') | src/applications/model/onoff-application.cc » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b