RIPInfinityCountTest

Package: inet.examples.rip.infinitycount

RIPInfinityCountTest

network

(no description)

cRouter : Router

A network router device with support for multiple routing protocols and network interfaces.

Source:
cRouter: Router {
    hasRip = true;
    @display("p=250,150");
} bRouter : Router

A network router device with support for multiple routing protocols and network interfaces.

Source:
bRouter: Router {
    hasRip = true;
    @display("p=400,150");
} rRouter[numRipRouters] : Router

A network router device with support for multiple routing protocols and network interfaces.

Source:
rRouter[numRipRouters]: Router {
    hasRip = true;
    @display("p=487,192,ri,100,100");
} configurator : Ipv4NetworkConfigurator

Assigns IPv4 addresses and sets up static routing for an IPv4 network.

Source:
configurator: Ipv4NetworkConfigurator {
    @display("p=100,100;is=s");
    addStaticRoutes = false;
    config = xml("<config>"
                            +"<interface among='cRouter bRouter' address='10.0.0.x' netmask='255.255.255.x' add-static-route='off'/>"
                            +"<int... scenarioManager : ScenarioManager

~ScenarioManager is for setting up and controlling simulation experiments.

Source:
scenarioManager: ScenarioManager {
    @display("p=100,200;is=s");
    script = xml("<scenario>"
                            +"<at t='60'>"
                                +"<disconnect src-module='rRouter[0]' src-gate='ethg[0]' />"
                            +"</at>"
                        +"<...

Usage diagram

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

Parameters

Name Type Default value Description
numRipRouters int

Properties

Name Value Description
isNetwork

Unassigned submodule parameters

Name Type Default value Description
cRouter.status.displayStringTextFormat string ""

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

cRouter.status.initialStatus string "UP"

TODO @signal, @statistic

cRouter.environment.displayStringTextFormat string ""

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

cRouter.environment.initStage int 0

Initialization stage for the setup command

cRouter.environment.globalNamespace bool false

Create new network namespaces under /var/run/netns/ (Linux only)

cRouter.environment.namespace string ""

Name of the host OS network namespace (optional) (Linux only)

cRouter.environment.setupCommand string ""

A host OS system command

cRouter.environment.teardownCommand string ""

A host OS system command

cRouter.pcapRecorder.displayStringTextFormat string "rec: %n pks"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

cRouter.pcapRecorder.verbose bool true

Whether to log packets on the module output

cRouter.pcapRecorder.recordEmptyPackets bool true

Specifies if zero length packets are recorded or not

cRouter.pcapRecorder.enableConvertingPackets bool true

Specifies if converting packets to link type is allowed or not

cRouter.pcapRecorder.pcapFile string ""

The PCAP file to be written, suggested value: pcapFile = "${resultdir}/${configname}-#${runnumber}" + fullpath() + ".pcap"

cRouter.pcapRecorder.fileFormat string "pcapng"
cRouter.pcapRecorder.snaplen int 65535

Maximum number of bytes to record per packet

cRouter.pcapRecorder.timePrecision int 6

Time precision in recorded file. pcap supports only 6 (usec) or 9 (nanosec), pcapng supports more values (see 'if_tsresol' option in pcapng file format).

cRouter.pcapRecorder.dumpBadFrames bool true

Enable dump of frames with hasBitError

cRouter.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*]"

Space-separated list of sibling module names to listen on

cRouter.pcapRecorder.sendingSignalNames string "transmissionEnded"

Space-separated list of outbound packet signals to subscribe to

cRouter.pcapRecorder.receivingSignalNames string "receptionEnded"

Space-separated list of inbound packet signals to subscribe to

cRouter.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

Space-separated list of protocol names as defined in the Protocol class

cRouter.pcapRecorder.packetFilter object "*"

Which packets are considered, matches all packets by default

cRouter.pcapRecorder.helpers string ""

Usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper"

cRouter.pcapRecorder.alwaysFlush bool false

Flush the pcapFile after each write to ensure that all packets are captured in case of a crash

cRouter.interfaceTable.displayStringTextFormat string ""

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

cRouter.interfaceTable.displayAddresses bool false

Whether to display IP addresses on links

cRouter.cb.displayStringTextFormat string "processed %p pk (%l)"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

cRouter.cb.interfaceTableModule string

Module path to the ~InterfaceTable module

cRouter.cb.forwardServiceRegistration bool true
cRouter.cb.forwardProtocolRegistration bool true
cRouter.cb.interfaceMapping object {}

Maps network interface names to connected submodule names (e.g. {"eth0": "bridging"}), overrides automatically learned dispatching; * overrides all learned network interfaces, ? overrides default

cRouter.cb.serviceMapping object {}

Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default

cRouter.cb.protocolMapping object {}

Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default

cRouter.bl.displayStringTextFormat string "processed %p pk (%l)"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

cRouter.bl.interfaceTableModule string

Module path to the ~InterfaceTable module

cRouter.bl.forwardServiceRegistration bool true
cRouter.bl.forwardProtocolRegistration bool true
cRouter.bl.interfaceMapping object {}

Maps network interface names to connected submodule names (e.g. {"eth0": "bridging"}), overrides automatically learned dispatching; * overrides all learned network interfaces, ? overrides default

cRouter.bl.serviceMapping object {}

Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default

cRouter.bl.protocolMapping object {}

Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default

cRouter.li.displayStringTextFormat string "processed %p pk (%l)"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

cRouter.li.interfaceTableModule string

Module path to the ~InterfaceTable module

cRouter.li.forwardServiceRegistration bool true
cRouter.li.forwardProtocolRegistration bool true
cRouter.li.interfaceMapping object {}

Maps network interface names to connected submodule names (e.g. {"eth0": "bridging"}), overrides automatically learned dispatching; * overrides all learned network interfaces, ? overrides default

cRouter.li.serviceMapping object {}

Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default

cRouter.li.protocolMapping object {}

Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default

cRouter.eth.bitrate double
cRouter.nl.displayStringTextFormat string "processed %p pk (%l)"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

cRouter.nl.interfaceTableModule string

Module path to the ~InterfaceTable module

cRouter.nl.forwardServiceRegistration bool true
cRouter.nl.forwardProtocolRegistration bool true
cRouter.nl.interfaceMapping object {}

Maps network interface names to connected submodule names (e.g. {"eth0": "bridging"}), overrides automatically learned dispatching; * overrides all learned network interfaces, ? overrides default

cRouter.nl.serviceMapping object {}

Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default

cRouter.nl.protocolMapping object {}

Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default

cRouter.tn.displayStringTextFormat string "processed %p pk (%l)"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

cRouter.tn.interfaceTableModule string

Module path to the ~InterfaceTable module

cRouter.tn.forwardServiceRegistration bool true
cRouter.tn.forwardProtocolRegistration bool true
cRouter.tn.interfaceMapping object {}

Maps network interface names to connected submodule names (e.g. {"eth0": "bridging"}), overrides automatically learned dispatching; * overrides all learned network interfaces, ? overrides default

cRouter.tn.serviceMapping object {}

Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default

cRouter.tn.protocolMapping object {}

Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default

cRouter.at.displayStringTextFormat string "processed %p pk (%l)"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

cRouter.at.interfaceTableModule string

Module path to the ~InterfaceTable module

cRouter.at.forwardServiceRegistration bool true
cRouter.at.forwardProtocolRegistration bool true
cRouter.at.interfaceMapping object {}

Maps network interface names to connected submodule names (e.g. {"eth0": "bridging"}), overrides automatically learned dispatching; * overrides all learned network interfaces, ? overrides default

cRouter.at.serviceMapping object {}

Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default

cRouter.at.protocolMapping object {}

Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default

cRouter.bgp.interfaceTableModule string

The path to the InterfaceTable module

cRouter.bgp.routingTableModule string
cRouter.bgp.ospfRoutingModule string parent.hasOspf ? "^.ospf" : ""
bRouter.status.displayStringTextFormat string ""

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

bRouter.status.initialStatus string "UP"

TODO @signal, @statistic

bRouter.environment.displayStringTextFormat string ""

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

bRouter.environment.initStage int 0

Initialization stage for the setup command

bRouter.environment.globalNamespace bool false

Create new network namespaces under /var/run/netns/ (Linux only)

bRouter.environment.namespace string ""

Name of the host OS network namespace (optional) (Linux only)

bRouter.environment.setupCommand string ""

A host OS system command

bRouter.environment.teardownCommand string ""

A host OS system command

bRouter.pcapRecorder.displayStringTextFormat string "rec: %n pks"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

bRouter.pcapRecorder.verbose bool true

Whether to log packets on the module output

bRouter.pcapRecorder.recordEmptyPackets bool true

Specifies if zero length packets are recorded or not

bRouter.pcapRecorder.enableConvertingPackets bool true

Specifies if converting packets to link type is allowed or not

bRouter.pcapRecorder.pcapFile string ""

The PCAP file to be written, suggested value: pcapFile = "${resultdir}/${configname}-#${runnumber}" + fullpath() + ".pcap"

bRouter.pcapRecorder.fileFormat string "pcapng"
bRouter.pcapRecorder.snaplen int 65535

Maximum number of bytes to record per packet

bRouter.pcapRecorder.timePrecision int 6

Time precision in recorded file. pcap supports only 6 (usec) or 9 (nanosec), pcapng supports more values (see 'if_tsresol' option in pcapng file format).

bRouter.pcapRecorder.dumpBadFrames bool true

Enable dump of frames with hasBitError

bRouter.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*]"

Space-separated list of sibling module names to listen on

bRouter.pcapRecorder.sendingSignalNames string "transmissionEnded"

Space-separated list of outbound packet signals to subscribe to

bRouter.pcapRecorder.receivingSignalNames string "receptionEnded"

Space-separated list of inbound packet signals to subscribe to

bRouter.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

Space-separated list of protocol names as defined in the Protocol class

bRouter.pcapRecorder.packetFilter object "*"

Which packets are considered, matches all packets by default

bRouter.pcapRecorder.helpers string ""

Usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper"

bRouter.pcapRecorder.alwaysFlush bool false

Flush the pcapFile after each write to ensure that all packets are captured in case of a crash

bRouter.interfaceTable.displayStringTextFormat string ""

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

bRouter.interfaceTable.displayAddresses bool false

Whether to display IP addresses on links

bRouter.cb.displayStringTextFormat string "processed %p pk (%l)"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

bRouter.cb.interfaceTableModule string

Module path to the ~InterfaceTable module

bRouter.cb.forwardServiceRegistration bool true
bRouter.cb.forwardProtocolRegistration bool true
bRouter.cb.interfaceMapping object {}

Maps network interface names to connected submodule names (e.g. {"eth0": "bridging"}), overrides automatically learned dispatching; * overrides all learned network interfaces, ? overrides default

bRouter.cb.serviceMapping object {}

Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default

bRouter.cb.protocolMapping object {}

Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default

bRouter.bl.displayStringTextFormat string "processed %p pk (%l)"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

bRouter.bl.interfaceTableModule string

Module path to the ~InterfaceTable module

bRouter.bl.forwardServiceRegistration bool true
bRouter.bl.forwardProtocolRegistration bool true
bRouter.bl.interfaceMapping object {}

Maps network interface names to connected submodule names (e.g. {"eth0": "bridging"}), overrides automatically learned dispatching; * overrides all learned network interfaces, ? overrides default

bRouter.bl.serviceMapping object {}

Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default

bRouter.bl.protocolMapping object {}

Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default

bRouter.li.displayStringTextFormat string "processed %p pk (%l)"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

bRouter.li.interfaceTableModule string

Module path to the ~InterfaceTable module

bRouter.li.forwardServiceRegistration bool true
bRouter.li.forwardProtocolRegistration bool true
bRouter.li.interfaceMapping object {}

Maps network interface names to connected submodule names (e.g. {"eth0": "bridging"}), overrides automatically learned dispatching; * overrides all learned network interfaces, ? overrides default

bRouter.li.serviceMapping object {}

Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default

bRouter.li.protocolMapping object {}

Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default

bRouter.eth.bitrate double
bRouter.nl.displayStringTextFormat string "processed %p pk (%l)"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

bRouter.nl.interfaceTableModule string

Module path to the ~InterfaceTable module

bRouter.nl.forwardServiceRegistration bool true
bRouter.nl.forwardProtocolRegistration bool true
bRouter.nl.interfaceMapping object {}

Maps network interface names to connected submodule names (e.g. {"eth0": "bridging"}), overrides automatically learned dispatching; * overrides all learned network interfaces, ? overrides default

bRouter.nl.serviceMapping object {}

Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default

bRouter.nl.protocolMapping object {}

Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default

bRouter.tn.displayStringTextFormat string "processed %p pk (%l)"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

bRouter.tn.interfaceTableModule string

Module path to the ~InterfaceTable module

bRouter.tn.forwardServiceRegistration bool true
bRouter.tn.forwardProtocolRegistration bool true
bRouter.tn.interfaceMapping object {}

Maps network interface names to connected submodule names (e.g. {"eth0": "bridging"}), overrides automatically learned dispatching; * overrides all learned network interfaces, ? overrides default

bRouter.tn.serviceMapping object {}

Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default

bRouter.tn.protocolMapping object {}

Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default

bRouter.at.displayStringTextFormat string "processed %p pk (%l)"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

bRouter.at.interfaceTableModule string

Module path to the ~InterfaceTable module

bRouter.at.forwardServiceRegistration bool true
bRouter.at.forwardProtocolRegistration bool true
bRouter.at.interfaceMapping object {}

Maps network interface names to connected submodule names (e.g. {"eth0": "bridging"}), overrides automatically learned dispatching; * overrides all learned network interfaces, ? overrides default

bRouter.at.serviceMapping object {}

Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default

bRouter.at.protocolMapping object {}

Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default

bRouter.bgp.interfaceTableModule string

The path to the InterfaceTable module

bRouter.bgp.routingTableModule string
bRouter.bgp.ospfRoutingModule string parent.hasOspf ? "^.ospf" : ""
rRouter.status.displayStringTextFormat string ""

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

rRouter.status.initialStatus string "UP"

TODO @signal, @statistic

rRouter.environment.displayStringTextFormat string ""

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

rRouter.environment.initStage int 0

Initialization stage for the setup command

rRouter.environment.globalNamespace bool false

Create new network namespaces under /var/run/netns/ (Linux only)

rRouter.environment.namespace string ""

Name of the host OS network namespace (optional) (Linux only)

rRouter.environment.setupCommand string ""

A host OS system command

rRouter.environment.teardownCommand string ""

A host OS system command

rRouter.pcapRecorder.displayStringTextFormat string "rec: %n pks"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

rRouter.pcapRecorder.verbose bool true

Whether to log packets on the module output

rRouter.pcapRecorder.recordEmptyPackets bool true

Specifies if zero length packets are recorded or not

rRouter.pcapRecorder.enableConvertingPackets bool true

Specifies if converting packets to link type is allowed or not

rRouter.pcapRecorder.pcapFile string ""

The PCAP file to be written, suggested value: pcapFile = "${resultdir}/${configname}-#${runnumber}" + fullpath() + ".pcap"

rRouter.pcapRecorder.fileFormat string "pcapng"
rRouter.pcapRecorder.snaplen int 65535

Maximum number of bytes to record per packet

rRouter.pcapRecorder.timePrecision int 6

Time precision in recorded file. pcap supports only 6 (usec) or 9 (nanosec), pcapng supports more values (see 'if_tsresol' option in pcapng file format).

rRouter.pcapRecorder.dumpBadFrames bool true

Enable dump of frames with hasBitError

rRouter.pcapRecorder.moduleNamePatterns string "wlan[*] eth[*] ppp[*]"

Space-separated list of sibling module names to listen on

rRouter.pcapRecorder.sendingSignalNames string "transmissionEnded"

Space-separated list of outbound packet signals to subscribe to

rRouter.pcapRecorder.receivingSignalNames string "receptionEnded"

Space-separated list of inbound packet signals to subscribe to

rRouter.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

Space-separated list of protocol names as defined in the Protocol class

rRouter.pcapRecorder.packetFilter object "*"

Which packets are considered, matches all packets by default

rRouter.pcapRecorder.helpers string ""

Usable PcapRecorder::IHelper helpers for accept packettype and store/convert packet as specified linktype currently available: "inet::AckingMacToEthernetPcapRecorderHelper"

rRouter.pcapRecorder.alwaysFlush bool false

Flush the pcapFile after each write to ensure that all packets are captured in case of a crash

rRouter.interfaceTable.displayStringTextFormat string ""

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

rRouter.interfaceTable.displayAddresses bool false

Whether to display IP addresses on links

rRouter.cb.displayStringTextFormat string "processed %p pk (%l)"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

rRouter.cb.interfaceTableModule string

Module path to the ~InterfaceTable module

rRouter.cb.forwardServiceRegistration bool true
rRouter.cb.forwardProtocolRegistration bool true
rRouter.cb.interfaceMapping object {}

Maps network interface names to connected submodule names (e.g. {"eth0": "bridging"}), overrides automatically learned dispatching; * overrides all learned network interfaces, ? overrides default

rRouter.cb.serviceMapping object {}

Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default

rRouter.cb.protocolMapping object {}

Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default

rRouter.bl.displayStringTextFormat string "processed %p pk (%l)"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

rRouter.bl.interfaceTableModule string

Module path to the ~InterfaceTable module

rRouter.bl.forwardServiceRegistration bool true
rRouter.bl.forwardProtocolRegistration bool true
rRouter.bl.interfaceMapping object {}

Maps network interface names to connected submodule names (e.g. {"eth0": "bridging"}), overrides automatically learned dispatching; * overrides all learned network interfaces, ? overrides default

rRouter.bl.serviceMapping object {}

Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default

rRouter.bl.protocolMapping object {}

Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default

rRouter.li.displayStringTextFormat string "processed %p pk (%l)"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

rRouter.li.interfaceTableModule string

Module path to the ~InterfaceTable module

rRouter.li.forwardServiceRegistration bool true
rRouter.li.forwardProtocolRegistration bool true
rRouter.li.interfaceMapping object {}

Maps network interface names to connected submodule names (e.g. {"eth0": "bridging"}), overrides automatically learned dispatching; * overrides all learned network interfaces, ? overrides default

rRouter.li.serviceMapping object {}

Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default

rRouter.li.protocolMapping object {}

Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default

rRouter.eth.bitrate double
rRouter.nl.displayStringTextFormat string "processed %p pk (%l)"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

rRouter.nl.interfaceTableModule string

Module path to the ~InterfaceTable module

rRouter.nl.forwardServiceRegistration bool true
rRouter.nl.forwardProtocolRegistration bool true
rRouter.nl.interfaceMapping object {}

Maps network interface names to connected submodule names (e.g. {"eth0": "bridging"}), overrides automatically learned dispatching; * overrides all learned network interfaces, ? overrides default

rRouter.nl.serviceMapping object {}

Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default

rRouter.nl.protocolMapping object {}

Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default

rRouter.tn.displayStringTextFormat string "processed %p pk (%l)"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

rRouter.tn.interfaceTableModule string

Module path to the ~InterfaceTable module

rRouter.tn.forwardServiceRegistration bool true
rRouter.tn.forwardProtocolRegistration bool true
rRouter.tn.interfaceMapping object {}

Maps network interface names to connected submodule names (e.g. {"eth0": "bridging"}), overrides automatically learned dispatching; * overrides all learned network interfaces, ? overrides default

rRouter.tn.serviceMapping object {}

Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default

rRouter.tn.protocolMapping object {}

Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default

rRouter.at.displayStringTextFormat string "processed %p pk (%l)"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

rRouter.at.interfaceTableModule string

Module path to the ~InterfaceTable module

rRouter.at.forwardServiceRegistration bool true
rRouter.at.forwardProtocolRegistration bool true
rRouter.at.interfaceMapping object {}

Maps network interface names to connected submodule names (e.g. {"eth0": "bridging"}), overrides automatically learned dispatching; * overrides all learned network interfaces, ? overrides default

rRouter.at.serviceMapping object {}

Maps protocols to connected submodule names (e.g. {"ethernetmac": "bridging"}), overrides automatically learned dispatching; * overrides all learned services, ? overrides default

rRouter.at.protocolMapping object {}

Maps protocols to connected submodule names (e.g. {"ipv4": "bridging"}), overrides automatically learned dispatching; * overrides all learned protocols, ? overrides default

rRouter.bgp.interfaceTableModule string

The path to the InterfaceTable module

rRouter.bgp.routingTableModule string
rRouter.bgp.ospfRoutingModule string parent.hasOspf ? "^.ospf" : ""
configurator.displayStringTextFormat string ""

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

configurator.minLinkWeight double 1E-3
configurator.configureIsolatedNetworksSeparatly bool false
configurator.assignAddresses bool true

Assign IP addresses to all interfaces in the network

configurator.assignUniqueAddresses bool true

Avoid using the same address and raise an error if not possible

configurator.assignDisjunctSubnetAddresses bool true

Avoid using the same address prefix and netmask on different links when assigning IP addresses to interfaces

configurator.addDefaultRoutes bool true

Add default routes if all routes from a source node go through the same gateway (used only if addStaticRoutes is true)

configurator.addSubnetRoutes bool true

Add subnet routes instead of destination interface routes (only where applicable; used only if addStaticRoutes is true)

configurator.addDirectRoutes bool true

Add direct routes towards local network members (i.e. directly connected interfaces) to the routing table (used only if addStaticRoutes is true)

configurator.optimizeRoutes bool true

Optimize routing tables by merging routes, the resulting routing table might route more packets than the original (used only if addStaticRoutes is true)

configurator.updateRoutes bool false

Recalculate static routes if an interface goes down/up or a carrier is lost/back

configurator.dumpTopology bool false

Print extracted network topology to the module output

configurator.dumpLinks bool false

Print recognized network links to the module output

configurator.dumpAddresses bool false

Print assigned IP addresses for all interfaces to the module output

configurator.dumpRoutes bool false

Print configured and optimized routing tables for all nodes to the module output

configurator.dumpConfig string ""

Write configuration into the given config file that can be fed back to speed up subsequent runs (network configurations)

scenarioManager.displayStringTextFormat string "total %c changes, %l left\nnext at: %t"

Determines the text that is written on top of the submodule, supports displaying pars, watches, and module-specific information

Source code

network RIPInfinityCountTest
{
    parameters:
        int numRipRouters;
    types:
        channel C extends DatarateChannel
        {
            datarate = 10Mbps;
            delay = 0.1us;
        }
    submodules:
        cRouter: Router {
            hasRip = true;
            @display("p=250,150");
        }
        bRouter: Router {
            hasRip = true;
            @display("p=400,150");
        }
        rRouter[numRipRouters]: Router {
            hasRip = true;
            @display("p=487,192,ri,100,100");
        }
        configurator: Ipv4NetworkConfigurator {
            @display("p=100,100;is=s");
            addStaticRoutes = false;
            config = xml("<config>"
                            +"<interface among='cRouter bRouter' address='10.0.0.x' netmask='255.255.255.x' add-static-route='off'/>"
                            +"<interface among='bRouter rRouter[0]' address='10.1.0.x' netmask='255.255.255.x' add-static-route='off'/>"
                            +"<interface among='rRouter[*]' address='192.168.1.x' netmask='255.255.255.x' add-static-route='off'/>"
                        +"</config>");
        }
        scenarioManager: ScenarioManager {
            @display("p=100,200;is=s");
            script = xml("<scenario>"
                            +"<at t='60'>"
                                +"<disconnect src-module='rRouter[0]' src-gate='ethg[0]' />"
                            +"</at>"
                        +"</scenario>");
        }
    connections:
        bRouter.ethg++ <--> C <--> rRouter[0].ethg++;
        cRouter.ethg++ <--> C <--> bRouter.ethg++;        // ha ez a link van, akkor van infinity count
        for i=0..numRipRouters-1 {
            rRouter[i].ethg++ <--> C <--> rRouter[(i+1)%numRipRouters].ethg++;
        }
}

File: examples/rip/infinitycount/InfinityCount.ned