forked from akeranen/the-one
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcustom_settings.txt
More file actions
145 lines (119 loc) · 4.08 KB
/
custom_settings.txt
File metadata and controls
145 lines (119 loc) · 4.08 KB
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
## Scenario settings
Scenario.name = default_scenario
Scenario.simulateConnections = true
Scenario.updateInterval = 0.1
Scenario.endTime = 43200
# "Bluetooth" interface for all nodes
btInterface.type = SimpleBroadcastInterface
# Transmit speed of 2 Mbps = 250kBps
btInterface.transmitSpeed = 250k
btInterface.transmitRange = 10
# High speed, long range, interface for group 4
highspeedInterface.type = SimpleBroadcastInterface
highspeedInterface.transmitSpeed = 10M
highspeedInterface.transmitRange = 10000
cellularInterface.type = CellularInterface
cellularInterface.transmitSpeed = 20M
cellularInterface.transmitRange = 2500
cellularInterface.towerAddress = 1
wlanInterface.type = WLANInterface
wlanInterface.transmitSpeed = 20M
wlanInterface.transmitRange = 100
internetInterface.type = InternetInterface
internetInterface.transmitSpeed = 100M
internetInterface.transmitRange = 10000
internetInterface.internetAddress = 0
# Application specific settings
internetApplication.type = InternetApplication
internetApplication.pageCount = 100
internetApplication.minSize = 300k
internetApplication.maxSize = 3M
# Define 6 different node groups
Scenario.nrofHostGroups = 36
application1.type = InternetApplication
## Group and movement model specific settings
# pois: Points Of Interest indexes and probabilities (poiIndex1, poiProb1, poiIndex2, poiProb2, ... )
# for ShortestPathMapBasedMovement
# okMaps : which map nodes are OK for the group (map file indexes), default=all
# for all MapBasedMovent models
# routeFile: route's file path - for MapRouteMovement
# routeType: route's type - for MapRouteMovement
# normal mode
Routing.routeMode = 0
Routing.cacheSize = 10
Routing.offloadWaitTime = 0
# Common settings for all groups
Group.movementModel = ShortestPathMapBasedMovement
Group.router = EpidemicRouter
Group.bufferSize = 5M
Group.waitTime = 0, 120
Group.nrofInterfaces = 2
Group.interface1 = wlanInterface
Group.interface2 = internetInterface
Group.router = InfrastructureRouter
Group.speed = 0.5, 1.5
Group.msgTtl = 0
# group1 (internet node)
Group1.groupID = i
Group1.nrofHosts = 1
Group1.nrofInterfaces = 1
Group1.nrofApplications = 1
Group1.interface1 = internetInterface
Group1.application1 = internetApplication
Group1.movementModel = StationaryMovement
Group1.router = InternetRouter
Group1.nodeLocation = 0,0
# group2 (cellular tower) specific settings
Group2.movementModel = StationaryMovement
Group2.nodeLocation = 1900,1800
Group2.router = InfrastructureRouter
Group2.groupID = c
Group2.nrofInterfaces = 2
Group2.interface1 = internetInterface
Group2.interface2 = cellularInterface
Group2.nrofHosts = 1
# group3 (pedestrians) specific settings
Group3.groupID = p
Group3.nrofHosts = 1
Group3.nrofInterfaces = 1
Group3.interface1 = wlanInterface
Group3.router = OffloadingRouter
## Message creation parameters
# How many event generators
Events.nrof = 1
# Class of the first event generator
Events1.class = OffloadingMessageEventGenerator
# Creation interval in seconds
Events1.interval = 250,350
# Message size
Events1.size = 1k,1k
# range of message source addresses
Events1.hosts = 2,3
# Destination node is always the internet
Events1.tohosts = 0,1
# Message ID prefix
Events1.prefix = M
## Movement model settings
MovementModel.rngSeed = 1
MovementModel.worldSize = 4500, 3400
MovementModel.warmup = 1000
## Map based movement -movement model specific settings
MapBasedMovement.nrofMapFiles = 4
MapBasedMovement.mapFile1 = data/roads.wkt
MapBasedMovement.mapFile2 = data/main_roads.wkt
MapBasedMovement.mapFile3 = data/pedestrian_paths.wkt
MapBasedMovement.mapFile4 = data/shops.wkt
## Default settings for some routers settings
ProphetRouter.secondsInTimeUnit = 30
SprayAndWaitRouter.nrofCopies = 6
SprayAndWaitRouter.binaryMode = true
## Optimization settings -- these affect the speed of the simulation
## see World class for details.
Optimization.cellSizeMult = 5
Optimization.randomizeUpdateOrder = true
## GUI settings
GUI.UnderlayImage.fileName = data/helsinki_underlay.png
GUI.UnderlayImage.offset = 64, 20
GUI.UnderlayImage.scale = 4.75
GUI.UnderlayImage.rotate = -0.015
GUI.EventLogPanel.nrofEvents = 100