The Software Defined Network SDN was designed to solve the challenges of the traditional networks by separating the architecture into two planes: data and control. Integrating the SDN concept with fog computing increases the performance of IoT. The SDN controller keep registry, and manages resources allocation to all IoT items.