Remarkable growth of network traffic has been noticed recently due to the use of online applications and cloud services. Thus, multiple routing problems need to solve without increasing latency to optimize the traffic. Based on the responses from industry, Software Defined Networking (SDN) has been developed to meet this challenge. SDN allows the programmable features of network and responds dynamically. In this paper, multipath routing problem in SDN is addressed and resolved under OpenFlow protocol where Ryu controllers are used to implement SDN using the Mininet WiFi emulator. Besides, in addition to a graphical user interface, a module has been developed using python programming along with OpenFlow based Ryu controller. In the simulation results, depth first search (DFS) algorithm outperforms over breadth first search (BFS) in terms of round trip time (RTT), delay and throughput. Hence, this article enhanced the quality of service (QoS) in SDN.