Last active
December 20, 2015 17:18
-
-
Save barun-saha/6167497 to your computer and use it in GitHub Desktop.
The ONE simulation scenario to compare the performance of Epidemic and SnW for different area sizes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Performance comparison of Epidemic and Snw for different area dimensions | |
# | |
# Group.router: 2 | |
# MovementModel.worldSize: 3 | |
# MovementModel.rngSeed: 5 | |
# | |
# Total scenarios = 2 * 3 * 5 = 30 | |
# | |
## Scenario settings | |
Scenario.name = scenario_%%Group.router%%_area-%%MovementModel.worldSize%%_rng-%%MovementModel.rngSeed%% | |
Scenario.simulateConnections = true | |
Scenario.updateInterval = 1.0 | |
# 43200s == 12h | |
Scenario.endTime = 43200 | |
Scenario.nrofHostGroups = 1 | |
## Interface-specific settings: | |
# type : which interface class the interface belongs to | |
# For different types, the sub-parameters are interface-specific | |
# For SimpleBroadcastInterface, the parameters are: | |
# transmitSpeed : transmit speed of the interface (bytes per second) | |
# transmitRange : range of the interface (meters) | |
# "Bluetooth" interface for all nodes | |
btInterface.type = SimpleBroadcastInterface | |
# Transmit speed of 2 Mbps = 250kBps | |
# IEEE 802.11b: ~ 11 Mbits/s for 200 m | |
btInterface.transmitSpeed = 250k | |
btInterface.transmitRange = 10 | |
## Group-specific settings: | |
# groupID : Group's identifier. Used as the prefix of host names | |
# nrofHosts: number of hosts in the group | |
# movementModel: movement model of the hosts (valid class name from movement package) | |
# waitTime: minimum and maximum wait times (seconds) after reaching destination | |
# speed: minimum and maximum speeds (m/s) when moving on a path | |
# bufferSize: size of the message buffer (bytes) | |
# router: router used to route messages (valid class name from routing package) | |
# activeTimes: Time intervals when the nodes in the group are active (start1, end1, start2, end2, ...) | |
# msgTtl : TTL (minutes) of the messages created by this host group, default=infinite | |
## 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 | |
# Common settings for all groups | |
Group.movementModel = RandomWalk | |
Group.router = [EpidemicRouter; SprayAndWaitRouter;] | |
SprayAndWaitRouter.binaryMode = true | |
SprayAndWaitRouter.nrofCopies = 8 | |
# All nodes have the bluetooth interface | |
Group.nrofInterfaces = 1 | |
Group.interface1 = btInterface | |
# Speeds | |
Group.speed = 2,5 | |
# Message TTL of 300 minutes (5 hours) | |
Group.msgTtl = 300 | |
Group.nrofHosts = 50 | |
Group.groupID = n | |
## Movement model settings | |
# seed for movement models' pseudo random number generator (default = 0) | |
MovementModel.rngSeed = [1; 2; 3; 4; 5;] | |
# World's size for Movement Models without implicit size (width, height; meters) | |
MovementModel.worldSize = [500,500; 1000,1000; 1500,1500;] | |
# How long time to move hosts in the world before real simulation | |
## Message creation parameters | |
# How many event generators | |
Events.nrof = 1 | |
# Class of the first event generator | |
Events1.class = MessageEventGenerator | |
# (following settings are specific for the MessageEventGenerator class) | |
# Creation interval in seconds (one new message every 30 to 60 second) | |
Events1.interval = 30,60 | |
# Message sizes (500kB - 1MB) | |
Events1.size = 1k | |
# range of message source/destination addresses | |
Events1.hosts = 0, 50 | |
# Message ID prefix | |
Events1.prefix = M | |
## Reports - all report names have to be valid report classes | |
# how many reports to load | |
Report.nrofReports = 1 | |
Report.reportDir = my_reports/blog_tutorial | |
# Report classes to load | |
Report.report1 = MessageStatsReport | |
## Optimization settings -- these affect the speed of the simulation | |
## see World class for details. | |
Optimization.cellSizeMult = 5 | |
Optimization.randomizeUpdateOrder = true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment