Off-network control processing for scalable routing in very large sensor networks