AODVNetworkWithEthernet

Package: inet.examples.aodv

AODVNetworkWithEthernet

network

Extended AODV network with an additional Ethernet-connected host that can receive traffic from the wireless AODV network.

radioMedium : UnitDiskRadioMedium

This radio medium model provides a very simple but fast and predictable physical layer behavior.

Source:
radioMedium: UnitDiskRadioMedium {
    parameters:
        @display("p=100,200;is=s");
} configurator : Ipv4NetworkConfigurator

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

Source:
configurator: Ipv4NetworkConfigurator {
    parameters:
        config = default(xml("<config><interface hosts='*' address='145.236.x.x' netmask='255.255.0.0'/></config>"));
        @display("p=100,100;is=s");
} routingTableRecorder : RoutingTableRecorder

Records changes in the routing tables (~Ipv4RoutingTable) and interface tables (~InterfaceTable) of...

Source:
routingTableRecorder: RoutingTableRecorder {
    parameters:
        @display("p=100,300;is=s");
} scenarioManager : ScenarioManager

~ScenarioManager is for setting up and controlling simulation experiments.

Source:
scenarioManager: ScenarioManager {
    parameters:
        script = default(xml("<scenario/>"));
        @display("p=100,400;is=s");
} host[numHosts] : AodvRouter

A mobile node with the Ad hoc On-Demand Distance Vector (AODV) routing protocol.

Source:
host[numHosts]: AodvRouter {
    parameters:
        @display("i=device/pocketpc_s;r=,,#707070");
} visualizer : like IIntegratedVisualizer

IntegratedCanvasVisualizer: Integrates all canvas visualizers into a single module.

IIntegratedVisualizer: Interface allows configuring different ~IIntegratedVisualizer submodules from INI files.

Source:
visualizer: <default("IntegratedCanvasVisualizer")> like IIntegratedVisualizer {
    parameters:
        @display("p=100,150;is=s");
} router : Router

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

Source:
router: Router {
    @display("p=500,150");
} ethernetSwitch : EthernetSwitch

EthernetSwitch models a Layer 2 Ethernet switch with support for various IEEE 802.1 protocols and...

Source:
ethernetSwitch: EthernetSwitch {
    @display("p=600,300");
} ethernetHost : StandardHost

A comprehensive model of an IPv4/IPv6 host that provides a complete network stack with configurable...

Source:
ethernetHost: StandardHost {
    @display("p=500,400;i=device/server");
}

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.

Extends

Name Type Description
AODVNetwork network (no description)

Parameters

Name Type Default value Description
numHosts int

Properties

Name Value Description
isNetwork
display bgb=650,650

Unassigned submodule parameters

Name Type Default value Description
radioMedium.neighborCache.refillPeriod double
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.config xml xml("")

XML configuration parameters for IP address assignment and adding manual routes

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.addStaticRoutes bool true

Add static routes to the routing tables of all nodes to route to all destination interfaces (only where applicable; turn off when config file contains manual routes)

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)

routingTableRecorder.displayStringTextFormat string ""

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

routingTableRecorder.enabled bool true
routingTableRecorder.logfile string "${resultdir}/${configname}-#${runnumber}.rt"
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

scenarioManager.script xml xml("")
host.status.displayStringTextFormat string ""

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

host.status.initialStatus string "UP"

TODO @signal, @statistic

host.environment.displayStringTextFormat string ""

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

host.environment.initStage int 0

Initialization stage for the setup command

host.environment.globalNamespace bool false

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

host.environment.namespace string ""

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

host.environment.setupCommand string ""

A host OS system command

host.environment.teardownCommand string ""

A host OS system command

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

host.pcapRecorder.verbose bool true

Whether to log packets on the module output

host.pcapRecorder.recordEmptyPackets bool true

Specifies if zero length packets are recorded or not

host.pcapRecorder.enableConvertingPackets bool true

Specifies if converting packets to link type is allowed or not

host.pcapRecorder.pcapFile string ""

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

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

Maximum number of bytes to record per packet

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

host.pcapRecorder.dumpBadFrames bool true

Enable dump of frames with hasBitError

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

Space-separated list of sibling module names to listen on

host.pcapRecorder.sendingSignalNames string "transmissionEnded"

Space-separated list of outbound packet signals to subscribe to

host.pcapRecorder.receivingSignalNames string "receptionEnded"

Space-separated list of inbound packet signals to subscribe to

host.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

host.pcapRecorder.packetFilter object "*"

Which packets are considered, matches all packets by default

host.pcapRecorder.helpers string ""

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

