Simple Module BGBurstTrafficSourceApp

Package: core4inet.applications.trafficsource.base
File: src/core4inet/applications/trafficsource/base/BGBurstTrafficSourceApp.ned

C++ definition

Background burst traffic source application. Uses multiple EtherFrame with encapsulated cPacket as payload to generate bursts This generator generates bursts with sendInterval distance

See also: ~BGTrafficSourceApp

Author: Till Steinbach

BGBurstTrafficSourceApp

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram. Click here to see the full picture.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram. Click here to see the full picture.

Extends:

Name Type Description
BGTrafficSourceApp simple module

Background traffic source application. Uses EtherFrame with encapsulated cPacket as payload This generator generates frames with sendInterval distance

Known subclasses:

Name Type Description
IEEE8021QBurstTrafficSourceApp simple module

Traffic source application used for IEEE 802.1Q burst traffic.

Parameters:

Name Type Default value Description
displayName string ""

Name shown above the module

buffers string "bgOut"

Comma seperated list of buffer modules the application is allowed to use

buffers_manual bool false

If true, buffer management is not used. Applications use their own methods to locate buffers

enabled bool true

Trafficsource enabled or disabled

startTime double 0s

Start time

payload int 46Byte

Size of the payload of the message (size of encapsulated cPacket) that is being generated

destAddress string "auto"

destination MAC address

sendInterval double uniform(0s,1s)

interval between sending requests

burstSize int 1MiB

total size of the burst

Properties:

Name Value Description
class BGBurstTrafficSourceApp
display i=block/source,green

Gates:

Name Direction Size Description
schedulerIn input

Input gate for the incoming Scheduler messages

Signals:

Name Type Unit
burstSizeSignal

Statistics:

Name Title Source Record Unit Interpolation Mode
burstSizeOverTime burst size over time burstSizeSignal stats?, histogram?, vector? B linear

Source code:

//
// Background burst traffic source application.
// Uses multiple EtherFrame with encapsulated cPacket as payload to generate bursts
// This generator generates bursts with sendInterval distance
//
//
// @see ~BGTrafficSourceApp
//
// @author Till Steinbach
//
simple BGBurstTrafficSourceApp extends BGTrafficSourceApp
{
    parameters:
        @class(BGBurstTrafficSourceApp);
        @display("i=block/source,green");

        // total size of the burst
        int burstSize @unit(byte) = default(1MiB);

        @signal[burstSizeSignal];
        @statistic[burstSizeOverTime](title="burst size over time"; source=burstSizeSignal; unit=B; record=stats?,histogram?,vector?; interpolationmode=linear);
}