BridgingLayer

Package: inet.linklayer.ethernet.common

BridgingLayer

compound module

This module provides various layer 2 services such as packet forwarding, interface selection, virtual LAN handling, stream handling.

processingDelayLayer : like IProcessingDelayLayer

Source:
processingDelayLayer: <default("")> like IProcessingDelayLayer {
    @display("p=300,150");
} directionReverser : like IProtocolLayer

DirectionReverserLayer: This module provides a layer that combines the decision for local delivery with the service of...

IProtocolLayer: This module interface is implemented by all protocol layer modules that connect to a higher and to...

Source:
directionReverser: <default("DirectionReverserLayer")> like IProtocolLayer {
    @display("p=300,300");
} streamIdentifier : like IProtocolLayer

IProtocolLayer: This module interface is implemented by all protocol layer modules that connect to a higher and to...

Source:
streamIdentifier: <default("")> like IProtocolLayer {
    @display("p=300,450");
} streamRelay : like IProtocolLayer

IProtocolLayer: This module interface is implemented by all protocol layer modules that connect to a higher and to...

Source:
streamRelay: <default("")> like IProtocolLayer {
    @display("p=300,600");
} streamFilter : like IProtocolLayer

IProtocolLayer: This module interface is implemented by all protocol layer modules that connect to a higher and to...

Source:
streamFilter: <default("")> like IProtocolLayer {
    @display("p=300,750");
} streamCoder : like IProtocolLayer

IProtocolLayer: This module interface is implemented by all protocol layer modules that connect to a higher and to...

Source:
streamCoder: <default("")> like IProtocolLayer {
    @display("p=300,900");
} interfaceRelay : like IProtocolLayer

InterfaceRelayLayer: This module combines the interface MAC address learning from incoming packets with the outgoing...

IProtocolLayer: This module interface is implemented by all protocol layer modules that connect to a higher and to...

Source:
interfaceRelay: <default("InterfaceRelayLayer")> like IProtocolLayer {
    @display("p=300,1050");
} vlanPolicy : like IProtocolLayer

IProtocolLayer: This module interface is implemented by all protocol layer modules that connect to a higher and to...

Source:
vlanPolicy: <default("")> like IProtocolLayer {
    @display("p=300,1200");
}

Usage diagram

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Inheritance diagram

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Parameters

Name Type Default value Description
macTableModule string ""
interfaceTableModule string

relative module path of the interface table

Properties

Name Value Description
display i=block/layer

Gates

Name Direction Size Description
upperLayerIn input
upperLayerOut output
lowerLayerIn input
lowerLayerOut output

Source code

//
// This module provides various layer 2 services such as packet forwarding,
// interface selection, virtual LAN handling, stream handling.
//
module BridgingLayer like IProtocolLayer
{
    parameters:
        string macTableModule = default("");
        string interfaceTableModule; // relative module path of the interface table
        *.macTableModule = default(absPath(this.macTableModule));
        *.interfaceTableModule = default(this.interfaceTableModule);
        @display("i=block/layer");
    gates:
        input upperLayerIn;
        output upperLayerOut;
        input lowerLayerIn;
        output lowerLayerOut;
    submodules:
        processingDelayLayer: <default("")> like IProcessingDelayLayer {
            @display("p=300,150");
        }
        directionReverser: <default("DirectionReverserLayer")> like IProtocolLayer {
            @display("p=300,300");
        }
        streamIdentifier: <default("")> like IProtocolLayer {
            @display("p=300,450");
        }
        streamRelay: <default("")> like IProtocolLayer {
            @display("p=300,600");
        }
        streamFilter: <default("")> like IProtocolLayer {
            @display("p=300,750");
        }
        streamCoder: <default("")> like IProtocolLayer {
            @display("p=300,900");
        }
        interfaceRelay: <default("InterfaceRelayLayer")> like IProtocolLayer {
            @display("p=300,1050");
        }
        vlanPolicy: <default("")> like IProtocolLayer {
            @display("p=300,1200");
        }
    connections:
        upperLayerIn --> processingDelayLayer.upperLayerIn;
        processingDelayLayer.lowerLayerOut --> directionReverser.upperLayerIn;
        directionReverser.lowerLayerOut --> streamIdentifier.upperLayerIn;
        streamIdentifier.lowerLayerOut --> streamRelay.upperLayerIn;
        streamRelay.lowerLayerOut --> streamFilter.upperLayerIn;
        streamFilter.lowerLayerOut --> streamCoder.upperLayerIn;
        streamCoder.lowerLayerOut --> interfaceRelay.upperLayerIn;
        interfaceRelay.lowerLayerOut --> vlanPolicy.upperLayerIn;
        vlanPolicy.lowerLayerOut --> lowerLayerOut;

        lowerLayerIn --> vlanPolicy.lowerLayerIn;
        vlanPolicy.upperLayerOut --> interfaceRelay.lowerLayerIn;
        interfaceRelay.upperLayerOut --> streamCoder.lowerLayerIn;
        streamCoder.upperLayerOut --> streamFilter.lowerLayerIn;
        streamFilter.upperLayerOut --> streamRelay.lowerLayerIn;
        streamRelay.upperLayerOut --> streamIdentifier.lowerLayerIn;
        streamIdentifier.upperLayerOut --> directionReverser.lowerLayerIn;
        directionReverser.upperLayerOut --> processingDelayLayer.lowerLayerIn;
        processingDelayLayer.upperLayerOut --> upperLayerOut;
}
File: src/inet/linklayer/ethernet/common/BridgingLayer.ned