Phd thesis on ad hoc networks