Package: inet.linklayer.contract
IEthernetLayer
module interfaceModule 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.
Inheritance diagram
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
Implemented by
| Name | Type | Description |
|---|---|---|
| EthernetEncapsulation | simple module |
Performs Ethernet II or Ethernet with LLC/SNAP encapsulation/decapsulation. |
| EthernetLayer | compound module | (no description) |
| OmittedEthernetEncapsulation | compound module |
Implements the given module interface and can be used as an optional module that removes itself from the module hierarchy during initialization. |
Used in compound modules
| Name | Type | Description |
|---|---|---|
| AccessPoint | compound module |
A wireless access point device that connects wireless stations (like WirelessHost) to a wired network. Supports multiple wireless radios and multiple Ethernet ports. |
| BGPRouterEx | compound module |
Example IP router with BGPv4 and OSPFv4 support. |
| EthernetHost | 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. |
| EthernetHost2 | 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). |
| EthernetSwitch | compound module |
EthernetSwitch models a Layer 2 Ethernet switch with support for various IEEE 802.1 protocols and features. It provides frame forwarding based on MAC addresses and implements multiple switching technologies. |
| LinkLayerNodeBase | compound module |
An extension of the basic node infrastructure with link layer functionality. Provides support for various network interfaces and link layer protocols, forming the foundation for network connectivity. |
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; }File: src/inet/linklayer/contract/IEthernetLayer.ned