host.pcapRecorder.alwaysFlush bool false

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

host.interfaceTable.displayStringTextFormat string ""

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

host.interfaceTable.displayAddresses bool false

Whether to display IP addresses on links

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

host.cb.interfaceTableModule string

Module path to the ~InterfaceTable module

host.cb.forwardServiceRegistration bool true
host.cb.forwardProtocolRegistration bool true
host.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

host.cb.serviceMapping object {}

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

host.cb.protocolMapping object {}

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

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

host.bl.interfaceTableModule string

Module path to the ~InterfaceTable module

host.bl.forwardServiceRegistration bool true
host.bl.forwardProtocolRegistration bool true
host.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

host.bl.serviceMapping object {}

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

host.bl.protocolMapping object {}

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

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

host.li.interfaceTableModule string

Module path to the ~InterfaceTable module

host.li.forwardServiceRegistration bool true
host.li.forwardProtocolRegistration bool true
host.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

host.li.serviceMapping object {}

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

host.li.protocolMapping object {}

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

host.eth.bitrate double
host.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

host.nl.interfaceTableModule string

Module path to the ~InterfaceTable module

host.nl.forwardServiceRegistration bool true
host.nl.forwardProtocolRegistration bool true
host.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

host.nl.serviceMapping object {}

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

host.nl.protocolMapping object {}

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

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

host.tn.interfaceTableModule string

Module path to the ~InterfaceTable module

host.tn.forwardServiceRegistration bool true
host.tn.forwardProtocolRegistration bool true
host.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

host.tn.serviceMapping object {}

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

host.tn.protocolMapping object {}

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

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

host.at.interfaceTableModule string

Module path to the ~InterfaceTable module

host.at.forwardServiceRegistration bool true
host.at.forwardProtocolRegistration bool true
host.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

host.at.serviceMapping object {}

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

host.at.protocolMapping object {}

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

host.aodv.displayStringTextFormat string ""

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

host.aodv.routingTableModule string "^.ipv4.routingTable"
host.aodv.interfaceTableModule string "^.interfaceTable"
host.aodv.networkProtocolModule string "^.ipv4.ip"
host.aodv.askGratuitousRREP bool false

See RFC 3561: 6.6.3

host.aodv.useHelloMessages bool false

See RFC 3561: 6.9

host.aodv.useLocalRepair bool false

See RFC 3561: 6.12 *not implemented yet*

host.aodv.destinationOnlyFlag bool false

See RFC 3561: 5.1

host.aodv.udpPort int 654
host.aodv.interface string "wlan0"

The interface to be used for the AODV routing

host.aodv.gatewayAddress string ""

The address of the external gateway (external traffic routed here by default)

host.aodv.maxPeriodicJitter double helloInterval / 4

It MUST NOT be negative; it MUST NOT be greater than MESSAGE_INTERVAL/2; it SHOULD NOT be greater than MESSAGE_INTERVAL/4.

host.aodv.periodicJitter double uniform(0s, maxPeriodicJitter)

Jitter for externally triggered message generation and message forwarding

host.aodv.maxJitter double 5ms

RFC 5148: need more revision: As well as the decision as to whether to use jitter being dependent on the medium access control and lower layers, the selection of the MAXJITTER parameter SHOULD be appropriate to those mechanisms.

host.aodv.jitter double uniform(0ms, maxJitter)

Jitter for broadcasts

host.aodv.helloInterval double 1s

Every helloInterval seconds a node broadcasts Hello messages (if it is necessary)

host.aodv.allowedHelloLoss int 2

AllowedHelloLoss * helloInterval is the lifetime value for Hello messages

host.aodv.activeRouteTimeout double 3s

The timeout value for cached routes. If Hello messages are used, then the ACTIVE_ROUTE_TIMEOUT parameter value MUST be more than the value (ALLOWED_HELLO_LOSS * HELLO_INTERVAL).

host.aodv.netDiameter int 35

The maximum possible number of hops between two nodes in the network

host.aodv.nodeTraversalTime double 0.04s

An estimation of the average one-hop traversal time

host.aodv.rerrRatelimit int 10

Maximum number of RERR messages that the AODV may originate in 1s.

host.aodv.rreqRetries int 2

Specifies the number of times AODV will repeat an expanded ring search for a destination

host.aodv.rreqRatelimit int 10

Maximum number of RREQ messages that the AODV may originate in 1s.

host.aodv.timeoutBuffer int 2

Plus time to wait for a delayed RREP (due to congestion) (to omit this buffer set it to 0)

host.aodv.ttlStart int 2

