-
Notifications
You must be signed in to change notification settings - Fork 1
/
omnetpp.ini
331 lines (229 loc) · 10.6 KB
/
omnetpp.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
######################################################################################################
[Config Wireless01]
description = Two hosts communicating wirelessly
network = WirelessAD
sim-time-limit = 101s
num-rngs = 10
repeat=10
seed-set = ${repetition}
check-signals=false
*.host*.networkLayer.arpType = "GlobalARP"
*.hostA.numUdpApps = 1
*.hostA.udpApp[0].typename = "UDPBasicApp"
#*.hostA.udpApp[0].typename = "UDPBasicBurst"
*.hostA.udpApp[0].destAddresses = "hostB"
*.hostA.udpApp[0].destPort = 5000
*.hostA.udpApp[0].messageLength = 100B
*.hostA.udpApp[0].sendInterval = exponential(0.002s)
*.hostA.udpApp[0].packetName = "UDPData"
#*.hostA.udpApp[0].startTime = 0.1s#@Anjana
*.hostC.numUdpApps = 1
*.hostC.udpApp[0].typename = "UDPBasicApp"
*.hostC.udpApp[0].destAddresses = "hostB"
*.hostC.udpApp[0].destPort = 5000
*.hostC.udpApp[0].messageLength = 100B
*.hostC.udpApp[0].sendInterval = exponential(0.002s)
*.hostC.udpApp[0].packetName = "UDPData"
#*.hostC.udpApp[0].startTime = 0.1s#@Anjana
*.hostB.numUdpApps = 1
*.hostB.udpApp[0].typename = "UDPSink"
*.hostB.udpApp[0].localPort = 5000
*.host*.wlan[0].typename = "IdealWirelessNic"
*.host*.wlan[0].mac.useAck = false
*.host*.wlan[0].mac.fullDuplex = false
*.host*.wlan[0].radio.transmitter.communicationRange = 500m
*.host*.wlan[0].radio.receiver.ignoreInterference = true
*.host*.**.bitrate = 11Mbps
*.visualizer.queueVisualizer.displayQueues = true
*.visualizer.interfaceTableVisualizer.displayInterfaceTables = true
*.visualizer.interfaceTableVisualizer.interfaceFilter = "wlan*"
*.visualizer.interfaceTableVisualizer.format = "%N\n%n"
*.visualizer.interfaceTableVisualizer.displacementHint = "left"
*.visualizer.routingTableVisualizer.displayRoutingTables = true
*.visualizer.routingTableVisualizer.destinationFilter = "hostB"
*.visualizer.linkBreakVisualizer.displayLinkBreaks = true
*.visualizer.packetDropVisualizer.displayPacketDrops = true
*.visualizer.packetDropVisualizer.packetFilter = "UDPData*"
*.visualizer.mediumVisualizer.signalPropagationAnimationSpeed = 0.000001
*.visualizer.mediumVisualizer.signalTransmissionAnimationSpeed = 0.0005
*.visualizer.mediumVisualizer.displayTransmissions = true # enables displaying radio signals propagating through the radio medium
*.visualizer.mediumVisualizer.displayReceptions = true # enables displaying radio signals propagating through the radio medium
*.visualizer.mediumVisualizer.displaySignals = true # enables displaying radio signals propagating through the radio medium
######################################################################################################
[Config Wireless02]
description = Setting up some animations
extends = Wireless01
*.hostA.wlan[0].radio.displayCommunicationRange = true
*.hostC.wlan[0].radio.displayCommunicationRange = true
*.visualizer.sceneVisualizer.descriptionFigure = "title"
*.visualizer.mediumVisualizer.displaySignals = true
*.visualizer.physicalLinkVisualizer.displayLinks = true
*.visualizer.physicalLinkVisualizer.packetFilter = "UDPData*"
######################################################################################################
[Config Wireless03]
description = Adding more nodes and decreasing the communication range
extends = Wireless02
network = WirelessD
*.host*.wlan[0].radio.transmitter.communicationRange = 150m
*.hostR1.wlan[0].radio.displayCommunicationRange = true
*.hostR*.numUdpApps = 1
*.hostR*.udpApp[0].typename = "UDPBasicApp"
*.hostR*.udpApp[0].destAddresses = "hostB"
*.hostR*.udpApp[0].destPort = 5000
*.hostR*.udpApp[0].messageLength = 100B
*.hostR*.udpApp[0].sendInterval = exponential(30s)
*.hostR*.udpApp[0].packetName = "UDPData"
######################################################################################################
[Config Wireless04]
description = Setting up static routing
extends = Wireless03
#network = WirelessD
*.host*.forwarding = true
*.configurator.config = xml("<config><interface hosts='**' address='10.0.0.x' netmask='255.255.255.0'/><autoroute metric='errorRate'/></config>")
*.configurator.optimizeRoutes = false
*.host*.routingTable.netmaskRoutes = ""
*.visualizer.dataLinkVisualizer.displayLinks = true
*.visualizer.dataLinkVisualizer.packetFilter = "UDPData*"
*.visualizer.networkRouteVisualizer.displayRoutes = true
*.visualizer.networkRouteVisualizer.packetFilter = "UDPData*"
######################################################################################################
[Config Wireless05]
description = Taking interference into account
extends = Wireless04
*.host*.wlan[0].radio.receiver.ignoreInterference = false
*.host*.wlan[0].radio.transmitter.interferenceRange = 300m
*.hostA.wlan[0].radio.displayInterferenceRange = true
*.visualizer.dataLinkVisualizer.packetFilter = ""
######################################################################################################
[Config Wireless06]
description = Using CSMA to better utilize the medium
extends = Wireless05
*.host*.wlan[0].typename = "WirelessNic"
*.host*.wlan[0].radioType = "IdealRadio"
*.host*.wlan[0].macType = "CsmaCaMac"
######################################################################################################
[Config Wireless07]
description = Turning on ACKs in CSMA
extends = Wireless06
*.host*.wlan[0].mac.useAck = true
######################################################################################################
[Config Wireless08]
description = Modeling energy consumption
extends = Wireless07#ignoring ack
**.hasStatus=true
**.displayEnergyStorages = true
*.host*.wlan[0].radio.energyConsumerType = "StateBasedEpEnergyConsumer"
*.host*.wlan[0].radio.energyConsumer.offPowerConsumption = 0mW
*.host*.wlan[0].radio.energyConsumer.sleepPowerConsumption = 0.1mW
*.host*.wlan[0].radio.energyConsumer.switchingPowerConsumption = 1mW
*.host*.wlan[0].radio.energyConsumer.receiverIdlePowerConsumption = 2mW
*.host*.wlan[0].radio.energyConsumer.receiverBusyPowerConsumption = 5mW
*.host*.wlan[0].radio.energyConsumer.receiverReceivingPowerConsumption = 10mW#7mW or 8mW
*.host*.wlan[0].radio.energyConsumer.transmitterIdlePowerConsumption = 2mW
*.host*.wlan[0].radio.energyConsumer.transmitterTransmittingPowerConsumption = 100mW#10mW
#*.host*.energyStorageType = "IdealEpEnergyStorage"
*.host*.energyStorageType = "SimpleEpEnergyStorage"
**.energyStorage.nominalCapacity = 100J # maximum capacity0.05J
**.energyStorage.initialCapacity = uniform(0J, this.nominalCapacity)
*.host[*].energyManagementType = "SimpleEpEnergyManagement"
*.host[*].energyManagement.nodeStartCapacity = 0.05J # start threshold0.025J
*.host[*].energyManagement.nodeShutdownCapacity = 0J # shutdown threshold
#**.energyManagement.nodeShutdownCapacity = 0J
#**.energyManagement.nodeStartCapacity = 0.025J
*.host*.wlan[0].radio.displayInterferenceRange = false
*.hostR1.wlan[0].radio.displayCommunicationRange = false
*.visualizer.mediumVisualizer.displaySignals = false
######################################################################################################
[Config Wireless09]
description = Configuring node movements
extends = Wireless08
*.hostR*.mobilityType = "LinearMobility"
*.hostR*.mobility.speed = 12mps
*.hostR*.mobility.angle = 270deg
*.host*.wlan[0].mac.maxQueueSize = 10
*.visualizer.mobilityVisualizer.displayOrientations = true
*.visualizer.mobilityVisualizer.displayVelocities = true
*.visualizer.mobilityVisualizer.displayMovementTrails = true
######################################################################################################
[Config Wireless10]
description = Configuring ad-hoc routing (AODV)
extends = Wireless08
*.configurator.addStaticRoutes = false
*.hostType = "AODVRouter"
*.hostB.wlan[0].radio.displayCommunicationRange = true
*.visualizer.dataLinkVisualizer.packetFilter = "AODV*"
######################################################################################################
[Config Wireless10a]
description = Configuring ad-hoc routing (AODV) with mal.node
extends = Wireless10
*.hostR2.networkLayer.ip.maliciousState=0
*.hostR2.networkLayer.ip.maliciousDropProbability = 0.4
#chk if reqd
*.visualizer.interfaceTableVisualizer.interfaceFilter = "wlan*"
#adding more channel params
#*.host*.wlan[0].mac.maxQueueSize = 10
######################################################################################################
[Config Wireless11]
description = Adding obstacles to the environment
extends = Wireless10a
network = WirelessCD
*.host*.mobility.initialZ = 1.7m
#*.physicalEnvironment.config = xmldoc("walls.xml")
#*.radioMedium.obstacleLossType = "IdealObstacleLoss"
######################################################################################################
[Config Wireless12]
description = Changing to a more realistic radio model
extends = Wireless11
*.mediumType = "APSKScalarRadioMedium"
#
*.radioMedium.backgroundNoise.power = -90dBm
*.radioMedium.mediumLimitCache.carrierFrequency = 2.5GHz
#
*.host*.wlan[0].radioType = "APSKScalarRadio"
*.host*.wlan[0].radio.carrierFrequency = 2.5GHz
*.host*.wlan[0].radio.bandwidth = 2MHz
*.host*.wlan[0].radio.transmitter.power = 20mW#1.4mW
*.host*.wlan[0].radio.transmitter.preambleDuration = 10us
*.host*.wlan[0].radio.transmitter.headerBitLength = 0b
*.host*.wlan[0].radio.receiver.sensitivity = -114dBm#-85dBm
*.host*.wlan[0].radio.receiver.energyDetection =-114dBm #-85dBm
*.host*.wlan[0].radio.receiver.snirThreshold = 4dB
######################################################################################################
[Config Wireless13]
description = Configuring a more accurate pathloss model
extends = Wireless12
*.physicalEnvironment.groundType="FlatGround"
*.flatground.elevation=0m
*.radioMedium.pathLossType="RayleighFading"
*.host[*].wlan[0].radio.carrierFrequency = 2.5GHz
######################################################################################################
[Config Wireless14]
description = Introducing antenna gain
extends = Wireless13
*.host*.wlan[0].radio.antennaType = "ConstantGainAntenna"
*.host*.wlan[0].radio.antenna.gain = 3dB
######################################################################################################
[Config AODVUU]
description = Configuring a more accurate pathloss model
extends = Wireless13
**.routingProtocol = "AODVUU"
**.log_to_file = false
**.hello_jittering = true
**.optimized_hellos = true
**.expanding_ring_search = true
**.local_repair = true
**.rreq_gratuitous = true
#**.debug = false
**.rt_log_interval = 0
**.unidir_hack = 0
**.internet_gw_mode = 0
**.receive_n_hellos = 1
**.ratelimit = 1000
**.llfeedback = false# //1000
**.wait_on_reboot = 0
**.active_timeout = 6000ms
**.internet_gw_address = "0.0.0.0"
[Config AODVUU_Malicious_1]
extends = Wireless03
**.maliciousState = 1
**.maliciousDropProbability = 0.25