Routing scalability in multicore-based ad hoc networks