Module interface for Ethernet encapsulation/decapsulation.
The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.
The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.
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. |
Name | Value | Description |
---|---|---|
display | i=block/square |
// // 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 }