123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- %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("<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");
- }
- 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
- %#--------------------------------------------------------------------------------------------------------------
|