Specifies the TTL value when initiating a route request

host.aodv.ttlIncrement int 2

Specifies the value by which the TTL will be incremented each time a RREQ is retransmitted

host.aodv.ttlThreshold int 7

The maximum value of TTL over which NET_DIAMETER value will be used to broadcast any RREQ

host.aodv.localAddTTL int 2

It is used by the formula which calculates the initial TTL of the RREQ for a local repair

host.aodv.myRouteTimeout double 2 * activeRouteTimeout

The value of the lifetime field that a destination node places in RREPs

host.aodv.deletePeriod double 5 * max(activeRouteTimeout, helloInterval)

The time after which an expired route is deleted

host.aodv.blacklistTimeout double rreqRetries * netTraversalTime

The time after which a blacklisted node is removed from the blacklist

host.aodv.netTraversalTime double 2 * nodeTraversalTime * netDiameter

An estimation of the traversal time for the complete network

host.aodv.nextHopWait double nodeTraversalTime + 0.01s

Timeout for a RREP-ACK

host.aodv.pathDiscoveryTime double 2 * netTraversalTime

Buffer timeout for each broadcasted RREQ message

router.status.displayStringTextFormat string ""

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

router.status.initialStatus string "UP"

TODO @signal, @statistic

router.environment.displayStringTextFormat string ""

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

router.environment.initStage int 0

Initialization stage for the setup command

router.environment.globalNamespace bool false

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

router.environment.namespace string ""

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

router.environment.setupCommand string ""

A host OS system command

router.environment.teardownCommand string ""

A host OS system command

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

router.pcapRecorder.verbose bool true

Whether to log packets on the module output

router.pcapRecorder.recordEmptyPackets bool true

Specifies if zero length packets are recorded or not

router.pcapRecorder.enableConvertingPackets bool true

Specifies if converting packets to link type is allowed or not

router.pcapRecorder.pcapFile string ""

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

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

Maximum number of bytes to record per packet

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

router.pcapRecorder.dumpBadFrames bool true

Enable dump of frames with hasBitError

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

Space-separated list of sibling module names to listen on

router.pcapRecorder.sendingSignalNames string "transmissionEnded"

Space-separated list of outbound packet signals to subscribe to

router.pcapRecorder.receivingSignalNames string "receptionEnded"

Space-separated list of inbound packet signals to subscribe to

router.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

router.pcapRecorder.packetFilter object "*"

Which packets are considered, matches all packets by default

router.pcapRecorder.helpers string ""

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

router.pcapRecorder.alwaysFlush bool false

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

router.interfaceTable.displayStringTextFormat string ""

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

router.interfaceTable.displayAddresses bool false

Whether to display IP addresses on links

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

router.cb.interfaceTableModule string

Module path to the ~InterfaceTable module

router.cb.forwardServiceRegistration bool true
router.cb.forwardProtocolRegistration bool true
router.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

router.cb.serviceMapping object {}

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

router.cb.protocolMapping object {}

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

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

router.bl.interfaceTableModule string

Module path to the ~InterfaceTable module

router.bl.forwardServiceRegistration bool true
router.bl.forwardProtocolRegistration bool true
router.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

router.bl.serviceMapping object {}

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

router.bl.protocolMapping object {}

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

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

router.li.interfaceTableModule string

Module path to the ~InterfaceTable module

router.li.forwardServiceRegistration bool true
router.li.forwardProtocolRegistration bool true
router.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

router.li.serviceMapping object {}

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

router.li.protocolMapping object {}

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

router.eth.bitrate double
router.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

router.nl.interfaceTableModule string

Module path to the ~InterfaceTable module

router.nl.forwardServiceRegistration bool true
router.nl.forwardProtocolRegistration bool true
router.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

router.nl.serviceMapping object {}

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

router.nl.protocolMapping object {}

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

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

router.tn.interfaceTableModule string

Module path to the ~InterfaceTable module

router.tn.forwardServiceRegistration bool true
router.tn.forwardProtocolRegistration bool true
router.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

router.tn.serviceMapping object {}

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

router.tn.protocolMapping object {}

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

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

router.at.interfaceTableModule string

Module path to the ~InterfaceTable module

router.at.forwardServiceRegistration bool true
router.at.forwardProtocolRegistration bool true
router.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

router.at.serviceMapping object {}

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

router.at.protocolMapping object {}

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

router.bgp.interfaceTableModule string

The path to the InterfaceTable module

