Study and simulation of resource allocation algorithms in IoT networks with fog computing technologies