EthernetStreamThroughPhyLayer

Package: inet.physicallayer.wired.ethernet

EthernetStreamThroughPhyLayer

compound module

(no description)

phyHeaderInserter : like IPacketFlow

IPacketFlow: This module interface is implemented by packet flows.

Source:
phyHeaderInserter: <default("EthernetPhyHeaderInserter")> like IPacketFlow {
    @display("p=200,100");
} interFrameGapInserter : InterpacketGapInserter

Source:
interFrameGapInserter: InterpacketGapInserter {
    duration = default(96s / dropUnit(parent.bitrate));  // 96 bit / <bitrate> bps
    @display("p=200,200");
} outboundEmitter : like IPacketFlow

IPacketFlow: This module interface is implemented by packet flows.

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

IPacketFlow: This module interface is implemented by packet flows.

Source:
cutthroughSink: <default("")> like IPacketFlow {
    @display("p=200,400");
} transmitter : like IPacketTransmitter

PacketTransmitter: This module receives packets from the upper layer as a whole.

Source:
transmitter: <default("PacketTransmitter")> like IPacketTransmitter {
    datarate = default(parent.bitrate);
    @display("p=200,500");
} phyHeaderChecker : like IPacketFilter

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

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

IPacketFlow: This module interface is implemented by packet flows.

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

IPacketFlow: This module interface is implemented by packet flows.

Source:
cutthroughSource: <default("")> like IPacketFlow {
    @display("p=500,400");
} receiver : like IPacketReceiver

PacketReceiver: This module receives signals from the physical medium (wire) as a whole.

Source:
receiver: <default("PacketReceiver")> like IPacketReceiver {
    datarate = default(parent.bitrate);
    @display("p=500,500");
}

Inheritance diagram

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

Extends

Name Type Description
EthernetPhyLayer compound module (no description)

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
interFrameGapInserter.displayStringTextFormat string "delayed %p pk (%l)\nifg: %g"

determines the text that is written on top of the submodule

interFrameGapInserter.clockModule string ""

relative path of a module that implements IClock; optional

interFrameGapInserter.initialChannelBusy bool false

assume that channel was busy before the simulation started

interFrameGapInserter.duration double 96s / dropUnit(parent.bitrate)

Source code

module EthernetStreamThroughPhyLayer extends EthernetPhyLayer
{
    parameters:
        transmitter.typename = default("StreamThroughTransmitter");
        receiver.typename = default("StreamThroughReceiver");
}
File: src/inet/physicallayer/wired/ethernet/EthernetStreamThroughPhyLayer.ned