Dummy encapsulation/decapsulation module for EthernetInterface.
Expected environment:
Functionality:
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 | Value | Description |
---|---|---|
display | i=block/square |
Name | Direction | Size | Description |
---|---|---|---|
upperLayerIn | input |
higher layer |
|
upperLayerOut | output |
higher layer |
|
lowerLayerIn | input |
to Ethernet MAC |
|
lowerLayerOut | output |
to Ethernet MAC |
// // Dummy encapsulation/decapsulation module for ~EthernetInterface. // // Expected environment: // - lowerLayerIn, lowerLayerOut gates should be connected to an ~EtherMAC // - upperLayerIn, upperLayerOut gates should be connected to an ~IMACRelayUnit // // Functionality: // - packets coming from upper layers will be sent to MAC. // - Ethernet frames arriving from MAC will be sent up to the higher layers. // module EtherEncapDummy like IEtherEncap { parameters: @display("i=block/square"); gates: input upperLayerIn @labels(EtherFrame); // higher layer output upperLayerOut @labels(EtherFrame); // higher layer input lowerLayerIn @labels(EtherFrame); // to Ethernet MAC output lowerLayerOut @labels(EtherFrame); // to Ethernet MAC connections: upperLayerIn --> lowerLayerOut; lowerLayerIn --> upperLayerOut; }