IEtherEncap

Package: inet.linklayer.ethernet

IEtherEncap

module interface

Module interface for Ethernet encapsulation/decapsulation.

IEtherEncap

Inheritance diagram

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

Implemented by

Name Type Description
EtherEncap simple module

Performs Ethernet II or Ethernet with LLC/SNAP encapsulation/decapsulation.

EtherEncapDummy compound module

Dummy encapsulation/decapsulation module for EthernetInterface.

Used in compound modules

Name Type Description
EthernetInterface compound module

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

EtherSwitch compound module

Model of an Ethernet switch.

ExtLowerEthernetInterface compound module

This module provides an Ethernet network interface suitable for emulation. The lower part of the network interface is realized in the real world using a real ethernet socket of the host computer which is running the simulation.

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
}

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