ITrafficGenerator

Package: simu5g.background.trafficGenerator.generators

module interface ITrafficGenerator

Defines the contract for traffic generator modules within the BackgroundTrafficGenerator module. This interface can be implemented by other modules to create a custom traffic generator; see TrafficGeneratorCbr as an example.

Inheritance diagram

Implemented by

Name

Type

Description

TrafficGeneratorBase

simple 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.

TrafficGeneratorCbr

simple 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.

Properties

Name

Value

Description

display

i=block/source

Source code

//
// Defines the contract for traffic generator modules
// within the ~BackgroundTrafficGenerator module. This interface can be implemented
// by other modules to create a custom traffic generator; see ~TrafficGeneratorCbr as
// an example.
//
moduleinterface ITrafficGenerator
{
    parameters:
        @display("i=block/source");
}

File: src/simu5g/background/trafficGenerator/generators/ITrafficGenerator.ned