Ad hoc and Sensor Networks: Single node architecture