Compound Module EPON_ONU

Package: PON.ONU
File: src/ONU/EPON_ONU.ned

TODO auto-generated module

ONU_Port EPON_ONU_relay EtherMacVlan

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.

Networks:

NonPollingPon (network) (no description)
PollingPon (network) (no description)
pon (network) (no description)
pon_srv (network) (no description)
ponTCP (network) (no description)
SingleONU (network) (no description)
SingleONU2 (network) (no description)

Parameters:

Name Type Default value Description
relayUnitType string "EPON_ONU_relayDefault"

Properties:

Name Value Description
node
display i=device/modem

Gates:

Name Direction Size Description
ethg inout
epon inout

Unassigned submodule parameters:

Name Type Default value Description
onu_port.epon_mac.address string "auto"

MAC address as hex string (12 hex digits), or "auto". "auto" values will be replaced by a generated MAC address in init stage 0.

onu_port.epon_mac.txQueueLimit int 2

maximum number of frames queued up for transmission; additional frames are dropped. Only used if queueModule=="" The 2nd frame is used in case of changing registers with MPCP ... sometimes 1 is already transmitted and the next MPCP decides to transmitt again with the new times.

onu_port.epon_mac.queueModule string ""

name of optional external queue module

onu_port.epon_mac.mtu int 1500
onu_port.onu_Q_mgmt.regTimeOut int
onu_port.onu_Q_mgmt.queueLimit int
onu_port.onu_Q_mgmt.statsGranularity double
epon_ONU_relay.addressTableFile string
epon_ONU_relay.addressTableSize int
epon_ONU_relay.agingTime double
mac.address string "auto"

MAC address as hex string (12 hex digits), or "auto". "auto" values will be replaced by a generated MAC address in init stage 0.

mac.txrate double 100Mbps

maximum data rate supported by this station (bit/s); actually chosen speed may be lower due to auto- configuration. 0 means fully auto-configured.

mac.duplexEnabled bool true

whether duplex mode can be enabled or not; whether MAC will actually use duplex mode depends on the result of the auto-configuration process (duplex is only possible with DTE-to-DTE connection).

mac.txQueueLimit int 1000

maximum number of frames queued up for transmission; additional frames are dropped. Only used if queueModule==""

mac.queueModule string ""

name of optional external queue module

mac.mtu int 1500

Source code:

//
// TODO auto-generated module
//
module EPON_ONU
{
    parameters:
        @node();
        @display("i=device/modem");
        string relayUnitType = default("EPON_ONU_relayDefault");
    gates:
        inout ethg;
        inout epon;

    submodules:
        onu_port: ONU_Port {
            @display("p=78,134");
        }
        epon_ONU_relay: <relayUnitType> like EPON_ONU_relay {
            @display("p=147,56");
        }
        mac: EtherMacVlan {
            @display("p=212,137");
            promiscuous = true;
        }

    connections allowunconnected:
        mac.upperLayerIn <-- epon_ONU_relay.ethOut;
        mac.upperLayerOut --> epon_ONU_relay.ethIn;
        mac.phys <--> ethg;

        epon_ONU_relay.toPONout --> onu_port.netwIn;
        epon_ONU_relay.toPONin <-- onu_port.netwOut;

        onu_port.phys <--> epon;
}