A realistic mobility simulator for vehicular ad hoc networks