Mobile ad hoc networks are networks without fixed infrastructure. The mobile nodes perform both as a host and as a router by forwarding packets to other nodes. Because of the nature of ad hoc networks, there are special demands for ad hoc routing protocols and the performance of these routing protocols is an important issue. This paper presents a simulation based comparative performance analysis of the three main ad hoc routing protocols namely DSDV, DSR and AODV.