Ieee8021rProtocol

Package: inet.linklayer.ieee8021r

compound module Ieee8021rProtocol

Implements the IEEE 802.1r protocol encapsulation/decapsulation.

Usage diagram

Inheritance diagram

Used in compound modules

Name

Type

Description

Ieee8021rLayer

compound module

(no description)

Properties

Name

Value

Description

display

i=block/layer

Gates

Name

Direction

Size

Description

upperLayerIn

input

upperLayerOut

output

lowerLayerIn

input

lowerLayerOut

output

Unassigned submodule parameters

Name

Type

Default value

Description

rTagHeaderInserter.displayStringTextFormat

string

“processed {numProcessedPackets} pk ({processedTotalLength})”

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

rTagHeaderInserter.nextProtocol

string

“ieee8021qctag”

rTagHeaderChecker.displayStringTextFormat

string

“dropped {numDroppedPackets}/{numProcessedPackets} pk ({droppedTotalLength}/{processedTotalLength})”

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

rTagHeaderChecker.backpressure

bool

false

Source code

//
// Implements the IEEE 802.1r protocol encapsulation/decapsulation.
//
module Ieee8021rProtocol like IIeee8021rLayer
{
    parameters:
        @display("i=block/layer");
    gates:
        input upperLayerIn;
        output upperLayerOut;
        input lowerLayerIn;
        output lowerLayerOut;
    submodules:
        rTagHeaderInserter: <default("Ieee8021rTagEpdHeaderInserter")> like IIeee8021rTagEpdHeaderInserter {
            @display("p=300,200");
        }
        rTagHeaderChecker: <default("Ieee8021rTagEpdHeaderChecker")> like IIeee8021rTagEpdHeaderChecker {
            @display("p=600,200");
        }
    connections:
        upperLayerIn --> { @display("m=n"); } --> rTagHeaderInserter.in;
        rTagHeaderInserter.out --> { @display("m=s"); } --> lowerLayerOut;

        lowerLayerIn --> { @display("m=s"); } --> rTagHeaderChecker.in;
        rTagHeaderChecker.out --> { @display("m=n"); } --> upperLayerOut;
}

File: src/inet/linklayer/ieee8021r/Ieee8021rProtocol.ned