Simple Module EtherEncap

File: NetworkInterfaces/Ethernet/EtherEncap.ned

C++ definition: click here

Performs Ethernet II encapsulation/decapsulation.

Expected environment:

Functionality:

Usage diagram:

The following diagram shows usage relationships between modules, networks and channels. Unresolved module (and channel) types are missing from the diagram. Click here to see the full picture.

EtherEncap EthernetInterface EthernetInterface2 EthernetInterfaceNoQueue

Used in compound modules:

If a module type shows up more than once, that means it has been defined in more than one NED file.

EthernetInterface

Ethernet network interface. Corresponds to the prototype NetworkInterface. Complements EtherMAC and EtherEncap with an output queue for QoS and RED support.

EthernetInterface2

Ethernet network interface, which supports full-duplex operation only. Corresponds to the prototype NetworkInterface. Complements EtherMAC2 and EtherEncap with an output queue for QoS and RED support.

EthernetInterfaceNoQueue

Ethernet network interface. Assumes inifinite queue.

Parameters:

Name Type Description
writeScalars bool

enable/disable recording statistics in omnetpp.sca

Gates:

Name Direction Description
upperLayerIn input

higher layer

upperLayerOut output

higher layer

lowerLayerIn input

to Ethernet MAC

lowerLayerOut output

to Ethernet MAC

Source code:

simple EtherEncap
    parameters:
        writeScalars: bool; // enable/disable recording statistics in omnetpp.sca
    gates:
        in: upperLayerIn;   // higher layer
        out: upperLayerOut; // higher layer
        in: lowerLayerIn;   // to Ethernet MAC
        out: lowerLayerOut; // to Ethernet MAC
endsimple