Module Interface IEtherEncap

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

Module interface for Ethernet encapsulation/decapsulation.

IEtherEncap

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.

Used in compound modules:

Name Type Description
EtherHost2 compound module

An example host with one Ethernet interface and an Ethernet traffic generator directly connected to it. This host model does not contain higher layer protocols (IP, TCP). By default is configured to use half-duplex MAC (CSMA/CD).

EthernetInterface compound module

Ethernet network interface. Complements EtherMAC and EtherEncap with an output queue for QoS and RED support.

Properties:

Name Value Description
display i=block/square

Source code:

//
// Module interface for Ethernet encapsulation/decapsulation.
//
moduleinterface IEtherEncap
{
    parameters:
        @display("i=block/square");
    gates:
        input upperLayerIn @labels(Ieee802Ctrl/down); // higher layer
        output upperLayerOut @labels(Ieee802Ctrl/up); // higher layer
        input lowerLayerIn @labels(EtherFrame);   // to Ethernet MAC
        output lowerLayerOut @labels(EtherFrame); // to Ethernet MAC
}