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.
If a module type shows up more than once, that means it has been defined in more than one NED file.
NClientsEth | (no description) |
MixedLAN | Sample Ethernet LAN containing eight hosts, a switch and a bus. |
HubLAN | Sample Ethernet LAN: four hosts connected by a hub. |
SmallLAN | Several hosts on an Ethernet hub |
MediumLAN | Several hosts and an Ethernet hub on a switch |
LargeLAN | Several hosts and an Ethernet hub on a switch. One port of the hub connect to a 10Base2 segment. |
TwoNetsArea | (no description) |
OneNetArea | (no description) |
Backbone | (no description) |
OSPF_Area1 | (no description) |
OSPF_Area2 | (no description) |
OSPF_Area3 | (no description) |
OSPF_TestNetwork | (no description) |
SimpleTest | (no description) |
QuaggaOSPFBackbone | (no description) |
SimpleTest | (no description) |
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