Compound Module EtherEncapDummy

Package: inet.linklayer.ethernet
File: src/inet/linklayer/ethernet/EtherEncapDummy.ned

Dummy encapsulation/decapsulation module for EthernetInterface.

Expected environment:

Functionality:

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/square

Gates:

Name Direction Size Description
upperLayerIn input

higher layer

upperLayerOut output

higher layer

lowerLayerIn input

to Ethernet MAC

lowerLayerOut output

to Ethernet MAC

Source code:

//
// Dummy encapsulation/decapsulation module for ~EthernetInterface.
//
// Expected environment:
// - lowerLayerIn, lowerLayerOut gates should be connected to an ~EtherMAC
// - upperLayerIn, upperLayerOut gates should be connected to an ~IMACRelayUnit
//
// Functionality:
// - packets coming from upper layers will be sent to MAC.
// - Ethernet frames arriving from MAC will be sent up to the higher layers.
//
module EtherEncapDummy like IEtherEncap
{
    parameters:
        @display("i=block/square");
    gates:
        input upperLayerIn @labels(EtherFrame); // higher layer
        output upperLayerOut @labels(EtherFrame); // higher layer
        input lowerLayerIn @labels(EtherFrame);   // to Ethernet MAC
        output lowerLayerOut @labels(EtherFrame); // to Ethernet MAC
    connections:
        upperLayerIn --> lowerLayerOut;
        lowerLayerIn --> upperLayerOut;
}