Simple Module CT_AVB_8021Q_InControl

Package: core4inet.linklayer.inControl
File: src/core4inet/linklayer/inControl/CT_AVB_8021Q_InControl.ned

Module for incoming traffic from MAC layer. The traffic is checked for critical traffic ID and then forwarded either as best-effort traffic to the upper layer or when avb or critical traffic to the CTC module (via sendDirect).

See also: ~CT_BE_InControl, ~EtherLLC, ~IMacRelayUnit, ~IOutputQueue

Author: Till Steinbach

CT_AVB_8021Q_InControl

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
CT_BE_InControl simple module

Module for incoming traffic from MAC layer. The traffic is checked for critical traffic ID and then forwarded either as best-effort traffic to the upper layer or when critical traffic to the CTC module (via sendDirect).

Used in compound modules:

Name Type Description
TTEAVBPHYPort compound module

The TTEAVBPHYPort is a compund module that contains the input Shaper, output Shaper and MAC (EtherMACFullDuplex) It represents a physical port for a real-time Ethernet device (Switch or Host)

Parameters:

Name Type Default value Description
oscillator string "oscillator"

Oscillator of the timed module (must be set to the name of an oscillator module in the Node) when left empty: oscillator

timer string "timer"

Timer of the timed module (must be set to the name of an timer module in the Node) when left empty: timer

promiscuous bool false

if true, all packets are received, otherwise only the ones with matching destination MAC address (This does not affect CT-Frames)

ct_marker int
ct_mask int

Critical traffic mask of the buffer

ct_incomings string ""

Comma seperated list of ctc modules the input uses

untaggedVID int 0

Untagged VLAN. Untagged incoming frames get tagged with this VLAN.

taggedVIDs string "0"

Interface allows frames with this VLAN to enter

Properties:

Name Value Description
class CT_AVB_8021Q_InControl
display i=block/classifier

Gates:

Name Direction Size Description
in input

Input from the lower layer (MAC layer)

out output

Output for best-effort frames to the upper layer (EtherLLC or IMacRelayUnit)

Signals:

Name Type Unit
droppedPk inet::EtherFrame packets

Statistics:

Name Title Source Record Unit Interpolation Mode
dropped Unconfigured CT dropped droppedPk count packets none

Source code:

//
// Module for incoming traffic from MAC layer. The traffic is checked for
// critical traffic ID and then forwarded either as best-effort traffic to
// the upper layer or when avb or critical traffic to the CTC module (via sendDirect).
//
// @see ~CT_BE_InControl, ~EtherLLC, ~IMacRelayUnit, ~IOutputQueue
//
// @author Till Steinbach
//
simple CT_AVB_8021Q_InControl extends CT_BE_InControl
{
    parameters:
        @display("i=block/classifier");
        @class(CT_AVB_8021Q_InControl);

        //Untagged VLAN. Untagged incoming frames get tagged with this VLAN.
        int untaggedVID = default(0);
        //Interface allows frames with this VLAN to enter
        string taggedVIDs = default("0");
}