Compound Module AccessRouter

Package: oversim.underlay.inetunderlay
File: src/underlay/inetunderlay/AccessRouter.ned

Access router connects the access nets to the network backbone

NotificationBoard InterfaceTable RoutingTable AccessNet NetworkLayer PPPInterface EthernetInterface

Usage diagram:

The following diagram shows usage relationships between types. Unresolved types are missing from the diagram. Click here to see the full picture.

Inheritance diagram:

The following diagram shows inheritance relationships for this type. Unresolved types are missing from the diagram. Click here to see the full picture.

Networks:

Name Type Description
InetUnderlayNetwork network

The InetUnderlay ned-file

See also: InetUnderlayConfigurator

Parameters:

Name Type Default value Description
routingFile string ""

Properties:

Name Value Description
node

Gates:

Name Direction Size Description
pppg [ ] inout

gates from overlay

ethg [ ] inout

unused here

Unassigned submodule parameters:

Name Type Default value Description
accessNet.channelTypes string

list of (tx) channel types (from common/channels.ned)

accessNet.channelTypesRx string

list of (rx) channel types (from common/channels.ned)

accessNet.useIPv6Addresses bool false
networkLayer.ip.procDelay double 0s
networkLayer.arp.retryTimeout double 1s

number seconds ARP waits between retries to resolve an IP address

networkLayer.arp.retryCount int 3

number of times ARP will attempt to resolve an IP address

networkLayer.arp.cacheTimeout double 120s

number seconds unused entries in the cache will time out

ppp.ppp.mtu int 4470
eth.mac.promiscuous bool false

if true, all packets are received, otherwise only the ones with matching destination MAC address

eth.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.

eth.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.

eth.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).

eth.mac.mtu int 1500

Source code:

//
// Access router connects the access nets to the network backbone
//
module AccessRouter
{
    parameters:
        @node();
        string routingFile = default("");
    gates:
        inout pppg[];    // gates from overlay
        inout ethg[];    // unused here
    submodules:
        notificationBoard: NotificationBoard {
            parameters:
                @display("p=60,60;i=block/control");
        }
        interfaceTable: InterfaceTable {
            parameters:
                @display("p=150,60;i=block/table");
        }
        routingTable: RoutingTable {
            parameters:
                IPForward = true;
                routerId = "auto";
                routingFile = routingFile;
                @display("p=240,60;i=block/table");
        }
        accessNet: AccessNet {
            parameters:
                @display("p=330,60");
        }
        networkLayer: NetworkLayer {
            parameters:
                @display("p=199,141;i=block/fork;q=queue");
            gates:
                ifIn[sizeof(pppg)+sizeof(ethg)];
                ifOut[sizeof(pppg)+sizeof(ethg)];
        }
        ppp[sizeof(pppg)]: PPPInterface {
            parameters:
                @display("p=90,257,row,110;q=queue;i=block/ifcard");
        }
        eth[sizeof(ethg)]: EthernetInterface {
            parameters:
                @display("p=286,268,row,110;q=queue;i=block/ifcard");
        }
    connections allowunconnected:
        // connections to network outside
        for i=0..sizeof(pppg)-1 {
            pppg[i] <--> ppp[i].phys;
            ppp[i].netwOut --> networkLayer.ifIn[i];
            ppp[i].netwIn <-- networkLayer.ifOut[i];
        }

        for i=0..sizeof(ethg)-1 {
            ethg[i] <--> eth[i].phys;
            eth[i].netwOut --> networkLayer.ifIn[sizeof(pppg)+i];
            eth[i].netwIn <-- networkLayer.ifOut[sizeof(pppg)+i];
        }
}