This tutorial deals with routing and cross-layer design issues related to ad hoc and sensor networks.