EthernetFragmentingMacLayer

Package: inet.linklayer.ethernet.modular

EthernetFragmentingMacLayer

compound module

(no description)

lifetimer : like IPacketLifeTimer

Source:
lifetimer: <default("")> like IPacketLifeTimer if typename != "" {
    @display("p=100,100;is=s");
} queue : like IPacketQueue

PacketQueue: This module implements a widely configurable packet queue, which is suitable among others, to be...

IPacketQueue: This module interface is implemented by packet queue modules.

Source:
queue: <default("PacketQueue")> like IPacketQueue {
    @display("p=200,100");
} fcsRemover : like IPacketFilter

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

Source:
fcsRemover: <default("EthernetFcsChecker")> like IPacketFilter {
    @display("p=200,200");
} streamer : like IPacketFlow

PreemptableStreamer: This module takes packets passed to its input and streams them to its output.

IPacketFlow: This module interface is implemented by packet flows.

Source:
streamer: <default("PreemptableStreamer")> like IPacketFlow {
    @display("p=200,300");
} fragmentFcsInserter : like IPacketFlow

IPacketFlow: This module interface is implemented by packet flows.

Source:
fragmentFcsInserter: <default("EthernetFragmentFcsInserter")> like IPacketFlow {
    @display("p=200,400");
} outboundEmitter : like IPacketFlow

IPacketFlow: This module interface is implemented by packet flows.

Source:
outboundEmitter: <default("PacketEmitter")> like IPacketFlow {
    @display("p=200,500");
} fcsInserter : like IPacketFlow

IPacketFlow: This module interface is implemented by packet flows.

Source:
fcsInserter: <default("EthernetFcsInserter")> like IPacketFlow {
    @display("p=500,200");
} defragmenter : FragmentTagBasedDefragmenter

Source:
defragmenter: FragmentTagBasedDefragmenter {
    @display("p=500,300");
} fragmentFcsChecker : like IPacketFilter

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

Source:
fragmentFcsChecker: <default("EthernetFragmentFcsChecker")> like IPacketFilter {
    @display("p=500,400");
} inboundEmitter : like IPacketFlow

IPacketFlow: This module interface is implemented by packet flows.

Source:
inboundEmitter: <default("PacketEmitter")> like IPacketFlow {
    @display("p=500,500");
}

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
bitrate double

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
defragmenter.displayStringTextFormat string "processed %p pk (%l)"

determines the text that is written on top of the submodule

defragmenter.deleteSelf bool false

Source code

module EthernetFragmentingMacLayer like IEthernetMacLayer
{
    parameters:
        double bitrate @unit(bps);
        *.bitrate = default(this.bitrate);
        lifetimer.collectionModule = default("^.queue");
        streamer.minPacketLength = 60B;
        outboundEmitter.signalName = "packetSentToLower";
        outboundEmitter.direction = "outbound";
        inboundEmitter.signalName = "packetReceivedFromLower";
        inboundEmitter.direction = "inbound";
        @display("i=block/layer");
    gates:
        input upperLayerIn;
        output upperLayerOut;
        input lowerLayerIn;
        output lowerLayerOut;
    submodules:
        lifetimer: <default("")> like IPacketLifeTimer if typename != "" {
            @display("p=100,100;is=s");
        }
        queue: <default("PacketQueue")> like IPacketQueue {
            @display("p=200,100");
        }
        fcsRemover: <default("EthernetFcsChecker")> like IPacketFilter {
            @display("p=200,200");
        }
        streamer: <default("PreemptableStreamer")> like IPacketFlow {
            @display("p=200,300");
        }
        fragmentFcsInserter: <default("EthernetFragmentFcsInserter")> like IPacketFlow {
            @display("p=200,400");
        }
        outboundEmitter: <default("PacketEmitter")> like IPacketFlow {
            @display("p=200,500");
        }
        fcsInserter: <default("EthernetFcsInserter")> like IPacketFlow {
            @display("p=500,200");
        }
        defragmenter: FragmentTagBasedDefragmenter {
            @display("p=500,300");
        }
        fragmentFcsChecker: <default("EthernetFragmentFcsChecker")> like IPacketFilter {
            @display("p=500,400");
        }
        inboundEmitter: <default("PacketEmitter")> like IPacketFlow {
            @display("p=500,500");
        }
    connections:
        upperLayerIn --> { @display("m=n"); } --> queue.in;
        queue.out --> fcsRemover.in;
        fcsRemover.out --> streamer.in;
        streamer.out --> fragmentFcsInserter.in;
        fragmentFcsInserter.out --> outboundEmitter.in;
        outboundEmitter.out --> { @display("m=s"); } --> lowerLayerOut;

        lowerLayerIn --> { @display("m=s"); } --> inboundEmitter.in;
        inboundEmitter.out --> fragmentFcsChecker.in;
        fragmentFcsChecker.out --> defragmenter.in;
        defragmenter.out --> fcsInserter.in;
        fcsInserter.out --> { @display("m=n"); } --> upperLayerOut;
}
File: src/inet/linklayer/ethernet/modular/EthernetFragmentingMacLayer.ned