Skip to content

Commit

Permalink
Include basic example of MSDU-A
Browse files Browse the repository at this point in the history
  • Loading branch information
aarizaq committed Feb 9, 2017
1 parent a205dfc commit 3d7612a
Show file tree
Hide file tree
Showing 8 changed files with 583 additions and 0 deletions.
67 changes: 67 additions & 0 deletions examples/manetrouting/testmsdua/TestMsduA.ned
@@ -0,0 +1,67 @@
//
// This program is free software: you can redistribute it and/or modify
// it under the terms of the GNU Lesser General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU Lesser General Public License for more details.
//
// You should have received a copy of the GNU Lesser General Public License
// along with this program. If not, see http://www.gnu.org/licenses/.
//

package inet.examples.manetrouting.testmsdua;

import inet.common.lifecycle.LifecycleController;
import inet.common.scenario.ScenarioManager;
import inet.networklayer.configurator.ipv4.IPv4NetworkConfigurator;
import inet.networklayer.ipv4.RoutingTableRecorder;
import inet.node.inet.AdhocHost;
import inet.physicallayer.ieee80211.packetlevel.Ieee80211ScalarRadioMedium;


network TestMsduA
{
parameters:
int numHosts;
@display("bgb=357,313");
submodules:
radioMedium: Ieee80211ScalarRadioMedium {
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: AdhocHost {
parameters:
@display("i=device/pocketpc_s;r=,,#707070;p=100,123");
}
host1: AdhocHost {
parameters:
@display("i=device/pocketpc_s;r=,,#707070;p=250,123");
}
host2: AdhocHost {
parameters:
@display("i=device/pocketpc_s;r=,,#707070;p=400,123");
}
connections allowunconnected:
}
81 changes: 81 additions & 0 deletions examples/manetrouting/testmsdua/omnetpp.ini
@@ -0,0 +1,81 @@
[General]
network = TestMsduA
#record-eventlog = true
debug-on-errors = true
*.numHosts = 20

num-rngs = 3
**.mobility.rng-0 = 1
**.wlan[*].mac.rng-0 = 2

tkenv-plugin-path = ../../../etc/plugins

# channel physical parameters
*.radioMedium.mediumLimitCache.carrierFrequency = 2.4GHz
*.radioMedium.mediumLimitCache.maxTransmissionPower = 2.0mW

# mobility
**.host*.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)
*.host*.numPingApps = 0

# 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[*].mac.upperMac.useMpduA = true


**.wlan[*].radio.transmitter.power = 2mW
**.wlan[*].radio.transmitter.headerBitLength = 192b
**.wlan[*].radio.receiver.sensitivity = -85 dBm
**.backgroundNoise.power = -110 dBm
# channel physical parameters

**.host1.numUdpApps = 0
**.host.numUdpApps = 1
**.host2.numUdpApps = 1

**.host*.udpApp[*].typename = "UDPBasicAppMulti"
**.host*.udpApp[*].numberOfPackets = 10

**.udpApp[0].destPort = 1000
**.udpApp[0].localPort = 1000

**.host*.udpApp[0].messageLength = 512B
**.host*.udpApp[0].sendInterval = exponential (1s)
**.host.udpApp[0].destAddresses = "host2"
**.host2.udpApp[0].destAddresses = "host"

**.host2.udpApp[0].startTime = 20s
**.host.udpApp[0].startTime = 25s

**.routingProtocol = "OLSR"
**.log_to_file = false
**.hello_jittering = true
**.optimized_hellos = true
**.expanding_ring_search = true
**.local_repair = false
**.rreq_gratuitous = false
**.rt_log_interval = 0
**.unidir_hack = 0
**.internet_gw_mode = 0
**.receive_n_hellos = 1
**.ratelimit = 10
**.llfeedback = false# //1000
**.wait_on_reboot = 0
**.active_timeout = 3000ms
**.internet_gw_address = "0.0.0.0"
2 changes: 2 additions & 0 deletions examples/manetrouting/testmsdua/run
@@ -0,0 +1,2 @@
#!/bin/sh
../../../src/run_inet "$@"
1 change: 1 addition & 0 deletions examples/manetrouting/testmsdua/run.cmd
@@ -0,0 +1 @@
..\..\..\src\run_inet %*
8 changes: 8 additions & 0 deletions examples/manetrouting/testmsdua/scenario.xml
@@ -0,0 +1,8 @@
<scenario>
<at t="25.5">
<tell module="lifecycleController" target="host[16]" operation="NodeShutdownOperation"/>
</at>
<at t="40.0">
<tell module="lifecycleController" target="host[16]" operation="NodeStartOperation"/>
</at>
</scenario>

0 comments on commit 3d7612a

Please sign in to comment.