The data being generated by the Internet of Things needs to be stored, monitored, and analyzed for maximum IoT resource utilization. Software Defined Networking has been extensively utilized to address issues such as heterogeneity and scalability. However, for small-scale IoT application, sometimes it is considered an inefficient approach. This paper proposes an alternate lightweight mechanism to the design and implementation of a dynamic virtual network based on user requirements. The key idea is to provide users a virtual interface that enables them to reconfigure the communication flowbetween the sensors and actuators at runtime. The throughput of the communication flow depends on the data traffic load and optimal routing. Users can reconfigure the communication flow, and virtual agents find the optimal route to handle the traffic load. The virtual network provides a user-friendly interface to allowphysical devices to be mappedwith the corresponding virtual agents. The proposed network is applicable for all systems that lie in the Internet of Things domain. Results conclude that the proposed network is efficient, reliable, and responsive to network reconfiguration at runtime.