DescriptionAdded a new CBR (constant bit-rate) application and advanced functionality for OnOffApplication.
- CBR application generates constant-sized packets at a constant interval. The functionality is pretty much the same as in old version of OnOffApplication, but data rate is configured by using attributes "PacketSize" and "Interval" rather than data rate.
- OnOff application has a few new attributes: "AdvancedMode", "AdvancedPacketSize" and "AdvancedPacketInterval". "AdvancedMode" attribute is a flag enabling the use of random variable streams as sources for generated packet sizes and packet intervals rather than constant packet size integer and constant data rate. Advanced mode also disables the effect of "DataRate" attribute. Default functionality of OnOffApplication is left untouched, so it can be configured just as before.
TrafficTimeTag is also included into stats module to enable extraction of delay statistics in a simple manner. Perhaps adding the TrafficTimeTag caused a slight issue with default src/stats/examples/wscript, or it may have been there before: the time-probe-example caused a dependency problem during compilation, since it did not have 'network' module listed as a dependency.
There is also an issue with src/traffic-control/examples/red-vs-ared tests run by test.py: due to initialization of new random variable streams "AdvancedPacketSize" and "AdvancedPacketInterval", the default values given by random variables "OnTime" and "OffTime" are altered and the tests fail. This has been verified by commenting out the new attributes in OnOffApplication, effectively removing the initialization of new random variable streams, and the tests passing as usual.
Patch Set 1 #
MessagesTotal messages: 3
|