The aim of this study is to present a system which uses a new layered network architecture approach for IOT. Sudden and unpredictable large-scale changes are commonly prevalent in Internet of Things (IoT). The images or video data captured from the remote places have to be routed without delay. This is a tumultuous task in large scale. By using an Agents in various wireless networks and the packets are routed depends on the priority. The scope of this study is to avoid delay, interference during transfer of data from various wireless networks. This study deals with (i) congestion free data transfer under many cramped networks (ii) low processing overhead (iii) handling realistic failure scenarios, prioritized traffic in a flexible manner (iv) robust to both topology failures and traffic variations. This study presents a QoS routing method, by setting a priority to the networks to differentiate eclectic sensing vicinities in the smart space between sender and receiver.