SimpleRREQ

Package: inet.examples.aodv

SimpleRREQ

network

(no description)

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:
        addDefaultRoutes = false;
        addStaticRoutes = false;
        addSubnetRoutes = false;
        config = 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");
} sender : AodvRouter

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

Source:
sender: AodvRouter {
    parameters:
        @display("i=device/pocketpc_s;r=,,#707070;p=270,51");
} intermediateNode : AodvRouter

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

Source:
intermediateNode: AodvRouter {
    parameters:
        @display("i=device/pocketpc_s;r=,,#707070;p=270,214");
} receiver : AodvRouter

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

Source:
receiver: AodvRouter {
    parameters:
        @display("i=device/pocketpc_s;r=,,#707070;p=270,377");
}

Usage diagram

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

Properties

Name Value Description
isNetwork

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.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.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("")
sender.status.displayStringTextFormat string ""

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

sender.status.initialStatus string "UP"

TODO @signal, @statistic

sender.environment.displayStringTextFormat string ""

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

sender.environment.initStage int 0

Initialization stage for the setup command

sender.environment.globalNamespace bool false

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

sender.environment.namespace string ""

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

sender.environment.setupCommand string ""

A host OS system command

sender.environment.teardownCommand string ""

A host OS system command

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

sender.pcapRecorder.verbose bool true

Whether to log packets on the module output

sender.pcapRecorder.recordEmptyPackets bool true

Specifies if zero length packets are recorded or not

sender.pcapRecorder.enableConvertingPackets bool true

Specifies if converting packets to link type is allowed or not

sender.pcapRecorder.pcapFile string ""

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

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

Maximum number of bytes to record per packet

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

sender.pcapRecorder.dumpBadFrames bool true

Enable dump of frames with hasBitError

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

Space-separated list of sibling module names to listen on

sender.pcapRecorder.sendingSignalNames string "transmissionEnded"

Space-separated list of outbound packet signals to subscribe to

sender.pcapRecorder.receivingSignalNames string "receptionEnded"

Space-separated list of inbound packet signals to subscribe to

sender.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

sender.pcapRecorder.packetFilter object "*"

Which packets are considered, matches all packets by default

sender.pcapRecorder.helpers string ""

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

sender.pcapRecorder.alwaysFlush bool false

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

sender.interfaceTable.displayStringTextFormat string ""

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

sender.interfaceTable.displayAddresses bool false

Whether to display IP addresses on links

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

sender.cb.interfaceTableModule string

Module path to the ~InterfaceTable module

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

sender.cb.serviceMapping object {}

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

sender.cb.protocolMapping object {}

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

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

sender.bl.interfaceTableModule string

Module path to the ~InterfaceTable module

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

sender.bl.serviceMapping object {}

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

sender.bl.protocolMapping object {}

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

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

sender.li.interfaceTableModule string

Module path to the ~InterfaceTable module

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

sender.li.serviceMapping object {}

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

sender.li.protocolMapping object {}

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

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

sender.nl.interfaceTableModule string

Module path to the ~InterfaceTable module

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

sender.nl.serviceMapping object {}

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

sender.nl.protocolMapping object {}

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

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

sender.tn.interfaceTableModule string

Module path to the ~InterfaceTable module

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

sender.tn.serviceMapping object {}

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

sender.tn.protocolMapping object {}

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

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

sender.at.interfaceTableModule string

Module path to the ~InterfaceTable module

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

sender.at.serviceMapping object {}

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

sender.at.protocolMapping object {}

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

sender.aodv.displayStringTextFormat string ""

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

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

See RFC 3561: 6.6.3

sender.aodv.useHelloMessages bool false

See RFC 3561: 6.9

sender.aodv.useLocalRepair bool false

See RFC 3561: 6.12 *not implemented yet*

sender.aodv.destinationOnlyFlag bool false

See RFC 3561: 5.1

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

The interface to be used for the AODV routing

sender.aodv.gatewayAddress string ""

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

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

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

Jitter for externally triggered message generation and message forwarding

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

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

Jitter for broadcasts

sender.aodv.helloInterval double 1s

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

sender.aodv.allowedHelloLoss int 2

