Compound Module Unit3

Package: ttethernet.examples.small_network
File: examples/small_network/unit3.ned

unit3: configuration in unit3.ini.

TTEPHYPort EtherLLC EtherAppCli EtherAppSrv IConfigurationManager ISync TTEScheduler ITTEApplication BGQueueBuffer BGQueueBuffer BGTrafficHandle TTIncoming TTDoubleBuffer RCIncoming RCQueueBuffer

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
TTEEtherHost compound module

Module for a TTEthernet Host. Contains a EtherLLC for best-effort traffic, a TTEPHYPort module as physical port, sync module (Sync) and a TTEScheduler module. The Host is configured by the provided TTEthernet XML network configuration (network_configuration parameter) and uses the device_name parameter to find its config. The configuration is done by the BufferManager that deletes itself at runtime.

Networks:

Name Type Description
small_network network

Small sample network with three hosts and one switch that shows how to configure the TTEthernet Model. Configuration in omnetpp.ini

Parameters:

Name Type Default value Description
numApps int 0
numPorts int 1
hardware_delay double 0us

Properties:

Name Value Description
display bgb=894,314;i=device/device

Gates:

Name Direction Size Description
ethg inout

Physical port of the host

Unassigned submodule parameters:

Name Type Default value Description
phy.tteOutput.tt_buffers string ""

Comma seperated list of TTBuffers that send messages to this port

phy.tteInput.ct_marker int 0

Critical traffic marker of the buffer

phy.tteInput.ct_mask int 0

Critical traffic mask of the buffer

phy.tteInput.incomings string ""

Comma seperated list of ctc modules the input uses

phy.mac.address string "auto"

MAC address as hex string (12 hex digits), or "auto". "auto" values will be replaced by a generated MAC address in init stage 0.

phy.mac.duplexMode bool true

must be set to "true", as EtherMACFullDuplex does not support half-duplex operation (parameter is present to reduce the risk of accidental misconfiguration)

phy.mac.txQueueLimit int 1000

maximum number of frames queued up for transmission in the internal queue (only used if queueModule==""); additional frames cause a runtime error

phy.mac.mtu int 1500B
cli.destAddress string ""

destination MAC address, or module path name of destination station; empty means off

cli.startTime double this.sendInterval

time of sending the first request

cli.stopTime double 0

time of finish sending, 0 means forever

cli.sendInterval double uniform(0s,1s)

interval between sending requests

cli.reqLength int 100B

length of request packets

cli.respLength int 1KiB

length of response packets

tteScheduler.tick double 80ns

Length of a tick

tteScheduler.max_drift double 16ps

Maximum clock drift (e.g 16ps for 200ppm at 80ns per tick)

tteScheduler.max_drift_change double 1ps

Maximum clock drift change per cycle

tteScheduler.cycle_ticks int 37500

Number of ticks for one cycle

tteApp.buffers string

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

bgIn.destination_gates string ""

Priority of the buffer (currently only used for rate-constrained traffic) int priority=default(-1); Critical traffic ID of the buffer int ct_id=default(0); Critical traffic marker of the buffer int ct_marker=default(0); Critical traffic mask of the buffer int ct_mask=default(0); Comma seperated list of gates where the frames of the buffer are delivered

bgIn.size int -1

Size of the buffer negative means infinite

bgIn.drop_new bool false

Dropping policy, Should the newest frame instead of the oldest frame be dropped when the buffer is full (see size parameter)

bgOut.destination_gates string ""

Priority of the buffer (currently only used for rate-constrained traffic) int priority=default(-1); Critical traffic ID of the buffer int ct_id=default(0); Critical traffic marker of the buffer int ct_marker=default(0); Critical traffic mask of the buffer int ct_mask=default(0); Comma seperated list of gates where the frames of the buffer are delivered

bgOut.size int -1

Size of the buffer negative means infinite

bgOut.drop_new bool false

Dropping policy, Should the newest frame instead of the oldest frame be dropped when the buffer is full (see size parameter)

vl_100_ctc.receive_window_start int

Beginning of the receive window in number of ticks

vl_100_ctc.receive_window_end int

End of the receive window in number of ticks

vl_100_ctc.permanence_pit int

permanence point in time in number of ticks

vl_100.destination_gates string ""

Priority of the buffer (currently only used for rate-constrained traffic) int priority=default(-1); Critical traffic ID of the buffer int ct_id=default(0); Critical traffic marker of the buffer int ct_marker=default(0); Critical traffic mask of the buffer int ct_mask=default(0); Comma seperated list of gates where the frames of the buffer are delivered

vl_100.priority int -1

Priority of the buffer (currently only used for rate-constrained traffic)

vl_100.ct_id int 0

Critical traffic ID of the buffer

vl_100.ct_marker int 0

Critical traffic marker of the buffer

vl_100.ct_mask int 0

Critical traffic mask of the buffer

vl_100.sendWindowStart int 0

Beginning of the send window in number of ticks (Changes to this parameter will get active for future scheduled frames only)

vl_100.sendWindowEnd int 0

End of the send window in number of ticks

vl_101_ctc.bag int 0

Bandwidth allocation gap in number of ticks (Changes to this parameter will get active for future frames only)

vl_101_ctc.jitter int 0

Not used

vl_101.destination_gates string ""

Priority of the buffer (currently only used for rate-constrained traffic) int priority=default(-1); Critical traffic ID of the buffer int ct_id=default(0); Critical traffic marker of the buffer int ct_marker=default(0); Critical traffic mask of the buffer int ct_mask=default(0); Comma seperated list of gates where the frames of the buffer are delivered

vl_101.priority int -1

Priority of the buffer (currently only used for rate-constrained traffic)

vl_101.ct_id int 0

Critical traffic ID of the buffer

vl_101.ct_marker int 0

Critical traffic marker of the buffer

vl_101.ct_mask int 0

Critical traffic mask of the buffer

vl_101.max_dispatch_delay int 0

Not used

vl_101.bag int 0

Bandwidth allocation gap in number of ticks (Changes to this parameter will get active for future frames only)

vl_101.jitter int 0

Not used

vl_101.size int -1

Size of the buffer negative means infinite

vl_101.drop_new bool false

Dropping policy, Should the newest frame instead of the oldest frame be dropped when the buffer is full (see size parameter)

Source code:

//
// unit3: configuration in unit3.ini.
//
// - Receives time-triggered messages with VL-ID 100 and rate-constrained messages with VL-ID 101
//
module Unit3 extends TTEEtherHost
{
    submodules:
        vl_100_ctc: TTIncoming {
            parameters:
                @display("p=349,60");

        }
        vl_100: TTDoubleBuffer {
            parameters:
                @display("p=439,61");
        }
        vl_101_ctc: RCIncoming {
            parameters:
                @display("p=349,140");

        }
        vl_101: RCQueueBuffer {
            parameters:
                @display("p=439,141");
        }
    connections:
        vl_100_ctc.out --> vl_100.in;
        vl_101_ctc.out --> vl_101.in;
}