On the Distributed Routing and Data Scheduling in Interplanetary Networks