Hi all,
I am trying to simulate a MANET. I want to measure delay and throughput. I build the network like this:
package inet.examples.manet;
import inet.networklayer.autorouting.FlatNetworkConfigurator;
import inet.experimental.nodes.adhoc.MobileManetRoutingMesh;
import inet.world.ChannelControl;
network
manet
{
parameters:
int numNodes;
double playgroundSizeX;
double playgroundSizeY;
submodules:
node[numNodes]: MobileManetRoutingMesh {
parameters:
@display("i=device/pocketpc_s;r=,,#707070");
}
channelcontrol: ChannelControl {
parameters:
playgroundSizeX = playgroundSizeX;
playgroundSizeY = playgroundSizeY;
@display("p=163,34;i=misc/sun");
}
configurator: FlatNetworkConfigurator {
parameters:
networkAddress = "145.236.0.0";
netmask = "255.255.0.0";
@display("p=246,85;i=block/cogwheel_s");
}
connections allowunconnected:
}
I was trying to modify the ini file(from another example) like this:
[General]
#debug-on-errors = true
sim-time-limit = 3000s
seed-0-mt = 5
network = manet
num-rngs = 2
cmdenv-express-mode = true
tkenv-plugin-path = ../../../Etc/plugins
#tkenv-default-run=1
description = "Aodv Simple test"
**.vector-recording = false
*.playgroundSizeX = 1500
*.playgroundSizeY = 1500
*.numNodes=100
**.debug = true
**.coreDebug = false
**.channelNumber =
0
**.node[*].mobility.x = -1
**.node[*].mobility.y = -1
**.node*.mobilityType = "RandomWPMobility"
**.node*.mobility.speed = uniform(20mps,50mps)
**.node*.mobility.waitTime = uniform(3s,8s)
**.node*.mobility.updateInterval = 100ms
# udp apps (on)
**.node[*].udpAppType = "UDPBasicBurst"
**.node[*].numUdpApps = 1
**.node[*].udpApp[0].time_begin = uniform(20s,35s)
#**.node[*].udpApp[0].destAddresses = "random(inet.experimental.nodes.adhoc.MobileManetRoutingMesh)"
#**.node[0].udpApp[0].destAddresses = "node[4]"
**.node[*].udpApp[0].destAddresses = "fixhost[0]"
**.udpApp[0].localPort = 1234
**.udpApp[0].destPort = 1234
**.udpApp[0].messageLength = 512B #
#**.udpApp[0].messageFreq = 0.1s
**.udpApp[0].messageFreq = 0.2s
**.udpApp[0].message_freq_jitter = uniform(-0.001s,0.001s)
**.udpApp[0].burstDuration = 0s
#**.udpApp[0].activeBurst=true
**.udpApp[0].activeBurst=false # the same destination for all packets
# **.udpApp[0].burstDuration = uniform(1s,4s,1)
# **.udpApp[0].time_off = uniform(20s,40s,1)
**.udpApp[0].time_off = 0s
**.udpApp[0].time_end = 0s
##**.udpApp[0].time_begin =uniform(0s,4s,1)
# **.udpApp[0].time_begin = 10s
#**.udpApp[0].limitDelay = 20s
**.udpApp[0].limitDelay = 1000s
**.udpApp[0].rand_generator = 1
**.node[0].udpAppType = "UDPSink"
**.node[0].numUdpApps = 1
**.node[0].udpApp[0].localPort = 1234
# tcp apps (off)
**.numTcpApps = 0
**.tcpAppType = "TelnetApp"
# ping app (host[0] pinged by
others)
# ping app (off)
**.pingApp.destAddr = ""
**.pingApp.srcAddr = ""
**.pingApp.packetSize = 56B
**.pingApp.interval = 1s
**.pingApp.hopLimit = 32
**.pingApp.count = 0
**.pingApp.startTime = 1s
**.pingApp.stopTime = 0
**.pingApp.printPing = true
# tcp settings
**.tcp.mss = 1024
**.tcp.advertisedWindow = 14336 # 14*mss
**.tcp.sendQueueClass = "TCPMsgBasedSendQueue"
**.tcp.receiveQueueClass = "TCPMsgBasedRcvQueue"
**.tcp.tcpAlgorithmClass = "TCPReno"
**.tcp.recordStats = true
# ip settings
**.routingFile = ""
**.ip.procDelay = 10us
# **.IPForward=false
# ARP configuration
**.arp.retryTimeout = 1s
**.arp.retryCount = 3
**.arp.cacheTimeout = 100s
#**.networklayer.proxyARP = true # Host's is
hardwired "false"
# manet routing
**.manetrouting.manetmanager.routingProtocol = "DYMOFAU"
#**.routingProtocol.use-default=yes
# nic settings
**.wlan.mgmt.frameCapacity = 10
#**.wlan.mgmt.Willingness = 3
#**.wlan.mgmt.Hello_ival = 2
#**.wlan.mgmt.Tc_ival = 5
#**.wlan.mgmt.Mid_ival = 5
#**.wlan.mgmt.use_mac = false
**.node[*].wlan.useProactive = false
**.wlan.useProactive = true
# nic settings
**.wlan.mac.address = "auto"
**.wlan.mac.maxQueueSize = 14
**.wlan.mac.rtsThresholdBytes = 3000B
**.wlan.mac.bitrate = 54Mbps
**.wlan.mac.basicBitrate = 6Mbps # 24Mbps
**.wlan.mac.retryLimit = 7
**.wlan.mac.cwMinData = 31
**.wlan.mac.cwMinBroadcast = 31
**.wlan.mac.opMode = 2 # 802.11g
**.wlan.mac.slotTime = 9us #
**.wlan.mac.AIFSN = 2 #DIFS
# channel physical parameters
*.channelcontrol.carrierFrequency = 2.4GHz
*.channelcontrol.pMax = 2.0mW
*.channelcontrol.sat = -110dBm
*.channelcontrol.alpha = 2
*.channelcontrol.numChannels = 1
**.wlan.radio.transmitterPower=2.0mW
**.wlan.radio.pathLossAlpha=2
**.wlan.radio.snirThreshold = 4dB # in dB
**.wlan.radio.bitrate=54Mbps
**.wlan.radio.thermalNoise=-110dBm
**.wlan.radio.sensitivity=-90dBm
**.wlan.radio.phyOpMode = 2 #1/2 802.11b/802.11g-only
**.wlan.radio.channelModel = 1 #1/2 rayleigh/awgn
**.wlan.radio.berTableFile="per_table_80211g_Trivellato.dat"
when i try to run, i get this error message:
error in module (ieee80211 mesh)
manet.node[0].wlan.mgmt(id 119):user error:
ieee80211 mesh doesnt have active routing protocol
can someone fix this error for me. I would also appreciate if you can change the ini file so that I would be able to measure the delay and throughput!
Thanks in advance,
Mark