AllowedHelloLoss * helloInterval is the lifetime value for Hello messages

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

sender.aodv.netDiameter int 35

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

sender.aodv.nodeTraversalTime double 0.04s

An estimation of the average one-hop traversal time

sender.aodv.rerrRatelimit int 10

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

sender.aodv.rreqRetries int 2

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

sender.aodv.rreqRatelimit int 10

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

sender.aodv.timeoutBuffer int 2

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

sender.aodv.ttlStart int 2

Specifies the TTL value when initiating a route request

sender.aodv.ttlIncrement int 2

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

sender.aodv.ttlThreshold int 7

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

sender.aodv.localAddTTL int 2

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

sender.aodv.myRouteTimeout double 2 * activeRouteTimeout

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

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

The time after which an expired route is deleted

sender.aodv.blacklistTimeout double rreqRetries * netTraversalTime

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

sender.aodv.netTraversalTime double 2 * nodeTraversalTime * netDiameter

An estimation of the traversal time for the complete network

sender.aodv.nextHopWait double nodeTraversalTime + 0.01s

Timeout for a RREP-ACK

sender.aodv.pathDiscoveryTime double 2 * netTraversalTime

Buffer timeout for each broadcasted RREQ message

intermediateNode.status.displayStringTextFormat string ""

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

intermediateNode.status.initialStatus string "UP"

TODO @signal, @statistic

intermediateNode.environment.displayStringTextFormat string ""

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

intermediateNode.environment.initStage int 0

Initialization stage for the setup command

intermediateNode.environment.globalNamespace bool false

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

intermediateNode.environment.namespace string ""

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

intermediateNode.environment.setupCommand string ""

A host OS system command

intermediateNode.environment.teardownCommand string ""

A host OS system command

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

intermediateNode.pcapRecorder.verbose bool true

Whether to log packets on the module output

intermediateNode.pcapRecorder.recordEmptyPackets bool true

Specifies if zero length packets are recorded or not

intermediateNode.pcapRecorder.enableConvertingPackets bool true

Specifies if converting packets to link type is allowed or not

intermediateNode.pcapRecorder.pcapFile string ""

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

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

Maximum number of bytes to record per packet

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

intermediateNode.pcapRecorder.dumpBadFrames bool true

Enable dump of frames with hasBitError

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

Space-separated list of sibling module names to listen on

intermediateNode.pcapRecorder.sendingSignalNames string "transmissionEnded"

Space-separated list of outbound packet signals to subscribe to

intermediateNode.pcapRecorder.receivingSignalNames string "receptionEnded"

Space-separated list of inbound packet signals to subscribe to

intermediateNode.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

intermediateNode.pcapRecorder.packetFilter object "*"

Which packets are considered, matches all packets by default

intermediateNode.pcapRecorder.helpers string ""

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

intermediateNode.pcapRecorder.alwaysFlush bool false

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

intermediateNode.interfaceTable.displayStringTextFormat string ""

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

intermediateNode.interfaceTable.displayAddresses bool false

Whether to display IP addresses on links

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

intermediateNode.cb.interfaceTableModule string

Module path to the ~InterfaceTable module

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

intermediateNode.cb.serviceMapping object {}

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

intermediateNode.cb.protocolMapping object {}

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

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

intermediateNode.bl.interfaceTableModule string

Module path to the ~InterfaceTable module

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

intermediateNode.bl.serviceMapping object {}

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

intermediateNode.bl.protocolMapping object {}

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

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

intermediateNode.li.interfaceTableModule string

Module path to the ~InterfaceTable module

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

intermediateNode.li.serviceMapping object {}

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

intermediateNode.li.protocolMapping object {}

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

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

intermediateNode.nl.interfaceTableModule string

Module path to the ~InterfaceTable module

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

intermediateNode.nl.serviceMapping object {}

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

intermediateNode.nl.protocolMapping object {}

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

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

intermediateNode.tn.interfaceTableModule string

Module path to the ~InterfaceTable module

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

intermediateNode.tn.serviceMapping object {}

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

intermediateNode.tn.protocolMapping object {}

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

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

intermediateNode.at.interfaceTableModule string

Module path to the ~InterfaceTable module

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

intermediateNode.at.serviceMapping object {}

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

intermediateNode.at.protocolMapping object {}

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

intermediateNode.aodv.displayStringTextFormat string ""

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

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

See RFC 3561: 6.6.3

intermediateNode.aodv.useHelloMessages bool false

See RFC 3561: 6.9

intermediateNode.aodv.useLocalRepair bool false

See RFC 3561: 6.12 *not implemented yet*

intermediateNode.aodv.destinationOnlyFlag bool false

See RFC 3561: 5.1

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

The interface to be used for the AODV routing

intermediateNode.aodv.gatewayAddress string ""

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

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

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

Jitter for externally triggered message generation and message forwarding

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

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

Jitter for broadcasts

intermediateNode.aodv.helloInterval double 1s

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

intermediateNode.aodv.allowedHelloLoss int 2

AllowedHelloLoss * helloInterval is the lifetime value for Hello messages

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

intermediateNode.aodv.netDiameter int 35

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

intermediateNode.aodv.nodeTraversalTime double 0.04s

An estimation of the average one-hop traversal time

intermediateNode.aodv.rerrRatelimit int 10

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

intermediateNode.aodv.rreqRetries int 2

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

intermediateNode.aodv.rreqRatelimit int 10

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

intermediateNode.aodv.timeoutBuffer int 2

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

intermediateNode.aodv.ttlStart int 2

Specifies the TTL value when initiating a route request

intermediateNode.aodv.ttlIncrement int 2

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

intermediateNode.aodv.ttlThreshold int 7

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

intermediateNode.aodv.localAddTTL int 2

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

intermediateNode.aodv.myRouteTimeout double 2 * activeRouteTimeout

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

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

The time after which an expired route is deleted

intermediateNode.aodv.blacklistTimeout double rreqRetries * netTraversalTime

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

intermediateNode.aodv.netTraversalTime double 2 * nodeTraversalTime * netDiameter

An estimation of the traversal time for the complete network

intermediateNode.aodv.nextHopWait double nodeTraversalTime + 0.01s

Timeout for a RREP-ACK

intermediateNode.aodv.pathDiscoveryTime double 2 * netTraversalTime

Buffer timeout for each broadcasted RREQ message

receiver.status.displayStringTextFormat string ""

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

receiver.status.initialStatus string "UP"

TODO @signal, @statistic

receiver.environment.displayStringTextFormat string ""

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

receiver.environment.initStage int 0

Initialization stage for the setup command

receiver.environment.globalNamespace bool false

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

receiver.environment.namespace string ""

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

receiver.environment.setupCommand string ""

A host OS system command

receiver.environment.teardownCommand string ""

A host OS system command

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

receiver.pcapRecorder.verbose bool true

Whether to log packets on the module output

receiver.pcapRecorder.recordEmptyPackets bool true

Specifies if zero length packets are recorded or not

receiver.pcapRecorder.enableConvertingPackets bool true

Specifies if converting packets to link type is allowed or not

receiver.pcapRecorder.pcapFile string ""

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

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

Maximum number of bytes to record per packet

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

receiver.pcapRecorder.dumpBadFrames bool true

Enable dump of frames with hasBitError

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

Space-separated list of sibling module names to listen on

receiver.pcapRecorder.sendingSignalNames string "transmissionEnded"

Space-separated list of outbound packet signals to subscribe to

receiver.pcapRecorder.receivingSignalNames string "receptionEnded"

Space-separated list of inbound packet signals to subscribe to

receiver.pcapRecorder.dumpProtocols string "ethernetmac ppp ieee80211mac"

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

receiver.pcapRecorder.packetFilter object "*"

Which packets are considered, matches all packets by default

receiver.pcapRecorder.helpers string ""

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

receiver.pcapRecorder.alwaysFlush bool false

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

receiver.interfaceTable.displayStringTextFormat string ""

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

receiver.interfaceTable.displayAddresses bool false

Whether to display IP addresses on links

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

receiver.cb.interfaceTableModule string

Module path to the ~InterfaceTable module

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

receiver.cb.serviceMapping object {}

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

receiver.cb.protocolMapping object {}

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

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

