Magnetworks: How mobility impacts the design of mobile ad hoc networks