Package: simu5g.stack.backgroundTrafficGenerator.generators
TrafficGeneratorCbr
simple moduleThis module specializes the TrafficGeneratorBase module to provide a Constant Bit Rate (CBR) background traffic generator. This generator produces fixed-size packets at regular intervals in either downlink or uplink bands, or both.
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Extends
Name | Type | Description |
---|---|---|
TrafficGeneratorBase | simple module |
This module provides the basic functions and parameters that a traffic generator submodule (implementing the ITrafficGenerator interface) can utilize. It enables the configuration of parameters such as the starting time of the traffic, the size and inter-generation timing of packets, the rate of retransmissions, and so on. Custom background traffic generators can be implemented by extending this module. |
Parameters
Name | Type | Default value | Description |
---|---|---|---|
computeAvgInterference | bool | ||
enablePeriodicCqiUpdate | bool | ||
useProbabilisticCqi | bool | ||
backgroundTrafficManagerModule | string | "^.^.manager" | |
startTimeDl | double | -1s | |
startTimeUl | double | -1s | |
headerLen | int | 33B | |
txPower | double | 26dBm | |
fbPeriod | int | 6tti | |
periodDl | double | uniform(10ms,50ms) | |
periodUl | double | uniform(10ms,50ms) | |
packetSizeDl | int | intuniform(20B,100B) | |
packetSizeUl | int | intuniform(20B,100B) | |
rtxRateDl | double | 0.1 | |
rtxDelayDl | double | 0.006s | |
rtxRateUl | double | 0.1 | |
rtxDelayUl | double | 0.006s | |
cqiMeanDl | double | 15 |
these values are only considered when
|
cqiMeanUl | double | 15 | |
cqiStddevDl | double | 0 | |
cqiStddevUl | double | 0 |
Properties
Name | Value | Description |
---|---|---|
display | i=block/source | |
class | TrafficGeneratorCbr |
Signals
Name | Type | Unit | Description |
---|---|---|---|
bgMeasuredSinrDl |
statistics |
||
bgAverageCqiDl | |||
bgMeasuredSinrUl | |||
bgAverageCqiUl | |||
bgHarqErrorRateUl | |||
bgHarqErrorRateDl |
Statistics
Name | Title | Source | Record | Unit | Interpolation Mode | Description |
---|---|---|---|---|---|---|
bgMeasuredSinrDl | Average DL SINR for background UEs | bgMeasuredSinrDl | mean, count, vector | |||
bgAverageCqiDl | Average DL CQI for background UEs | bgAverageCqiDl | mean, count, vector | |||
bgMeasuredSinrUl | Average UL SINR for background UEs | bgMeasuredSinrUl | mean, count, vector | |||
bgAverageCqiUl | Average UL CQI for background UEs | bgAverageCqiUl | mean, count, vector | |||
bgHarqErrorRateUl | Average UL HARQ error rate for background UEs | bgHarqErrorRateUl | mean, count, vector | |||
bgHarqErrorRateDl | Average DL HARQ error rate for background UEs | bgHarqErrorRateDl | mean, count, vector |
Source code
// // This module specializes the ~TrafficGeneratorBase module to provide a // Constant Bit Rate (CBR) background traffic generator. This generator // produces fixed-size packets at regular intervals in either downlink // or uplink bands, or both. // simple TrafficGeneratorCbr extends TrafficGeneratorBase { parameters: @display("i=block/source"); @class("TrafficGeneratorCbr"); }File: src/stack/backgroundTrafficGenerator/generators/TrafficGeneratorCbr.ned