In this paper, the authors implement AntHocNet, an algorithm for routing in mobile ad hoc networks on DSR routing protocol to enhance its improvement. Due to the ever changing topology and limited bandwidth it is very hard to establish and maintain good routes in networks. Especially reliability and throughput are important concerns as far as the performance of a routing scheme is related. The AntHocNet algorithm is based on the nature-inspired ant colony optimization framework. They generally deal with two main categories of ad-hoc routing protocols. AntHocNet consists of both reactive and proactive components.