%description: This example tests a single route request with one intermediate node between the sender and the receiver. %#-------------------------------------------------------------------------------------------------------------- %file: test.ned import inet.common.lifecycle.LifecycleController; import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator; import inet.networklayer.ipv4.RoutingTableRecorder; import inet.node.aodv.AODVRouter; import inet.physicallayer.ieee80211.packetlevel.Ieee80211ScalarRadioMedium; import inet.common.scenario.ScenarioManager; network AODVTest { parameters: @display("bgb=525,437"); submodules: radioMedium: Ieee80211ScalarRadioMedium { parameters: @display("p=50,50"); } configurator: IPv4NetworkConfigurator { parameters: addDefaultRoutes = false; addStaticRoutes = false; addSubnetRoutes = false; config = xml(""); @display("p=50,100"); } routingTableRecorder: RoutingTableRecorder { parameters: @display("p=50,150"); } lifecycleController: LifecycleController { parameters: @display("p=50,200"); } scenarioManager: ScenarioManager { parameters: script = default(xml("")); @display("p=50,250"); } 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: } %#-------------------------------------------------------------------------------------------------------------- %inifile: omnetpp.ini [General] network = AODVTest record-eventlog = true tkenv-plugin-path = ../../../etc/plugins ned-path = .;../../../../src;../../lib #omnetpp 5.0 - 5.1 compatibility: eventlog-file = "${resultdir}/${configname}-${runnumber}.elog" output-scalar-file = "${resultdir}/${configname}-${runnumber}.sca" output-vector-file = "${resultdir}/${configname}-${runnumber}.vec" snapshot-file = "${resultdir}/${configname}-${runnumber}.sna" num-rngs = 3 **.mobility.rng-0 = 1 **.wlan[*].mac.rng-0 = 2 **.aodv.useHelloMessages = false sim-time-limit = 100s # channel physical parameters *.radioMedium.mediumLimitCache.carrierFrequency = 2.4GHz *.radioMedium.mediumLimitCache.maxTransmissionPower = 2.0mW # mobility **.mobilityType = "StationaryMobility" **.mobility.constraintAreaMinZ = 0m **.mobility.constraintAreaMaxZ = 0m **.mobility.constraintAreaMinX = 0m **.mobility.constraintAreaMinY = 0m **.mobility.constraintAreaMaxX = 600m **.mobility.constraintAreaMaxY = 600m # ping app (host[0] pinged by others) **.sender.numPingApps = 1 **.sender.pingApp[0].startTime = uniform(1s,5s) **.sender.pingApp[0].printPing = true **.sender.pingApp[0].destAddr = "receiver(ipv4)" # nic settings **.wlan[*].bitrate = 2Mbps **.wlan[*].mgmt.frameCapacity = 10 **.wlan[*].mac.address = "auto" **.wlan[*].mac.maxQueueSize = 14 **.wlan[*].mac.rtsThresholdBytes = 3000B **.wlan[*].mac.retryLimit = 7 **.wlan[*].mac.cwMinData = 7 **.wlan[*].mac.cwMinMulticast = 31 **.wlan[*].radio.transmitter.power = 2mW **.wlan[*].radio.receiver.sensitivity = -85dBm **.wlan[*].radio.receiver.snirThreshold = 4dB %#-------------------------------------------------------------------------------------------------------------- %contains-regex: results/General-0.rt \+R \d+ 3\.1987\d+ 8 145\.236\.0\.2 145\.236\.0\.1 32 145\.236\.0\.1 \+R \d+ 3\.2035\d+ 7 145\.236\.0\.1 145\.236\.0\.2 32 145\.236\.0\.2 \+R \d+ 3\.2035\d+ 9 145\.236\.0\.3 145\.236\.0\.2 32 145\.236\.0\.2 \+R \d+ 3\.2035\d+ 9 145\.236\.0\.3 145\.236\.0\.1 32 145\.236\.0\.2 \+R \d+ 3\.2056\d+ 8 145\.236\.0\.2 145\.236\.0\.3 32 145\.236\.0\.3 \+R \d+ 3\.2096\d+ 7 145\.236\.0\.1 145\.236\.0\.3 32 145\.236\.0\.2 %#-------------------------------------------------------------------------------------------------------------- %not-contains: stdout undisposed object: %not-contains: stdout -- check module destructor %#--------------------------------------------------------------------------------------------------------------