Algorithms and protocols for wireless and mobile ad hoc