File: NetworkInterfaces/Ethernet/EtherHub.ned
C++ definition: click here
A generic wiring hub model.
in[i], out[i] gate pairs represent ports. Messages arriving on a port are broadcast to every other port.
The connections should have data rate set to zero. Cable lengths should be reflected in the delays of the connections.
Messages are not interpreted by the hub model in any way, thus the hub model is not specific to Ethernet in any way. Messages may represent anything, from the beginning of a frame transmission to end (or abortion) of transmission.
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.
Name | Type | Description |
---|---|---|
writeScalars | bool | enable/disable recording statistics in omnetpp.sca |
Name | Direction | Description |
---|---|---|
in [ ] | input | to stations; each in[k], out[k] pair represents a port |
out [ ] | output | to stations; each in[k], out[k] pair represents a port |
simple EtherHub parameters: writeScalars: bool; // enable/disable recording statistics in omnetpp.sca gates: in: in[]; // to stations; each in[k], out[k] pair represents a port out: out[]; // to stations; each in[k], out[k] pair represents a port endsimple