IEthernetLayer¶
Package: inet.linklayer.contract
module interface IEthernetLayer
Module interface for Ethernet protocol layer implementations. Implementations typically handle the encapsulation of higher layer packets into Ethernet frames for transmission and the decapsulation of received Ethernet frames for delivery to higher layers.
Usage diagram¶
Inheritance diagram¶
Implemented by¶
Name |
Type |
Description |
|---|---|---|
simple module |
Performs Ethernet II or Ethernet with LLC/SNAP encapsulation/decapsulation. |
|
compound module |
Implements the given module interface and can be used as an optional module that removes itself from the module hierarchy during initialization. |
|
compound module |
(no description) |
Used in compound modules¶
Name |
Type |
Description |
|---|---|---|
compound module |
A simplified network device that communicates directly over Ethernet without higher layer protocols like IP or TCP. It provides a basic host model for Ethernet-only simulations. |
Properties¶
Name |
Value |
Description |
|---|---|---|
display |
i=block/layer |
Source code¶
//
// Module interface for Ethernet protocol layer implementations. Implementations
// typically handle the encapsulation of higher layer packets into Ethernet
// frames for transmission and the decapsulation of received Ethernet frames for
// delivery to higher layers.
//
moduleinterface IEthernetLayer
{
parameters:
@display("i=block/layer");
gates:
input upperLayerIn;
output upperLayerOut;
input lowerLayerIn;
output lowerLayerOut;
}