StreamFilterLayer

Package: inet.linklayer.ieee8021q

StreamFilterLayer

compound module

This module combines two packet filters into a protocol layer so that it can be used in a layered compound module. There are separate submodules for ingress and egress traffic, but in most cases only the ingress filter is used.

ingress : like IPacketFilter

SimpleIeee8021qFilter: This module implements a simplified version of the IEEE 802.1Q per-stream filtering and policing.

IPacketFilter: This module interface is implemented by packet filter modules.

Source:
ingress: <default("SimpleIeee8021qFilter")> like IPacketFilter {
    @display("p=200,150");
} egress : like IPacketFilter

IPacketFilter: This module interface is implemented by packet filter modules.

Source:
egress: <default("")> like IPacketFilter {
    @display("p=500,150");
}

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.

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 combines two packet filters into a protocol layer so that it can
// be used in a layered compound module. There are separate submodules for ingress
// and egress traffic, but in most cases only the ingress filter is used.
//
module StreamFilterLayer like IProtocolLayer
{
    parameters:
        @display("i=block/layer");
    gates:
        input upperLayerIn;
        output upperLayerOut;
        input lowerLayerIn;
        output lowerLayerOut;
    submodules:
        ingress: <default("SimpleIeee8021qFilter")> like IPacketFilter {
            @display("p=200,150");
        }
        egress: <default("")> like IPacketFilter {
            @display("p=500,150");
        }
    connections:
        upperLayerIn --> { @display("m=n"); } --> egress.in;
        egress.out --> { @display("m=s"); } --> lowerLayerOut;

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

File: src/inet/linklayer/ieee8021q/StreamFilterLayer.ned