Simple Module IEEE8021QTrafficSourceApp

Package: core4inet.applications.trafficsource.IEEE8021Q
File: src/core4inet/applications/trafficsource/IEEE8021Q/IEEE8021QTrafficSourceApp.ned

C++ definition

Traffic source application used for IEEE 802.1Q traffic.

See also: ~BGTrafficSourceApp, ~TTTrafficSourceApp, ~RCTrafficSourceApp

Author: Till Steinbach, Philipp Meyer

IEEE8021QTrafficSourceApp

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

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

priority int 0

IEEE 802.1q priority (0=None, 1=Lowest, 7=Highest)

vid int 0

VLAN ID (0=untagged, 4094=Highest)

Properties:

Name Value Description
class IEEE8021QTrafficSourceApp
display i=block/source,darkgreen

Gates:

Name Direction Size Description
schedulerIn input

Input gate for the incoming Scheduler messages

Signals:

Name Type Unit
intervalSignal

Statistics:

Name Title Source Record Unit Interpolation Mode
sendIntervalOverTime send interval over time intervalSignal stats?, histogram?, vector? s linear

Source code:

//
// Traffic source application used for IEEE 802.1Q traffic.
//
// @see ~BGTrafficSourceApp, ~TTTrafficSourceApp, ~RCTrafficSourceApp
//
// @author Till Steinbach, Philipp Meyer
//
simple IEEE8021QTrafficSourceApp extends BGTrafficSourceApp
{
    parameters:
        @class(IEEE8021QTrafficSourceApp);
        @display("i=block/source,darkgreen");

        // IEEE 802.1q priority (0=None, 1=Lowest, 7=Highest)
        int priority = default(0);
        // VLAN ID (0=untagged, 4094=Highest)
        int vid = default(0);
}