File: NetworkInterfaces/Ethernet/EtherBus.ned
C++ definition: click here
A generic bus model.
in[i], out[i] gate pairs represent taps. Messages arriving on a tap travel on the bus on both directions, and copies of it are sent out on every other tap after delays proportional to their distances.
Tap connections should have zero delays and zero data rates!
Messages are not interpreted by the bus model in any way, thus the bus 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.
MixedLAN | Sample Ethernet LAN containing eight hosts, a switch and a bus. |
BusLAN | Sample Ethernet LAN: four hosts on a bus. |
LargeLAN | Several hosts and an Ethernet hub on a switch. One port of the hub connect to a 10Base2 segment. |
ARPTest | (no description) |
Name | Type | Description |
---|---|---|
positions | string | positions of taps on the cable in meters, as a sequence of numbers separated by spaces. If there are too few values, the distance between the last two positions is repeated, or 5 meters is used. |
propagationSpeed | numeric | signal propagation speed on the bus, in m/s (typically 200,000 m/s) |
writeScalars | bool | enable/disable recording statistics in omnetpp.sca |
Name | Direction | Description |
---|---|---|
in [ ] | input | to stations; each in[k], out[k] pair represents a tap |
out [ ] | output | to stations; each in[k], out[k] pair represents a tap |
simple EtherBus parameters: positions : string, // positions of taps on the cable in meters, as a sequence // of numbers separated by spaces. If there are too // few values, the distance between the last two positions // is repeated, or 5 meters is used. propagationSpeed : numeric, // signal propagation speed on the bus, in m/s // (typically 200,000 m/s) writeScalars: bool; // enable/disable recording statistics in omnetpp.sca gates: in: in[]; // to stations; each in[k], out[k] pair represents a tap out: out[]; // to stations; each in[k], out[k] pair represents a tap endsimple