Simple Module EtherHub

Package: inet.linklayer.ethernet
File: src/linklayer/ethernet/EtherHub.ned

C++ definition

A generic wiring hub model.

ethg[i] gates 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.

EtherHub

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram.

Used in compound modules:

Name Type Description
LargeLAN compound module

Several hosts and an Ethernet hub on a switch. One port of the hub connect to a 10Base2 segment.

MediumLAN compound module

Several hosts and an Ethernet hub on a switch

OneNetArea compound module (no description)
OSPF_Area1 compound module (no description)
OSPF_Area2 compound module (no description)
OSPF_Area3 compound module (no description)
SmallLAN compound module

Several hosts on an Ethernet hub

TwoNetsArea compound module (no description)

Networks:

Name Type Description
Backbone network (no description)
HubLAN network

Sample Ethernet LAN: four hosts connected by a hub.

MixedLAN network

Sample Ethernet LAN containing eight hosts, a switch and a bus.

NClientsEth network (no description)
NClientsEth network (no description)
OSPF_TestNetwork network (no description)
SimpleTest network (no description)

Properties:

Name Value Description
node
display i=device/hub

Gates:

Name Direction Size Description
ethg [ ] inout

to stations; each one represents a port

Source code:

//
// A generic wiring hub model.
//
// ethg[i] gates 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.
//
simple EtherHub
{
    parameters:
        @node();
        @display("i=device/hub");
    gates:
        inout ethg[] @labels(EtherFrame-conn);  // to stations; each one represents a port
}