A mobility and traffic generation framework for modeling and simulating ad hoc communication networks