EdgeCloudSim ModellingGuide
EdgeCloudSim ModellingGuide
Image source: Helal, Magdy. A hybrid system dynamics-discrete event simulation approach to simulating the manufacturing enterprise. University of Central Florida, 2008.
CloudSim Simulator
• CloudSim [1] is the most used cloud simulator for typical cloud computing scenarios.
• CloudSim is open-source, Java based solution, and it is built on SimJava [2].
• It is mainly designed for modeling Infrastructure as a Service (IaaS) cloud computing
environments.
• In CloudSim, users define tasks by creating so-called cloudlets.
• Cloudlets (tasks) are processed by virtual machines running on cloud resources.
• CloudSim also contains a power model, but it is only restricted to CPU energy
consumption.
CloudSim Simulator cont.
• CloudSim supports both modeling of the cloud components such as datacenters,
hosts, and VMs and the resource provisioning policies such as CPU, storage,
memory, and bandwidth utilization models.
• Using CloudSim for Edge/Fog scenarios brings some difficulties.
• Some aspects of the VM utilization model are unrealistic.
• There is no limitation while assigning tasks to VMs.
• It does not provide realistic network delay model.
• It uses fixed static variables as network delay.
• It does not provide anything related to user mobility.
Image source: Andras Markus, Attila Kertesz, "A survey and taxonomy of simulation environments modelling fog computing", Simulation Modelling Practice and Theory, Volume 101, 2020.
CloudSim Core Entities
Datacenter: Encapsulates a set of compute hosts that
can either be homogeneous or heterogeneous with
respect to their hardware configurations.
Host: A host is associated to a datacenter. Host
executes actions related to management of VMs.
(a) Space-share for VMs and jobs, (b) space-share for VMs and time-share for jobs,
(c) time-share for VMs and space-share for jobs, and (d) time-share for VMs and jobs.
Space-Shared Schedular for VMs and Tasks
➢ Jobs (tasks) j1, j2, j3, and j4 to be hosted in VM1, whereas j5, j6, j7, and j8 to be hosted in VM2
Each job demands only one core, hence j1 and j2 can run simultaneously.
During this period, the j3 and j4 wait in the execution queue.
Space-Shared for VMs & Time-Shared for Tasks
➢ Jobs (tasks) j1, j2, j3, and j4 to be hosted in VM1, whereas j5, j6, j7, and j8 to be hosted in VM2
CloudSim simplifies
context switching by
extending each task's
runtime to reflect
shared resource usage,
not by executing them
in discrete time slices.
Each job requires only one core and cannot run simultaneously.
Each job should wait for the preceding jobs in the queue to finish executing.
Characteristic Features of Edge/Fog Simulators
Core Mo- Scala- Energy Pub.
Simulator Lang. Type Network Modelling Infrastructure entities
simulator bility bility + Cost year
FogTorch [4] Java NA NA ✗ ✗ ✗ Latency, bandwidth Things, Fog and Cloud 2017
Event
EdgeCloudSim [5] Java CloudSim ✗ ✗ WAN link model, WLAN link model Mobile client, Edge server, Cloud 2017
driven
IoT devices, Fog gw nodes, Fog
FogBus [6] Java NA NA – E Latency, network usage 2018
compute nodes, Cloud datacenter
Network Packet drop, retransmission, link Mobile end node devices, Fog
FogNetSim++ [7] C++ OMNET++ E+C 2018
driven bandwidth, bit error rate nodes, Broker nodes, Base stations
Edge-Fog Cloud [8] Python NA NA ✗ C Network cost Edge, Fog layer and Datastore 2016
MiniNet & Virtual cloud/fog/edge instance,
FogBed [9] Python Emulator ✗ ✗ – Service latency 2018
Docker Virtual switches and links
Fog nodes, Network
EmuFog [10] Java Emulator MaxiNet ✗ C Latency 2017
devices(routers)
Event
DEVS for Fog [11] C++ NA – – – – User, Broker, Fog, Cloud 2017
driven
Data source: Monika Gill, Dinesh Singh, "A comprehensive study of simulation frameworks and research directions in fog computing," Computer Science Review, Volume 40, 2021.
Citations of Simulators Distributed Over the Years
Total 2017 2018 2019 2020 2021 2022 2023 2024
DEVS for Fog 20 1 2 4 6 3 0 4 4
EdgeCloudSim 405 0 12 39 58 82 57 69 50
Edge-Fog Cloud 91 1 8 8 15 23 14 7 8
FogBed 43 0 0 1 9 8 8 7 8
FogBus 240 0 0 3 33 47 59 46 33
FogNetSim++ 123 0 0 9 27 23 23 18 16
FogTorch 335 0 24 52 56 56 55 40 33
FogTorch Pi 83 0 5 15 20 9 14 7 9
iFogSim2 112 0 0 0 0 0 5 38 43
Data Source: Web of Science (the total value includes 2025, as of November 10th)
Open Repositories of Fog/Edge Simulators
Current # of # of
Simulator Source Code Last Commit License
Release commits contrib.
As of October 2025 (README updates are ignored), NRP: No Releases Published, Blank (–): Not Available.
Existing Edge/Fog Simulators & Programming Lang. Used
Image source: Monika Gill, Dinesh Singh, "A comprehensive study of simulation frameworks and research directions in fog computing," Computer Science Review, Volume 40, 2021.
A
EdgeCloudSim
C. Sonmez, A. Ozgovde and C. Ersoy, "EdgeCloudSim: An environment for
performance evaluation of edge computing systems," Transactions on
Emerging Telecommunications Technologies, Vol. 29, No. 11, p. e3493, 2018
What is EdgeCloudSim
• EdgeCloudSim is a new simulator
• Provides a simulation environment specific to edge computing scenarios
• EdgeCloudSim is based on CloudSim but adds some additional functionalities
• Extensible and easy-to-use
• Publicly available on GitHub
• [Link]
• Has high reputation; as of October 2025
• 736 citations based on Google Scholar
• A discussion forum [12] with more than 200 members
• More than 26K views on YouTube channel [13]
What is EdgeCloudSim
• EdgeCloudSim is a new simulator
• Provides a simulation environment specific to edge computing scenarios
• EdgeCloudSim is based on CloudSim but adds some additional functionalities
• Extensible and easy-to-use
• Publicly available on GitHub
• [Link]
• Has high reputation; as of October 2025
• 736 citations based on Google Scholar
• A discussion forum [12] with more than 200 members
• More than 26K views on YouTube channel [13]
Motivation of Developing a Simulator
Motivation of Developing a Simulator
❖Network simulators do
not consider cloud
computing elements
• Datacenters
• Hosts
• VMs
• Brokers
Motivation of Developing a Simulator
Mobility Module
Networking Module
Mobility Module
• Manages the location of edge devices and clients
AP AP
Edge Server Edge Server
EdgeCloudSim Core Modules cont.
Networking Module
• Adds link delays between the network components
Global Cloud
WAN
Base Station
MAN
AP AP
Edge Server Edge Server
WLAN WLAN
EdgeCloudSim Core Modules cont.
AP
Edge Server
EdgeCloudSim Core Modules cont.
• Resource provisioning
Internet
• Scales up/down the servers Edge
• Generates/terminates VMs Orchestrator
• Migrates tasks AP AP
Edge Servers
• Coordinates services
Extensibility
Sample
Factory
Class
Extending
Network
Model…
Downloading EdgeCloudSim
• EdgeCloudSim is publicly available in GitHub.
• You should clone EdgeCloudSim repository to start development.
• $git clone [Link]
• After cloning the repository, you can use your favorite IDE such as Eclipse and NetBeans.
• Please check EdgeCloudSim wiki page for more.
• Using command line
• [Link]
• Using Eclipse IDE
• [Link]
running-sample-application
• Using Netbeans IDE
• [Link]
running-sample-application
EdgeCloudSim Folder Hierarchy
Cloud Layer VM1 VM2 VM3 VM1 VM2 VM3 VM1 VM2 VM3
…
VM4 VM5 VMn VM4 VM5 VMn VM4 VM5 VMn
Datacenter for mobile devices (One datacenter is used to decrease memory usage)
5. Visualize the Results: Use the provided Python or MATLAB scripts to plot and analyze your results.
No
Increase
repetition
How Many Repetitions?
✓ The required number of repetitions depends on your results and your research goals.
✓ The most important factor is the variance!
✓ You should run the simulation until the desired Confidence Interval (CI) is achieved.
No
Increase
repetition
2 vs 10 Repetitions
▪ Performing only a few repetitions leads to a wider Confidence Interval, decreasing the
accuracy and reliability of the results.
2 Repetitions (Low Reliability) 10 Repetitions (Higher Reliability)
Plotting Simulation Results with MATLAB
Number of iterations
Clients are utilizing an application that generates task according to a Poisson process.
Nomadic Mobility Model
• There is no real time walking pattern,
user location is updated at random
time intervals
• Probability of selecting a new location
is same for all locations
• We use variable locations with
different attractiveness levels in
simulations
• The attractiveness level determines
how much time the user will spend
(dwell time) in the corresponding place
Empirical WAN/WLAN Model
S L 300
AD WLAN Bandwidth
b er Amazon S3
Fi
200
100
W
iF 50
.3
i8
02
Huawei HG253s 02
8
Gigabit Ethernet .1
h.
802.11n 2T × 2R antenna 1
Et
0
0 20 40 60
Number of Clients
Lenovo T550 MacBook Pro Late 2011
Intel Core i7-5600U (2.6 Ghz) Intel Core i7-2675QM (2.2 Ghz)
Gigabit Ethernet 802.11n WiFi
16 GB RAM 8 GB RAM
Parameter Value
Simulation Time/Warm-up Period 30/5 minutes
Number of Repetitions 10
WLAN Delay Model Empirical
MAN Delay Fixed (10 ms)
Number of VMs per Edge Host 8
Number of Cores per Edge VM 2
VM Processor Speed per Edge CPU 10 GIPS
Mobility Model Nomadic Mobility
Number of Locations for Type 1/2/3 places 2/4/8
Mean waiting (dwell) time in Type 1/2/3 places 10/10/10 minutes
Important Simulation Results
Service Time Analysis
If average edge server CPU utilization < 90 offload task to edge server
Otherwise, execute task locally
Applications Used in This Simulation
Parameter Value
Simulation Time/Warm-up Period 15/1 minutes
Number of Repetitions 10
WLAN Delay Model Empirical
MAN Delay Fixed (5 ms)
Number of VMs per Edge/Mobile Host 8/1
Number of Cores per Edge/Mobile VM 2/1
VM Processor Speed per Edge/Mobile CPU 10/4 GIPS
Mobility Model Nomadic Mobility
Number of locations for Type 1/2/3 places 2/4/8
Mean waiting (dwell) time in Type 1/2/3 places 10/6.6/3.3 minutes
Important Simulation Results
These results are highly dependent to host machine load while running the simulation!
A Case Study 3 – Where to Offload
Performance Evaluation of Different Workload Orchestration Policies
If average edge servers CPU utilization > 75, offload task to cloud server
Otherwise, offload task to edge servers
Parameter Value
Simulation Time/Warm-up Period 30/5 minutes
Number of Repetitions 10
WAN/WLAN Delay Model Empirical
MAN Delay Fixed (5 ms)
Number of VMs per Edge/Cloud Host 8/4
Number of Cores per Edge/Cloud VM 2/4
VM Processor Speed per Edge/Cloud CPU 10/100 GIPS
Mobility Model Nomadic Mobility
Number of Locations for Type 1/2/3 Places 2/4/8
Mean waiting time in Type 1/2/3 Places 8/5/2 minutes
Important Simulation Results
Processing time is a bottleneck for edge devices, while WAN delay is a bottleneck for cloud servers.
Network Delay Analysis
Parameter Value
Simulation Time/Warm-up Period 15/1 minutes
Number of Repetitions 10
WLAN Delay Model Empirical
MAN Delay Fixed (10 ms)
Number of VMs per Edge Host 2
Number of Cores per Edge VM 2
VM Processor Speed per Edge CPU 10-44 GIPS
Mobility Model Vehicular Mobility
Number of locations for Type 1/2/3 Places 1/4/6
Speed of Vehicles in Type 1/2/3 Places 20/40/60 km/hour
Important Simulation Results
λ/2
μ μ
λ λ
2μ
λ/2
μ μ
Which One Provides the Best Network Delay?
Case 1 Case 2 Case 3
λ/2
μ μ
λ λ
2μ
λ/2
μ μ
λ
μ
1 ,μ>λ
• Response time E(T) =
μ-λ
μ
λ
0 1 2 3
P0 λ = P1 μ
P1 λ + P1 μ = P0 λ + P2 2μ μ 2μ 2μ 2μ
P2 λ + P2 2μ = P1 λ + P3 2μ
Pn λ = Pn+1 2μ for n ≥ 1
After some math 4μ
ΣPn = 1 E(T) =
(2μ - λ) (2μ+ λ)
(The sum of all probabilities must equal 1)
Case 3: Two Parallel M/M/1 Queues
λ/2
μ
λ/2
μ
1
E(T) = x2
μ – λ/2
4
E(T) =
2μ – λ
Expected Network Delay for All Cases
λ/2
μ μ
λ λ
2μ
λ/2
μ μ
1 4μ 4
E(T) =
2μ - λ
< E(T) =
(2μ - λ) (2μ+ λ) < E(T) =
2μ – λ
Implementation of Case1
M/M/1 Queue
Edge Server
λ
2μ
AP
AP λ/2
AP μ
Parameter Value
Simulation Time 30 minutes
Warm-up Period 5 minutes
Number of Repetitions 10
Mobility Model Nomadic Mobility
Number of Mobile Clients 1000 to 2000
Length of the Simulated Area* 6 KM
* Simulated area is a symbolic value; in the end, we have 1 or 2 places depending on the scenario.
Average WLAN Delay & Success Rate
Edge Server Side Statistics
CloudSim’s task scheduler algorithm provides results similar to our M/M/1 & M/M/2 queue models.
References
[1] Calheiros, R. N., R. Ranjan, A. Beloglazov, C. A. F. De Rose and R. Buyya, “CloudSim: A Toolkit for Modeling and Simulation of Cloud Computing Environments and
Evaluation of Resource Provisioning Algorithms”, Softw. Pract. Exper., Vol. 41, No. 1, pp. 23–50, Jan. 2011.
[2] Howell, Fred, and Ross McNab. "SimJava: A discrete event simulation library for java." Simulation Series 30 (1998): 51-56.
[3] Gupta, Harshit, Amir Vahid Dastjerdi, Soumya K. Ghosh, and Rajkumar Buyya. "iFogSim: A toolkit for modeling and simulation of resource management techniques
in the Internet of Things, Edge and Fog computing environments." Software: Practice and Experience 47, no. 9 (2017): 1275-1296.
[4] Brogi, Antonio, and Stefano Forti. "QoS-aware deployment of IoT applications through the fog." IEEE Internet of Things Journal 4, no. 5 (2017): 1185-1192.
[5] Sonmez, Cagatay, Atay Ozgovde, and Cem Ersoy. "Edgecloudsim: An environment for performance evaluation of edge computing systems." Transactions on Emerging
Telecommunications Technologies 29, no. 11 (2018): e3493.
[6] Tuli, Shreshth, Redowan Mahmud, Shikhar Tuli, and Rajkumar Buyya. "Fogbus: A blockchain-based lightweight framework for edge and fog computing." Journal of
Systems and Software 154 (2019): 22-36.
[7] Qayyum, Tariq, Asad Waqar Malik, Muazzam A. Khan Khattak, Osman Khalid, and Samee U. Khan. "FogNetSim++: A toolkit for modeling and simulation of
distributed fog environment." IEEE Access 6 (2018): 63570-63583.
[8] N. Mohan and J. Kangasharju, "Edge-Fog cloud: A distributed cloud for Internet of Things computations," 2016 Cloudification of the Internet of Things (CIoT), 2016,
pp. 1-6.
[9] A. Coutinho, F. Greve, C. Prazeres and J. Cardoso, "Fogbed: A Rapid-Prototyping Emulation Environment for Fog Computing," 2018 IEEE International Conference on
Communications (ICC), 2018, pp. 1-7.
[10] R. Mayer, L. Graser, H. Gupta, E. Saurez and U. Ramachandran, "EmuFog: Extensible and scalable emulation of large-scale fog computing infrastructures," 2017 IEEE
Fog World Congress (FWC), 2017, pp. 1-6.
[11] M. Etemad, M. Aazam and M. St-Hilaire, "Using DEVS for modeling and simulating a Fog Computing environment," 2017 International Conference on Computing,
Networking and Communications (ICNC), 2017, pp. 849-854.
[12] "EdgeCloudSim Discussion Forum", [Link] accessed in October 2025.
[13] "EdgeCloudSim YouTube Channel", [Link] accessed in October 2025.
Thank You