Network NeighborCacheTest

Package: inet.examples.neighborcache
File: examples/neighborcache/NeighborCacheTest.ned

(no description)

IdealRadioMedium IPv4NetworkConfigurator RoutingTableRecorder LifecycleController ScenarioManager AODVRouter

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.

Parameters:

Name Type Default value Description
numHosts int

Properties:

Name Value Description
isNetwork

Unassigned submodule parameters:

Name Type Default value Description
radioMedium.neighborCache.refillPeriod double
configurator.minLinkWeight double 1E-3
configurator.assignAddresses bool true

assign IP addresses to all interfaces in the network

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.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.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.enabled bool true
scenarioManager.script xml xml("")
host.status.initialStatus string "UP"

TODO @signal, @statistic

host.routingTable.forwarding bool
host.routingTable.multicastForwarding bool
host.interfaceTable.displayAddresses bool false

whether to display IP addresses on links

host.pcapRecorder.verbose bool false

whether to log packets on the module output

host.pcapRecorder.pcapFile string ""

the PCAP file to be written

host.pcapRecorder.snaplen int 65535

maximum number of bytes to record per packet

host.pcapRecorder.dumpBadFrames bool true

enable dump of frames with hasBitError

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

space-separated list of sibling module names to listen on

host.pcapRecorder.sendingSignalNames string "packetSentToLower"

space-separated list of outbound packet signals to subscribe to

host.pcapRecorder.receivingSignalNames string "packetReceivedFromLower"

space-separated list of inbound packet signals to subscribe to

host.pcapRecorder.alwaysFlush bool false

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

host.lo0.lo.interfaceTableModule string

The path to the InterfaceTable module

host.lo0.lo.mtu int 4470B
host.aodv.routingTableModule string "^.routingTable"
host.aodv.interfaceTableModule string "^.interfaceTable"
host.aodv.networkProtocolModule string "^.networkLayer.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.udpPort int 654
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 revise: 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

Source code:

network NeighborCacheTest
{
    parameters:
        int numHosts;
    submodules:
        radioMedium: IdealRadioMedium {
            parameters:
                @display("p=50,50");
        }
        configurator: IPv4NetworkConfigurator {
            parameters:
                config = xml("<config><interface hosts='*' address='145.236.x.x' netmask='255.255.0.0'/></config>");
                @display("p=50,100");
        }
        routingTableRecorder: RoutingTableRecorder {
            parameters:
                @display("p=50,150");
        }
        lifecycleController: LifecycleController {
            parameters:
                @display("p=50,200");
        }
        scenarioManager: ScenarioManager {
            parameters:
                script = default(xml("<scenario/>"));
                @display("p=50,250");
        }
        host[numHosts]: AODVRouter {
            parameters:
                @display("i=device/pocketpc_s;r=,,#707070");
        }
    connections allowunconnected:
}