Ad hoc & sensor networks