Package: inet.linklayer.ethernet.common
BridgingLayer
compound moduleThis module provides various layer 2 services such as packet forwarding, interface selection, virtual LAN handling, stream handling.
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