router.bgp.routingTableModule string
router.bgp.ospfRoutingModule string parent.hasOspf ? "^.ospf" : ""
ethernetSwitch.macTable.agingTime double
ethernetSwitch.macTable.forwardingTableFile string
ethernetSwitch.interfaceTable.displayStringTextFormat string ""

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

ethernetSwitch.interfaceTable.displayAddresses bool false

Whether to display IP addresses on links

ethernetSwitch.status.displayStringTextFormat string ""

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

ethernetSwitch.status.initialStatus string "UP"

TODO @signal, @statistic

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

ethernetSwitch.pcapRecorder.verbose bool true

Whether to log packets on the module output

ethernetSwitch.pcapRecorder.recordEmptyPackets bool true

Specifies if zero length packets are recorded or not

ethernetSwitch.pcapRecorder.enableConvertingPackets bool true

Specifies if converting packets to link type is allowed or not

ethernetSwitch.pcapRecorder.pcapFile string ""

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

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

Maximum number of bytes to record per packet

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

ethernetSwitch.pcapRecorder.dumpBadFrames bool true

Enable dump of frames with hasBitError

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

Space-separated list of sibling module names to listen on

ethernetSwitch.pcapRecorder.sendingSignalNames string "transmissionEnded"

Space-separated list of outbound packet signals to subscribe to

ethernetSwitch.pcapRecorder.receivingSignalNames string "receptionEnded"

Space-separated list of inbound packet signals to subscribe to

ethernetSwitch.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

ethernetSwitch.pcapRecorder.packetFilter object "*"

Which packets are considered, matches all packets by default

ethernetSwitch.pcapRecorder.helpers string ""

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

ethernetSwitch.pcapRecorder.alwaysFlush bool false

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

ethernetSwitch.mrp.ccmInterval double
ethernetSwitch.mrp.mrpRole string
ethernetSwitch.mrp.timingProfile int
ethernetSwitch.mrp.uuid0 int
ethernetSwitch.mrp.uuid1 int
ethernetSwitch.mrp.ringPort1 int
ethernetSwitch.mrp.ringPort2 int
ethernetSwitch.mrp.interconnectionLinkCheckAware bool
ethernetSwitch.mrp.interconnectionRingCheckAware bool
ethernetSwitch.mrp.nonblockingMrcSupported bool
ethernetSwitch.mrp.reactOnLinkChange bool
ethernetSwitch.mrp.visualize bool
ethernetSwitch.stp.helloTime double
ethernetSwitch.stp.forwardDelay double
ethernetSwitch.stp.maxAge double
ethernetSwitch.stp.bridgePriority int
ethernetSwitch.stp.visualize bool
ethernetSwitch.gptp.gptpNodeType string "BRIDGE_NODE"
ethernetSwitch.sc.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

ethernetSwitch.sc.interfaceTableModule string

Module path to the ~InterfaceTable module

ethernetSwitch.sc.forwardServiceRegistration bool true
ethernetSwitch.sc.forwardProtocolRegistration bool true
ethernetSwitch.sc.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

ethernetSwitch.sc.serviceMapping object {}

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

ethernetSwitch.sc.protocolMapping object {}

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

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

ethernetSwitch.cb.interfaceTableModule string

Module path to the ~InterfaceTable module

ethernetSwitch.cb.forwardServiceRegistration bool true
ethernetSwitch.cb.forwardProtocolRegistration bool true
ethernetSwitch.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

ethernetSwitch.cb.serviceMapping object {}

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

ethernetSwitch.cb.protocolMapping object {}

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

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

ethernetSwitch.bl.interfaceTableModule string

Module path to the ~InterfaceTable module

ethernetSwitch.bl.forwardServiceRegistration bool true
ethernetSwitch.bl.forwardProtocolRegistration bool true
ethernetSwitch.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

ethernetSwitch.bl.serviceMapping object {}

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

ethernetSwitch.bl.protocolMapping object {}

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

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

ethernetSwitch.li.interfaceTableModule string

Module path to the ~InterfaceTable module

ethernetSwitch.li.forwardServiceRegistration bool true
ethernetSwitch.li.forwardProtocolRegistration bool true
ethernetSwitch.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

ethernetSwitch.li.serviceMapping object {}

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

ethernetSwitch.li.protocolMapping object {}

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

ethernetSwitch.eth.bitrate double
ethernetHost.status.displayStringTextFormat string ""

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

ethernetHost.status.initialStatus string "UP"

TODO @signal, @statistic

ethernetHost.environment.displayStringTextFormat string ""

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

ethernetHost.environment.initStage int 0

Initialization stage for the setup command

ethernetHost.environment.globalNamespace bool false

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

