A tutorial on iFogSim. It contains simulation source codes of the example scenarios and placement policies discussed in the following article:
Redowan Mahmud and Rajkumar Buyya, Modelling and Simulation of Fog and Edge Computing Environments using iFogSim Toolkit, Fog and Edge Computing: Principles and Paradigms, R. Buyya and S. Srirama (eds), 433-466pp, ISBN: 978-111-95-2498-4, Wiley Press, New York, USA, January 2019.
http://www.buyya.com/papers/iFogSim-Tut.pdf
Access from https://github.com/Cloudslab/iFogSim