Master Thesis Ad Hoc Networks