ethernetHost.environment.namespace string ""

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

ethernetHost.environment.setupCommand string ""

A host OS system command

ethernetHost.environment.teardownCommand string ""

A host OS system command

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

ethernetHost.pcapRecorder.verbose bool true

Whether to log packets on the module output

ethernetHost.pcapRecorder.recordEmptyPackets bool true

Specifies if zero length packets are recorded or not

ethernetHost.pcapRecorder.enableConvertingPackets bool true

Specifies if converting packets to link type is allowed or not

ethernetHost.pcapRecorder.pcapFile string ""

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

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

Maximum number of bytes to record per packet

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

ethernetHost.pcapRecorder.dumpBadFrames bool true

Enable dump of frames with hasBitError

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

Space-separated list of sibling module names to listen on

ethernetHost.pcapRecorder.sendingSignalNames string "transmissionEnded"

Space-separated list of outbound packet signals to subscribe to

ethernetHost.pcapRecorder.receivingSignalNames string "receptionEnded"

Space-separated list of inbound packet signals to subscribe to

ethernetHost.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

ethernetHost.pcapRecorder.packetFilter object "*"

Which packets are considered, matches all packets by default

ethernetHost.pcapRecorder.helpers string ""

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

ethernetHost.pcapRecorder.alwaysFlush bool false

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

ethernetHost.interfaceTable.displayStringTextFormat string ""

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

ethernetHost.interfaceTable.displayAddresses bool false

Whether to display IP addresses on links

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

ethernetHost.cb.interfaceTableModule string

Module path to the ~InterfaceTable module

ethernetHost.cb.forwardServiceRegistration bool true
ethernetHost.cb.forwardProtocolRegistration bool true
ethernetHost.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

ethernetHost.cb.serviceMapping object {}

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

ethernetHost.cb.protocolMapping object {}

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

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

ethernetHost.bl.interfaceTableModule string

Module path to the ~InterfaceTable module

ethernetHost.bl.forwardServiceRegistration bool true
ethernetHost.bl.forwardProtocolRegistration bool true
ethernetHost.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

ethernetHost.bl.serviceMapping object {}

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

ethernetHost.bl.protocolMapping object {}

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

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

ethernetHost.li.interfaceTableModule string

Module path to the ~InterfaceTable module

ethernetHost.li.forwardServiceRegistration bool true
ethernetHost.li.forwardProtocolRegistration bool true
ethernetHost.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

ethernetHost.li.serviceMapping object {}

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

ethernetHost.li.protocolMapping object {}

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

ethernetHost.eth.bitrate double
ethernetHost.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

ethernetHost.nl.interfaceTableModule string

Module path to the ~InterfaceTable module

ethernetHost.nl.forwardServiceRegistration bool true
ethernetHost.nl.forwardProtocolRegistration bool true
ethernetHost.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

ethernetHost.nl.serviceMapping object {}

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

ethernetHost.nl.protocolMapping object {}

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

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

ethernetHost.tn.interfaceTableModule string

Module path to the ~InterfaceTable module

ethernetHost.tn.forwardServiceRegistration bool true
ethernetHost.tn.forwardProtocolRegistration bool true
ethernetHost.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

ethernetHost.tn.serviceMapping object {}

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

ethernetHost.tn.protocolMapping object {}

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

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

ethernetHost.at.interfaceTableModule string

Module path to the ~InterfaceTable module

ethernetHost.at.forwardServiceRegistration bool true
ethernetHost.at.forwardProtocolRegistration bool true
ethernetHost.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

ethernetHost.at.serviceMapping object {}

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

ethernetHost.at.protocolMapping object {}

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

Source code

//
// Extended AODV network with an additional Ethernet-connected host
// that can receive traffic from the wireless AODV network.
//
network AODVNetworkWithEthernet extends AODVNetwork
{
    submodules:
        visualizer: <default("IntegratedCanvasVisualizer")> like IIntegratedVisualizer {
            parameters:
                @display("p=100,150;is=s");
        }
        router: Router {
            @display("p=500,150");
        }
        ethernetSwitch: EthernetSwitch {
            @display("p=600,300");
        }
        ethernetHost: StandardHost {
            @display("p=500,400;i=device/server");
        }
    connections:
        host[0].ethg++ <--> Eth1G <--> router.ethg++;
        router.ethg++ <--> Eth1G <--> ethernetSwitch.ethg++;
        ethernetHost.ethg++ <--> Eth1G <--> ethernetSwitch.ethg++;
}
File: examples/aodv/AODVNetworkWithEthernet.ned