-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathomnetpp.ini
193 lines (143 loc) · 6.91 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
######################################################################################################
[General]
record-eventlog = true
[Config Wireless01]
description = Two hosts communicating wirelessly
network = WirelessA
sim-time-limit = 25s
*.host*.networkLayer.arpType = "GlobalARP"
*.hostA.numUdpApps = 1
*.hostA.udpApp[0].typename = "UDPBasicApp"
*.hostA.udpApp[0].destAddresses = "hostB"
*.hostA.udpApp[0].destPort = 5000
*.hostA.udpApp[0].messageLength = 1000B
*.hostA.udpApp[0].sendInterval = exponential(12ms)
*.hostA.udpApp[0].packetName = "UDPData"
*.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 = 1Mbps
######################################################################################################
[Config Wireless02]
description = Setting up some animations
extends = Wireless01
#*.hostA.wlan[0].radio.displayCommunicationRange = true
*.visualizer.sceneVisualizer.descriptionFigure = "title"
*.visualizer.mediumVisualizer.displaySignals = true
*.visualizer.mediumVisualizer.signalPropagationUpdateInterval = 100ns
*.visualizer.physicalLinkVisualizer.packetNameFilter = "UDPData*"
######################################################################################################
[Config Wireless03]
description = Adding more nodes and decreasing the communication range
extends = Wireless02
network = WirelessB
*.host*.wlan[0].radio.transmitter.communicationRange = 1000m
*.host*.wlan[0].radio.displayCommunicationRange = true
#*.hostR1.wlan[0].radio.displayCommunicationRange = true
######################################################################################################
[Config Wireless04]
description = Setting up static routing
extends = Wireless03
*.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.packetNameFilter = "UDPData*"
*.visualizer.networkRouteVisualizer.packetNameFilter = "UDPData*"
######################################################################################################
[Config Wireless05]
description = Taking interference into account
extends = Wireless04
*.host*.wlan[0].radio.receiver.ignoreInterference = false
*.host*.wlan[0].radio.transmitter.interferenceRange = 500m
*.hostA.wlan[0].radio.displayInterferenceRange = true
*.visualizer.dataLinkVisualizer.packetNameFilter = ""
######################################################################################################
[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
*.host*.wlan[0].radio.energyConsumerType = "StateBasedEnergyConsumer"
*.host*.wlan[0].radio.energyConsumer.offPowerConsumption = 0mW
*.host*.wlan[0].radio.energyConsumer.sleepPowerConsumption = 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
*.host*.wlan[0].radio.energyConsumer transmitterIdlePowerConsumption = 2mW
*.host*.wlan[0].radio.energyConsumer.transmitterTransmittingPowerConsumption = 100mW
*.host*.energyStorageType = "IdealEnergyStorage"
#*.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.displayMovementTrail = true
######################################################################################################
[Config Wireless10]
description = Configuring ad-hoc routing (AODV)
extends = Wireless09
*.configurator.addStaticRoutes = false
#*.hostType = "GPSRGreedyTest"
#*.hostB.wlan[0].radio.displayCommunicationRange = true
*.visualizer.dataLinkVisualizer.packetNameFilter = "AODV*"
######################################################################################################
[Config Wireless11]
description = Adding obstacles to the environment
extends = Wireless10
network = WirelessC
*.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 = 2GHz
*.host*.wlan[0].radioType = "APSKScalarRadio"
*.host*.wlan[0].radio.carrierFrequency = 2GHz
*.host*.wlan[0].radio.bandwidth = 2MHz
*.host*.wlan[0].radio.transmitter.power = 1.4mW
*.host*.wlan[0].radio.transmitter.preambleDuration = 10us
*.host*.wlan[0].radio.transmitter.headerBitLength = 0b
*.host*.wlan[0].radio.receiver.sensitivity = -85dBm
*.host*.wlan[0].radio.receiver.energyDetection = -85dBm
*.host*.wlan[0].radio.receiver.snirThreshold = 4dB
######################################################################################################
[Config Wireless13]
description = Configuring a more accurate pathloss model
extends = Wireless12
*.physicalEnvironment.groundType = "FlatGround"
*.physicalEnvironment.ground.elevation = 0m
*.radioMedium.pathLossType = "TwoRayGroundReflection"
######################################################################################################
[Config Wireless14]
description = Introducing antenna gain
extends = Wireless13
*.host*.wlan[0].radio.antennaType = "ConstantGainAntenna"
*.host*.wlan[0].radio.antenna.gain = 3dB
######################################################################################################