receiver.bl.interfaceTableModule string

Module path to the ~InterfaceTable module

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

receiver.bl.serviceMapping object {}

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

receiver.bl.protocolMapping object {}

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

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

receiver.li.interfaceTableModule string

Module path to the ~InterfaceTable module

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

receiver.li.serviceMapping object {}

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

receiver.li.protocolMapping object {}

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

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

receiver.nl.interfaceTableModule string

Module path to the ~InterfaceTable module

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

receiver.nl.serviceMapping object {}

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

receiver.nl.protocolMapping object {}

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

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

receiver.tn.interfaceTableModule string

Module path to the ~InterfaceTable module

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

receiver.tn.serviceMapping object {}

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

receiver.tn.protocolMapping object {}

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

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

receiver.at.interfaceTableModule string

Module path to the ~InterfaceTable module

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

receiver.at.serviceMapping object {}

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

receiver.at.protocolMapping object {}

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

receiver.aodv.displayStringTextFormat string ""

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

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

See RFC 3561: 6.6.3

receiver.aodv.useHelloMessages bool false

See RFC 3561: 6.9

receiver.aodv.useLocalRepair bool false

See RFC 3561: 6.12 *not implemented yet*

receiver.aodv.destinationOnlyFlag bool false

See RFC 3561: 5.1

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

The interface to be used for the AODV routing

receiver.aodv.gatewayAddress string ""

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

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

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

Jitter for externally triggered message generation and message forwarding

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

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

Jitter for broadcasts

receiver.aodv.helloInterval double 1s

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

receiver.aodv.allowedHelloLoss int 2

AllowedHelloLoss * helloInterval is the lifetime value for Hello messages

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

receiver.aodv.netDiameter int 35

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

receiver.aodv.nodeTraversalTime double 0.04s

An estimation of the average one-hop traversal time

receiver.aodv.rerrRatelimit int 10

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

receiver.aodv.rreqRetries int 2

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

receiver.aodv.rreqRatelimit int 10

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

receiver.aodv.timeoutBuffer int 2

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

receiver.aodv.ttlStart int 2

Specifies the TTL value when initiating a route request

receiver.aodv.ttlIncrement int 2

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

receiver.aodv.ttlThreshold int 7

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

receiver.aodv.localAddTTL int 2

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

receiver.aodv.myRouteTimeout double 2 * activeRouteTimeout

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

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

The time after which an expired route is deleted

receiver.aodv.blacklistTimeout double rreqRetries * netTraversalTime

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

receiver.aodv.netTraversalTime double 2 * nodeTraversalTime * netDiameter

An estimation of the traversal time for the complete network

receiver.aodv.nextHopWait double nodeTraversalTime + 0.01s

Timeout for a RREP-ACK

receiver.aodv.pathDiscoveryTime double 2 * netTraversalTime

Buffer timeout for each broadcasted RREQ message

Source code

network SimpleRREQ
{
    parameters:
    submodules:
        radioMedium: UnitDiskRadioMedium {
            parameters:
                @display("p=100,200;is=s");
        }
        configurator: Ipv4NetworkConfigurator {
            parameters:
                addDefaultRoutes = false;
                addStaticRoutes = false;
                addSubnetRoutes = false;
                config = xml("<config><interface hosts='*' address='145.236.x.x' netmask='255.255.0.0'/></config>");
                @display("p=100,100;is=s");
        }
        routingTableRecorder: RoutingTableRecorder {
            parameters:
                @display("p=100,300;is=s");
        }
        scenarioManager: ScenarioManager {
            parameters:
                script = default(xml("<scenario/>"));
                @display("p=100,400;is=s");
        }
        sender: AodvRouter {
            parameters:
                @display("i=device/pocketpc_s;r=,,#707070;p=270,51");
        }
        intermediateNode: AodvRouter {
            parameters:
                @display("i=device/pocketpc_s;r=,,#707070;p=270,214");
        }
        receiver: AodvRouter {
            parameters:
                @display("i=device/pocketpc_s;r=,,#707070;p=270,377");
        }
    connections allowunconnected:
}

File: examples/aodv/AODVSmallNetworks.ned