forked from Agr-IoT/Mesh-Sim
-
Notifications
You must be signed in to change notification settings - Fork 0
/
omnetpp.ini
133 lines (100 loc) · 4.61 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
[General]
network = DroneNet
sim-time-limit = 60s
*.host*.ipv4.arp.typename = "GlobalArp"
*.hostA.numApps = 1
*.hostA.app[0].typename = "UdpBasicApp"
*.hostA.app[0].destAddresses = "hostB"
*.hostA.app[0].destPort = 5000
*.hostA.app[0].messageLength = 1000B
*.hostA.app[0].sendInterval = exponential(12ms)
*.hostA.app[0].packetName = "UDPData"
*.hostC.numApps = 1
*.hostC.app[0].typename = "UdpBasicApp"
*.hostC.app[0].destAddresses = "hostB"
*.hostC.app[0].destPort = 5000
*.hostC.app[0].messageLength = 1000B
*.hostC.app[0].sendInterval = exponential(12ms)
*.hostC.app[0].packetName = "UDPData"
*.hostD.numApps = 1
*.hostD.app[0].typename = "UdpBasicApp"
*.hostD.app[0].destAddresses = "hostB"
*.hostD.app[0].destPort = 5000
*.hostD.app[0].messageLength = 1000B
*.hostD.app[0].sendInterval = exponential(12ms)
*.hostD.app[0].packetName = "UDPData"
*.hostB.numApps = 1
*.hostB.app[0].typename = "UdpBasicApp"
*.hostB.app[0].destAddresses = "hostB"
*.hostB.app[0].destPort = 5000
*.hostB.app[0].messageLength = 1000B
*.hostB.app[0].sendInterval = exponential(12ms)
*.hostB.app[0].packetName = "UDPData"
*.hostR1.numApps = 1
*.hostR1.app[0].typename = "UdpSink"
*.hostR1.app[0].localPort = 5000
#*.hostB.numApps = 1
#*.hostB.app[0].typename = "UdpSink"
#*.hostB.app[0].localPort = 5000
*.host*.wlan[0].typename = "WirelessInterface"
*.host*.wlan[0].mac.useAck = true # Handle ACKs in the CSMA
# *.host*.wlan[0].mac.fullDuplex = false
*.host*.wlan[0].radio.transmitter.communicationRange = 250m # Range of communication
*.host*.wlan[0].radio.receiver.ignoreInterference = false # Inteference setup
*.host*.wlan[0].mac.headerLength = 23B
*.host*.**.bitrate = 1Mbps
# ------------ Animation Setup -------------
*.hostA.wlan[0].radio.displayCommunicationRange = true
*.hostC.wlan[0].radio.displayCommunicationRange = true
*.hostD.wlan[0].radio.displayCommunicationRange = true
*.hostB.wlan[0].radio.displayCommunicationRange = true
*.visualizer.sceneVisualizer.descriptionFigure = "title"
*.visualizer.mediumVisualizer.displaySignals = true
*.visualizer.physicalLinkVisualizer.displayLinks = true
*.visualizer.physicalLinkVisualizer.packetFilter = "UDPData*"
# ------------ Communication range ------------
*.hostR1.wlan[0].radio.displayCommunicationRange = true
# ------------ Static routing setup ------------
*.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*.ipv4.routingTable.netmaskRoutes = ""
*.visualizer.dataLinkVisualizer.displayLinks = true
*.visualizer.networkRouteVisualizer.displayRoutes = true
*.visualizer.*LinkVisualizer.lineShift = 0
*.visualizer.networkRouteVisualizer.lineShift = 0
*.visualizer.networkRouteVisualizer.packetFilter = "UDPData*"
# ------------ Interference setup ------------
*.host*.wlan[0].radio.transmitter.interferenceRange = 500m
*.hostA.wlan[0].radio.displayInterferenceRange = true
# ------------ CSMA setup ------------
*.host*.wlan[0].radio.typename = "UnitDiskRadio"
*.host*.wlan[0].mac.typename = "CsmaCaMac"
*.host*.wlan[0].mac.ackTimeout = 300us
# ------------ Energy consumption setup ------------
*.host*.wlan[0].radio.energyConsumer.typename = "StateBasedEpEnergyConsumer"
*.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*.energyStorage.typename = "IdealEpEnergyStorage"
# ------------ Node Movement setup ------------
*.hostR*.mobility.typename = "LinearMobility"
*.hostR*.mobility.speed = 12mps
*.hostR*.mobility.initialMovementHeading = 270deg
*.host*.wlan[0].mac.queue.packetCapacity = 10
*.visualizer.mobilityVisualizer.displayVelocities = true
*.visualizer.mobilityVisualizer.displayMovementTrails = true
# ------------ Ad-Hoc routing setup ------------
*.configurator.addStaticRoutes = false
*.host*.typename = "AodvRouter"
*.hostB.wlan[0].radio.displayCommunicationRange = true
*.visualizer.dataLinkVisualizer.packetFilter = "AODV*"
# ------------ Obstacle setup ------------
*.host*.mobility.initialZ = 1.7m
*.physicalEnvironment.config = xmldoc("walls.xml")
*.radioMedium.obstacleLoss.typename = "IdealObstacleLoss"